Files
BluTac10-Xbox_Neo/Minecraft.World/ChunkPrimer.h
2026-03-24 13:41:49 +01:00

42 lines
760 B
C++

#pragma once
#include "stdafx.h"
class ChunkPrimer
{
public:
ChunkPrimer();
~ChunkPrimer();
void setBlockAndData(int packedPos, int blockId, int data);
int getState(int packedPos) const;
int getBlockId(int packedPos) const;
int getBlockData(int packedPos) const;
int getHighestNonAirPos(int x, int z) const;
byte* getBlockIds() const { return m_blockIds; }
byte* getBlockData() const { return m_blockData; }
void setBlockAndData(int x, int y, int z, int blockId, int data);
int getState(int x, int y, int z) const;
private:
static int getIndex(int x, int y, int z);
byte* m_blockIds;
byte* m_blockData;
int m_airBlockId;
};