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