UIM for those
This commit is contained in:
@@ -6,12 +6,13 @@ using OpenRa.Game.Effects;
|
||||
|
||||
namespace OpenRa.Game.Traits
|
||||
{
|
||||
class ATMine : ICrushable
|
||||
class ATMine : ICrushable, IOccupySpace
|
||||
{
|
||||
readonly Actor self;
|
||||
public ATMine(Actor self)
|
||||
{
|
||||
this.self = self;
|
||||
Game.UnitInfluence.Add(self, this);
|
||||
}
|
||||
|
||||
public void OnCrush(Actor crusher)
|
||||
@@ -39,5 +40,7 @@ namespace OpenRa.Game.Traits
|
||||
default: return false;
|
||||
}
|
||||
}
|
||||
|
||||
public IEnumerable<int2> OccupiedCells() { yield return self.Location; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user