From c9d758c83447057874a6aa6db4352e2305f8341e Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 10 Jan 2010 13:40:49 +1300 Subject: [PATCH] Production.. --- OpenRa.Game/Traits/Production.cs | 5 +++++ OpenRa.Game/Traits/ProductionQueue.cs | 5 +++++ OpenRa.Game/Traits/ProductionSurround.cs | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/OpenRa.Game/Traits/Production.cs b/OpenRa.Game/Traits/Production.cs index 4cebf0f320..406109f882 100755 --- a/OpenRa.Game/Traits/Production.cs +++ b/OpenRa.Game/Traits/Production.cs @@ -4,6 +4,11 @@ using System.Collections.Generic; namespace OpenRa.Game.Traits { + class ProductionInfo : ITraitInfo + { + public object Create(Actor self) { return new Production(self); } + } + class Production : IIssueOrder, IResolveOrder, IProducer, ITags { bool isPrimary = false; diff --git a/OpenRa.Game/Traits/ProductionQueue.cs b/OpenRa.Game/Traits/ProductionQueue.cs index eabd106c8c..b5945c76ff 100755 --- a/OpenRa.Game/Traits/ProductionQueue.cs +++ b/OpenRa.Game/Traits/ProductionQueue.cs @@ -6,6 +6,11 @@ using IjwFramework.Collections; namespace OpenRa.Game.Traits { + class ProductionQueueInfo : ITraitInfo + { + public object Create(Actor self) { return new ProductionQueue(self); } + } + class ProductionQueue : IResolveOrder, ITick { Actor self; diff --git a/OpenRa.Game/Traits/ProductionSurround.cs b/OpenRa.Game/Traits/ProductionSurround.cs index 1c2f1d8327..39facf6cc8 100644 --- a/OpenRa.Game/Traits/ProductionSurround.cs +++ b/OpenRa.Game/Traits/ProductionSurround.cs @@ -6,6 +6,11 @@ using OpenRa.Game.GameRules; namespace OpenRa.Game.Traits { + class ProductionSurroundInfo : ITraitInfo + { + public object Create(Actor self) { return new ProductionSurround(self); } + } + class ProductionSurround : Production { public ProductionSurround(Actor self) : base(self) { }