Cogs.Core
Public Member Functions | Public Attributes | Private Attributes | List of all members
Cogs::Core::AssetData Class Reference

Public Member Functions

 AssetData (const AssetData &other)=delete
 
bool hasChanged (const AssetHandle &asset) const
 
void setAsset (AssetHandle asset)
 
void setGeneration (uint8_t generation)
 
bool isGeneration (uint8_t generation) const
 

Public Attributes

AssetHandle asset
 
std::shared_ptr< struct AssetInstanceDatainstanceData
 

Private Attributes

uint8_t generation = 0
 

Detailed Description

Definition at line 29 of file AssetSystem.h.

Member Function Documentation

◆ hasChanged()

bool Cogs::Core::AssetData::hasChanged ( const AssetHandle asset) const
inline

Definition at line 35 of file AssetSystem.h.

◆ isGeneration()

bool Cogs::Core::AssetData::isGeneration ( uint8_t  generation) const
inline

Definition at line 47 of file AssetSystem.h.

◆ setAsset()

void Cogs::Core::AssetData::setAsset ( AssetHandle  asset)
inline

Definition at line 40 of file AssetSystem.h.

◆ setGeneration()

void Cogs::Core::AssetData::setGeneration ( uint8_t  generation)
inline

Definition at line 46 of file AssetSystem.h.

Member Data Documentation

◆ asset

AssetHandle Cogs::Core::AssetData::asset

Definition at line 49 of file AssetSystem.h.

◆ generation

uint8_t Cogs::Core::AssetData::generation = 0
private

Definition at line 53 of file AssetSystem.h.

◆ instanceData

std::shared_ptr<struct AssetInstanceData> Cogs::Core::AssetData::instanceData

Definition at line 50 of file AssetSystem.h.


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