Require explicit ITargetableCells
This commit is contained in:
@@ -287,7 +287,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
|
||||
public IEnumerable<Pair<CPos, SubCell>> OccupiedCells() { return occupiedCells; }
|
||||
|
||||
public IEnumerable<Pair<CPos, SubCell>> TargetableCells() { return targetableCells; }
|
||||
IEnumerable<Pair<CPos, SubCell>> ITargetableCells.TargetableCells() { return targetableCells; }
|
||||
|
||||
void INotifyCreated.Created(Actor self)
|
||||
{
|
||||
|
||||
@@ -376,4 +376,10 @@ namespace OpenRA.Mods.Common.Traits
|
||||
void OnAcceptingCash(Actor self, Actor donor);
|
||||
void OnDeliveringCash(Actor self, Actor acceptor);
|
||||
}
|
||||
|
||||
[RequireExplicitImplementation]
|
||||
public interface ITargetableCells
|
||||
{
|
||||
IEnumerable<Pair<CPos, SubCell>> TargetableCells();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user