Require explicit ITargetableCells
This commit is contained in:
@@ -193,11 +193,6 @@ namespace OpenRA.Traits
|
||||
bool HasFogVisibility();
|
||||
}
|
||||
|
||||
public interface ITargetableCells
|
||||
{
|
||||
IEnumerable<Pair<CPos, SubCell>> TargetableCells();
|
||||
}
|
||||
|
||||
public interface IOccupySpaceInfo : ITraitInfoInterface
|
||||
{
|
||||
IReadOnlyDictionary<CPos, SubCell> OccupiedCells(ActorInfo info, CPos location, SubCell subCell = SubCell.Any);
|
||||
|
||||
@@ -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