3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/UITextureInfoPtr.h"
7#include "mc/client/gui/interface/IUIRepository.h"
8#include "mc/deps/core/resource/ResourceLocation.h"
20 ::ll::TypedStorage<8, 16, ::std::map<::ResourceLocation, ::UITextureInfo>> mLoadedUITextureInfo;
21 ::ll::TypedStorage<8, 8, ::ResourceLoader&> mResourceLoader;
22 ::ll::TypedStorage<8, 64, ::std::unordered_set<::UITextureInfoPtr*>> mRegisteredPtrs;
27 UIRepository& operator=(UIRepository
const&);
28 UIRepository(UIRepository
const&);
34 virtual ~UIRepository() =
default;
36 virtual void clearLoadedUITextureInfo() ;
38 virtual void reloadGroup() ;
40 virtual void addRef(::UITextureInfoPtr& ptr) ;
42 virtual void removeRef(::UITextureInfoPtr& ptr) ;
44 virtual ::UITextureInfoPtr
45 getUITextureInfoPtr(::ResourceLocation
const& resourceLocation,
bool forceReload) ;
47 virtual ::UITextureInfo*
48 getUITextureInfo(::ResourceLocation
const& resourceLocation,
bool forceReload,
bool loadIfNeeded) ;
76 MCNAPI ::UITextureInfo*
Definition IUIRepository.h:5
Definition ResourceLoader.h:16
Definition ResourceLocation.h:15
Definition UIRepository.h:5
MCAPI UIRepository(::ResourceLoader &resourceLoader)
MCAPI void $removeRef(::UITextureInfoPtr &ptr)
MCAPI void * $ctor(::ResourceLoader &resourceLoader)
MCAPI void $reloadGroup()
MCAPI void $clearLoadedUITextureInfo()
MCAPI void $addRef(::UITextureInfoPtr &ptr)
MCAPI::UITextureInfoPtr $getUITextureInfoPtr(::ResourceLocation const &resourceLocation, bool forceReload)
static MCAPI void ** $vftable()
MCAPI::UITextureInfo * $getUITextureInfo(::ResourceLocation const &resourceLocation, bool forceReload, bool loadIfNeeded)
Definition UITextureInfoPtr.h:5
Definition UITextureInfo.h:5