-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefinitions.h
106 lines (92 loc) · 1.8 KB
/
Definitions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
///----------------------------------------------------------------------------------------------------
/// Copyright (c) Raidcore.GG - All rights reserved.
///
/// Name : Definitions.h
/// Description : Definitions for public-facing real-time API.
/// Authors : K. Bieniek
///----------------------------------------------------------------------------------------------------
#ifndef RTAPI_DEFINITIONS_H
#define RTAPI_DEFINITIONS_H
#define RTAPI_VERSION 1
#include <cstdint>
enum class EGameState : uint32_t
{
CharacterSelection,
CharacterCreation,
Cinematic,
LoadingScreen,
Gameplay
};
enum class EGameLanguage : uint32_t
{
English,
Korean,
French,
German,
Spanish,
Chinese
};
struct GameData
{
int32_t Build;
EGameState State;
EGameLanguage Language;
};
enum class ETime : uint32_t
{
Dawn,
Day,
Dusk,
Night
};
struct WorldData
{
float Cursor[3]; // The position in the world where the cursor is hovered over.
ETime TimeOfDay;
int32_t MapID;
int32_t MapType;
char IPAddress[4];
};
struct CharacterData
{
char AccountName[32];
char CharacterName[20];
float Position[3];
float Facing[3];
int32_t Profession;
int32_t EliteSpecialization;
int32_t MountIndex;
int32_t IsAlive : 1;
int32_t IsDowned : 1;
int32_t IsInWater : 1;
int32_t IsGliding : 1;
};
struct CameraData
{
float Position[3];
float Facing[3];
float FOV;
int32_t IsActionCamera : 1;
};
struct SquadMember
{
char AccountName[32];
char CharacterName[20];
int32_t Subgroup;
int32_t Profession;
int32_t EliteSpecialization;
};
struct GroupData
{
int32_t MembersCount;
float Markers[8][3];
};
struct RealTimeData
{
GameData Game;
WorldData World;
CharacterData Character;
CameraData Camera;
GroupData Group;
};
#endif