This repository has been archived by the owner on Jan 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
replay.proto
113 lines (99 loc) · 2.01 KB
/
replay.proto
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
107
108
109
110
111
112
113
syntax = "proto3";
package gen;
enum Team {
UNASSIGNED = 0;
TERRORIST = 1;
COUNTER_TERRORIST = 2;
SPECTATOR = 3;
}
message Point {
int32 x = 1;
int32 y = 2;
int32 z = 3;
}
message Replay {
message Header {
string map = 1;
double tickRate = 2;
int32 snapshotRate = 3;
}
message Entity {
int32 id = 1;
string name = 2;
Team team = 3;
bool isNpc = 4;
}
message Snapshot {
message EntityEquipment {
int32 type = 1;
int32 ammoReserve = 2;
int32 ammoInMagazine = 3;
}
message EntityUpdate{
int32 entityId = 1;
repeated Point positions = 2;
int32 angleX = 3;
int32 hp = 4;
int32 armor = 5;
float flashDuration = 6;
Team team = 7;
bool isNpc = 8;
int32 angleY = 9; // TODO: move next to angleX, and change to int16 before v1.0
bool hasHelmet = 10;
bool hasDefuseKit = 11;
repeated EntityEquipment equipment = 12;
}
int32 tick = 1;
repeated EntityUpdate entityUpdates = 2;
}
message Tick {
message Event {
enum Kind {
JUMP = 0;
FIRE = 1;
HURT = 2;
FLASHED = 3;
KILL = 4;
ROUND_STARTED = 5;
SWAP_TEAM = 6;
DISCONNECT = 7;
CHAT_MESSAGE = 8;
CUSTOM = 9;
MATCH_STARTED = 10;
GAME_PHASE_CHANGED = 11;
SMOKE_STARTED = 12;
SMOKE_EXPIRED = 13;
DECOY_STARTED = 14;
DECOY_EXPIRED = 15;
FIRE_GRENADE_STARTED = 16;
FIRE_GRENADE_EXPIRED = 17;
HE_GRENADE_EXPLOSION = 18;
FLASH_EXPLOSION = 19;
}
message Attribute {
enum Kind {
ENTITY_ID = 0;
VICTIM = 1;
KILLER = 2;
ASSISTER = 3;
TEXT = 4;
EVENT_NAME = 5;
CUSTOM = 6;
THROWER_ENTITY_ID = 7;
}
Kind kind = 1;
string stringValue = 2;
double numberValue = 3;
string customName = 4;
}
Kind kind = 1;
repeated Attribute attributes = 2; // TODO: change to map?? - probably better the way it is tbh
}
int32 nr = 1;
repeated Event events = 2;
}
Header header = 1;
repeated Entity entities = 2;
repeated Snapshot snapshots = 3;
repeated Tick ticks = 4;
}