iFun Engine API  1.0.0-b6053
Great Technology for Great Games
Static Public Member Functions | List of all members
fun::ResourceManager Class Reference
Inheritance diagram for fun::ResourceManager:
fun::Component

Static Public Member Functions

static Ptr< const JsonGetJsonData (const string &filename)
 Returns JSON object identified as '$dirname/$filename'. More...
 
static Ptr< const IndexedJsonDataIndexJsonArray (const Json &array, const string &fieldname)
 Converts JSON array into a map. More...
 
static bool Install (const ArgumentMap &arguments)
 
static void Reload ()
 Reloads all resource files from JSON, Text and Database.
 
static void Reload (const string &filename)
 Reloads a specific resource file. More...
 
static bool Uninstall ()
 
- Static Public Member Functions inherited from fun::Component
static const ArgumentMapFindArgument (const string &component_name)
 

Member Function Documentation

◆ GetJsonData()

static Ptr<const Json> fun::ResourceManager::GetJsonData ( const string filename)
static
Returns
Ptr<const Json>
Parameters
filenamestring file name

◆ IndexJsonArray()

static Ptr<const IndexedJsonData> fun::ResourceManager::IndexJsonArray ( const Json array,
const string fieldname 
)
static
Parameters
arrayJson
filenamestring
Returns
pointer to a created IndexedJsonData instance.

◆ Reload()

static void fun::ResourceManager::Reload ( const string filename)
static
Parameters
filenamethe name of a file to reload.