LeviLamina
Loading...
Searching...
No Matches
FeatureTerrainAdjustments.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
9class BlockPos;
10class BoundingBox;
11class BuryDescription;
12class ChunkPos;
13struct BeardKernel;
14// clang-format on
15
17public:
18 // FeatureTerrainAdjustments inner types declare
19 // clang-format off
20 struct Descriptions;
21 // clang-format on
22
23 // FeatureTerrainAdjustments inner types define
24 using TerrainAdjustmentToken = ::std::shared_ptr<bool>;
25
26 struct Descriptions {
27 public:
28 // member variables
29 // NOLINTBEGIN
30 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::BeardDescription, ::std::weak_ptr<bool>>>> mBeardifiers;
31 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::BeardAndShaverDescription, ::std::weak_ptr<bool>>>>
32 mBeardAndShavers;
33 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<::BuryDescription, ::std::weak_ptr<bool>>>> mBurys;
34 // NOLINTEND
35
36 public:
37 // prevent constructor by default
38 Descriptions& operator=(Descriptions const&);
40
41 public:
42 // member functions
43 // NOLINTBEGIN
45
46 MCAPI ::FeatureTerrainAdjustments::Descriptions& operator=(::FeatureTerrainAdjustments::Descriptions&&);
47
48 MCAPI ~Descriptions();
49 // NOLINTEND
50
51 public:
52 // constructor thunks
53 // NOLINTBEGIN
54 MCAPI void* $ctor(::FeatureTerrainAdjustments::Descriptions const&);
55 // NOLINTEND
56
57 public:
58 // destructor thunk
59 // NOLINTBEGIN
60 MCAPI void $dtor();
61 // NOLINTEND
62 };
63
64public:
65 // member variables
66 // NOLINTBEGIN
67 ::ll::TypedStorage<8, 64, ::std::unordered_map<::ChunkPos, ::FeatureTerrainAdjustments::Descriptions>>
68 mDescriptionsToProcess;
69 ::ll::TypedStorage<8, 8, ::std::shared_mutex> mMutex;
70 // NOLINTEND
71
72public:
73 // member functions
74 // NOLINTBEGIN
75 MCAPI ::std::shared_ptr<bool> _insertDescriptions(
76 ::std::vector<::ChunkPos> const& intersectingChunks,
77 ::std::function<void(::FeatureTerrainAdjustments::Descriptions&, ::std::weak_ptr<bool>)>&& modifyFn
78 );
79
80 MCAPI ::FeatureTerrainAdjustments::Descriptions at(::ChunkPos const& chunkPos);
81
82 MCAPI void garbageCollectDescriptions();
83
84 MCAPI ::std::shared_ptr<bool>
85 setBeardAndShaver(::BoundingBox const& bb, int deltaY, float minBeardWidth, float maxBeardWidth);
86
87 MCAPI ::std::shared_ptr<bool> setBeardifier(::BoundingBox const& bb, int deltaY);
88
89 MCAPI ::std::shared_ptr<bool> setBury(::BoundingBox const& bb);
90
92 // NOLINTEND
93
94public:
95 // static functions
96 // NOLINTBEGIN
97 MCAPI static float calculateContribution(
99 ::BlockPos const& currentPos,
100 float noiseValue
101 );
102 // NOLINTEND
103
104public:
105 // static variables
106 // NOLINTBEGIN
107 MCAPI static ::BeardKernel& mBeardKernel();
108 // NOLINTEND
109
110public:
111 // destructor thunk
112 // NOLINTBEGIN
113 MCAPI void $dtor();
114 // NOLINTEND
115};
Definition BeardAndShaverDescription.h:14
Definition BeardDescription.h:13
Definition BlockPos.h:14
Definition BoundingBox.h:9
Definition BuryDescription.h:8
Definition ChunkPos.h:11
Definition FeatureTerrainAdjustments.h:16
Definition BeardKernel.h:5
Definition FeatureTerrainAdjustments.h:26