コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: ArenaTeamStats.cs プロジェクト: 0xFh/Asda2-Project
        public ArenaTeamStats(ArenaTeam arenaTeam)
        {
            team   = arenaTeam;
            rating = 1500;

            gamesWeek   = 0;
            winsWeek    = 0;
            gamesSeason = 0;
            winsSeason  = 0;
            rank        = 0;
        }
コード例 #3
0
ファイル: ArenaMgr.cs プロジェクト: uvbs/Asda2-Server
 /// <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);
         }
     }
 }
コード例 #4
0
ファイル: ArenaMgr.cs プロジェクト: NecroSharper/WCell
        /// <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);
                }
            }
        }
コード例 #5
0
 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;
 }
コード例 #6
0
 /// <summary>
 /// Removes this member from its team
 /// </summary>
 public void LeaveArenaTeam()
 {
     ArenaTeam.RemoveMember(this, true);
 }
コード例 #7
0
 internal void Init(ArenaTeam team, Character chr)
 {
     ArenaTeam = team;
     Character = chr;
 }
コード例 #8
0
 internal void Init(ArenaTeam team)
 {
     Init(team, World.GetCharacter((uint)CharacterLowId));
 }
コード例 #9
0
 public static ArenaTeamMember[] FindAll(ArenaTeam team)
 {
     return(ActiveRecordBase <ArenaTeamMember> .FindAllByProperty("_arenaTeamId", (object)(int)team.Id));
 }
コード例 #10
0
 internal void Init(ArenaTeam team, Character chr)
 {
     this.ArenaTeam = team;
     this.Character = chr;
 }
コード例 #11
0
ファイル: ArenaMgr.cs プロジェクト: uvbs/Asda2-Server
 public static void UnregisterArenaTeam(ArenaTeam team)
 {
     ArenaMgr.ArenaTeamsById.Remove(team.Id);
     ArenaMgr.ArenaTeamsByName.Remove(team.Name);
 }
コード例 #12
0
ファイル: ArenaTeamMember.cs プロジェクト: 0xFh/Asda2-Project
 public static ArenaTeamMember[] FindAll(ArenaTeam team)
 {
     return(FindAllByProperty("_arenaTeamId", (int)team.Id));
 }