Grid Placement

GBLevelContext

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: components/gb_level_context.gd

Version: 5.0

class_name: GBLevelContext extends: GBGameNode

Summary

Organizes object requirements for building onto a game level for GBCompositeContainers

Signals

(none)

Exports

  • target_map
    • The TileMapLayer to use as the tile selection target for the grid targeting_state
  • maps
    • All maps in the game level.[br][br] Sets this data on the targeting_state.maps during gameplay
  • objects_parent
    • Where objects should be placed into the scene under in the scene hierarchy

Methods

  • resolve_gb_dependencies()
  • apply_to()
    • Applies level configuration to targeting and building states. Assigns target map, maps array, and objects parent to the appropriate states.[br][br] [code]p_targeting[/code]: [i]GridTargetingState[/i] - Targeting state to configure with level maps[br] [code]p_building[/code]: [i]BuildingState[/i] - Building state to configure with placement parent
  • get_editor_issues()
    • Validate setup and return a list of issues with the current object
  • get_runtime_issues()