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
IsEmpty
Whether this tile data represents an empty cell (no tile placed).
public bool IsEmpty { get; set; }
Property Value
Methods
Empty()
Creates an empty tile data marker.
public static CoreTileData Empty()
Returns
GetCustomData(string)
Gets a custom data value by name, or null if not present.
public object? GetCustomData(string propertyName)
Parameters
propertyNamestring
Returns
HasProperty(string, out object?)
Checks whether a property exists with the given type constraint.
public bool HasProperty(string propertyName, out object? value)