public Player(string name) { this.name = name; this.messages = new List<Message>(); this.units = new List<Unit>(); this.buildings = new List<Building>(); this.sectors = new List<Sector>(); this.allianceRank = Wc3o.AllianceRank.Level0; Game.GameData.Players.Add(name,this); }
// Token: 0x06002C27 RID: 11303 RVA: 0x00487B20 File Offset: 0x00485D20 private void UpdateAllianceRank(AllianceRank rank = AllianceRank.RANK5) { if (rank != this.AllianceRank) { bool bEdit = rank == AllianceRank.RANK5 || rank == AllianceRank.RANK4; for (int i = 0; i < this.BookItem.Length; i++) { this.BookItem[i].EditMode(bEdit); } } this.AllianceRank = rank; }