LeviLamina
Loading...
Searching...
No Matches
TerrainShaper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/level/biome/ToFloatFunction.h"
7
9public:
10 // TerrainShaper inner types declare
11 // clang-format off
12 struct Point;
13 // clang-format on
14
15 // TerrainShaper inner types define
16 struct Point {
17 public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<4, 4, float const> mContinents;
21 ::ll::TypedStorage<4, 4, float const> mErosion;
22 ::ll::TypedStorage<4, 4, float const> mRidges;
23 ::ll::TypedStorage<4, 4, float const> mWeirdness;
24 // NOLINTEND
25
26 public:
27 // static functions
28 // NOLINTBEGIN
29 MCNAPI static float getContinents(::TerrainShaper::Point const& point);
30
31 MCNAPI static float getErosion(::TerrainShaper::Point const& point);
32
33 MCNAPI static float getRidges(::TerrainShaper::Point const& point);
34
35 MCNAPI static float getWeirdness(::TerrainShaper::Point const& point);
36 // NOLINTEND
37
38 public:
39 // static variables
40 // NOLINTBEGIN
41 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point>& CONTINENTS_EXTRACTOR();
42
43 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point>& EROSION_EXTRACTOR();
44
45 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point>& RIDGES_EXTRACTOR();
46
47 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point>& WEIRDNESS_EXTRACTOR();
48 // NOLINTEND
49 };
50
51public:
52 // member variables
53 // NOLINTBEGIN
54 ::ll::TypedStorage<8, 168, ::ToFloatFunction<::TerrainShaper::Point> const> mOffsetSpline;
55 ::ll::TypedStorage<8, 168, ::ToFloatFunction<::TerrainShaper::Point> const> mFactorSpline;
56 ::ll::TypedStorage<8, 168, ::ToFloatFunction<::TerrainShaper::Point> const> mJaggednessSpline;
57 ::ll::TypedStorage<4, 4, float const> GLOBAL_OFFSET;
58 ::ll::TypedStorage<4, 4, float const> FACTOR_SCALER;
59 // NOLINTEND
60
61public:
62 // prevent constructor by default
63 TerrainShaper& operator=(TerrainShaper const&);
65
66public:
67 // member functions
68 // NOLINTBEGIN
70
75 );
76
77 MCNAPI float offset(float continentalness, float erosion, float weirdness) const;
78
80 // NOLINTEND
81
82public:
83 // static functions
84 // NOLINTBEGIN
85 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point> buildErosionJaggednessSpline(
86 float jaggednessFactorAtPeakRidgeAndErosionIndex0,
87 float jaggednessFactorAtPeakRidgeAndErosionIndex1,
88 float jaggednessFactorAtHighRidgeAndErosionIndex0,
89 float jaggednessFactorAtHighRidgeAndErosionIndex1
90 );
91
92 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point> buildErosionOffsetSpline(
93 ::std::string const& name,
94 float lowValley,
95 float hill,
96 float tallHill,
97 float mountainFactor,
98 float plain,
99 float swamp,
100 bool includeExtremeHills,
101 bool saddle
102 );
103
104 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point>
105 buildMountainRidgeSplineWithPoints(float modulation, bool saddle);
106
107 MCNAPI static ::TerrainShaper buildOverworld();
108
109 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point>
110 buildRidgeJaggednessSpline(float jaggednessFactorAtPeakRidge, float jaggednessFactorAtHighRidge);
111
112 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point> buildWeirdnessJaggednessSpline(float jaggednessFactor);
113
114 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point> getErosionFactor(float baseValue, bool shatteredTerrain);
115
116 MCNAPI static ::ToFloatFunction<::TerrainShaper::Point> ridgeSpline(
117 ::std::string const& name,
118 float valley,
119 float low,
120 float mid,
121 float high,
122 float peaks,
123 float minValleySteepness
124 );
125 // NOLINTEND
126
127public:
128 // constructor thunks
129 // NOLINTBEGIN
130 MCNAPI void* $ctor(::TerrainShaper const&);
131
132 MCNAPI void* $ctor(
136 );
137 // NOLINTEND
138
139public:
140 // destructor thunk
141 // NOLINTBEGIN
142 MCNAPI void $dtor();
143 // NOLINTEND
144};
Definition TerrainShaper.h:8
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > getErosionFactor(float baseValue, bool shatteredTerrain)
MCAPI void * $ctor(::ToFloatFunction<::TerrainShaper::Point > offsetSpline, ::ToFloatFunction<::TerrainShaper::Point > factorSpline, ::ToFloatFunction<::TerrainShaper::Point > jaggednessSpline)
MCAPI float offset(float continentalness, float erosion, float weirdness) const
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > buildWeirdnessJaggednessSpline(float jaggednessFactor)
MCAPI TerrainShaper(::ToFloatFunction<::TerrainShaper::Point > offsetSpline, ::ToFloatFunction<::TerrainShaper::Point > factorSpline, ::ToFloatFunction<::TerrainShaper::Point > jaggednessSpline)
MCAPI ~TerrainShaper()
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > buildErosionJaggednessSpline(float jaggednessFactorAtPeakRidgeAndErosionIndex0, float jaggednessFactorAtPeakRidgeAndErosionIndex1, float jaggednessFactorAtHighRidgeAndErosionIndex0, float jaggednessFactorAtHighRidgeAndErosionIndex1)
MCAPI TerrainShaper(::TerrainShaper const &)
static MCAPI ::TerrainShaper buildOverworld()
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > buildMountainRidgeSplineWithPoints(float modulation, bool saddle)
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > buildRidgeJaggednessSpline(float jaggednessFactorAtPeakRidge, float jaggednessFactorAtHighRidge)
MCAPI void $dtor()
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > buildErosionOffsetSpline(::std::string const &name, float lowValley, float hill, float tallHill, float mountainFactor, float plain, float swamp, bool includeExtremeHills, bool saddle)
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > ridgeSpline(::std::string const &name, float valley, float low, float mid, float high, float peaks, float minValleySteepness)
MCAPI void * $ctor(::TerrainShaper const &)
Definition ToFloatFunction.h:6
Definition TerrainShaper.h:16
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > & RIDGES_EXTRACTOR()
static MCAPI float getContinents(::TerrainShaper::Point const &point)
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > & CONTINENTS_EXTRACTOR()
static MCAPI float getErosion(::TerrainShaper::Point const &point)
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > & WEIRDNESS_EXTRACTOR()
static MCAPI float getRidges(::TerrainShaper::Point const &point)
static MCAPI float getWeirdness(::TerrainShaper::Point const &point)
static MCAPI ::ToFloatFunction<::TerrainShaper::Point > & EROSION_EXTRACTOR()