LeviLamina
Loading...
Searching...
No Matches
StructureTemplatePool.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/levelgen/structure/Projection.h"
7
8// auto generated forward declare list
9// clang-format off
10class Random;
14// clang-format on
15
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 32, ::std::string> mName;
21 ::ll::TypedStorage<8, 24, ::std::vector<::StructurePoolElement const*>> mTemplates;
22 ::ll::TypedStorage<8, 32, ::std::string> mFallback;
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
28
29public:
30 // member functions
31 // NOLINTBEGIN
33 ::std::string name,
34 ::std::string fallback,
35 ::std::vector<::std::pair<::StructurePoolElement const*, int>> const& templates
36 );
37
40 ::std::string_view name,
41 ::std::string_view fallback,
42 ::Projection projection,
43 ::std::initializer_list<::WeightedStructureTemplateRegistration> pieces
44 );
45
46 MCAPI ::std::vector<uint64> getShuffledTemplateIndexes(::Random& random) const;
47
49 // NOLINTEND
50
51public:
52 // static functions
53 // NOLINTBEGIN
54 MCAPI static ::std::unique_ptr<::StructureTemplatePool> create(
56 ::std::string_view name,
57 ::std::string_view fallback,
58 ::std::initializer_list<::WeightedStructureTemplateRegistration> pieces,
59 ::Projection projection
60 );
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCAPI void* $ctor(
67 ::std::string name,
68 ::std::string fallback,
69 ::std::vector<::std::pair<::StructurePoolElement const*, int>> const& templates
70 );
71
72 MCAPI void* $ctor(
74 ::std::string_view name,
75 ::std::string_view fallback,
76 ::Projection projection,
77 ::std::initializer_list<::WeightedStructureTemplateRegistration> pieces
78 );
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84 MCAPI void $dtor();
85 // NOLINTEND
86};
Definition Random.h:11
Definition StructurePoolElement.h:35
Definition StructureTemplatePool.h:16
Definition StructureTemplateRegistrationContext.h:17
Definition WeightedStructureTemplateRegistration.h:14
Definition context.h:5