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