GBAssetResolver

AUTO-GENERATED FILE – DO NOT EDIT MANUALLY

Centralized asset resolver for loading Grid Building resources from folders.

Source File: addons/grid_building/utils/gb_asset_resolver.gd

Extends: RefCounted

Public Methods

load_placeables

1
2
3
4
load_placeables(
    folder_path: String,
    individual_placeables: Array[Placeable] = []
) -> Array[Placeable]

Flags: static

Loads placeables from a folder path, maintaining backward compatibility with PlaceableLoader


load_placeables_with_result

1
2
3
4
load_placeables_with_result(
    folder_path: String,
    individual_placeables: Array[Placeable] = []
) -> LoadResult

Flags: static

Loads placeables and returns detailed LoadResult for advanced error handling


load_category_tags

1
2
3
4
load_category_tags(
    folder_path: String,
    individual_tags: Array[CategoricalTag] = []
) -> Array[CategoricalTag]

Flags: static

Loads category tags from a folder path


load_category_tags_with_result

1
2
3
4
load_category_tags_with_result(
    folder_path: String,
    individual_tags: Array[CategoricalTag] = []
) -> LoadResult

Flags: static

Loads category tags and returns detailed LoadResult for advanced error handling


load_placeable_sequences

1
2
3
4
load_placeable_sequences(
    folder_path: String,
    individual_sequences: Array[PlaceableSequence] = []
) -> Array[PlaceableSequence]

Flags: static

Loads placeable sequences from a folder path


load_placeable_sequences_with_result

1
2
3
4
load_placeable_sequences_with_result(
    folder_path: String,
    individual_sequences: Array[PlaceableSequence] = []
) -> LoadResult

Flags: static

Loads placeable sequences and returns detailed LoadResult for advanced error handling


load_assets_of_type

1
2
3
4
5
load_assets_of_type(
    folder_path: String,
    asset_type: GDScript,
    individual_assets: Array = []
) -> LoadResult

Flags: static

Generic asset loading function that can load any resource type from a folder


validate_folder_path

1
validate_folder_path(folder_path: String) -> bool

Flags: static

Validates that a folder path exists and is accessible


get_folder_diagnostics

1
get_folder_diagnostics(folder_path: String) -> Dictionary

Flags: static

Gets diagnostic information about a folder’s contents


Private Methods

_load_from_folder

1
2
3
4
_load_from_folder(
    folder_path: String,
    asset_type: GDScript
) -> LoadResult

Flags: static, private

Internal helper to load assets from a folder


_load_single_asset

1
2
3
4
5
_load_single_asset(
    file_path: String,
    expected_type: GDScript,
    tolerate_type_mismatch: bool = false
) -> SingleAssetResult

Flags: static, private

Internal helper to load a single asset file with tolerance for type mismatches