Beispiel #1
0
    internal void exitMMPool()
    {
        Net_EnterMMPool msg = new Net_EnterMMPool();

        msg.inPool = false;
        SendServer(msg);
    }
Beispiel #2
0
    public void enterMMPool()
    {
        Net_EnterMMPool msg = new Net_EnterMMPool();

        msg.inPool = true;
        SendServer(msg);
    }
Beispiel #3
0
 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);
     }
 }