Add IMove.MoveOntoTarget interface
In `TraitsInterfaces` we expose offset as WPos instead of CPos. In an upcoming PR we'll translate the same change to yaml.
This commit is contained in:
committed by
Matthias Mailänder
parent
ad683d9226
commit
dc390a7301
@@ -935,6 +935,11 @@ namespace OpenRA.Mods.Common.Traits
|
||||
return new Land(self, target);
|
||||
}
|
||||
|
||||
public Activity MoveOntoTarget(Actor self, in Target target, in WVec offset, WAngle? facing, Color? targetLineColor = null)
|
||||
{
|
||||
return new Land(self, target, offset, facing, targetLineColor);
|
||||
}
|
||||
|
||||
public Activity LocalMove(Actor self, WPos fromPos, WPos toPos)
|
||||
{
|
||||
// TODO: Ignore repulsion when moving
|
||||
|
||||
Reference in New Issue
Block a user