Interface IMoveableWithRestrictions
Interface for WorldObjects that have restrictions on the 'MoveWorldObject' action (e.g.: some WorldObjects should not be moved outside the influence of their settlement, or to another deed).
Namespace: Eco.Gameplay.Placement
Assembly: Eco.Gameplay.dll
Syntax
public interface IMoveableWithRestrictions
Remarks
Implement on WorldObjects directly. Automatically detected and invoked by WorldObjectManager.TryMoveWorldObject.
Methods
CanMove(WorldObject, Vector3i)
Determines whether the movement of a WorldObject can be performed or not.
Declaration
Result CanMove(WorldObject worldObject, Vector3i targetPosition)
Parameters
Type | Name | Description |
---|---|---|
WorldObject | worldObject | |
Vector3i | targetPosition |
Returns
Type | Description |
---|---|
Result |