diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-05-19 20:03:48 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-05-19 20:03:48 +0200 |
commit | 646f77ec6bc27af231b6ff8974e631b86188beb6 (patch) | |
tree | ea48447a4bdc947e67bbd900fd5716d48755619c /src/Block.hpp | |
parent | Implemented lua's "require" for AM (diff) | |
download | AltCraft-646f77ec6bc27af231b6ff8974e631b86188beb6.tar AltCraft-646f77ec6bc27af231b6ff8974e631b86188beb6.tar.gz AltCraft-646f77ec6bc27af231b6ff8974e631b86188beb6.tar.bz2 AltCraft-646f77ec6bc27af231b6ff8974e631b86188beb6.tar.lz AltCraft-646f77ec6bc27af231b6ff8974e631b86188beb6.tar.xz AltCraft-646f77ec6bc27af231b6ff8974e631b86188beb6.tar.zst AltCraft-646f77ec6bc27af231b6ff8974e631b86188beb6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Block.hpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/Block.hpp b/src/Block.hpp index fa8b51a..d8a78a8 100644 --- a/src/Block.hpp +++ b/src/Block.hpp @@ -3,6 +3,8 @@ #include <utility> #include <string> +#include "Vector.hpp" + struct BlockId { unsigned short id : 13; unsigned char state : 4; @@ -40,4 +42,14 @@ namespace std { } //returns name of blockstate and name of variant -std::pair<std::string, std::string> TransformBlockIdToBlockStateName(BlockId blockId);
\ No newline at end of file +std::pair<std::string, std::string> TransformBlockIdToBlockStateName(BlockId blockId); + +struct BlockInfo { + bool collides; + std::string blockstate; + std::string variant; +}; + +void RegisterStaticBlockInfo(BlockId blockId, BlockInfo blockInfo); + +BlockInfo GetBlockInfo(BlockId blockId, Vector blockPos = Vector(0,0,0));
\ No newline at end of file |