LeviLamina
Loading...
Searching...
No Matches
ChunkKey.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/ChunkPos.h"
7
8// auto generated forward declare list
9// clang-format off
10class LevelChunk;
11// clang-format on
12
13class ChunkKey {
14public:
15 // member variables
16 // NOLINTBEGIN
17 ::ll::TypedStorage<8, 8, ::ChunkPos const> pos;
18 ::ll::TypedStorage<4, 4, ::DimensionType const> id;
19 // NOLINTEND
20
21public:
22 // prevent constructor by default
23 ChunkKey();
24
25public:
26 // member functions
27 // NOLINTBEGIN
28 MCAPI explicit ChunkKey(::std::string const& key);
29
30 MCAPI explicit ChunkKey(::LevelChunk const& lc);
31
32 MCAPI ChunkKey(::ChunkPos const& pos, ::DimensionType id);
33
34 MCAPI ::std::string_view asSpan() const;
35
36 MCAPI uint64 hashCode() const;
37 // NOLINTEND
38
39public:
40 // constructor thunks
41 // NOLINTBEGIN
42 MCAPI void* $ctor(::std::string const& key);
43
44 MCAPI void* $ctor(::LevelChunk const& lc);
45
46 MCAPI void* $ctor(::ChunkPos const& pos, ::DimensionType id);
47 // NOLINTEND
48};
Definition ChunkPos.h:11
Definition LevelChunk.h:87