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(); }
public NetworkBase(Server tserver) { TheServer = tserver; Strings = new NetStringManager(TheServer); Connections = new List <Connection>(); }
public NetworkBase(Server tserver) { TheServer = tserver; Strings = new NetStringManager(TheServer); Connections = new List<Connection>(); }