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

GridLevelContextComponent

AUTO-GENERATED (GDScript) API entry

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: components/grid/grid_level_context_component.gd

Version: 6.0

class_name: GridLevelContextComponent extends: Component

Signals

(none)

Exports

  • level_id: String = ""
    • Level name
    • Level dimensions
    • Current active grid
    • Level state
    • Level configuration
    • Level progression data
    • Initialize level context with data
  • level_name: String = ""
    • Level dimensions
    • Current active grid
    • Level state
    • Level configuration
    • Level progression data
    • Initialize level context with data
  • level_size: Vector2i = Vector2i.ZERO
    • Current active grid
    • Level state
    • Level configuration
    • Level progression data
    • Initialize level context with data
  • current_grid_id: String = ""
    • Level state
    • Level configuration
    • Level progression data
    • Initialize level context with data
  • level_state: String = “active” # active, paused, completed
    • Level configuration
    • Level progression data
    • Initialize level context with data
  • config: Dictionary = {}
    • Level progression data
    • Initialize level context with data
  • progression: Dictionary = {}
    • Initialize level context with data

Methods

  • _init(data: Dictionary = {}) -> void
  • set_level_size(width: int, height: int) -> void
  • is_active -> bool
  • set_level_state(state: String) -> void
  • get_config(key: String, default_value: Variant = null) -> Variant
  • set_config(key: String, value: Variant) -> void
  • get_progression(key: String, default_value: Variant = null) -> Variant
  • set_progression(key: String, value: Variant) -> void
  • is_position_valid(pos: Vector2i) -> bool
  • clamp_position(pos: Vector2i) -> Vector2i
  • get_level_area -> int
  • validate -> Array
  • to_string -> String