Add alignment methods for IFaction
							parent
							
								
									40ba0285f4
								
							
						
					
					
						commit
						7b98fe4b96
					
				|  | @ -9,4 +9,14 @@ public interface IFaction | |||
|     /// </summary> | ||||
|     [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; | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue