IPlaceableRuntimeCatalog

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 interface IPlaceableRuntimeCatalog

Summary

Service interface for managing runtime placeable data. Stores full Placeable objects for use by placement systems and ECS. Pure C# contract with no Godot dependencies.

Metadata

Namespace: GridPlacement.Core.Catalog

Source File: cs/Core/Catalog/IPlaceableRuntimeCatalog.cs

Assembly: GridPlacement.Core

Type: interface

Properties

Count

1
public abstract int Count { get; }

Gets the number of placeables in the catalog.


Methods

TryGet

1
2
3
4
bool TryGet(
    string id,
    out Types.Placeable? placeable
)

Tries to get a placeable by ID.

Parameters

NameDescription
idPlaceable ID.
placeableThe placeable if found, null otherwise.

Returns

True if found, false otherwise.


GetAll

1
IReadOnlyList<Types.Placeable> GetAll()

Gets all available placeables.

Returns

Read-only list of all placeables.


Add

1
void Add(Types.Placeable placeable)

Adds a placeable to the catalog.

Parameters

NameDescription
placeablePlaceable to add.

Remove

1
bool Remove(string id)

Removes a placeable from the catalog.

Parameters

NameDescription
idID of the placeable to remove.

Returns

True if removed, false if not found.


Clear

1
void Clear()

Clears all placeables from the catalog.