コード例 #1
0
 public void OnReceiveTeam(byte position, string identity, ByteSequence team)
 {
     if (this.OnSetTeam != null)
     {
         this.OnSetTeam(position, identity, team);
     }
 }
コード例 #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));
     }
 }
コード例 #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);
            }
        }
コード例 #4
0
ファイル: BattleAgent.cs プロジェクト: zhangyu233/pbo0791
 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();
             }
         }
     }
 }
コード例 #5
0
ファイル: BattleAgent.cs プロジェクト: zhangyu233/pbo0791
 public UserInfo(string name, byte position, ByteSequence teamData)
 {
     this._name     = name;
     this._position = position;
     this._teamData = teamData;
 }
コード例 #6
0
 internal void SendTeam(int sessionID, byte position, string identity, ByteSequence byteSequence)
 {
     base.Send(sessionID, PokemonBattleServerHelper.ReceiveTeam(position, identity, byteSequence));
 }
コード例 #7
0
 public void SendTeam(byte position, string identity, ByteSequence team)
 {
     base.Send(PokemonBattleClientHelper.ReceiveTeam(position, identity, team));
 }