PreviewFactory
The root node of the scene will be assigned the preview_root_script if any is in the settings
The root node of the scene will be assigned the preview_root_script if any is in the settings
Version: v5.0.0
Inherits: GBInjectable
Source: preview_factory.gd
Parsing: AST-based for maximum accuracy with symbol typing
Variables
_building_settings: BuildingSettings
Validate dependencies were properly injected
Type: BuildingSettings
_logger:
Methods
create_with_injection
Signature: static create_with_injection(container: GBCompositionContainer) -> PreviewFactory
PreviewFactory - Fully configured preview factory with validated dependencies
Returns: PreviewFactory
Static: true
Parameters:
container: GBCompositionContainer
resolve_gb_dependencies
Signature: resolve_gb_dependencies(p_config: GBCompositionContainer) -> bool
Returns: bool - True if dependencies were successfully resolved, false otherwise
Returns: bool
Parameters:
p_config: GBCompositionContainer
get_runtime_issues
Signature: get_runtime_issues() -> Array
Returns an empty array if valid, or a list of issues if not.
Returns: Array
_init
Signature: _init(p_building_settings : BuildingSettings: Variant, p_logger : GBLogger: Variant) -> void
Returns: void
Parameters:
p_building_settings : BuildingSettings: Variantp_logger : GBLogger: Variant
instance_preview
Signature: instance_preview(p_placeable : Placeable: Variant, p_positioner : Node2D: Variant) -> Node2D
The root node of the scene will be assigned the preview_root_script if any is in the settings
Returns: Node2D
Parameters:
p_placeable : Placeable: Variantp_positioner : Node2D: Variant