CreatureLib/src/Defines.hpp
Deukhoofd a12972472b
All checks were successful
continuous-integration/drone/push Build is passing
Adds Creature specific weight and height, which can be modified dynamically during battles.
2021-10-30 17:07:13 +02:00

32 lines
614 B
C++

#ifndef CREATURELIB_DEFINES_HPP
#define CREATURELIB_DEFINES_HPP
#include <cstdint>
#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
using u8 = uint8_t;
using u16 = uint16_t;
using u32 = uint32_t;
using u64 = uint64_t;
using i8 = int8_t;
using i16 = int16_t;
using i32 = int32_t;
using i64 = int64_t;
using f32 = float;
using f64 = double;
#endif // CREATURELIB_DEFINES_HPP