Deep RTS
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ResourceLoader Class Reference

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 ResourceLoadergetInstance ()
 
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
 

Detailed Description

The resourceLoader is primarily used to load maps.

Constructor & Destructor Documentation

◆ ResourceLoader()

ResourceLoader::ResourceLoader ( ResourceLoader const &  )
delete

Member Function Documentation

◆ getInstance()

static ResourceLoader & ResourceLoader::getInstance ( )
inlinestatic

◆ loadMAPJson()

TilePropertyData ResourceLoader::loadMAPJson ( const nlohmann::json tJSON)
static

◆ loadMapJSON()

void ResourceLoader::loadMapJSON ( const std::string &  map_file)

The loadMapJSON function takes in a path to a file and loads the corresponding json

Parameters
map_file

◆ operator=()

void ResourceLoader::operator= ( ResourceLoader const &  )
delete

Member Data Documentation

◆ mapJSON

nlohmann::json ResourceLoader::mapJSON

json object of the map

◆ tileData

TilePropertyData ResourceLoader::tileData

◆ tileJSON

nlohmann::json ResourceLoader::tileJSON

json object of the tile metadata


The documentation for this class was generated from the following files: