29 lines
743 B
C++
29 lines
743 B
C++
#ifndef CREATURELIB_DEFINES_HPP
|
|
#define CREATURELIB_DEFINES_HPP
|
|
#include <Arbutils/Defines.hpp>
|
|
|
|
#if LEVEL_U8
|
|
using level_int_t = uint8_t;
|
|
#elif LEVEL_U16
|
|
using level_int_t = uint16_t;
|
|
#elif LEVEL_U32
|
|
using level_int_t = uint32_t;
|
|
#elif LEVEL_U64
|
|
using level_int_t = uint64_t;
|
|
#else
|
|
#warning Level size was not specified, falling back to uint8_t
|
|
using level_int_t = uint8_t;
|
|
#endif
|
|
|
|
[[deprecated]] typedef uint8_t uint8_t;
|
|
[[deprecated]] typedef uint16_t uint16_t;
|
|
[[deprecated]] typedef uint32_t uint32_t;
|
|
[[deprecated]] typedef uint64_t uint64_t;
|
|
|
|
[[deprecated]] typedef int8_t int8_t;
|
|
[[deprecated]] typedef int16_t int16_t;
|
|
[[deprecated]] typedef int32_t int32_t;
|
|
[[deprecated]] typedef int64_t int64_t;
|
|
|
|
#endif // CREATURELIB_DEFINES_HPP
|