Example #1
0
 public NetworkBase(Server tserver)
 {
     TheServer   = tserver;
     Strings     = new NetStringManager(TheServer);
     Connections = new List <Connection>();
     PacketHelper[ClientToServerPacket.PING]            = () => new PingPacketIn();
     PacketHelper[ClientToServerPacket.KEYS]            = () => new KeysPacketIn();
     PacketHelper[ClientToServerPacket.COMMAND]         = () => new CommandPacketIn();
     PacketHelper[ClientToServerPacket.HOLD_ITEM]       = () => new HoldItemPacketIn();
     PacketHelper[ClientToServerPacket.DISCONNECT]      = () => new DisconnectPacketIn();
     PacketHelper[ClientToServerPacket.SET_STATUS]      = () => new SetStatusPacketIn();
     PacketHelper[ClientToServerPacket.PLEASE_REDEFINE] = () => new PleaseRedefinePacketIn();
     PacketHelper[ClientToServerPacket.MY_VEHICLE]      = () => new MyVehiclePacketIn();
 }
Example #2
0
 public NetworkBase(Server tserver)
 {
     TheServer   = tserver;
     Strings     = new NetStringManager(TheServer);
     Connections = new List <Connection>();
 }
Example #3
0
 public NetworkBase(Server tserver)
 {
     TheServer = tserver;
     Strings = new NetStringManager(TheServer);
     Connections = new List<Connection>();
 }