![]() |
Deep RTS
|
The resourceLoader is primarily used to load maps. More...
#include <ResourceLoader.h>
Public Member Functions | |
| void | loadMapJSON (const std::string &map_file) |
| ResourceLoader (ResourceLoader const &)=delete | |
| void | operator= (ResourceLoader const &)=delete |
Static Public Member Functions | |
| static ResourceLoader & | getInstance () |
| static TilePropertyData | loadMAPJson (const nlohmann::json &tJSON) |
Public Attributes | |
| nlohmann::json | mapJSON |
| json object of the map More... | |
| nlohmann::json | tileJSON |
| json object of the tile metadata More... | |
| TilePropertyData | tileData |
The resourceLoader is primarily used to load maps.
|
delete |
|
inlinestatic |
|
static |
| void ResourceLoader::loadMapJSON | ( | const std::string & | map_file | ) |
The loadMapJSON function takes in a path to a file and loads the corresponding json
| map_file |
|
delete |
| nlohmann::json ResourceLoader::mapJSON |
json object of the map
| TilePropertyData ResourceLoader::tileData |
| nlohmann::json ResourceLoader::tileJSON |
json object of the tile metadata