Production..

This commit is contained in:
Chris Forbes
2010-01-10 13:40:49 +13:00
parent f4d19aa78c
commit c9d758c834
3 changed files with 15 additions and 0 deletions

View File

@@ -4,6 +4,11 @@ using System.Collections.Generic;
namespace OpenRa.Game.Traits namespace OpenRa.Game.Traits
{ {
class ProductionInfo : ITraitInfo
{
public object Create(Actor self) { return new Production(self); }
}
class Production : IIssueOrder, IResolveOrder, IProducer, ITags class Production : IIssueOrder, IResolveOrder, IProducer, ITags
{ {
bool isPrimary = false; bool isPrimary = false;

View File

@@ -6,6 +6,11 @@ using IjwFramework.Collections;
namespace OpenRa.Game.Traits namespace OpenRa.Game.Traits
{ {
class ProductionQueueInfo : ITraitInfo
{
public object Create(Actor self) { return new ProductionQueue(self); }
}
class ProductionQueue : IResolveOrder, ITick class ProductionQueue : IResolveOrder, ITick
{ {
Actor self; Actor self;

View File

@@ -6,6 +6,11 @@ using OpenRa.Game.GameRules;
namespace OpenRa.Game.Traits namespace OpenRa.Game.Traits
{ {
class ProductionSurroundInfo : ITraitInfo
{
public object Create(Actor self) { return new ProductionSurround(self); }
}
class ProductionSurround : Production class ProductionSurround : Production
{ {
public ProductionSurround(Actor self) : base(self) { } public ProductionSurround(Actor self) : base(self) { }