示例#1
0
 public bool SendLobbyMsgEx(LobbyCode code, SendMsgManager.SendMsgParam param, params object[] args)
 {
     if (PvpManager.IsDirectLinkLobby)
     {
         return(this.SendLobbyMsgDirectly(code, args));
     }
     return(SendMsgManager.Instance.SendGateLobbyMessage(code, param, args));
 }
示例#2
0
    private void DelePhotonMsgLobbyCode(LobbyCode msgID, object msgParam)
    {
        MobaMessage message = MobaMessageManager.GetMessage(msgID, msgParam, 0f);

        if (MobaMessageManager.IsHandlerExists(message))
        {
            MobaMessageManager.ExecuteMsg(message);
        }
        else
        {
            ClientLogger.Error("No handler for LobbyCode: " + msgID);
        }
    }
示例#3
0
 private bool SendLobbyMsgDirectly(LobbyCode code, params object[] args)
 {
     return(NetWorkHelper.Instance.client.SendLobbyMsg(code, args));
 }
示例#4
0
 public bool SendLobbyMsg(LobbyCode code, params object[] args)
 {
     return(this.SendLobbyMsgEx(code, null, args));
 }
 public static void RegistMessage(LobbyCode msgID, MobaMessageFunc msgFunc)
 {
     MobaMessageManager.RegistMessage(MobaMessageType.LobbyCode, (int)msgID, msgFunc);
 }
 public static MobaMessage GetMessage(LobbyCode msgID, object msgParam, float delayTime = 0f)
 {
     return(new MobaMessage(MobaMessageType.LobbyCode, (int)msgID, msgParam, delayTime, null));
 }