mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-10 23:07:13 +00:00
27 lines
452 B
C++
27 lines
452 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <format>
|
|
#include <vector>
|
|
|
|
class DataLayer {
|
|
public:
|
|
std::vector<uint8_t> data;
|
|
|
|
private:
|
|
const int depthBits;
|
|
const int depthBitsPlusFour;
|
|
|
|
public:
|
|
DataLayer(int length, int depthBits);
|
|
DataLayer(std::vector<uint8_t>& data, int depthBits);
|
|
~DataLayer();
|
|
|
|
int get(int x, int y, int z);
|
|
|
|
void set(int x, int y, int z, int val);
|
|
bool isValid();
|
|
void setAll(int br);
|
|
};
|