From 9e0bbcf685786e21b7d61216f4e1a24f0b1a3354 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 3 Feb 2015 13:13:12 +0100 Subject: Generate light layer --- src/World/Block.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/World') diff --git a/src/World/Block.hpp b/src/World/Block.hpp index f078503..b636f06 100644 --- a/src/World/Block.hpp +++ b/src/World/Block.hpp @@ -47,6 +47,10 @@ struct Block { Block(uint8_t id0, uint8_t data0, unsigned height0, uint8_t blockLight0, uint8_t skyLight0, uint8_t biome0) : id(id0), data(data0), height(height0), blockLight(blockLight0), skyLight(skyLight0), biome(biome0) {} + uint8_t getBlockLight() const { + return blockLight; + } + uint32_t getColor() const; }; -- cgit v1.2.3