Rehti MMORPG  1.0.0
Rehti MMORPG is a free and open source MMORPG game.
ItemReader.hpp File Reference
#include <iostream>
#include <map>
#include <optional>
#include <string>
Include dependency graph for ItemReader.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ItemStats
 
struct  GeneralItemStruct
 
struct  EquippableItemStruct
 
struct  FoodItemStruct
 
struct  GameItems
 Contains all the item data in the game. This is used to load item assets into memory and create item instances to the game. More...
 

Enumerations

enum class  Slot {
  HEAD , NECK , TOP , MAIN_HAND ,
  OFF_HAND , BOTTOM , GLOVES , BOOTS ,
  RING
}
 
enum class  ItemType { GENERAL , EQUIPPABLE , FOOD }
 

Functions

std::ostream & operator<< (std::ostream &os, const ItemStats &stats)
 
GameItems 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). More...
 

Enumeration Type Documentation

◆ ItemType

enum ItemType
strong
Enumerator
GENERAL 
EQUIPPABLE 
FOOD 

◆ Slot

enum Slot
strong
Enumerator
HEAD 
NECK 
TOP 
MAIN_HAND 
OFF_HAND 
BOTTOM 
GLOVES 
BOOTS 
RING 

Function Documentation

◆ fetchItems()

GameItems 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
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const ItemStats stats 
)
inline