Example #1
0
 public LidgrenServer(Server server)
     : base(
         new NetServer(
             LidgrenPeer.CreateConfig(
                 server.Configuration,
                 server.ServerConfiguration.Port
                 )
             ),
         server
         )
 {
     netServer = (NetServer)Peer;
 }
Example #2
0
 public LidgrenClient(Client client)
     : base(new NetClient(LidgrenPeer.CreateConfig(client.Configuration)), client)
 {
     netClient = (NetClient)Peer;
 }