public NetworkPlayerPortal(IMessageQueue<IncomingGameMessageQueueItem> inQ, IMessageQueue<OutgoingGameMessageQueueItem> outQ, ISerialize iSerializer) { m_qIncomingQueue = inQ; m_qOutgoingQueue = outQ; m_bIsRunning = false; m_slrSerializer = iSerializer; m_tcGameFlow = new ThreadController(false); m_dicStorage = new Dictionary<string, object>(); }
public GameServerTest() { _threader = new ThreadController(false); _serializer = new JsonSerializer(); testServerHost = getLocalIPAddress().ToString(); //-- Create and start the server _gs = new GameServer(TEST_APP_ID, TEST_CLIENT_PORT, TEST_BROADCAST_RANGE, TEST_SERVER_ID, ServerType.GameServer); _gs.Start(); //-- Create the clients NetPeerConfiguration config = new NetPeerConfiguration(TEST_APP_ID); _clientOne = new NetClient(config); _clientTwo = new NetClient(config); }