GBLevelContext
Summary
Section titled “Summary”Organizes object requirements for building onto a game level for GBCompositeContainers
Properties
Section titled “Properties”target_map: TileMapLayer
The TileMapLayer to use as the tile selection target for the grid targeting_state
maps: Array[TileMapLayer]
All maps in the game level.
Sets this data on the targeting_state.maps during gameplay
objects_parent: Node2D
Where objects should be placed into the scene under in the scene hierarchy
Methods
Section titled “Methods”resolve_gb_dependencies( p_container: GBCompositionContainer ) -> void
apply_to( p_targeting: GridTargetingState, p_building: BuildingState )
Applies level configuration to targeting and building states. Assigns target map, maps array, and objects parent to the appropriate states.
p_targeting
: GridTargetingState - Targeting state to configure with level mapsp_building
: BuildingState - Building state to configure with placement parentget_editor_issues( ) -> Array[String]
Validate setup and return a list of issues with the current object
get_runtime_issues( ) -> Array[String]
Source
Section titled “Source”addons/grid_building/components/gb_level_context.gd
This page was auto-generated from GDScript source. Edit the source file to improve documentation.
Generated on 2025-09-07