Enum ManipulationAction
- Namespace
- MoonBark.GridPlacement.Core.Types
- Assembly
- MoonBark.GridPlacement.Core.dll
Actions that can be performed within the building/manipulation system. Represents discrete operations on placeable objects.
Usage: Set ManipulationApplicationState.Mode (a GridMode) to the high-level tool mode, but ManipulationType records the specific action taken (Build, Move, Rotate, FlipH/V, Demolish). For example, entering Rotate mode → GridMode.Rotate; executing a rotation → ManipulationAction.Rotate.
Aliases: Some values have synonyms for compatibility (e.g., Rotate_LEFT, Rotate_RIGHT, FLIP_HORIZONTAL, FLIP_VERTICAL). Use the canonical forms (Rotate, FlipH, FlipV) in new code.
public enum ManipulationAction
- Extension Methods
Fields
Build = 0Place a new object at the target location. Type: IsCreationAction = true
Demolish = 9Remove/destroy an object from the scene (may recover resources). Type: IsDestructionAction = true
FLIP_HORIZONTAL = 6Flip object horizontally. Alias of FlipH.
FLIP_VERTICAL = 8Flip object vertically. Alias of FlipV.
FlipH = 5Flip object horizontally (mirror across Y axis). Type: IsTransformAction = true
FlipV = 7Flip object vertically (mirror across X axis). Type: IsTransformAction = true
Move = 1Move an existing object from origin to target. Type: IsTransformAction = true
NONE = -1No action specified or applicable.
Rotate = 2Rotate object by one step (default 90°). Direction determined by system. Type: IsTransformAction = true
Rotate_LEFT = 3Rotate object left (counter-clockwise). Alias of Rotate.
Rotate_RIGHT = 4Rotate object right (clockwise). Alias of Rotate.