Public Member Functions | |
ScriptProcessor (AssetGroup *parent) | |
Constructor. | |
~ScriptProcessor () | |
Deconstructor. | |
Script * | getScript (const std::string &fileName) |
Gets the script with the given filename. | |
bool | reloadAsset (const std::string &fileName) |
Reloads the asset with the given filename. | |
void | reloadAssets () |
Reloads all assets. | |
bool | removeAsset (const std::string &fileName) |
Removes the asset with the given filename. | |
void | removeAssets () |
Removes all assets. | |
Static Public Member Functions | |
static AssetProcessor * | createProcessor (AssetGroup *parent) |
Creates a new ScriptProcessor. | |
Protected Member Functions | |
bool | loadAsset (const std::string &fileName) |
Loads the asset with the given filename. | |
void | loadAssets () |
Loads all assets. |
Definition at line 30 of file ScriptProcessor.h.
ScriptProcessor::ScriptProcessor | ( | AssetGroup * | parent | ) |
ScriptProcessor::~ScriptProcessor | ( | ) |
AssetProcessor * ScriptProcessor::createProcessor | ( | AssetGroup * | parent | ) | [static] |
Creates a new ScriptProcessor.
Definition at line 325 of file ScriptProcessor.cpp.
Script * ScriptProcessor::getScript | ( | const std::string & | fileName | ) |
Gets the script with the given filename.
fileName | Filename of the script. |
Definition at line 38 of file ScriptProcessor.cpp.
bool ScriptProcessor::loadAsset | ( | const std::string & | fileName | ) | [protected, virtual] |
Loads the asset with the given filename.
fileName | Filename of the asset. |
Reimplemented from AssetProcessor.
Definition at line 84 of file ScriptProcessor.cpp.
void ScriptProcessor::loadAssets | ( | ) | [protected, virtual] |
Loads all assets.
Reimplemented from AssetProcessor.
Definition at line 140 of file ScriptProcessor.cpp.
bool ScriptProcessor::reloadAsset | ( | const std::string & | fileName | ) | [virtual] |
Reloads the asset with the given filename.
fileName | Filename of the asset. |
Reimplemented from AssetProcessor.
Definition at line 208 of file ScriptProcessor.cpp.
void ScriptProcessor::reloadAssets | ( | ) | [virtual] |
Reloads all assets.
Reimplemented from AssetProcessor.
Definition at line 221 of file ScriptProcessor.cpp.
bool ScriptProcessor::removeAsset | ( | const std::string & | fileName | ) | [virtual] |
Removes the asset with the given filename.
fileName | Filename of the asset. |
Reimplemented from AssetProcessor.
Definition at line 259 of file ScriptProcessor.cpp.
void ScriptProcessor::removeAssets | ( | ) | [virtual] |
Removes all assets.
Reimplemented from AssetProcessor.
Definition at line 296 of file ScriptProcessor.cpp.