Documentation: InventoryComponent
Jump to navigation
Jump to search
Name | Type | Initial Value | Example Range | Description |
---|---|---|---|---|
Members | ||||
ui_container_type | int | 1 | UI_CONTAINER_TYPES enum | |
ui_element_sprite | std::string | data/ui_gfx/inventory/inventory_box.png | ui back sprite | |
actions | std::string | list of actions, used for serialization | ||
Custom data types | ||||
ui_container_size | ivec2 | (0, 0) | ui size, how many items x*y we can fit in | |
ui_element_size | ivec2 | (0, 0) | ui size | |
ui_position_on_screen | ivec2 | (0, 0) | where do we load this on screen | |
Privates | ||||
update_listener | InvenentoryUpdateListener* | listener to keep ui up with ability changes | ||
items | INVENTORYITEM_VECTOR |