Table of Contents

Class CoreTileData

Namespace
MoonBark.GridPlacement.Core.Data.Placement
Assembly
MoonBark.GridPlacement.Core.dll

Pure C# representation of tile custom data properties. Used by Core rules and YAML loaders — no Godot dependencies.

public sealed class CoreTileData
Inheritance
CoreTileData
Inherited Members

Properties

CustomData

Maps property name → expected value. Values are plain C# types (bool, int, float, string, etc.).

public Dictionary<string, object?> CustomData { get; set; }

Property Value

Dictionary<string, object>

IsEmpty

Whether this tile data represents an empty cell (no tile placed).

public bool IsEmpty { get; set; }

Property Value

bool

Methods

Empty()

Creates an empty tile data marker.

public static CoreTileData Empty()

Returns

CoreTileData

GetCustomData(string)

Gets a custom data value by name, or null if not present.

public object? GetCustomData(string propertyName)

Parameters

propertyName string

Returns

object

HasProperty(string, out object?)

Checks whether a property exists with the given type constraint.

public bool HasProperty(string propertyName, out object? value)

Parameters

propertyName string
value object

Returns

bool