Reservable..

This commit is contained in:
Chris Forbes
2010-01-10 13:32:23 +13:00
parent 040d251350
commit 1803dad53c
3 changed files with 15 additions and 0 deletions

View File

@@ -2,6 +2,11 @@
namespace OpenRa.Game.Traits namespace OpenRa.Game.Traits
{ {
class ReservableInfo : ITraitInfo
{
public object Create(Actor self) { return new Reservable(self); }
}
class Reservable : ITick class Reservable : ITick
{ {
public Reservable(Actor self) { } public Reservable(Actor self) { }

View File

@@ -1,6 +1,11 @@
 
namespace OpenRa.Game.Traits namespace OpenRa.Game.Traits
{ {
class SeedsOreInfo : ITraitInfo
{
public object Create(Actor self) { return new SeedsOre(self); }
}
class SeedsOre : ITick class SeedsOre : ITick
{ {
public SeedsOre( Actor self ) {} public SeedsOre( Actor self ) {}

View File

@@ -5,6 +5,11 @@ using OpenRa.Game.GameRules;
namespace OpenRa.Game.Traits namespace OpenRa.Game.Traits
{ {
class SquishByTankInfo : ITraitInfo
{
public object Create(Actor self) { return new SquishByTank(self); }
}
class SquishByTank : ICrushable class SquishByTank : ICrushable
{ {
readonly Actor self; readonly Actor self;