ST_engine  0.3-ALPHA
Public Member Functions | Static Public Member Functions | Friends | List of all members
assets_manager Class Reference

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
 

Detailed Description

This object is responsible for loading/unloading assets.

Definition at line 24 of file assets_manager.hpp.

Constructor & Destructor Documentation

◆ assets_manager()

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.

Parameters
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::~assets_manager ( )

Closes the asset_manager.

Definition at line 362 of file assets_manager.cpp.

Member Function Documentation

◆ update()

void assets_manager::update ( )

will start the update task using the task manager.

Definition at line 376 of file assets_manager.cpp.

◆ update_task()

void assets_manager::update_task ( void *  arg)
static

Performs the update for the asset_manager on a task thread.

Parameters
argpointer to an assets_manager (a this pointer basically) as the function must be static.

Definition at line 48 of file assets_manager.cpp.


The documentation for this class was generated from the following files: