Example #1
0
 public void OnReceiveTeam(byte position, string identity, ByteSequence team)
 {
     if (this.OnSetTeam != null)
     {
         this.OnSetTeam(position, identity, team);
     }
 }
Example #2
0
 public void SendTeam(byte position, string identity, ByteSequence team)
 {
     foreach (int num in this._playerList.Keys)
     {
         base.Send(num, PokemonBattleServerHelper.ReceiveTeam(position, identity, team));
     }
 }
Example #3
0
        public void OnReceiveTeam(int sessionID, byte position, string identity, ByteSequence team)
        {
            BattleAgent clientAgent = this.GetClientAgent(sessionID);

            if (clientAgent != null)
            {
                clientAgent.ReceiveTeam(sessionID, position, identity, team);
            }
        }
Example #4
0
 public void ReceiveTeam(int identity, byte position, string name, ByteSequence teamData)
 {
     if (this._users.ContainsKey(identity))
     {
         this._users[identity].Name     = name;
         this._users[identity].TeamData = teamData;
         this._users[identity].Position = position;
         lock (this._locker)
         {
             Interlocked.Decrement(ref this._waitUserCount);
             if (this._waitUserCount == 0)
             {
                 this.SendData();
             }
         }
     }
 }
Example #5
0
 public UserInfo(string name, byte position, ByteSequence teamData)
 {
     this._name     = name;
     this._position = position;
     this._teamData = teamData;
 }
Example #6
0
 internal void SendTeam(int sessionID, byte position, string identity, ByteSequence byteSequence)
 {
     base.Send(sessionID, PokemonBattleServerHelper.ReceiveTeam(position, identity, byteSequence));
 }
Example #7
0
 public void SendTeam(byte position, string identity, ByteSequence team)
 {
     base.Send(PokemonBattleClientHelper.ReceiveTeam(position, identity, team));
 }