![]() |
dsekai
World engine for retrocomputers.
|
Flags which affect an individual ITEM. More...
Macros | |
#define | ITEM_FLAG_ACTIVE 0x1000 |
ITEM::flags bit indicating item exists in the world (and is not just a free slot in DSEKAI_STATE::items. | |
#define | ITEM_FLAG_CRAFTABLE 0x2000 |
#define | ITEM_FLAG_NOT_LAST 0x4000 |
ITEM::flags indicating this item is not the last used item slot. | |
#define | ITEM_TYPE_MASK 0x0f00 |
Bitmask for ITEM::flags indicating that item's Item Types and Use. | |
#define | ITEM_COUNT_MASK 0x00ff |
Bitmask for ITEM::flags indicating the number of copies of this item as a stack. | |
Flags which affect an individual ITEM.
#define ITEM_FLAG_NOT_LAST 0x4000 |
ITEM::flags indicating this item is not the last used item slot.
This is an optimization measure: The allocation always sets this bit, dying doesn't unset it, reallocation can use item slots with this bit set, and iteration loops can break early when they no longer see it.