Table of Contents

Class TileDef

Namespace
TileWorld.Engine.Content.Tiles
Assembly
TileWorld.Engine.dll

Describes a tile type that can appear in the world.

public sealed class TileDef
Inheritance
TileDef
Inherited Members

Properties

AutoTileGroupId

Gets the autotile connectivity group identifier. A value of 0 disables autotiling.

public ushort AutoTileGroupId { get; init; }

Property Value

ushort

BlocksLight

Gets a value indicating whether the tile blocks light propagation.

public bool BlocksLight { get; init; }

Property Value

bool

BreakDropItemId

Gets the item definition identifier spawned when the tile is broken. A value of 0 disables drops.

public int BreakDropItemId { get; init; }

Property Value

int

CanBeMined

Gets a value indicating whether the tile can be broken by ordinary mining operations.

public bool CanBeMined { get; init; }

Property Value

bool

Category

Gets the loose content category used to group tiles in tooling and authoring flows.

public string Category { get; init; }

Property Value

string

Hardness

Gets the relative mining hardness used by higher-level gameplay systems.

public int Hardness { get; init; }

Property Value

int

Id

Gets the stable numeric identifier used to reference this tile in world cell data.

public ushort Id { get; init; }

Property Value

ushort

IsSolid

Gets a value indicating whether the tile should be treated as solid for collision and support checks.

public bool IsSolid { get; init; }

Property Value

bool

Name

Gets the human-readable tile name used by tools and debug output.

public string Name { get; init; }

Property Value

string

Visual

Gets the visual metadata used by render backends to draw this tile.

public TileVisualDef Visual { get; init; }

Property Value

TileVisualDef