#include <iostream>
#include <map>
#include <optional>
#include <string>
Go to the source code of this file.
|
| enum class | Slot {
HEAD
, NECK
, TOP
, MAIN_HAND
,
OFF_HAND
, BOTTOM
, GLOVES
, BOOTS
,
RING
} |
| |
| enum class | ItemType { GENERAL
, EQUIPPABLE
, FOOD
} |
| |
◆ ItemType
| Enumerator |
|---|
| GENERAL | |
| EQUIPPABLE | |
| FOOD | |
◆ Slot
| Enumerator |
|---|
| HEAD | |
| NECK | |
| TOP | |
| MAIN_HAND | |
| OFF_HAND | |
| BOTTOM | |
| GLOVES | |
| BOOTS | |
| RING | |
◆ fetchItems()
Reads items defined in the items.json file and returns them as a GameItems struct. GameItems can be referred to create item instances to the game (based on the id).
- Returns
- GameItems
◆ operator<<()
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const ItemStats & |
stats |
|
) |
| |
|
inline |