4jcraft/targets/minecraft/world/level/newbiome/layer/Layer.h
Tropical dd93cfe91e
Some checks are pending
Build (Linux, x86-64) / build-linux (push) Waiting to run
Format Check / clang-format (push) Waiting to run
format everything
2026-04-01 13:48:29 -05:00

39 lines
666 B
C++

#pragma once
#include <stdint.h>
#include <format>
#include <memory>
#include <vector>
class LevelType;
#ifndef _CONTENT_PACKAGE
#define _BIOME_OVERRIDE
#endif
class Layer {
private:
int64_t seed;
protected:
std::shared_ptr<Layer> parent;
private:
int64_t rval;
int64_t seedMixup;
public:
static std::vector<std::shared_ptr<Layer>> getDefaultLayers(
int64_t seed, LevelType* levelType);
Layer(int64_t seedMixup);
virtual void init(int64_t seed);
virtual void initRandom(int64_t x, int64_t y);
protected:
int nextRandom(int max);
public:
virtual std::vector<int> getArea(int xo, int yo, int w, int h) = 0;
};