Exemplo n.º 1
0
 private static void PreHandler(MobaTeamRoomCode code, MobaMessage msg)
 {
     if (MVC_MessageManager.dicMabaTeamRoomPreHandler.ContainsKey(code))
     {
         foreach (MobaMessageFunc current in MVC_MessageManager.dicMabaTeamRoomPreHandler[code])
         {
             current(msg);
         }
     }
 }
 public static MobaMessage GetMessage(MobaTeamRoomCode msgID, object msgParam, float delayTime = 0f)
 {
     return(new MobaMessage(MobaMessageType.TeamRoomCode, (int)msgID, msgParam, delayTime, null));
 }
 public static void UnRegistMessage(MobaTeamRoomCode msgID, MobaMessageFunc msgFunc)
 {
     MobaMessageManager.UnRegistMessage(MobaMessageType.TeamRoomCode, (int)msgID, msgFunc);
 }
Exemplo n.º 4
0
    private void DelePhotonMsgTeamRoomCode(MobaTeamRoomCode msgID, object msgParam)
    {
        MobaMessage message = MobaMessageManager.GetMessage(msgID, msgParam, 0f);

        MobaMessageManager.ExecuteMsg(message);
    }
Exemplo n.º 5
0
 public static ClientMsg TeamRoom_to_NotifyView(MobaTeamRoomCode code)
 {
     return(ClientMsg.NotifyView_teamroom_begin + (int)code);
 }
Exemplo n.º 6
0
 public static void RemoveListener_view(MobaTeamRoomCode code, MobaMessageFunc func)
 {
     MobaMessageManager.UnRegistMessage(MVC_MessageManager.TeamRoom_to_NotifyView(code), func);
 }
Exemplo n.º 7
0
 public static void AddListener_model(MobaTeamRoomCode code, MobaMessageFunc func)
 {
     MobaMessageManager.RegistMessage(MVC_MessageManager.TeamRoom_to_NotifyModel(code), func);
 }