Ejemplo n.º 1
0
 private void DelePhotonMsgCustom(Photon2ClientMsg msgID, object msgParam)
 {
     if (PvpServer.IsMultithreadEnabled)
     {
         this._storage.AddMsg((int)msgID, msgParam, MsgType.NotifyMsg, 0L);
     }
     else
     {
         MobaMessage message = MobaMessageManager.GetMessage(msgID, msgParam, 0f);
         MobaMessageManager.ExecuteMsg(message);
     }
 }
 public static void UnRegistMessage(Photon2ClientMsg msgID, MobaMessageFunc msgFunc)
 {
     MobaMessageManager.UnRegistMessage(MobaMessageType.Phonto2Client, (int)msgID, msgFunc);
 }
 public static MobaMessage GetMessage(Photon2ClientMsg msgID, object msgParam, float delayTime = 0f)
 {
     return(new MobaMessage(MobaMessageType.Phonto2Client, (int)msgID, msgParam, delayTime, null));
 }