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, Vector3)
Determines whether the movement of a WorldObject can be performed or not.
Declaration
Result CanMove(WorldObject worldObject, Vector3 targetPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| WorldObject | worldObject | |
| System.Numerics.Vector3 | targetPosition |
Returns
| Type | Description |
|---|---|
| Result |