Class ItemDef
Describes an item definition used by the prototype drop pipeline.
public sealed class ItemDef
- Inheritance
-
ItemDef
- Inherited Members
Properties
Id
Gets the stable numeric identifier used to reference this item in gameplay and persistence flows.
public int Id { get; init; }
Property Value
MaxStack
Gets the maximum stack size intended for higher-level inventory systems.
public int MaxStack { get; init; }
Property Value
Name
Gets the human-readable item name used by tooling and debug output.
public string Name { get; init; }
Property Value
PlaceObjectDefId
Gets the object definition identifier this item places when used as an object item.
public int PlaceObjectDefId { get; init; }
Property Value
Remarks
A value of 0 means the item is not an object-placement item.
PlaceTileId
Gets the foreground tile identifier this item places when used as a tile item.
public ushort PlaceTileId { get; init; }
Property Value
Remarks
A value of 0 means the item is not a tile-placement item.
PlaceWallId
Gets the background wall identifier this item places when used as a wall item.
public ushort PlaceWallId { get; init; }
Property Value
Remarks
A value of 0 means the item is not a wall-placement item.
Visual
Gets the visual metadata used by render backends to draw this item when represented as a world drop.
public TileVisualDef Visual { get; init; }