Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ItemTileCache.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/geometry_atlas/TileDefinition.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace GeometryAtlas { class IAtlasTile; }
11// clang-format on
12
13namespace OreUI {
14
15class ItemTileCache {
16public:
17 // ItemTileCache inner types declare
18 // clang-format off
19 struct Entry;
20 // clang-format on
21
22 // ItemTileCache inner types define
23 struct Entry {
24 public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<4, 12, ::GeometryAtlas::TileDefinition> mDefinition;
28 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::GeometryAtlas::IAtlasTile>> mTile;
29 ::ll::TypedStorage<8, 8, uint64> mGeneration;
30 ::ll::TypedStorage<8, 8, ::std::atomic<uint64>> mLastUsedUpdate;
31 // NOLINTEND
32 };
33
34public:
35 // member variables
36 // NOLINTBEGIN
37 ::ll::TypedStorage<8, 80, ::std::mutex> mMutationMutex;
38 ::ll::TypedStorage<
39 8,
40 112,
41 ::Core::
42 LRUCache<::std::string, ::OreUI::ItemTileCache::Entry, ::std::shared_ptr<::OreUI::ItemTileCache::Entry>>>
43 mCache;
44 ::ll::TypedStorage<8, 8, ::std::atomic<uint64>> mGeneration;
45 ::ll::TypedStorage<8, 8, ::std::atomic<uint64>> mUpdateCount;
46 // NOLINTEND
47};
48
49} // namespace OreUI
Definition IAtlasTile.h:7
Definition ItemTileCache.h:7
Definition ItemTileCache.h:15