Table of Contents

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 = 0

Place a new object at the target location. Type: IsCreationAction = true

Demolish = 9

Remove/destroy an object from the scene (may recover resources). Type: IsDestructionAction = true

FLIP_HORIZONTAL = 6

Flip object horizontally. Alias of FlipH.

FLIP_VERTICAL = 8

Flip object vertically. Alias of FlipV.

FlipH = 5

Flip object horizontally (mirror across Y axis). Type: IsTransformAction = true

FlipV = 7

Flip object vertically (mirror across X axis). Type: IsTransformAction = true

Move = 1

Move an existing object from origin to target. Type: IsTransformAction = true

NONE = -1

No action specified or applicable.

Rotate = 2

Rotate object by one step (default 90°). Direction determined by system. Type: IsTransformAction = true

Rotate_LEFT = 3

Rotate object left (counter-clockwise). Alias of Rotate.

Rotate_RIGHT = 4

Rotate object right (clockwise). Alias of Rotate.