VoxelEngine/src/typedefs.hpp
2024-08-10 01:57:59 +03:00

27 lines
588 B
C++

#pragma once
#include <memory>
#include <stdint.h>
using scriptenv = std::shared_ptr<int>;
using observer_handler = std::shared_ptr<int>;
/// @brief dynamic integer type (64 bit signed integer)
using integer_t = int64_t;
/// @brief dynamic floating-point type (64 bit floating point)
using number_t = double;
using uint = unsigned int;
/// @brief use for bytes arrays
using ubyte = uint8_t;
// content indices
using itemid_t = uint32_t;
using blockid_t = uint16_t;
using entityid_t = uint64_t;
using itemcount_t = uint32_t;
using blockstate_t = uint16_t;
using light_t = uint16_t;