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

1
public static class PlaceableResourceLoader

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

1
public static bool HasValidResourceReference(Placeable placeable)

Validates that a placeable has proper resource reference

Parameters

NameDescription
placeableThe placeable to validate

Returns

True if the placeable has valid resource reference


GetResourceIdentifier

1
public static string GetResourceIdentifier(Placeable placeable)

Gets the resource identifier (path or UID) for a placeable

Parameters

NameDescription
placeableThe placeable

Returns

Resource identifier or empty string if invalid


UsesFilePath

1
public static bool UsesFilePath(Placeable placeable)

Determines if the resource identifier is a file path or UID

Parameters

NameDescription
placeableThe placeable

Returns

True if using file path, false if using UID


CreateFromFile

1
2
3
4
5
public static Placeable CreateFromFile(
    string id,
    string name,
    string filePath
)

Creates a placeable with file path reference

Parameters

NameDescription
idUnique identifier
nameDisplay name
filePathEngine-agnostic path to the resource file (e.g., “buildings/house.tscn”)

Returns

Configured placeable


CreateFromUid

1
2
3
4
5
public static Placeable CreateFromUid(
    string id,
    string name,
    string resourceUid
)

Creates a placeable with UID reference

Parameters

NameDescription
idUnique identifier
nameDisplay name
resourceUidGodot resource UID

Returns

Configured placeable