Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 /// <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]
     };
 }
Ejemplo n.º 4
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]
     };
 }
Ejemplo n.º 5
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]
     };
 }