Cache TargetablePositions in Actor
To speed up Target.Positions.
This commit is contained in:
@@ -73,6 +73,8 @@ namespace OpenRA.Mods.Common.Traits
|
||||
base.Created(self);
|
||||
}
|
||||
|
||||
bool ITargetablePositions.AlwaysEnabled { get { return Info.RequiresCondition == null; } }
|
||||
|
||||
IEnumerable<WPos> ITargetablePositions.TargetablePositions(Actor self)
|
||||
{
|
||||
if (IsTraitDisabled)
|
||||
|
||||
Reference in New Issue
Block a user