summaryrefslogtreecommitdiffstats
path: root/src/World
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-02-03 13:13:12 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-02-03 13:13:12 +0100
commit9e0bbcf685786e21b7d61216f4e1a24f0b1a3354 (patch)
treefb165bfc8645c548a1b0c6b55085e69b16b8197d /src/World
parente1b3347da56110563324b7b1afb0c38a9d172732 (diff)
downloadMinedMap-9e0bbcf685786e21b7d61216f4e1a24f0b1a3354.tar
MinedMap-9e0bbcf685786e21b7d61216f4e1a24f0b1a3354.zip
Generate light layer
Diffstat (limited to 'src/World')
-rw-r--r--src/World/Block.hpp4
1 files changed, 4 insertions, 0 deletions
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;
};