public PartyActionImpl(PartyActionType actionType, Creatures.Creature creature) { _actionType = actionType; if (actionType == PartyActionType.Join || actionType == PartyActionType.Invite || actionType == PartyActionType.Exclude || actionType == PartyActionType.PassLeadership || actionType == PartyActionType.JoinAggression) { _creature = creature ?? throw new System.ArgumentNullException("PartyActionImpl.PartyActionImpl: invalid argument (null passed to creature)."); } else { _creature = creature; } }
public PartyActivityRecord(PartyActionType actionType, string questType, string questDifficulty, string questLength, string dungeon, List <SaveHeroData> heroes, bool[] aliveStatus, bool isSuccessfull) { PartyActionType = actionType; QuestType = questType; QuestDifficulty = questDifficulty; QuestLength = questLength; Dungeon = dungeon; IsSuccessfull = isSuccessfull; Names = new List <string>(heroes.Select(item => item.Name)); Classes = new List <string>(heroes.Select(item => item.HeroClass)); Alive = new List <bool>(aliveStatus); }
public PartyActivityRecord(PartyActionType actionType, string questType, string questDifficulty, string questLength, string dungeon, List <Hero> heroes) { PartyActionType = actionType; QuestType = questType; QuestDifficulty = questDifficulty; QuestLength = questLength; Dungeon = dungeon; Names = new List <string>(heroes.Select(item => item.HeroName)); Classes = new List <string>(heroes.Select(item => item.Class)); Alive = new List <bool>(); for (int i = 0; i < Names.Count; i++) { Alive.Add(true); } }
public PartyActivityRecord(PartyActionType actionType, RaidManager raidManager) { PartyActionType = actionType; QuestType = raidManager.Quest.Type; QuestDifficulty = raidManager.Quest.Difficulty.ToString(); QuestLength = raidManager.Quest.Length.ToString(); Dungeon = raidManager.Quest.Dungeon; IsSuccessfull = raidManager.Status == RaidStatus.Success; Names = new List <string>(raidManager.RaidParty.HeroInfo.Select(item => item.Hero.HeroName)); Classes = new List <string>(raidManager.RaidParty.HeroInfo.Select(item => item.Hero.Class)); if (actionType == PartyActionType.Result) { Alive = new List <bool>(raidManager.RaidParty.HeroInfo.Select(item => item.IsAlive)); } else { Alive = new List <bool>(); for (int i = 0; i < Names.Count; i++) { Alive.Add(true); } } }