From bb25dc91d9a83a9f9031ad364f1cbbc1b39a4c7c Mon Sep 17 00:00:00 2001 From: LaG1924 Date: Mon, 27 Dec 2021 22:49:09 +0500 Subject: Added RegisterLiquid to lua api --- src/Block.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/Block.hpp') 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); -- cgit v1.2.3