forked from Prof-Butts/Hook_XWACockpitLook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Telemetry.h
61 lines (54 loc) · 1012 Bytes
/
Telemetry.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
#pragma once
//#define TELEMETRY_JSON
#define TELEMETRY_SIMPLIFIED
class PlayerTelemetry {
public:
char *name;
char *short_name;
int speed;
BYTE ElsLasers;
BYTE ElsShields;
BYTE ElsBeam;
BYTE SfoilsState;
BYTE ShieldDirection;
int shields_front;
int shields_back;
int hull;
BYTE BeamActive;
PlayerTelemetry() {
name = NULL;
short_name = NULL;
speed = -1;
ElsLasers = ElsShields = ElsBeam = 255;
SfoilsState = 255;
ShieldDirection = 255;
shields_front = shields_back = -1;
hull = -1;
BeamActive = 255;
}
};
class TargetTelemetry {
public:
char *name;
char *short_name;
int IFF;
char Cargo[16];
int shields;
int hull;
BYTE CraftState;
TargetTelemetry() {
name = short_name = NULL;
IFF = -1;
ZeroMemory(Cargo, 16);
shields = hull = -1;
CraftState = 255;
}
};
class LocationTelemetry {
public:
bool playerInHangar;
LocationTelemetry() {
playerInHangar = true;
}
};
void SendXWADataOverUDP();