예제 #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);
 }
예제 #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);
 }
예제 #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]
     };
 }
예제 #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]
     };
 }
예제 #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]
     };
 }