3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace.Content::AssetID< T > Struct Template Reference

Unsigned numerical identifier of an asset, paired with a template type. More...

#include <AssetID.hpp>

Public Types

using Type = T
 Type of the asset associated with this AssetID.

Public Member Functions

 AssetID ()
 Constructs an AssetID with an null identifier.
 AssetID (unsigned id)
 Constructs an AssetID with the specified identifier.
 operator unsigned () const noexcept
 Gets the underlying unsigned identifier of the asset.

Public Attributes

unsigned ID
 Underlying unsigned identifier of the asset.

Detailed Description

template<AssetType T>
struct Engine3DRadSpace.Content::AssetID< T >

Unsigned numerical identifier of an asset, paired with a template type.

Template Parameters
TT must be a AssetType - must inherit IAsset and be constructible from a factory class and a path.

Member Typedef Documentation

◆ Type

template<AssetType T>
using Engine3DRadSpace.Content::AssetID< T >::Type = T

Type of the asset associated with this AssetID.

Constructor & Destructor Documentation

◆ AssetID() [1/2]

template<AssetType T>
Engine3DRadSpace.Content::AssetID< T >::AssetID ( )
inline

Constructs an AssetID with an null identifier.

◆ AssetID() [2/2]

template<AssetType T>
Engine3DRadSpace.Content::AssetID< T >::AssetID ( unsigned id)
inline

Constructs an AssetID with the specified identifier.

Parameters
idIdentifier of the asset.

Member Function Documentation

◆ operator unsigned()

template<AssetType T>
Engine3DRadSpace.Content::AssetID< T >::operator unsigned ( ) const
inlinenoexcept

Gets the underlying unsigned identifier of the asset.

Member Data Documentation

◆ ID

template<AssetType T>
unsigned Engine3DRadSpace.Content::AssetID< T >::ID

Underlying unsigned identifier of the asset.


The documentation for this struct was generated from the following file: