summaryrefslogtreecommitdiffstats
path: root/src/Block.hpp
diff options
context:
space:
mode:
authorLaG1924 <lag1924@gmail.com>2021-12-27 18:49:09 +0100
committerLaG1924 <lag1924@gmail.com>2021-12-27 18:49:09 +0100
commitbb25dc91d9a83a9f9031ad364f1cbbc1b39a4c7c (patch)
treea98514dcbd52cabbe28344ea3e9dc5636cfe9af0 /src/Block.hpp
parentRemoved previous liquids implementation (diff)
downloadAltCraft-bb25dc91d9a83a9f9031ad364f1cbbc1b39a4c7c.tar
AltCraft-bb25dc91d9a83a9f9031ad364f1cbbc1b39a4c7c.tar.gz
AltCraft-bb25dc91d9a83a9f9031ad364f1cbbc1b39a4c7c.tar.bz2
AltCraft-bb25dc91d9a83a9f9031ad364f1cbbc1b39a4c7c.tar.lz
AltCraft-bb25dc91d9a83a9f9031ad364f1cbbc1b39a4c7c.tar.xz
AltCraft-bb25dc91d9a83a9f9031ad364f1cbbc1b39a4c7c.tar.zst
AltCraft-bb25dc91d9a83a9f9031ad364f1cbbc1b39a4c7c.zip
Diffstat (limited to 'src/Block.hpp')
-rw-r--r--src/Block.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Block.hpp b/src/Block.hpp
index 0fd0e89..535ae68 100644
--- a/src/Block.hpp
+++ b/src/Block.hpp
@@ -47,6 +47,15 @@ struct BlockInfo {
std::string variant;
};
+struct LiquidInfo {
+ std::string flowTexture;
+ std::string stillTexture;
+};
+
void RegisterStaticBlockInfo(BlockId blockId, BlockInfo blockInfo);
+void RegisterStaticLiquidInfo(BlockId blockId, LiquidInfo liquidInfo);
+
BlockInfo* GetBlockInfo(BlockId blockId);
+
+const LiquidInfo& GetBlockLiquidInfo(BlockId blockId);