mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 17:45:04 +00:00
15 lines
428 B
C++
15 lines
428 B
C++
#include "../../Platform/stdafx.h"
|
|
#include "../../Headers/net.minecraft.world.level.newbiome.layer.h"
|
|
|
|
FlatLayer::FlatLayer(int val) : Layer(0) { this->val = val; }
|
|
|
|
intArray FlatLayer::getArea(int xo, int yo, int w, int h) {
|
|
intArray result{static_cast<unsigned int>(w * h)};
|
|
for (int y = 0; y < h; y++) {
|
|
for (int x = 0; x < w; x++) {
|
|
result[x + y * w] = val;
|
|
}
|
|
}
|
|
return result;
|
|
}
|