public FactionTemplateEntry(int factionTemplateId, int factionId, FactionTemplateFlags factionFlags, FactionGroupMask ownFactionGroupMask, FactionGroupMask friendlyFactionGroupMask, FactionGroupMask enemyFactionGroupMask, [NotNull] Vector4 <int> enemyFaction, [NotNull] Vector4 <int> friendlyFaction)
 {
     FactionTemplateId        = factionTemplateId;
     FactionId                = factionId;
     FactionFlags             = factionFlags;
     OwnFactionGroupMask      = ownFactionGroupMask;
     FriendlyFactionGroupMask = friendlyFactionGroupMask;
     EnemyFactionGroupMask    = enemyFactionGroupMask;
     EnemyFaction             = enemyFaction ?? throw new ArgumentNullException(nameof(enemyFaction));
     FriendlyFaction          = friendlyFaction ?? throw new ArgumentNullException(nameof(friendlyFaction));
 }
예제 #2
0
 public static bool HasAnyFlag(this FactionTemplateFlags flags, FactionTemplateFlags otherFlags)
 {
     return((flags & otherFlags) != 0);
 }
예제 #3
0
		public static bool HasAnyFlag(this FactionTemplateFlags flags, FactionTemplateFlags otherFlags)
		{
			return (flags & otherFlags) != 0;
		}