diff --git a/Utils/IFaction.cs b/Utils/IFaction.cs index 13562bf..29e1c8d 100644 --- a/Utils/IFaction.cs +++ b/Utils/IFaction.cs @@ -9,4 +9,14 @@ public interface IFaction /// [Export] public ushort Faction { get; set; } + + public bool AlignsWith(IFaction other) + { + return (Faction & other.Faction) > 0; + } + + public bool AlignsFullyWith(IFaction other) + { + return Faction == other.Faction; + } }