public Faction(FactionEntry entry, FactionTemplateEntry template) { this.Entry = entry; this.Template = template; this.Id = entry.Id; this.ReputationIndex = entry.FactionIndex; this.IsAlliance = template.FactionGroup.HasFlag((Enum)FactionGroupMask.Alliance); this.IsHorde = template.FactionGroup.HasFlag((Enum)FactionGroupMask.Horde); }
public Faction(FactionEntry entry, FactionTemplateEntry template) { Entry = entry; Template = template; Id = entry.Id; ReputationIndex = entry.FactionIndex; IsAlliance = template.FactionGroup.HasFlag(FactionGroupMask.Alliance); IsHorde = template.FactionGroup.HasFlag(FactionGroupMask.Horde); }
/// <summary> /// Default ctor can be used for customizing your own Faction /// </summary> public Faction() { Entry = new FactionEntry { Name = "Null Faction" }; Template = new FactionTemplateEntry { EnemyFactions = new FactionId[0], FriendlyFactions = new FactionId[0] }; }
private Faction(HashSet <Faction> enemies, HashSet <Faction> friends, HashSet <Faction> neutrals) { Enemies = enemies; Friends = friends; Neutrals = neutrals; Entry = new FactionEntry { Name = "Null Faction" }; Template = new FactionTemplateEntry { EnemyFactions = new FactionId[0], FriendlyFactions = new FactionId[0] }; }
private Faction(HashSet <Faction> enemies, HashSet <Faction> friends, HashSet <Faction> neutrals) { this.Enemies = enemies; this.Friends = friends; this.Neutrals = neutrals; this.Entry = new FactionEntry() { Name = "Null Faction" }; this.Template = new FactionTemplateEntry() { EnemyFactions = new FactionId[0], FriendlyFactions = new FactionId[0] }; }