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)); }
public static bool HasAnyFlag(this FactionTemplateFlags flags, FactionTemplateFlags otherFlags) { return((flags & otherFlags) != 0); }
public static bool HasAnyFlag(this FactionTemplateFlags flags, FactionTemplateFlags otherFlags) { return (flags & otherFlags) != 0; }