Tramway SDK
type.h
Go to the documentation of this file.
1// Tramway Drifting and Dungeon Exploration Simulator SDK Runtime
2
3#ifndef TRAM_SDK_FRAMEWORK_TYPES_H
4#define TRAM_SDK_FRAMEWORK_TYPES_H
5
6#include <cstdint>
7
8namespace tram {
9
11
12enum Type : uint32_t {
13 TYPE_UNDEFINED, //< When you don't know what the type is.
14 TYPE_BOOL, //< Bool. Defaults to C++ bool type.
15 TYPE_NAME, //< Our own name_t hashtable string.
16 TYPE_STRING, //< Generic string. Defaults to a char array.
17 TYPE_INT8, //< Signed 8 bit long integer.
18 TYPE_INT16, //< Signed 16 bit long integer.
19 TYPE_INT32, //< Signed 32 bit long integer.
20 TYPE_UINT8, //< Unigned 8 bit long integer.
21 TYPE_UINT16, //< Unigned 16 bit long integer.
22 TYPE_UINT32, //< Unigned 32 bit long integer.
23 TYPE_FLOAT32, //< Normal precision floating-point.
24 TYPE_VEC2, //< Normal precision floating-point 2 element vector.
25 TYPE_VEC3, //< Normal precision floating-point 3 element vector.
26 TYPE_VEC4, //< Normal precision floating-point 4 element vector.
27 TYPE_QUAT, //< Normal precision floating-point quaternion.
28};
29
30const char* TypeToString(Type type);
31
32}
33
34#endif // TRAM_SDK_FRAMEWORK_TYPES_H
Serialization, i.e.
Type
Type enumeration for serialization, etc.
Definition: type.h:12
@ TYPE_BOOL
Definition: type.h:14
@ TYPE_STRING
Definition: type.h:16
@ TYPE_INT16
Definition: type.h:18
@ TYPE_VEC2
Definition: type.h:24
@ TYPE_UINT32
Definition: type.h:22
@ TYPE_INT32
Definition: type.h:19
@ TYPE_VEC3
Definition: type.h:25
@ TYPE_QUAT
Definition: type.h:27
@ TYPE_VEC4
Definition: type.h:26
@ TYPE_UINT8
Definition: type.h:20
@ TYPE_INT8
Definition: type.h:17
@ TYPE_UNDEFINED
Definition: type.h:13
@ TYPE_NAME
Definition: type.h:15
@ TYPE_UINT16
Definition: type.h:21
@ TYPE_FLOAT32
Definition: type.h:23
const char * TypeToString(Type type)
Converts type enum to string.
Definition: type.cpp:8