ConstructionYard..
This commit is contained in:
@@ -3,6 +3,11 @@ using OpenRa.Game.Traits.Activities;
|
|||||||
|
|
||||||
namespace OpenRa.Game.Traits
|
namespace OpenRa.Game.Traits
|
||||||
{
|
{
|
||||||
|
class ConstructionYardInfo : ITraitInfo
|
||||||
|
{
|
||||||
|
public object Create(Actor self) { return new ConstructionYard(self); }
|
||||||
|
}
|
||||||
|
|
||||||
class ConstructionYard : IIssueOrder, IResolveOrder, IMovement
|
class ConstructionYard : IIssueOrder, IResolveOrder, IMovement
|
||||||
{
|
{
|
||||||
readonly Actor self;
|
readonly Actor self;
|
||||||
|
|||||||
@@ -6,14 +6,14 @@ using OpenRa.Game.Orders;
|
|||||||
|
|
||||||
namespace OpenRa.Game.Traits
|
namespace OpenRa.Game.Traits
|
||||||
{
|
{
|
||||||
|
class DemoTruckInfo : ITraitInfo
|
||||||
|
{
|
||||||
|
public object Create(Actor self) { return new DemoTruck(self); }
|
||||||
|
}
|
||||||
|
|
||||||
class DemoTruck : Chronoshiftable, IResolveOrder, INotifyDamage
|
class DemoTruck : Chronoshiftable, IResolveOrder, INotifyDamage
|
||||||
{
|
{
|
||||||
readonly Actor self;
|
public DemoTruck(Actor self) : base(self) {}
|
||||||
public DemoTruck(Actor self)
|
|
||||||
: base(self)
|
|
||||||
{
|
|
||||||
this.self = self;
|
|
||||||
}
|
|
||||||
|
|
||||||
public new void ResolveOrder(Actor self, Order order)
|
public new void ResolveOrder(Actor self, Order order)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user