Skip to content

Commit

Permalink
feat: allow instantiation of FlatWorldGeneratorOptions and BlockVolum…
Browse files Browse the repository at this point in the history
…e without parameters..
  • Loading branch information
Lovelylavender4 committed Feb 8, 2024
1 parent 8e679c8 commit e7600a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/mc/world/level/block/BlockVolume.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,19 @@ class BlockVolume {
// NOLINTEND
};

public:
buffer_span_mut<Block const*> mBlocks; // this+0x0
uint mWidth; // this+0x10
uint mHeight; // this+0x14
uint mDepth; // this+0x18
int mDimensionBottom; // this+0x1C
Block const* mInitBlock; // this+0x20

BlockVolume() = default;

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

public:
// NOLINTBEGIN
Expand Down
3 changes: 2 additions & 1 deletion src/mc/world/level/levelgen/flat/FlatWorldGeneratorOptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ class FlatWorldGeneratorOptions {
Json::Value mStructureOptions; // this+0x28
WorldVersion mWorldVersion; // this+0x38

FlatWorldGeneratorOptions() = default;

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

public:
// NOLINTBEGIN
Expand Down

0 comments on commit e7600a8

Please sign in to comment.