Tramway SDK
type.h
Go to the documentation of this file.
1// TRAMWAY DRIFT AND DUNGEON EXPLORATION SIMULATOR 2022
2// All rights reserved.
3
4#ifndef TRAM_SDK_FRAMEWORK_TYPES_H
5#define TRAM_SDK_FRAMEWORK_TYPES_H
6
7#include <cstdint>
8
9namespace tram {
10
12
13enum Type : uint32_t {
14 TYPE_UNDEFINED, //< When you don't know what the type is.
15 TYPE_BOOL, //< Bool. Defaults to C++ bool type.
16 TYPE_INT, //< Generic signed integer. Defaults to a int32_t.
17 TYPE_UINT, //< Generic unsigned integer. Defaults to a uint32_t.
18 TYPE_FLOAT, //< Generic floating-point. Defaults to C++ float type.
19 TYPE_NAME, //< Our own name_t hashtable string.
20 TYPE_STRING, //< Generic string. Defaults to a char array.
21 TYPE_INT8, //< Signed 8 bit long integer.
22 TYPE_INT16, //< Signed 16 bit long integer.
23 TYPE_INT32, //< Signed 32 bit long integer.
24 TYPE_INT64, //< Signed 64 bit long integer.
25 TYPE_UINT8, //< Unigned 8 bit long integer.
26 TYPE_UINT16, //< Unigned 16 bit long integer.
27 TYPE_UINT32, //< Unigned 32 bit long integer.
28 TYPE_UINT64, //< Unigned 64 bit long integer.
29 TYPE_FLOAT32, //< Normal precision floating-point.
30 TYPE_FLOAT64, //< Double precision floating-point.
31 TYPE_VEC2, //< Normal precision floating-point 2 element vector.
32 TYPE_VEC3, //< Normal precision floating-point 3 element vector.
33 TYPE_VEC4, //< Normal precision floating-point 4 element vector.
34 TYPE_QUAT, //< Normal precision floating-point quaternion.
35};
36
37}
38
39#endif // TRAM_SDK_FRAMEWORK_TYPES_H
Definition: api.h:9
Type
Type enumeration for serialization, etc.
Definition: type.h:13
@ TYPE_BOOL
Definition: type.h:15
@ TYPE_INT
Definition: type.h:16
@ TYPE_UINT
Definition: type.h:17
@ TYPE_STRING
Definition: type.h:20
@ TYPE_INT16
Definition: type.h:22
@ TYPE_VEC2
Definition: type.h:31
@ TYPE_UINT32
Definition: type.h:27
@ TYPE_INT32
Definition: type.h:23
@ TYPE_FLOAT64
Definition: type.h:30
@ TYPE_VEC3
Definition: type.h:32
@ TYPE_QUAT
Definition: type.h:34
@ TYPE_VEC4
Definition: type.h:33
@ TYPE_UINT8
Definition: type.h:25
@ TYPE_UINT64
Definition: type.h:28
@ TYPE_FLOAT
Definition: type.h:18
@ TYPE_INT8
Definition: type.h:21
@ TYPE_UNDEFINED
Definition: type.h:14
@ TYPE_INT64
Definition: type.h:24
@ TYPE_NAME
Definition: type.h:19
@ TYPE_UINT16
Definition: type.h:26
@ TYPE_FLOAT32
Definition: type.h:29