Beispiel #1
0
 public void OnReceiveBattleInfo(BattleInfo info)
 {
     if (this.OnSetBattleInfo != null)
     {
         this.OnSetBattleInfo(info);
     }
 }
Beispiel #2
0
 public void SendBattleInfo(BattleInfo info)
 {
     foreach (int num in this.ObserverList)
     {
         base.Send(num, PokemonBattleServerHelper.ReceiveBattleInfo(info));
     }
 }
Beispiel #3
0
 public void ReceiveBattleInfo(BattleInfo info)
 {
     this._battleInfo = info;
     foreach (int num in this.GetObserverList())
     {
         this._server.SendBattleInfo(num, info);
     }
 }
        public void OnReceiveBattleInfo(int sessionID, BattleInfo info)
        {
            BattleAgent clientAgent = this.GetClientAgent(sessionID);

            if (clientAgent != null)
            {
                clientAgent.ReceiveBattleInfo(info);
            }
        }
Beispiel #5
0
        public void OnRegistObsever(int sessionID, int identity)
        {
            BattleInfo info = this.HandleRequestBattleInfoEvent();

            if (info != null)
            {
                base.Send(sessionID, PokemonBattleServerHelper.ReceiveBattleInfo(info));
            }
            this._observerList.Add(sessionID);
        }
 internal void SendBattleInfo(int sessionID, BattleInfo info)
 {
     base.Send(sessionID, PokemonBattleServerHelper.ReceiveBattleInfo(info));
 }
Beispiel #7
0
 public void SendBattleInfo(BattleInfo info)
 {
     base.Send(PokemonBattleClientHelper.ReceiveBattleInfo(info));
 }
Beispiel #8
0
 public void OnReceiveBattleInfo(int sessionID, BattleInfo info)
 {
 }