From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.World/Layer.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Minecraft.World/Layer.h (limited to 'Minecraft.World/Layer.h') diff --git a/Minecraft.World/Layer.h b/Minecraft.World/Layer.h new file mode 100644 index 00000000..a444a629 --- /dev/null +++ b/Minecraft.World/Layer.h @@ -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_ptrparent; + +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; +}; \ No newline at end of file -- cgit v1.2.3