20 lines
405 B
C++
20 lines
405 B
C++
#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;
|
|
#else
|
|
#warning Level size was not specified, falling back to uint8_t
|
|
typedef uint8_t level_int_t;
|
|
#endif
|
|
|
|
#endif // CREATURELIB_DEFINES_HPP
|