Add property requirements to safe traits

This commit is contained in:
atlimit8
2015-07-11 16:30:27 -05:00
parent 7881ff40bf
commit 1bcc07ce69
50 changed files with 68 additions and 41 deletions

View File

@@ -17,7 +17,7 @@ namespace OpenRA.Mods.Common.Traits
class ExplodeCrateActionInfo : CrateActionInfo
{
[Desc("The weapon to fire upon collection.")]
[WeaponReference] public string Weapon = null;
[WeaponReference, FieldLoader.Require] public string Weapon = null;
public override object Create(ActorInitializer init) { return new ExplodeCrateAction(init.Self, this); }
}