LeviLamina
Loading...
Searching...
No Matches
AtlasIndex.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5namespace OreUI {
6
7struct AtlasIndex {
8public:
9 // AtlasIndex inner types declare
10 // clang-format off
11 struct ItemEntry;
12 // clang-format on
13
14 // AtlasIndex inner types define
15 struct ItemEntry {
16 public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<2, 2, ushort> mU;
20 ::ll::TypedStorage<2, 2, ushort> mV;
21 ::ll::TypedStorage<8, 8, uint64> mImageId;
22 // NOLINTEND
23 };
24
25 using AtlasIndexContainer = ::std::map<::std::string, ::OreUI::AtlasIndex::ItemEntry>;
26
27 using AtlasIndexIterator = ::std::_Tree_iterator<
28 ::std::_Tree_val<::std::_Tree_simple_types<::std::pair<::std::string const, ::OreUI::AtlasIndex::ItemEntry>>>>;
29
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<4, 4, uint> mTextureWidth;
34 ::ll::TypedStorage<4, 4, uint> mTextureHeight;
35 ::ll::TypedStorage<4, 4, uint> mThumbnailWidth;
36 ::ll::TypedStorage<4, 4, uint> mThumbnailHeight;
37 ::ll::TypedStorage<8, 16, ::std::map<::std::string, ::OreUI::AtlasIndex::ItemEntry>> mItems;
38 // NOLINTEND
39
40public:
41 // member functions
42 // NOLINTBEGIN
43 MCAPI ::std::optional<::OreUI::AtlasIndex::ItemEntry const> findItem(::std::string_view item) const;
44 // NOLINTEND
45};
46
47} // namespace OreUI
Definition AtlasIndex.h:15
Definition AtlasIndex.h:7