ST_engine
0.3-ALPHA
|
This object is responsible for loading/unloading assets. More...
#include <assets_manager.hpp>
Public Member Functions | |
assets_manager (message_bus &gMessageBus, task_manager &tsk_mngr) | |
~assets_manager () | |
void | update () |
Static Public Member Functions | |
static void | update_task (void *arg) |
Friends | |
class | asset_manager_test |
This object is responsible for loading/unloading assets.
Definition at line 24 of file assets_manager.hpp.
assets_manager::assets_manager | ( | message_bus & | gMessageBus, |
task_manager & | gTask_manager | ||
) |
Initializes the asset_manager. Loads all assets declared in the files assets_internal/assets_internal.list and game/levels/assets_global.list.
msg_bus | - A pointer to the global message bus. |
tsk_mngr | - A pointer to the global task manager. |
Definition at line 22 of file assets_manager.cpp.
assets_manager::~assets_manager | ( | ) |
Closes the asset_manager.
Definition at line 362 of file assets_manager.cpp.
void assets_manager::update | ( | ) |
will start the update task using the task manager.
Definition at line 376 of file assets_manager.cpp.
|
static |
Performs the update for the asset_manager on a task thread.
arg | pointer to an assets_manager (a this pointer basically) as the function must be static. |
Definition at line 48 of file assets_manager.cpp.