LeviLamina
Loading...
Searching...
No Matches
LevelChunkDataRegistry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/actor/spawn_category/Type.h"
7#include "mc/world/level/chunk/ChunkBoundingBox.h"
8#include "mc/world/level/chunk/ChunkEntity.h"
9#include "mc/world/level/chunk/DynamicSpawnArea.h"
10#include "mc/world/level/chunk/FullStructureBoundingBox.h"
11#include "mc/world/level/chunk/StaticSpawnArea.h"
12#include "mc/world/level/chunk/StorageTypeHelper.h"
13#include "mc/world/level/chunk/StructureKey.h"
14#include "mc/world/level/chunk/StructureType.h"
15
16// auto generated forward declare list
17// clang-format off
18namespace br::worldgen { struct StructureSpawnOverride; }
19// clang-format on
20
21namespace br {
22
23class LevelChunkDataRegistry {
24public:
25 // LevelChunkDataRegistry inner types define
26 using Entity = ::br::ChunkEntity;
27
28 using StorageType = ::br::detail::StorageTypeHelper<
35 ::std::unordered_map<::SpawnCategory::Type, ::br::worldgen::StructureSpawnOverride>>;
36
37public:
38 // member variables
39 // NOLINTBEGIN
40 ::ll::TypedStorage<8, 88, ::entt::basic_storage<::br::ChunkEntity, ::br::ChunkEntity>> mEntities;
41 ::ll::TypedStorage<
42 8,
43 680,
44 ::std::tuple<
45 ::entt::basic_storage<::br::StructureType, ::br::ChunkEntity>,
46 ::entt::basic_storage<::br::ChunkBoundingBox, ::br::ChunkEntity>,
47 ::entt::basic_storage<::br::StructureKey, ::br::ChunkEntity>,
48 ::entt::basic_storage<::br::FullStructureBoundingBox, ::br::ChunkEntity>,
49 ::entt::basic_storage<::br::DynamicSpawnArea, ::br::ChunkEntity>,
50 ::entt::basic_storage<::br::StaticSpawnArea, ::br::ChunkEntity>,
51 ::entt::basic_storage<
52 ::std::unordered_map<::SpawnCategory::Type, ::br::worldgen::StructureSpawnOverride>,
53 ::br::ChunkEntity>>>
54 mData;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI LevelChunkDataRegistry();
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCAPI void* $ctor();
67 // NOLINTEND
68};
69
70} // namespace br
71
72namespace entt {
73
74template <typename Entity>
75struct component_traits<::std::unordered_map<::SpawnCategory::Type, ::br::worldgen::StructureSpawnOverride>, Entity> {
76 using element_type = ::std::unordered_map<::SpawnCategory::Type, ::br::worldgen::StructureSpawnOverride>;
77 using entity_type = Entity;
78
79 static constexpr bool in_place_delete = false;
80
81 static constexpr std::size_t page_size = 1024;
82};
83
84} // namespace entt
Definition ChunkBoundingBox.h:10
Definition DynamicSpawnArea.h:7
Definition FullStructureBoundingBox.h:7
Definition StaticSpawnArea.h:7
Definition StructureKey.h:10
Definition StructureType.h:7
Definition StorageTypeHelper.h:8
Definition StructureSpawnOverride.h:16