Adds Diplomacy keywords for ValidTarget checks.

Changes:

Allows diplomacy stance checks to be done on warheads and weapons, using keywords in ValidTargets and InvalidTargets.
This commit is contained in:
UberWaffe
2014-07-09 17:58:06 +02:00
parent ef7d198ca8
commit e3e5e9eb00
4 changed files with 55 additions and 45 deletions

View File

@@ -22,7 +22,14 @@ namespace OpenRA.Traits
// depends on the order of pips in WorldRenderer.cs!
public enum PipType { Transparent, Green, Yellow, Red, Gray, Blue, Ammo, AmmoEmpty };
public enum TagType { None, Fake, Primary };
public enum Stance { Enemy, Neutral, Ally };
[Flags]
public enum Stance
{
Enemy = 1,
Neutral = 2,
Ally = 4,
}
[Flags]
public enum ImpactType