Public Member Functions | |
EntityProcessor (AssetGroup *parent) | |
Constructor. | |
~EntityProcessor () | |
Deconstructor. | |
Entity * | getEntity (const std::string &fileName) |
Gets the entity with the given filename. | |
void | getEntityTree (Entity *root) |
Gets the entire entity tree with the given entity as root. | |
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 EntityProcessor. | |
Protected Member Functions | |
bool | loadAsset (const std::string &fileName) |
Loads the asset with the given filename. | |
void | loadAssets () |
Loads all assets. |
Definition at line 27 of file EntityProcessor.h.
EntityProcessor::EntityProcessor | ( | AssetGroup * | parent | ) |
EntityProcessor::~EntityProcessor | ( | ) |
AssetProcessor * EntityProcessor::createProcessor | ( | AssetGroup * | parent | ) | [static] |
Creates a new EntityProcessor.
Definition at line 397 of file EntityProcessor.cpp.
Entity * EntityProcessor::getEntity | ( | const std::string & | fileName | ) |
Gets the entity with the given filename.
fileName | Filename of the mesh. |
Definition at line 35 of file EntityProcessor.cpp.
void EntityProcessor::getEntityTree | ( | Entity * | root | ) |
Gets the entire entity tree with the given entity as root.
root | Root entity of the tree |
Definition at line 83 of file EntityProcessor.cpp.
bool EntityProcessor::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 134 of file EntityProcessor.cpp.
void EntityProcessor::loadAssets | ( | ) | [protected, virtual] |
Loads all assets.
Reimplemented from AssetProcessor.
Definition at line 201 of file EntityProcessor.cpp.
bool EntityProcessor::reloadAsset | ( | const std::string & | fileName | ) | [virtual] |
Reloads the asset with the given filename.
fileName | Filename of the asset. |
Reimplemented from AssetProcessor.
Definition at line 280 of file EntityProcessor.cpp.
void EntityProcessor::reloadAssets | ( | ) | [virtual] |
Reloads all assets.
Reimplemented from AssetProcessor.
Definition at line 293 of file EntityProcessor.cpp.
bool EntityProcessor::removeAsset | ( | const std::string & | fileName | ) | [virtual] |
Removes the asset with the given filename.
fileName | Filename of the asset. |
Reimplemented from AssetProcessor.
Definition at line 331 of file EntityProcessor.cpp.
void EntityProcessor::removeAssets | ( | ) | [virtual] |
Removes all assets.
Reimplemented from AssetProcessor.
Definition at line 368 of file EntityProcessor.cpp.