internal void exitMMPool() { Net_EnterMMPool msg = new Net_EnterMMPool(); msg.inPool = false; SendServer(msg); }
public void enterMMPool() { Net_EnterMMPool msg = new Net_EnterMMPool(); msg.inPool = true; SendServer(msg); }
private void EnterMMPool(int cnnId, int channelId, int recHostId, Net_EnterMMPool msg) { if (msg.inPool) { MatchMakerObject mmo = new MatchMakerObject(); mmo.channelId = channelId; mmo.connectionId = cnnId; mmo.hostId = recHostId; MatchMaker.GetInstance().QueueMatchMakerObject(mmo); } else { MatchMakerObject mmo = new MatchMakerObject(); mmo.channelId = channelId; mmo.connectionId = cnnId; mmo.hostId = recHostId; MatchMaker.GetInstance().RemoveMatchMakerObject(mmo); } }