Initial commit

This commit is contained in:
daoge_cmd
2026-03-01 12:16:08 +08:00
parent def8cb4153
commit b691c43c44
19437 changed files with 4363922 additions and 0 deletions

36
Minecraft.World/Layer.h Normal file
View File

@@ -0,0 +1,36 @@
#pragma once
#include "ArrayWithLength.h"
class LevelType;
#ifndef _CONTENT_PACAKGE
#define _BIOME_OVERRIDE
#endif
class Layer
{
private:
__int64 seed;
protected:
shared_ptr<Layer>parent;
private:
__int64 rval;
__int64 seedMixup;
public:
static LayerArray getDefaultLayers(__int64 seed, LevelType *levelType);
Layer(__int64 seedMixup);
virtual void init(__int64 seed);
virtual void initRandom(__int64 x, __int64 y);
protected:
int nextRandom(int max);
public:
virtual intArray getArea(int xo, int yo, int w, int h) = 0;
};