public void OnReceiveTeam(byte position, string identity, ByteSequence team) { if (this.OnSetTeam != null) { this.OnSetTeam(position, identity, team); } }
public void SendTeam(byte position, string identity, ByteSequence team) { foreach (int num in this._playerList.Keys) { base.Send(num, PokemonBattleServerHelper.ReceiveTeam(position, identity, team)); } }
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); } }
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(); } } } }
public UserInfo(string name, byte position, ByteSequence teamData) { this._name = name; this._position = position; this._teamData = teamData; }
internal void SendTeam(int sessionID, byte position, string identity, ByteSequence byteSequence) { base.Send(sessionID, PokemonBattleServerHelper.ReceiveTeam(position, identity, byteSequence)); }
public void SendTeam(byte position, string identity, ByteSequence team) { base.Send(PokemonBattleClientHelper.ReceiveTeam(position, identity, team)); }