Botcraft 1.21.4
Loading...
Searching...
No Matches
Section.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5namespace Botcraft
6{
7 class Blockstate;
8
9 struct Section
10 {
11 Section(const bool has_sky_light);
12
13 static size_t CoordsToBlockIndex(const int x, const int y, const int z);
14 static size_t CoordsToLightIndex(const int x, const int y, const int z);
15
16 std::vector<unsigned short> data_blocks;
17 std::vector<unsigned char> block_light;
18 std::vector<unsigned char> sky_light;
19 };
20} // Botcraft
std::vector< unsigned char > sky_light
Definition Section.hpp:18
static size_t CoordsToLightIndex(const int x, const int y, const int z)
Definition Section.cpp:32
std::vector< unsigned short > data_blocks
Definition Section.hpp:16
std::vector< unsigned char > block_light
Definition Section.hpp:17
static size_t CoordsToBlockIndex(const int x, const int y, const int z)
Definition Section.cpp:23