-
Notifications
You must be signed in to change notification settings - Fork 0
/
query.proto
179 lines (159 loc) · 6.72 KB
/
query.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
import "general.proto";
message ActiveTargetMessage {
required int32 targetId = 1;
required VectorMessage targetPosition = 2;
}
message SlugQueryLocationMessage {
required int32 locationType = 1;
required int32 componentId = 2;
required int32 parentId = 3;
optional string socket = 4;
}
message SlugQueryActuatorMessage {
required int32 state = 1;
required SlugQueryLocationMessage location = 2;
required VectorMessage rotationMin = 3;
required VectorMessage rotationMax = 4;
required VectorMessage rotationDefault = 5;
required VectorMessage rotationCurrent = 6;
required VectorMessage rotationTarget = 7;
required float rotationSpeedMax = 8;
required float rotationSpeed = 9;
}
message SlugQueryArmMessage {
required SlugQueryLocationMessage location = 1;
required int32 index = 2;
required int32 state = 3;
required bool hasStorage = 4;
}
message SlugQueryArmorMessage {
required SlugQueryLocationMessage location = 1;
required int32 valueFrontMax = 2;
required int32 valueFrontCurrent = 3;
required int32 valueBackMax = 4;
required int32 valueBackCurrent = 5;
}
message SlugQueryCapacitorMessage {
required SlugQueryLocationMessage location = 1;
required int32 state = 2;
required int32 capacity = 3;
required float chargeRate = 4;
required int32 chargeAmount = 5;
}
message SlugQueryCockpitMessage {
required int32 state = 1;
}
message SlugQueryCommunicationMessage {
required SlugQueryLocationMessage location = 1;
required int32 state = 2;
required ActiveComponentMessage activeComponent = 3;
required int32 cType = 4;
required float receiveRate = 5;
required float sendRate = 6;
required float maxRange = 7;
required int32 channels = 8;
required float delay = 9;
required int32 bufferSize = 10;
}
message SlugQueryComputerMessage {
required SlugQueryLocationMessage location = 1;
required int32 state = 2;
required ActiveComponentMessage activeComponent = 3;
required int32 targetsMax = 4;
repeated int32 targetsLocked = 5;
required int32 targetPrimary = 6;
required int32 targetLockNew = 7;
required float targetLockOnTime = 8;
required float targetLockTime = 9;
repeated int32 teamMechs = 10;
}
message SlugQueryCounterMeasureMessage {
required SlugQueryLocationMessage location = 1;
required int32 state = 2;
required int32 cmType = 3;
required ActiveComponentMessage activeComponent = 4;
}
message SlugQueryEngineMessage {
required int32 state = 1;
required ActiveComponentMessage activeComponent = 2;
}
message SlugQueryGyroMessage {
required int32 state = 1;
}
message SlugQueryLegMessage {
required SlugQueryLocationMessage location = 1;
required int32 index = 2;
required int32 state = 3;
required SlugQueryArmorMessage armor = 4;
}
message SlugQueryReactorMessage {
required int32 state = 1;
required int32 output = 2;
}
message SlugQuerySensorMessage {
required SlugQueryLocationMessage location = 1;
required int32 state = 2;
required ActiveComponentMessage activeComponent = 3;
required int32 sType = 4;
required float maxRange = 5;
required float fov = 6;
required bool occlusion = 7;
required float refreshRate = 8;
repeated ActiveTargetMessage activeTargets = 9;
}
message SlugQueryStorageMessage {
required SlugQueryLocationMessage location = 1;
required int32 size = 2;
}
message SlugQueryTorsoMessage {
required int32 state = 1;
}
message SlugQueryWeaponMessage {
required SlugQueryLocationMessage location = 1;
required int32 state = 2;
required ActiveComponentMessage activeComponent = 3;
required int32 fireState = 4;
required bool hasCapacitor = 5;
required float fireRate = 6;
required float firedLast = 7;
required int32 ammoMax = 8;
required int32 ammoCurrent = 9;
required int32 clipMax = 10;
required int32 clipCurrent = 11;
required float reloadRate = 12;
required float unJamChance = 13;
required float rangeLow = 14;
required float rangeMid = 15;
required float rangeHigh = 16;
required int32 damageLow = 17;
required int32 damageMid = 18;
required int32 damageHigh = 19;
required int32 firedCount = 20;
}
// empty message
// message SlugQueryMechRequest {
// }
message SlugQueryMechResponse {
required int32 state = 1;
required int32 maxWeight = 2;
required int32 currentWeight = 3;
required VectorMessage position = 4;
required VectorMessage rotation = 5;
required float rotationRate = 6;
repeated SlugQueryActuatorMessage actuators = 7;
repeated SlugQueryArmMessage arms = 8;
repeated SlugQueryArmorMessage armors = 9;
repeated SlugQueryCapacitorMessage capacitors = 10;
required SlugQueryCockpitMessage cockpit = 11;
repeated SlugQueryCommunicationMessage communications = 12;
repeated SlugQueryComputerMessage computers = 13;
repeated SlugQueryCounterMeasureMessage counterMeasures = 14;
required SlugQueryEngineMessage engine = 15;
required SlugQueryGyroMessage gyro = 16;
repeated SlugQueryLegMessage legs = 17;
repeated SlugQuerySensorMessage sensors = 18;
repeated SlugQueryStorageMessage storages = 19;
required SlugQueryReactorMessage reactor = 20;
required SlugQueryTorsoMessage torso = 21;
repeated SlugQueryWeaponMessage weapons = 22;
}