![]() |
DDraceNetwork Documentation
|
#include <skins.h>
Classes | |
| class | CAbstractSkinLoadJob |
| class | CSkinContainer |
| class | CSkinDownloadJob |
| class | CSkinList |
| class | CSkinListEntry |
| class | CSkinLoadData |
| class | CSkinLoadingStats |
| class | CSkinLoadJob |
Public Types | |
| typedef std::function< void()> | TSkinLoadedCallback |
Static Public Member Functions | |
| static bool | IsSpecialSkin (const char *pName) |
Private Member Functions | |
| bool | LoadSkinData (const char *pName, CSkinLoadData &Data) const |
| void | LoadSkinFinish (CSkinContainer *pSkinContainer, const CSkinLoadData &Data) |
| void | LoadSkinDirect (const char *pName) |
| const CSkinContainer * | FindContainerImpl (const char *pName) |
| void | UpdateUnloadSkins (CSkinLoadingStats &Stats) |
| void | UpdateStartLoading (CSkinLoadingStats &Stats) |
| void | UpdateFinishLoading (CSkinLoadingStats &Stats, std::chrono::nanoseconds StartTime, std::chrono::nanoseconds MaxTime) |
| void | OnConfigSave (IConfigManager *pConfigManager) |
Static Private Member Functions | |
| static bool | IsVanillaSkinNormalized (const char *pNormalizedName) |
| static bool | IsSpecialSkinNormalized (const char *pNormalizedName) |
| static int | SkinScan (const char *pName, int IsDir, int StorageType, void *pUser) |
| static void | ConAddFavoriteSkin (IConsole::IResult *pResult, void *pUserData) |
| static void | ConRemFavoriteSkin (IConsole::IResult *pResult, void *pUserData) |
| static void | ConfigSaveCallback (IConfigManager *pConfigManager, void *pUserData) |
| static void | ConchainRefreshSkinList (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData) |
Private Attributes | |
| std::unordered_map< std::string_view, std::unique_ptr< CSkinContainer > > | m_Skins |
| std::optional< std::chrono::nanoseconds > | m_ContainerUpdateTime |
| std::list< std::string_view > | m_SkinsUsageList |
| CSkinList | m_SkinList |
| std::set< std::string > | m_Favorites |
| CSkin | m_PlaceholderSkin |
| char | m_aEventSkinPrefix [MAX_SKIN_LENGTH] |
Static Private Attributes | |
| static constexpr size_t | NORMALIZED_SKIN_NAME_LENGTH = 2 * MAX_SKIN_LENGTH |
| static constexpr const char * | VANILLA_SKINS [] |
Additional Inherited Members | |
Protected Member Functions inherited from CComponentInterfaces | |
| class CGameClient * | GameClient () const |
| class IClient * | Client () const |
| class IKernel * | Kernel () const |
| class IEngine * | Engine () const |
| class IGraphics * | Graphics () const |
| class ITextRender * | TextRender () const |
| class IInput * | Input () const |
| class IStorage * | Storage () const |
| class CUi * | Ui () const |
| class ISound * | Sound () const |
| class CRenderTools * | RenderTools () const |
| class CRenderMap * | RenderMap () const |
| class IConfigManager * | ConfigManager () const |
| class CConfig * | Config () const |
| class IConsole * | Console () const |
| class IDemoPlayer * | DemoPlayer () const |
| class IDemoRecorder * | DemoRecorder (int Recorder) const |
| class IFavorites * | Favorites () const |
| class IServerBrowser * | ServerBrowser () const |
| class CLayers * | Layers () const |
| class CCollision * | Collision () const |
| int64_t | time () const |
| float | LocalTime () const |
| class IHttp * | Http () const |
| typedef std::function<void()> CSkins::TSkinLoadedCallback |
| CSkins::CSkins | ( | ) |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |
| const CSkins::CSkinContainer * CSkins::FindContainerOrNullptr | ( | const char * | pName | ) |
| CSkins::CSkinLoadingStats CSkins::LoadingStats | ( | ) | const |
|
private |
|
private |
|
private |
|
overridevirtual |
Called to let the components register their console commands.
Reimplemented from CComponent.
|
overridevirtual |
Called to let the components run initialization code.
Reimplemented from CComponent.
|
overridevirtual |
Called to cleanup the component. This method is called when the client is closed.
Reimplemented from CComponent.
|
overridevirtual |
Called when the component should get updated.
The update order depends on the component insertion order.
Reimplemented from CComponent.
| void CSkins::Refresh | ( | TSkinLoadedCallback && | SkinLoadedCallback | ) |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
| CSkins::CSkinList & CSkins::SkinList | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Sorted from most recently to least recently used. Must be kept synchronized with the skin containers. Only contains pending and loaded skins as only these are unloaded.
|
staticconstexprprivate |
Maximum length of normalized skin names. Normalization may increase the length.
Names of all vanilla and special skins.
The names have to be in lower case for efficient comparison.