PlaceableResourceLoader
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
This page documents the supported public API surface only. Private, internal, benchmark, test, and implementation-detail types are intentionally omitted.
Declaration
Summary
Handles loading and validation of placeable resources Pure C# implementation without Godot dependencies
Metadata
Namespace: GridPlacement.Core.Types
Source File: cs/Core/Types/PlaceableResourceLoader.cs
Assembly: GridPlacement.Core
Type: class
Methods
HasValidResourceReference
Validates that a placeable has proper resource reference
Parameters
| Name | Description |
|---|---|
placeable | The placeable to validate |
Returns
True if the placeable has valid resource reference
GetResourceIdentifier
Gets the resource identifier (path or UID) for a placeable
Parameters
| Name | Description |
|---|---|
placeable | The placeable |
Returns
Resource identifier or empty string if invalid
UsesFilePath
Determines if the resource identifier is a file path or UID
Parameters
| Name | Description |
|---|---|
placeable | The placeable |
Returns
True if using file path, false if using UID
CreateFromFile
Creates a placeable with file path reference
Parameters
| Name | Description |
|---|---|
id | Unique identifier |
name | Display name |
filePath | Engine-agnostic path to the resource file (e.g., “buildings/house.tscn”) |
Returns
Configured placeable
CreateFromUid
Creates a placeable with UID reference
Parameters
| Name | Description |
|---|---|
id | Unique identifier |
name | Display name |
resourceUid | Godot resource UID |
Returns
Configured placeable