Require IntoActor everywhere.

This commit is contained in:
Matthias Mailänder
2017-09-12 20:52:45 +02:00
committed by ltem
parent e3e710bb27
commit cf944ae9f1
3 changed files with 8 additions and 1 deletions

View File

@@ -16,9 +16,10 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
[Desc("Replaces the captured actor with a new one.")]
public class TransformOnCaptureInfo : ITraitInfo
{
[ActorReference] public readonly string IntoActor = null;
[ActorReference, FieldLoader.Require] public readonly string IntoActor = null;
public readonly int ForceHealthPercentage = 0;
public readonly bool SkipMakeAnims = true;