Grid Placement

GBLevelContext

AUTO-GENERATED FILE — DO NOT EDIT MANUALLY

Source: shared/components/context/gb_level_context.gd

Version: 5.1

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()
  • _retry_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]TargetingService2D[/i] - Targeting service to configure with level maps[br] [code]p_placement[/code]: [i]PlacementService[/i] - Placement service to configure with placement parent
  • get_editor_issues()
    • Validate setup and return a list of issues with the current object
  • get_runtime_issues()