Engine::Assets::Asset

Engine::Assets::Asset Class Reference An example game engine / Generic assets / Asset

Defined in header <src/Assets/Asset.hpp>


class Asset;

Public Classes

Name
union Event

Public Functions

Member Functions Description
(constructor) (function)
(destructor) = 0 (virtual function)
load Call this method to load the asset. (virtual function)
unload Call this method to unload the asset. (virtual function)
getEvent const Returns the current status of the asset. (function)

Public Functions

function Asset

Defined in header <src/Assets/Asset.hpp>

explicit Asset(const std::string & name);

Exception Safety

Basic exception guarantee.

function ~Asset

Defined in header <src/Assets/Asset.hpp>

virtual ~Asset() = 0;

Exception Safety

Basic exception guarantee.

function load

Defined in header <src/Assets/Asset.hpp>

virtual void
load();

Call this method to load the asset.

Exception Safety

Basic exception guarantee.

function unload

Defined in header <src/Assets/Asset.hpp>

virtual void
unload();

Call this method to unload the asset.

Exception Safety

Basic exception guarantee.

function getEvent

Defined in header <src/Assets/Asset.hpp>

const Event &
getEvent() const;

Returns the current status of the asset.

Description

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

Exception Safety

Basic exception guarantee.


Updated on 2023-04-03