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

PlaceableTemplate

AUTO-GENERATED (GDScript) API entry

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: resources/placeables/placeable_template_resource.gd

Version: 6.0

class_name: PlaceableTemplate extends: Resource

Signals

(none)

Exports

  • display_name: String = ""
    • UI icon
    • Categorical tags for classification and rules
    • Stores PlaceableTag objects internally.
    • Unique identifier for this type of placeable
    • Size in grid cells
    • Manipulation capabilities for this placeable (movable, rotatable, flippable, demolishable)
    • Rules to apply when validating placement
    • Custom metadata for rules or integration
    • Collision shape for placement validation (runtime only)
    • Initialize with default values
  • icon: Texture2D
    • Categorical tags for classification and rules
    • Stores PlaceableTag objects internally.
    • Unique identifier for this type of placeable
    • Size in grid cells
    • Manipulation capabilities for this placeable (movable, rotatable, flippable, demolishable)
    • Rules to apply when validating placement
    • Custom metadata for rules or integration
    • Collision shape for placement validation (runtime only)
    • Initialize with default values
  • tags: Array
    • Stores PlaceableTag objects internally.
    • Unique identifier for this type of placeable
    • Size in grid cells
    • Manipulation capabilities for this placeable (movable, rotatable, flippable, demolishable)
    • Rules to apply when validating placement
    • Custom metadata for rules or integration
    • Collision shape for placement validation (runtime only)
    • Initialize with default values
  • placeable_id: StringName = &""
    • Size in grid cells
    • Manipulation capabilities for this placeable (movable, rotatable, flippable, demolishable)
    • Rules to apply when validating placement
    • Custom metadata for rules or integration
    • Collision shape for placement validation (runtime only)
    • Initialize with default values
  • grid_size: Vector2i = Vector2i(1, 1)
    • Manipulation capabilities for this placeable (movable, rotatable, flippable, demolishable)
    • Rules to apply when validating placement
    • Custom metadata for rules or integration
    • Collision shape for placement validation (runtime only)
    • Initialize with default values
  • manipulation: ManipulationCapability = ManipulationCapability.create_flexible()
    • Rules to apply when validating placement
    • Custom metadata for rules or integration
    • Collision shape for placement validation (runtime only)
    • Initialize with default values
  • placement_rules: Array = []
    • Custom metadata for rules or integration
    • Collision shape for placement validation (runtime only)
    • Initialize with default values
  • metadata: Dictionary = {}
    • Collision shape for placement validation (runtime only)
    • Initialize with default values

Methods

  • _init -> void
  • validate -> Array
  • get_all_tags -> Array
  • has_tag(tag_name: StringName) -> bool
  • add_tag(tag_name: StringName) -> void
  • remove_tag(tag_name: StringName) -> void
  • duplicate_resource -> PlaceableTemplate