Compile time option to change bit size of level.
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
2020-08-19 20:11:00 +02:00
parent ba97fa8579
commit 39e1295013
17 changed files with 70 additions and 36 deletions

16
src/Defines.hpp Normal file
View File

@@ -0,0 +1,16 @@
#ifndef CREATURELIB_DEFINES_HPP
#define CREATURELIB_DEFINES_HPP
#include <cstdint>
#if LEVEL_U8
typedef uint8_t level_int_t;
#elif LEVEL_U16
typedef uint16_t level_int_t;
#elif LEVEL_U32
typedef uint32_t level_int_t;
#elif LEVEL_U64
typedef uint64_t level_int_t;
#endif
#endif // CREATURELIB_DEFINES_HPP