class

PointClickEngine::Inventory::ItemRegistry

Inherits Reference < Object

Registry for item definitions loaded from YAML

Constructors

Instance methods

all_names

Get all defined item names

Source
base_dir

Base directory for resolving asset paths

Source
base_dir=(base_dir : String)

Base directory for resolving asset paths

Source
create_item(name : String) : InventoryItem | Nil

Create an InventoryItem from a definition

Source
display_name(name : String) : String

Get display name for an item

Source
examine_text(name : String) : String | Nil

Get examine text for an item

Source
get(name : String) : ItemDefinition | Nil

Get an item definition by name

Source
has?(name : String) : Bool

Check if an item is defined

Source
load_from_file(path : String) : Bool

Load item definitions from a YAML file

Source
on_pickup_message(name : String) : String | Nil

Get on_pickup message for an item

Source
size

Get count of registered items

Source

Nested types