iFun Engine API  1.0.0-b2821
Great Technology for Great Games
 All Classes Files Functions Variables Typedefs Macros
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 IndexedJsonData > IndexJsonArray (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

static Ptr<const Json> fun::ResourceManager::GetJsonData ( const string &  filename)
static
Returns
Ptr<const Json>
Parameters
filenamestring file name
static Ptr<const IndexedJsonData> fun::ResourceManager::IndexJsonArray ( const Json array,
const string &  fieldname 
)
static
Parameters
arrayJson
filenamestring
Returns
pointer to a created IndexedJsonData instance.
static void fun::ResourceManager::Reload ( const string &  filename)
static
Parameters
filenamethe name of a file to reload.