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 = {}) -> voidflip_state_to_string(state: int) -> Stringparse_flip_state(value: Variant) -> intnormalize_flip_state(value: Variant, fallback: int = FlipState.NONE) -> intnormalize_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) -> Arrayvalidate -> Array- Validate rotation
is_rotation_valid(rotation: int) -> boolget_next_rotation(current_rotation: int) -> intget_previous_rotation(current_rotation: int) -> intis_flip_valid(direction: Variant) -> boolget_next_flip(current_flip: Variant) -> intcan_demolish_by(demolisher: Entity = null) -> boolcreate_static -> Resourcecreate_flexible -> Resourcecreate_rotatable_only -> Resourcecreate_custom(settings: Dictionary) -> Resource