Grid Placement
Development ⚠️ GridPlacement 6.0 (GECS) is in active development. This is the GDScript ECS architecture.

ManipulationCapability

AUTO-GENERATED (GDScript) API entry

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: resources/placeables/manipulation_capability.gd

Version: 6.0

class_name: ManipulationCapability extends: Resource

Signals

(none)

Exports

  • can_move: bool = true
    • Whether this placeable can be rotated
    • Valid rotation angles in degrees (must be 0, 90, 180, or 270)
    • Default rotation angle when placed
    • Whether this placeable can be flipped (mirrored)
    • Valid flip directions (FlipState.HORIZONTAL, FlipState.VERTICAL, FlipState.BOTH)
    • Default flip state when placed
    • Whether this placeable can be demolished/removed
    • Demolition requirements (tools, permissions, etc.)
    • Initialize with default values
  • can_rotate: bool = true
    • Valid rotation angles in degrees (must be 0, 90, 180, or 270)
    • Default rotation angle when placed
    • Whether this placeable can be flipped (mirrored)
    • Valid flip directions (FlipState.HORIZONTAL, FlipState.VERTICAL, FlipState.BOTH)
    • Default flip state when placed
    • Whether this placeable can be demolished/removed
    • Demolition requirements (tools, permissions, etc.)
    • Initialize with default values
  • valid_rotations: Array
    • Default rotation angle when placed
    • Whether this placeable can be flipped (mirrored)
    • Valid flip directions (FlipState.HORIZONTAL, FlipState.VERTICAL, FlipState.BOTH)
    • Default flip state when placed
    • Whether this placeable can be demolished/removed
    • Demolition requirements (tools, permissions, etc.)
    • Initialize with default values
  • default_rotation: int = 0
    • Whether this placeable can be flipped (mirrored)
    • Valid flip directions (FlipState.HORIZONTAL, FlipState.VERTICAL, FlipState.BOTH)
    • Default flip state when placed
    • Whether this placeable can be demolished/removed
    • Demolition requirements (tools, permissions, etc.)
    • Initialize with default values
  • can_flip: bool = false
    • Valid flip directions (FlipState.HORIZONTAL, FlipState.VERTICAL, FlipState.BOTH)
    • Default flip state when placed
    • Whether this placeable can be demolished/removed
    • Demolition requirements (tools, permissions, etc.)
    • Initialize with default values
  • valid_flip_directions: Array
    • Default flip state when placed
    • Whether this placeable can be demolished/removed
    • Demolition requirements (tools, permissions, etc.)
    • Initialize with default values
  • default_flip_state: int = FlipState.NONE
    • Whether this placeable can be demolished/removed
    • Demolition requirements (tools, permissions, etc.)
    • Initialize with default values
  • can_demolish: bool = true
    • Demolition requirements (tools, permissions, etc.)
    • Initialize with default values
  • demolition_requirements: Dictionary = {}
    • Initialize with default values

Methods

  • _init(p_can_move: bool = true, p_can_rotate: bool = true, p_valid_rotations: Array, p_default_rotation: int = 0, p_can_flip: bool = false, p_valid_flip_directions: Variant = [], p_default_flip_state: Variant = FlipState.NONE, p_can_demolish: bool = true, p_demolition_requirements: Dictionary = {}) -> void
  • flip_state_to_string(state: int) -> String
  • parse_flip_state(value: Variant) -> int
  • normalize_flip_state(value: Variant, fallback: int = FlipState.NONE) -> int
  • normalize_flip_state_string(value: Variant, fallback: int = FlipState.NONE) -> String
  • _is_any_state(state: int) -> bool
  • _is_direction_state(state: int) -> bool
  • _normalize_flip_directions(value: Variant) -> Array
  • _normalize_rotations(value: Variant) -> Array
  • _coerce_array(value: Variant) -> Array
  • validate -> Array
    • Validate rotation
  • is_rotation_valid(rotation: int) -> bool
  • get_next_rotation(current_rotation: int) -> int
  • get_previous_rotation(current_rotation: int) -> int
  • is_flip_valid(direction: Variant) -> bool
  • get_next_flip(current_flip: Variant) -> int
  • can_demolish_by(demolisher: Entity = null) -> bool
  • create_static -> Resource
  • create_flexible -> Resource
  • create_rotatable_only -> Resource
  • create_custom(settings: Dictionary) -> Resource