Engine::Assets::Asset Class Reference An example game engine / Generic assets / Asset
Defined in header <src/Assets/Asset.hpp>
class Asset;
Name | |
---|---|
union | Event |
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) |
Defined in header <src/Assets/Asset.hpp>
explicit Asset(const std::string & name);
Exception Safety
Basic exception guarantee.
Defined in header <src/Assets/Asset.hpp>
virtual ~Asset() = 0;
Exception Safety
Basic exception guarantee.
Defined in header <src/Assets/Asset.hpp>
virtual void
load();
Call this method to load the asset.
Exception Safety
Basic exception guarantee.
Defined in header <src/Assets/Asset.hpp>
virtual void
unload();
Call this method to unload the asset.
Exception Safety
Basic exception guarantee.
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