diff --git a/OpenRa.Game/Traits/Helicopter.cs b/OpenRa.Game/Traits/Helicopter.cs index 27d6143c8b..999bc6a68f 100644 --- a/OpenRa.Game/Traits/Helicopter.cs +++ b/OpenRa.Game/Traits/Helicopter.cs @@ -4,6 +4,11 @@ using OpenRa.Game.GameRules; namespace OpenRa.Game.Traits { + class HelicopterInfo : ITraitInfo + { + public object Create(Actor self) { return new Helicopter(self); } + } + class Helicopter : IIssueOrder, IResolveOrder, IMovement { public IDisposable reservation; diff --git a/OpenRa.Game/Traits/InvisibleToOthers.cs b/OpenRa.Game/Traits/InvisibleToOthers.cs index 46491a6766..969dc31d68 100644 --- a/OpenRa.Game/Traits/InvisibleToOthers.cs +++ b/OpenRa.Game/Traits/InvisibleToOthers.cs @@ -2,6 +2,11 @@ namespace OpenRa.Game.Traits { + class InvisibleToOthersInfo : ITraitInfo + { + public object Create(Actor self) { return new InvisibleToOthers(self); } + } + class InvisibleToOthers : IRenderModifier { public InvisibleToOthers(Actor self) { } diff --git a/OpenRa.Game/Traits/IronCurtain.cs b/OpenRa.Game/Traits/IronCurtain.cs index 668b469bd1..8126493e6e 100644 --- a/OpenRa.Game/Traits/IronCurtain.cs +++ b/OpenRa.Game/Traits/IronCurtain.cs @@ -5,6 +5,11 @@ using System.Text; namespace OpenRa.Game.Traits { + class IronCurtainInfo : ITraitInfo + { + public object Create(Actor self) { return new IronCurtain(self); } + } + class IronCurtain { public IronCurtain(Actor self) {} diff --git a/OpenRa.Game/Traits/Mobile.cs b/OpenRa.Game/Traits/Mobile.cs index 3f753ac289..0e0efe835b 100644 --- a/OpenRa.Game/Traits/Mobile.cs +++ b/OpenRa.Game/Traits/Mobile.cs @@ -10,6 +10,7 @@ namespace OpenRa.Game.Traits public readonly int Sight = 0; public readonly int ROT = 0; public readonly int Speed = 0; + public object Create(Actor self) { return new Mobile(self); } } diff --git a/OpenRa.Game/Traits/Plane.cs b/OpenRa.Game/Traits/Plane.cs index 6b5c9827a3..cd4af54edd 100644 --- a/OpenRa.Game/Traits/Plane.cs +++ b/OpenRa.Game/Traits/Plane.cs @@ -6,6 +6,11 @@ using OpenRa.Game.Traits.Activities; namespace OpenRa.Game.Traits { + class PlaneInfo : ITraitInfo + { + public object Create(Actor self) { return new Plane(self); } + } + class Plane : IIssueOrder, IResolveOrder, IMovement { public IDisposable reservation;