public ArenaTeamStats(ArenaTeam arenaTeam) { this.team = arenaTeam; this.rating = 1500U; this.gamesWeek = 0U; this.winsWeek = 0U; this.gamesSeason = 0U; this.winsSeason = 0U; this.rank = 0U; }
public ArenaTeamStats(ArenaTeam arenaTeam) { team = arenaTeam; rating = 1500; gamesWeek = 0; winsWeek = 0; gamesSeason = 0; winsSeason = 0; rank = 0; }
/// <summary>New or loaded arena team</summary> /// <param name="guild"></param> public static void RegisterArenaTeam(ArenaTeam team) { ArenaMgr.ArenaTeamsById.Add(team.Id, team); ArenaMgr.ArenaTeamsByName.Add(team.Name, team); foreach (ArenaTeamMember arenaTeamMember in (IEnumerable <ArenaTeamMember>)team.Members.Values) { if (arenaTeamMember.Character == null && !ArenaMgr.OfflineChars.ContainsKey(arenaTeamMember.Id)) { ArenaMgr.OfflineChars.Add(arenaTeamMember.Id, arenaTeamMember); } } }
/// <summary> /// New or loaded arena team /// </summary> /// <param name="guild"></param> public static void RegisterArenaTeam(ArenaTeam team) { ArenaTeamsById.Add(team.Id, team); ArenaTeamsByName.Add(team.Name, team); foreach (var atm in team.Members.Values) { if (atm.Character == null && !OfflineChars.ContainsKey(atm.Id)) { OfflineChars.Add(atm.Id, atm); } } }
public ArenaTeamMember(CharacterRecord chr, ArenaTeam team, bool isLeader) : this() { this.ArenaTeam = team; this.CharacterLowId = (int)chr.EntityLowId; this.ArenaTeamId = team.Id; this._name = chr.Name; this._class = (int)chr.Class; this._gamesWeek = 0; this._winsWeek = 0; this._gamesSeason = 0; this._winsSeason = 0; this._personalRating = 1500; }
/// <summary> /// Removes this member from its team /// </summary> public void LeaveArenaTeam() { ArenaTeam.RemoveMember(this, true); }
internal void Init(ArenaTeam team, Character chr) { ArenaTeam = team; Character = chr; }
internal void Init(ArenaTeam team) { Init(team, World.GetCharacter((uint)CharacterLowId)); }
public static ArenaTeamMember[] FindAll(ArenaTeam team) { return(ActiveRecordBase <ArenaTeamMember> .FindAllByProperty("_arenaTeamId", (object)(int)team.Id)); }
internal void Init(ArenaTeam team, Character chr) { this.ArenaTeam = team; this.Character = chr; }
public static void UnregisterArenaTeam(ArenaTeam team) { ArenaMgr.ArenaTeamsById.Remove(team.Id); ArenaMgr.ArenaTeamsByName.Remove(team.Name); }
public static ArenaTeamMember[] FindAll(ArenaTeam team) { return(FindAllByProperty("_arenaTeamId", (int)team.Id)); }