TileInfo

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 record TileInfo

Summary

Complete information about a tile in the grid. Combines data from TileMapLayer, physics server, and ECS occupancy.

Metadata

Namespace: GridPlacement.Core.Types

Source File: cs/Core/Types/TileInfo.cs

Assembly: GridPlacement.Core

Type: record

Implements

  • IEquatable<TileInfo>

Properties

GridPosition

1
public CoreVector2I GridPosition { get; init; }

Grid position of the tile.


WorldPosition

1
public CoreVector2 WorldPosition { get; init; }

World position of the tile center.


TileType

1
public string TileType { get; init; }

Type of tile (e.g., “Grass”, “Water”, “Stone”).


IsBuildable

1
public bool IsBuildable { get; init; }

Whether the tile is buildable (no physics collision).


IsOccupied

1
public bool IsOccupied { get; init; }

Whether the tile is occupied by an ECS entity.


TileSourceId

1
public int TileSourceId { get; init; }

TileSet source ID for this tile.


AtlasCoords

1
public CoreVector2I AtlasCoords { get; init; }

Atlas coordinates in the tile set.


AlternativeTile

1
public int AlternativeTile { get; init; }

Alternative tile ID (for tile variations).


Properties

1
public Dictionary<string, object> Properties { get; init; }

Tile properties (height, slope, terrain, etc.).


PlacementRules

1
public PlacementRuleInfo PlacementRules { get; init; }

Placement rule information.


HasTileData

1
public bool HasTileData { get; }

Whether this tile has any data (not empty).


Methods

Empty

1
2
3
4
public static TileInfo Empty(
    CoreVector2I gridPosition,
    CoreVector2 worldPosition
)

Creates an empty TileInfo for a position.