![]() |
DDraceNetwork Documentation
|
#include <skins.h>
Public Types | |
| enum class | EType { LOCAL , DOWNLOAD } |
| enum class | EState { UNLOADED , PENDING , LOADING , LOADED , ERROR , NOT_FOUND } |
Public Member Functions | |
| CSkinContainer (CSkinContainer &&Other)=default | |
| CSkinContainer (CSkins *pSkins, const char *pName, const char *pNormalizedName, EType Type, int StorageType) | |
| ~CSkinContainer () | |
| bool | operator< (const CSkinContainer &Other) const |
| CSkinContainer & | operator= (CSkinContainer &&Other)=default |
| const char * | Name () const |
| const char * | NormalizedName () const |
| EType | Type () const |
| int | StorageType () const |
| bool | IsVanilla () const |
| bool | IsSpecial () const |
| bool | IsAlwaysLoaded () const |
| EState | State () const |
| const std::unique_ptr< CSkin > & | Skin () const |
| void | RequestLoad () |
Private Member Functions | |
| EState | DetermineInitialState () const |
| void | SetState (EState State) |
Private Attributes | |
| CSkins * | m_pSkins |
| char | m_aName [MAX_SKIN_LENGTH] |
| char | m_aNormalizedName [NORMALIZED_SKIN_NAME_LENGTH] |
| EType | m_Type |
| int | m_StorageType |
| bool | m_Vanilla |
| bool | m_Special |
| bool | m_AlwaysLoaded |
| EState | m_State = EState::UNLOADED |
| std::unique_ptr< CSkin > | m_pSkin = nullptr |
| std::shared_ptr< CAbstractSkinLoadJob > | m_pLoadJob = nullptr |
| std::optional< std::chrono::nanoseconds > | m_FirstLoadRequest |
| std::optional< std::chrono::nanoseconds > | m_LastLoadRequest |
| std::optional< std::list< std::string_view >::iterator > | m_UsageEntryIterator |
Friends | |
| class | CSkins |
Container for a skin, its loading state, job and various meta data.
| Enumerator | |
|---|---|
| UNLOADED | Skin is unloaded and loading is not desired. |
| PENDING | Skin is unloaded and should be loaded when a slot is free. Skin will enter LOADING state when maximum number of loaded skins is not exceeded. |
| LOADING | Skin is currently loading, iff m_pLoadJob is set. |
| LOADED | Skin is loaded, iff m_pSkin is set. |
| ERROR | Skin failed to be loaded due to an unexpected error. |
| NOT_FOUND | Skin failed to be downloaded because it could not be found. |
|
default |
| CSkins::CSkinContainer::CSkinContainer | ( | CSkins * | pSkins, |
| const char * | pName, | ||
| const char * | pNormalizedName, | ||
| EType | Type, | ||
| int | StorageType | ||
| ) |
| CSkins::CSkinContainer::~CSkinContainer | ( | ) |
|
private |
|
inline |
|
inline |
|
inline |
| bool CSkins::CSkinContainer::operator< | ( | const CSkinContainer & | Other | ) | const |
|
default |
| void CSkins::CSkinContainer::RequestLoad | ( | ) |
Request that this skin should be loaded and should stay loaded.
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
The time when loading of this skin was first requested.
|
private |
The time when loading of this skin was most recently requested.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Iterator into CSkins::m_SkinsUsageList for this skin container.
|
private |