Skip to content

Commit

Permalink
chore: fixed an inconsistency in the naming style of CoordinateRange'…
Browse files Browse the repository at this point in the history
…s member variables.
  • Loading branch information
Lovelylavender4 committed Jul 23, 2024
1 parent d6fcd3a commit 5a0e29a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
25 changes: 15 additions & 10 deletions src/mc/world/level/ScatterParams.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,28 @@ class ScatterParams {
struct CoordinateRange {
public:
enum class Distribution : int {
SingleValued = 0x0,
Uniform = 0x1,
Gaussian = 0x2,
InverseGaussian = 0x3,
JitteredGrid = 0x4,
FixedGrid = 0x5,
FixedGrid = 0x4,
JitteredGrid = 0x5,
Triangle = 0x6,
};
ExpressionNode mMin; // this+0x0
ExpressionNode mMax; // this+0xE8
int mStepSize; // this+0x1D0
int mGridOffset; // this+0x1D4
Distribution mDistribution; // this+0x1D8
struct Extent {
int min; // this+0x0
int max; // this+0x4
int mMin;
int mMax;
};
std::optional<Extent> extent; // this+0x1DC

public:
ExpressionNode mMinOrSingleValue; // this+0x0
ExpressionNode mMax; // this+0xE8
int mGridStepSize; // this+0x1D0
int mGridOffset; // this+0x1D4
Distribution mDistribution; // this+0x1D8
std::optional<Extent> mFastPathRange; // this+0x1DC

public:
// prevent constructor by default
CoordinateRange& operator=(CoordinateRange const&);

Expand Down
4 changes: 4 additions & 0 deletions src/mc/world/level/biome/components/BiomeDecorationFeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ struct BiomeDecorationFeature {
zxy = 0x4,
zyx = 0x5,
};

public:
ScatterParams::CoordinateRange mX; // this+0x0
ScatterParams::CoordinateRange mY; // this+0x1E8
ScatterParams::CoordinateRange mZ; // this+0x3D0
Expand All @@ -25,6 +27,8 @@ struct BiomeDecorationFeature {
WeakStorageFeature mFeature; // this+0x798
HashedString mIdentifier; // this+0x7B0
std::string mPlacementPass; // this+0x7E0

public:
// prevent constructor by default
BiomeDecorationFeature& operator=(BiomeDecorationFeature const&);
BiomeDecorationFeature();
Expand Down

0 comments on commit 5a0e29a

Please sign in to comment.