|
Rehti MMORPG
1.0.0
Rehti MMORPG is a free and open source MMORPG game.
|
#include "rapidjson/document.h"#include "rapidjson/filereadstream.h"#include <filesystem>#include <fstream>#include <iostream>#include <map>#include <string>#include "../../Config.hpp"#include "AnimationReader.hpp"#include "ItemReader.hpp"#include "ObjectReader.hpp"#include "RehtiUtils.hpp"#include "Utils.hpp"
Functions | |
| std::string | generateObjectInstanceId (ObjectLocation objectLocation) |
| Generates a unique id for an object instance. More... | |
| const std::vector< ObjectLocation > | readObjectLocations () |
| Reads all the objects on the map. Server can use this to spawn objects on the map. More... | |
| std::vector< YieldableItem > | fetchYieldableItemList (GameItems &gameItems, const rapidjson::Value &object) |
| GameObjects | fetchObjects (GameItems &gameItems, std::map< int, GameSkill > &gameSkills) |
| Reads objects defined in the objects.json file and returns them as a GameObjects struct. More... | |
| GameObjects fetchObjects | ( | GameItems & | gameItems, |
| std::map< int, GameSkill > & | gameSkills | ||
| ) |
Reads objects defined in the objects.json file and returns them as a GameObjects struct.
| gameItems | GameItems |
| gameSkills | GameSkills |


| std::vector<YieldableItem> fetchYieldableItemList | ( | GameItems & | gameItems, |
| const rapidjson::Value & | object | ||
| ) |


| std::string generateObjectInstanceId | ( | ObjectLocation | objectLocation | ) |
Generates a unique id for an object instance.
| objectLocation | ObjectLocation |

| const std::vector<ObjectLocation> readObjectLocations | ( | ) |
Reads all the objects on the map. Server can use this to spawn objects on the map.

