LeviLamina
Loading...
Searching...
No Matches
UIRepository.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/UITextureInfoPtr.h"
7#include "mc/client/gui/interface/IUIRepository.h"
8#include "mc/deps/core/resource/ResourceLocation.h"
9
10// auto generated forward declare list
11// clang-format off
12class ResourceLoader;
13class UITextureInfo;
14// clang-format on
15
16class UIRepository : public ::IUIRepository {
17public:
18 // member variables
19 // NOLINTBEGIN
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;
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 UIRepository& operator=(UIRepository const&);
28 UIRepository(UIRepository const&);
29 UIRepository();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual ~UIRepository() /*override*/;
35
36 virtual void clearLoadedUITextureInfo() /*override*/;
37
38 virtual void reloadGroup() /*override*/;
39
40 virtual void addRef(::UITextureInfoPtr& ptr) /*override*/;
41
42 virtual void removeRef(::UITextureInfoPtr& ptr) /*override*/;
43
44 virtual ::UITextureInfoPtr
45 getUITextureInfoPtr(::ResourceLocation const& resourceLocation, bool forceReload) /*override*/;
46
47 virtual ::UITextureInfo*
48 getUITextureInfo(::ResourceLocation const& resourceLocation, bool forceReload, bool loadIfNeeded) /*override*/;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI void _loadUITextureInfo(::ResourceLocation const& resourceLocation, ::UITextureInfo& uiTextureInfo) const;
55 // NOLINTEND
56
57public:
58 // destructor thunk
59 // NOLINTBEGIN
60 MCAPI void $dtor();
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCAPI void $clearLoadedUITextureInfo();
67
68 MCAPI void $reloadGroup();
69
70 MCAPI void $addRef(::UITextureInfoPtr& ptr);
71
72 MCAPI void $removeRef(::UITextureInfoPtr& ptr);
73
74 MCAPI ::UITextureInfoPtr $getUITextureInfoPtr(::ResourceLocation const& resourceLocation, bool forceReload);
75
76 MCAPI ::UITextureInfo*
77 $getUITextureInfo(::ResourceLocation const& resourceLocation, bool forceReload, bool loadIfNeeded);
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85};
Definition IUIRepository.h:5
Definition ResourceLoader.h:17
Definition UIRepository.h:5
static MCAPI void ** $vftable()
Definition UITextureInfo.h:5