diff options
author | LaG1924 <lag1924@gmail.com> | 2021-12-27 18:49:09 +0100 |
---|---|---|
committer | LaG1924 <lag1924@gmail.com> | 2021-12-27 18:49:09 +0100 |
commit | bb25dc91d9a83a9f9031ad364f1cbbc1b39a4c7c (patch) | |
tree | a98514dcbd52cabbe28344ea3e9dc5636cfe9af0 /src/Block.hpp | |
parent | Removed previous liquids implementation (diff) | |
download | AltCraft-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.hpp | 9 |
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); |