LeviLamina
Loading...
Searching...
No Matches
Structure.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/levelgen/v2/generation_step/Type.h"
8#include "mc/world/level/levelgen/v2/terrain_adjustment/Type.h"
9
10// auto generated forward declare list
11// clang-format off
12class HashedString;
14namespace br::worldgen { class GenerationStub; }
15namespace br::worldgen { class StructureInstance; }
16namespace br::worldgen { struct GenerationContext; }
17namespace br::worldgen { struct StructureSpawnOverride; }
18// clang-format on
19
20namespace br::worldgen {
21
22struct Structure {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<1, 1, ::br::worldgen::TerrainAdjustment::Type> mAdjustment;
27 ::ll::TypedStorage<8, 24, ::std::vector<uint64>> mBiomes;
28 ::ll::TypedStorage<8, 32, ::std::string> mKey;
29 ::ll::TypedStorage<8, 64, ::std::unordered_map<::SpawnCategory::Type, ::br::worldgen::StructureSpawnOverride>>
30 mMobs;
31 ::ll::TypedStorage<1, 1, ::br::worldgen::GenerationStep::Type> mStep;
32 ::ll::TypedStorage<8, 48, ::HashedString> mType;
33 ::ll::TypedStorage<8, 24, ::std::vector<::std::shared_ptr<::PoolAliasBinding>>> mPoolAliases;
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 Structure& operator=(Structure const&);
39
40public:
41 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 0
44 virtual ~Structure();
45
46 // vIndex: 1
47 virtual ::std::optional<::br::worldgen::GenerationStub>
48 findValidGenerationPoint(::br::worldgen::GenerationContext&) const = 0;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
55
56 MCAPI ::std::shared_ptr<::br::worldgen::StructureInstance> generate(::br::worldgen::GenerationContext& context
57 ) const;
58 // NOLINTEND
59
60public:
61 // constructor thunks
62 // NOLINTBEGIN
63 MCAPI void* $ctor(::br::worldgen::Structure const&);
64 // NOLINTEND
65
66public:
67 // destructor thunk
68 // NOLINTBEGIN
69 MCAPI void $dtor();
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75
76 // NOLINTEND
77
78public:
79 // vftables
80 // NOLINTBEGIN
81 MCAPI static void** $vftable();
82 // NOLINTEND
83};
84
85} // namespace br::worldgen
Definition HashedString.h:5
Definition PoolAliasBinding.h:14
Definition GenerationContext.h:15
Definition Structure.h:22
Definition context.h:5