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)); }
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); } }
private bool SendLobbyMsgDirectly(LobbyCode code, params object[] args) { return(NetWorkHelper.Instance.client.SendLobbyMsg(code, args)); }
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)); }