Engine::Assets::Asset

Module: An example game engine / Generic assets

#include <Asset.hpp>

Public Classes

Name
union Event

Public Functions

Name
Asset(const std::string & name)
virtual ~Asset() =0
virtual void load()
Call this method to load the asset.
virtual void unload()
Call this method to unload the asset.
const Event & getEvent() const
Returns the current status of the asset.

Public Functions Documentation

function Asset

explicit Asset(
    const std::string & name
)

function ~Asset

virtual ~Asset() =0

function load

virtual void load()

Call this method to load the asset.

function unload

virtual void unload()

Call this method to unload the asset.

function getEvent

inline const Event & getEvent() const

Returns the current status of the asset.

Use this to determine the state, for example if the assets is being loaded or unloaded.


Updated on 2022-10-19 at 22:22:01 +0000