Table of Contents

Class GBContexts

Namespace
GridPlacement.GDScript
Assembly
MoonBark.GridPlacement.GDScript.dll

Contains contexts for resolving references to current objects within the grid building system instance

class GBContexts extends RefCounted
GBContexts

Fields

GBSystemsContext

Preload dependent context classes to ensure proper load order

const GBSystemsContext = preload("res://addons/grid_building/context/gb_systems_context.gd")

IndicatorContext

const IndicatorContext = preload("res://addons/grid_building/context/indicator_context.gd")

PlacementOwnerProvider

const PlacementOwnerProvider = preload("res://addons/grid_building/user/gb_owner_context.gd")

GBLogger

const GBLogger = preload("res://addons/grid_building/logging/gb_logger.gd")

GBRuntimeChecks

const GBRuntimeChecks = preload("res://addons/grid_building/validation/gb_runtime_checks.gd")

Properties

indicator

Holds reference to current indicator manager object

var indicator: IndicatorContext

owner

Holds reference to the currently owning game node for the instance of the grid building system and related modules

var owner: PlacementOwnerProvider

systems

Holds references to the systems used in grid building operations. This context allows for easy access to the systems without needing to pass them around manually.

var systems: GBSystemsContext

issues

var issues: Array[String] = []

issues

var issues: Array[String] = []

Methods

get_runtime_issues

func get_runtime_issues(p_checks: GBRuntimeChecks) -> Array[String]:

Parameters

p_checks

Returns

get_editor_issues

func get_editor_issues() -> Array[String]:

Returns