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
@@ -70,7 +70,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
bool preventDock = false;
|
||||
|
||||
public bool AllowDocking => !preventDock;
|
||||
public CVec DeliveryOffset => info.DockOffset;
|
||||
public WPos DeliveryPosition => self.World.Map.CenterOfCell(self.Location + info.DockOffset);
|
||||
public WAngle DeliveryAngle => info.DockAngle;
|
||||
public bool IsDragRequired => info.IsDragRequired;
|
||||
public WVec DragOffset => info.DragOffset;
|
||||
|
||||
Reference in New Issue
Block a user