Tramway SDK
painis
tram-sdk
src
framework
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
8
namespace
tram
{
9
11
12
enum
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
30
const
char
*
TypeToString
(
Type
type);
31
32
}
33
34
#endif
// TRAM_SDK_FRAMEWORK_TYPES_H
tram
Serialization, i.e.
tram::Type
Type
Type enumeration for serialization, etc.
Definition:
type.h:12
tram::TYPE_BOOL
@ TYPE_BOOL
Definition:
type.h:14
tram::TYPE_STRING
@ TYPE_STRING
Definition:
type.h:16
tram::TYPE_INT16
@ TYPE_INT16
Definition:
type.h:18
tram::TYPE_VEC2
@ TYPE_VEC2
Definition:
type.h:24
tram::TYPE_UINT32
@ TYPE_UINT32
Definition:
type.h:22
tram::TYPE_INT32
@ TYPE_INT32
Definition:
type.h:19
tram::TYPE_VEC3
@ TYPE_VEC3
Definition:
type.h:25
tram::TYPE_QUAT
@ TYPE_QUAT
Definition:
type.h:27
tram::TYPE_VEC4
@ TYPE_VEC4
Definition:
type.h:26
tram::TYPE_UINT8
@ TYPE_UINT8
Definition:
type.h:20
tram::TYPE_INT8
@ TYPE_INT8
Definition:
type.h:17
tram::TYPE_UNDEFINED
@ TYPE_UNDEFINED
Definition:
type.h:13
tram::TYPE_NAME
@ TYPE_NAME
Definition:
type.h:15
tram::TYPE_UINT16
@ TYPE_UINT16
Definition:
type.h:21
tram::TYPE_FLOAT32
@ TYPE_FLOAT32
Definition:
type.h:23
tram::TypeToString
const char * TypeToString(Type type)
Converts type enum to string.
Definition:
type.cpp:8
Generated by
1.9.2