effigy_wire 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/BIN_README.txt +18 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +40 -0
- data/LICENSE.txt +21 -0
- data/README.md +7 -0
- data/Rakefile +2 -0
- data/bin/clarity-protobuf/clean +36 -0
- data/bin/clarity-protobuf/copy +75 -0
- data/bin/effigy/compile-proto +81 -0
- data/bin/effigy/mk-require-turds +43 -0
- data/bin/effigy/package +56 -0
- data/bin/effigy/tweak-proto +30 -0
- data/bin/effigy/tweak-rb +20 -0
- data/effigy_wire.gemspec +24 -0
- data/lib/effigy/wire/demo.pb.rb +205 -0
- data/lib/effigy/wire/dota_commonmessages.pb.rb +209 -0
- data/lib/effigy/wire/dota_modifiers.pb.rb +78 -0
- data/lib/effigy/wire/dota_usermessages.pb.rb +1315 -0
- data/lib/effigy/wire/netmessages.pb.rb +177 -0
- data/lib/effigy/wire/networkbasetypes.pb.rb +268 -0
- data/lib/effigy/wire/s1/s1_dota_usermessages.pb.rb +102 -0
- data/lib/effigy/wire/s1/s1_netmessages.pb.rb +121 -0
- data/lib/effigy/wire/s1/s1_usermessages.pb.rb +271 -0
- data/lib/effigy/wire/s1.rb +3 -0
- data/lib/effigy/wire/s2/s2_base_gcmessages.pb.rb +57 -0
- data/lib/effigy/wire/s2/s2_dota_gcmessages_common.pb.rb +214 -0
- data/lib/effigy/wire/s2/s2_dota_match_metadata.pb.rb +106 -0
- data/lib/effigy/wire/s2/s2_dota_usermessages.pb.rb +117 -0
- data/lib/effigy/wire/s2/s2_gameevents.pb.rb +172 -0
- data/lib/effigy/wire/s2/s2_netmessages.pb.rb +158 -0
- data/lib/effigy/wire/s2/s2_te.pb.rb +330 -0
- data/lib/effigy/wire/s2/s2_usermessages.pb.rb +514 -0
- data/lib/effigy/wire/s2.rb +3 -0
- data/lib/effigy/wire.rb +9 -0
- data/lib/effigy.rb +3 -0
- data/proto/demo.proto +157 -0
- data/proto/dota_commonmessages.proto +183 -0
- data/proto/dota_modifiers.proto +54 -0
- data/proto/dota_usermessages.proto +1152 -0
- data/proto/netmessages.proto +133 -0
- data/proto/networkbasetypes.proto +219 -0
- data/proto/s1/google/protobuf/descriptor.proto +622 -0
- data/proto/s1/s1_dota_usermessages.proto +89 -0
- data/proto/s1/s1_netmessages.proto +86 -0
- data/proto/s1/s1_usermessages.proto +217 -0
- data/proto/s2/google/protobuf/descriptor.proto +622 -0
- data/proto/s2/s2_base_gcmessages.proto +37 -0
- data/proto/s2/s2_dota_gcmessages_common.proto +177 -0
- data/proto/s2/s2_dota_match_metadata.proto +67 -0
- data/proto/s2/s2_dota_usermessages.proto +104 -0
- data/proto/s2/s2_gameevents.proto +125 -0
- data/proto/s2/s2_netmessages.proto +120 -0
- data/proto/s2/s2_te.proto +276 -0
- data/proto/s2/s2_usermessages.proto +434 -0
- metadata +148 -0
@@ -0,0 +1,514 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
##
|
4
|
+
# This file is auto-generated. DO NOT EDIT!
|
5
|
+
#
|
6
|
+
require 'protobuf/message'
|
7
|
+
|
8
|
+
|
9
|
+
##
|
10
|
+
# Imports
|
11
|
+
#
|
12
|
+
require_relative '../networkbasetypes.pb'
|
13
|
+
|
14
|
+
module Effigy
|
15
|
+
module Wire
|
16
|
+
module S2
|
17
|
+
|
18
|
+
##
|
19
|
+
# Enum Classes
|
20
|
+
#
|
21
|
+
class EBaseUserMessages < ::Protobuf::Enum
|
22
|
+
define :UM_AchievementEvent, 101
|
23
|
+
define :UM_CloseCaption, 102
|
24
|
+
define :UM_CloseCaptionDirect, 103
|
25
|
+
define :UM_CurrentTimescale, 104
|
26
|
+
define :UM_DesiredTimescale, 105
|
27
|
+
define :UM_Fade, 106
|
28
|
+
define :UM_GameTitle, 107
|
29
|
+
define :UM_HintText, 109
|
30
|
+
define :UM_HudMsg, 110
|
31
|
+
define :UM_HudText, 111
|
32
|
+
define :UM_KeyHintText, 112
|
33
|
+
define :UM_ColoredText, 113
|
34
|
+
define :UM_RequestState, 114
|
35
|
+
define :UM_ResetHUD, 115
|
36
|
+
define :UM_Rumble, 116
|
37
|
+
define :UM_SayText, 117
|
38
|
+
define :UM_SayText2, 118
|
39
|
+
define :UM_SayTextChannel, 119
|
40
|
+
define :UM_Shake, 120
|
41
|
+
define :UM_ShakeDir, 121
|
42
|
+
define :UM_TextMsg, 124
|
43
|
+
define :UM_ScreenTilt, 125
|
44
|
+
define :UM_Train, 126
|
45
|
+
define :UM_VGUIMenu, 127
|
46
|
+
define :UM_VoiceMask, 128
|
47
|
+
define :UM_VoiceSubtitle, 129
|
48
|
+
define :UM_SendAudio, 130
|
49
|
+
define :UM_ItemPickup, 131
|
50
|
+
define :UM_AmmoDenied, 132
|
51
|
+
define :UM_CrosshairAngle, 133
|
52
|
+
define :UM_ShowMenu, 134
|
53
|
+
define :UM_CreditsMsg, 135
|
54
|
+
define :UM_CloseCaptionPlaceholder, 142
|
55
|
+
define :UM_CameraTransition, 143
|
56
|
+
define :UM_AudioParameter, 144
|
57
|
+
define :UM_ParticleManager, 145
|
58
|
+
define :UM_HudError, 146
|
59
|
+
define :UM_CustomGameEvent_ClientToServer, 147
|
60
|
+
define :UM_CustomGameEvent_ServerToClient, 148
|
61
|
+
define :UM_TrackedControllerInput_ClientToServer, 149
|
62
|
+
define :UM_MAX_BASE, 200
|
63
|
+
end
|
64
|
+
|
65
|
+
class EBaseEntityMessages < ::Protobuf::Enum
|
66
|
+
define :EM_PlayJingle, 136
|
67
|
+
define :EM_ScreenOverlay, 137
|
68
|
+
define :EM_RemoveAllDecals, 138
|
69
|
+
define :EM_PropagateForce, 139
|
70
|
+
define :EM_DoSpark, 140
|
71
|
+
define :EM_FixAngle, 141
|
72
|
+
end
|
73
|
+
|
74
|
+
class ERollType < ::Protobuf::Enum
|
75
|
+
define :ROLL_NONE, -1
|
76
|
+
define :ROLL_STATS, 0
|
77
|
+
define :ROLL_CREDITS, 1
|
78
|
+
define :ROLL_LATE_JOIN_LOGO, 2
|
79
|
+
define :ROLL_OUTTRO, 3
|
80
|
+
end
|
81
|
+
|
82
|
+
class PARTICLE_MESSAGE < ::Protobuf::Enum
|
83
|
+
define :GAME_PARTICLE_MANAGER_EVENT_CREATE, 0
|
84
|
+
define :GAME_PARTICLE_MANAGER_EVENT_UPDATE, 1
|
85
|
+
define :GAME_PARTICLE_MANAGER_EVENT_UPDATE_FORWARD, 2
|
86
|
+
define :GAME_PARTICLE_MANAGER_EVENT_UPDATE_ORIENTATION, 3
|
87
|
+
define :GAME_PARTICLE_MANAGER_EVENT_UPDATE_FALLBACK, 4
|
88
|
+
define :GAME_PARTICLE_MANAGER_EVENT_UPDATE_ENT, 5
|
89
|
+
define :GAME_PARTICLE_MANAGER_EVENT_UPDATE_OFFSET, 6
|
90
|
+
define :GAME_PARTICLE_MANAGER_EVENT_DESTROY, 7
|
91
|
+
define :GAME_PARTICLE_MANAGER_EVENT_DESTROY_INVOLVING, 8
|
92
|
+
define :GAME_PARTICLE_MANAGER_EVENT_RELEASE, 9
|
93
|
+
define :GAME_PARTICLE_MANAGER_EVENT_LATENCY, 10
|
94
|
+
define :GAME_PARTICLE_MANAGER_EVENT_SHOULD_DRAW, 11
|
95
|
+
define :GAME_PARTICLE_MANAGER_EVENT_FROZEN, 12
|
96
|
+
define :GAME_PARTICLE_MANAGER_EVENT_CHANGE_CONTROL_POINT_ATTACHMENT, 13
|
97
|
+
end
|
98
|
+
|
99
|
+
|
100
|
+
##
|
101
|
+
# Message Classes
|
102
|
+
#
|
103
|
+
class CUserMessageAchievementEvent < ::Protobuf::Message; end
|
104
|
+
class CUserMessageCloseCaption < ::Protobuf::Message; end
|
105
|
+
class CUserMessageCloseCaptionDirect < ::Protobuf::Message; end
|
106
|
+
class CUserMessageCloseCaptionPlaceholder < ::Protobuf::Message; end
|
107
|
+
class CUserMessageCurrentTimescale < ::Protobuf::Message; end
|
108
|
+
class CUserMessageDesiredTimescale < ::Protobuf::Message; end
|
109
|
+
class CUserMessageFade < ::Protobuf::Message; end
|
110
|
+
class CUserMessageShake < ::Protobuf::Message; end
|
111
|
+
class CUserMessageShakeDir < ::Protobuf::Message; end
|
112
|
+
class CUserMessageScreenTilt < ::Protobuf::Message; end
|
113
|
+
class CUserMessageSayText < ::Protobuf::Message; end
|
114
|
+
class CUserMessageSayText2 < ::Protobuf::Message; end
|
115
|
+
class CUserMessageHudMsg < ::Protobuf::Message; end
|
116
|
+
class CUserMessageHudText < ::Protobuf::Message; end
|
117
|
+
class CUserMessageTextMsg < ::Protobuf::Message; end
|
118
|
+
class CUserMessageGameTitle < ::Protobuf::Message; end
|
119
|
+
class CUserMessageResetHUD < ::Protobuf::Message; end
|
120
|
+
class CUserMessageSendAudio < ::Protobuf::Message; end
|
121
|
+
class CUserMessageAudioParameter < ::Protobuf::Message; end
|
122
|
+
class CUserMessageVoiceMask < ::Protobuf::Message; end
|
123
|
+
class CUserMessageRequestState < ::Protobuf::Message; end
|
124
|
+
class CUserMessageHintText < ::Protobuf::Message; end
|
125
|
+
class CUserMessageKeyHintText < ::Protobuf::Message; end
|
126
|
+
class CUserMessageVoiceSubtitle < ::Protobuf::Message; end
|
127
|
+
class CUserMessageVGUIMenu < ::Protobuf::Message
|
128
|
+
class Keys < ::Protobuf::Message; end
|
129
|
+
|
130
|
+
end
|
131
|
+
|
132
|
+
class CUserMessageRumble < ::Protobuf::Message; end
|
133
|
+
class CUserMessageTrain < ::Protobuf::Message; end
|
134
|
+
class CUserMessageSayTextChannel < ::Protobuf::Message; end
|
135
|
+
class CUserMessageColoredText < ::Protobuf::Message; end
|
136
|
+
class CUserMessageItemPickup < ::Protobuf::Message; end
|
137
|
+
class CUserMessageAmmoDenied < ::Protobuf::Message; end
|
138
|
+
class CUserMessageCrosshairAngle < ::Protobuf::Message; end
|
139
|
+
class CUserMessageShowMenu < ::Protobuf::Message; end
|
140
|
+
class CUserMessageCreditsMsg < ::Protobuf::Message; end
|
141
|
+
class CEntityMessagePlayJingle < ::Protobuf::Message; end
|
142
|
+
class CEntityMessageScreenOverlay < ::Protobuf::Message; end
|
143
|
+
class CEntityMessageRemoveAllDecals < ::Protobuf::Message; end
|
144
|
+
class CEntityMessagePropagateForce < ::Protobuf::Message; end
|
145
|
+
class CEntityMessageDoSpark < ::Protobuf::Message; end
|
146
|
+
class CEntityMessageFixAngle < ::Protobuf::Message; end
|
147
|
+
class CUserMessageCameraTransition < ::Protobuf::Message
|
148
|
+
class Transition_DataDriven < ::Protobuf::Message; end
|
149
|
+
|
150
|
+
end
|
151
|
+
|
152
|
+
class CUserMsg_ParticleManager < ::Protobuf::Message
|
153
|
+
class ReleaseParticleIndex < ::Protobuf::Message; end
|
154
|
+
class CreateParticle < ::Protobuf::Message; end
|
155
|
+
class DestroyParticle < ::Protobuf::Message; end
|
156
|
+
class DestroyParticleInvolving < ::Protobuf::Message; end
|
157
|
+
class UpdateParticle < ::Protobuf::Message; end
|
158
|
+
class UpdateParticleFwd < ::Protobuf::Message; end
|
159
|
+
class UpdateParticleOrient < ::Protobuf::Message; end
|
160
|
+
class UpdateParticleFallback < ::Protobuf::Message; end
|
161
|
+
class UpdateParticleOffset < ::Protobuf::Message; end
|
162
|
+
class UpdateParticleEnt < ::Protobuf::Message; end
|
163
|
+
class UpdateParticleSetFrozen < ::Protobuf::Message; end
|
164
|
+
class UpdateParticleShouldDraw < ::Protobuf::Message; end
|
165
|
+
class ChangeControlPointAttachment < ::Protobuf::Message; end
|
166
|
+
|
167
|
+
end
|
168
|
+
|
169
|
+
class CUserMsg_HudError < ::Protobuf::Message; end
|
170
|
+
class CUserMsg_CustomGameEvent_ClientToServer < ::Protobuf::Message; end
|
171
|
+
class CUserMsg_CustomGameEvent_ServerToClient < ::Protobuf::Message; end
|
172
|
+
class CUserMsg_TrackedControllerInput_ClientToServer < ::Protobuf::Message; end
|
173
|
+
|
174
|
+
|
175
|
+
##
|
176
|
+
# Message Fields
|
177
|
+
#
|
178
|
+
class CUserMessageAchievementEvent
|
179
|
+
optional :uint32, :achievement, 1
|
180
|
+
end
|
181
|
+
|
182
|
+
class CUserMessageCloseCaption
|
183
|
+
optional :fixed32, :hash, 1
|
184
|
+
optional :float, :duration, 2
|
185
|
+
optional :bool, :from_player, 3
|
186
|
+
optional :int32, :ent_index, 4
|
187
|
+
end
|
188
|
+
|
189
|
+
class CUserMessageCloseCaptionDirect
|
190
|
+
optional :fixed32, :hash, 1
|
191
|
+
optional :float, :duration, 2
|
192
|
+
optional :bool, :from_player, 3
|
193
|
+
optional :int32, :ent_index, 4
|
194
|
+
end
|
195
|
+
|
196
|
+
class CUserMessageCloseCaptionPlaceholder
|
197
|
+
optional :string, :string, 1
|
198
|
+
optional :float, :duration, 2
|
199
|
+
optional :bool, :from_player, 3
|
200
|
+
optional :int32, :ent_index, 4
|
201
|
+
end
|
202
|
+
|
203
|
+
class CUserMessageCurrentTimescale
|
204
|
+
optional :float, :current, 1
|
205
|
+
end
|
206
|
+
|
207
|
+
class CUserMessageDesiredTimescale
|
208
|
+
optional :float, :desired, 1
|
209
|
+
optional :float, :acceleration, 2
|
210
|
+
optional :float, :minblendrate, 3
|
211
|
+
optional :float, :blenddeltamultiplier, 4
|
212
|
+
end
|
213
|
+
|
214
|
+
class CUserMessageFade
|
215
|
+
optional :uint32, :duration, 1
|
216
|
+
optional :uint32, :hold_time, 2
|
217
|
+
optional :uint32, :flags, 3
|
218
|
+
optional :fixed32, :color, 4
|
219
|
+
end
|
220
|
+
|
221
|
+
class CUserMessageShake
|
222
|
+
optional :uint32, :command, 1
|
223
|
+
optional :float, :amplitude, 2
|
224
|
+
optional :float, :frequency, 3
|
225
|
+
optional :float, :duration, 4
|
226
|
+
end
|
227
|
+
|
228
|
+
class CUserMessageShakeDir
|
229
|
+
optional ::Effigy::Wire::S2::CUserMessageShake, :shake, 1
|
230
|
+
optional ::Effigy::Wire::CMsgVector, :direction, 2
|
231
|
+
end
|
232
|
+
|
233
|
+
class CUserMessageScreenTilt
|
234
|
+
optional :uint32, :command, 1
|
235
|
+
optional :bool, :ease_in_out, 2
|
236
|
+
optional ::Effigy::Wire::CMsgVector, :angle, 3
|
237
|
+
optional :float, :duration, 4
|
238
|
+
optional :float, :time, 5
|
239
|
+
end
|
240
|
+
|
241
|
+
class CUserMessageSayText
|
242
|
+
optional :uint32, :playerindex, 1
|
243
|
+
optional :string, :text, 2
|
244
|
+
optional :bool, :chat, 3
|
245
|
+
end
|
246
|
+
|
247
|
+
class CUserMessageSayText2
|
248
|
+
optional :uint32, :entityindex, 1
|
249
|
+
optional :bool, :chat, 2
|
250
|
+
optional :string, :messagename, 3
|
251
|
+
optional :string, :param1, 4
|
252
|
+
optional :string, :param2, 5
|
253
|
+
optional :string, :param3, 6
|
254
|
+
optional :string, :param4, 7
|
255
|
+
end
|
256
|
+
|
257
|
+
class CUserMessageHudMsg
|
258
|
+
optional :uint32, :channel, 1
|
259
|
+
optional :float, :x, 2
|
260
|
+
optional :float, :y, 3
|
261
|
+
optional :fixed32, :color1, 4
|
262
|
+
optional :fixed32, :color2, 5
|
263
|
+
optional :uint32, :effect, 6
|
264
|
+
optional :float, :fade_in_time, 7
|
265
|
+
optional :float, :fade_out_time, 8
|
266
|
+
optional :float, :hold_time, 9
|
267
|
+
optional :float, :fx_time, 10
|
268
|
+
optional :string, :message, 11
|
269
|
+
end
|
270
|
+
|
271
|
+
class CUserMessageHudText
|
272
|
+
optional :string, :message, 1
|
273
|
+
end
|
274
|
+
|
275
|
+
class CUserMessageTextMsg
|
276
|
+
optional :uint32, :dest, 1
|
277
|
+
repeated :string, :param, 2
|
278
|
+
end
|
279
|
+
|
280
|
+
class CUserMessageSendAudio
|
281
|
+
optional :string, :soundname, 1
|
282
|
+
optional :bool, :stop, 2
|
283
|
+
end
|
284
|
+
|
285
|
+
class CUserMessageAudioParameter
|
286
|
+
optional :uint32, :parameter_type, 1
|
287
|
+
optional :uint32, :name_hash_code, 2
|
288
|
+
optional :float, :value, 3
|
289
|
+
end
|
290
|
+
|
291
|
+
class CUserMessageVoiceMask
|
292
|
+
repeated :uint32, :gamerules_masks, 1
|
293
|
+
repeated :uint32, :ban_masks, 2
|
294
|
+
optional :bool, :mod_enable, 3
|
295
|
+
end
|
296
|
+
|
297
|
+
class CUserMessageHintText
|
298
|
+
optional :string, :message, 1
|
299
|
+
end
|
300
|
+
|
301
|
+
class CUserMessageKeyHintText
|
302
|
+
repeated :string, :messages, 1
|
303
|
+
end
|
304
|
+
|
305
|
+
class CUserMessageVoiceSubtitle
|
306
|
+
optional :int32, :player, 1
|
307
|
+
optional :int32, :menu, 2
|
308
|
+
optional :int32, :item, 3
|
309
|
+
end
|
310
|
+
|
311
|
+
class CUserMessageVGUIMenu
|
312
|
+
class Keys
|
313
|
+
optional :string, :name, 1
|
314
|
+
optional :string, :value, 2
|
315
|
+
end
|
316
|
+
|
317
|
+
optional :string, :name, 1
|
318
|
+
optional :bool, :show, 2
|
319
|
+
repeated ::Effigy::Wire::S2::CUserMessageVGUIMenu::Keys, :keys, 3
|
320
|
+
end
|
321
|
+
|
322
|
+
class CUserMessageRumble
|
323
|
+
optional :int32, :index, 1
|
324
|
+
optional :int32, :data, 2
|
325
|
+
optional :int32, :flags, 3
|
326
|
+
end
|
327
|
+
|
328
|
+
class CUserMessageTrain
|
329
|
+
optional :uint32, :position, 1
|
330
|
+
end
|
331
|
+
|
332
|
+
class CUserMessageSayTextChannel
|
333
|
+
optional :int32, :player, 1
|
334
|
+
optional :int32, :channel, 2
|
335
|
+
optional :string, :text, 3
|
336
|
+
end
|
337
|
+
|
338
|
+
class CUserMessageColoredText
|
339
|
+
optional :uint32, :color, 1
|
340
|
+
optional :string, :text, 2
|
341
|
+
optional :bool, :reset, 3
|
342
|
+
optional :int32, :context_player_id, 4
|
343
|
+
optional :int32, :context_value, 5
|
344
|
+
optional :int32, :context_team_id, 6
|
345
|
+
end
|
346
|
+
|
347
|
+
class CUserMessageItemPickup
|
348
|
+
optional :string, :itemname, 1
|
349
|
+
end
|
350
|
+
|
351
|
+
class CUserMessageAmmoDenied
|
352
|
+
optional :uint32, :ammo_id, 1
|
353
|
+
end
|
354
|
+
|
355
|
+
class CUserMessageCrosshairAngle
|
356
|
+
optional ::Effigy::Wire::CMsgQAngle, :angcrosshair, 1
|
357
|
+
end
|
358
|
+
|
359
|
+
class CUserMessageShowMenu
|
360
|
+
optional :uint32, :validslots, 1
|
361
|
+
optional :uint32, :displaytime, 2
|
362
|
+
optional :bool, :needmore, 3
|
363
|
+
optional :string, :menustring, 4
|
364
|
+
end
|
365
|
+
|
366
|
+
class CUserMessageCreditsMsg
|
367
|
+
optional ::Effigy::Wire::S2::ERollType, :rolltype, 1, :default => ::Effigy::Wire::S2::ERollType::ROLL_NONE
|
368
|
+
end
|
369
|
+
|
370
|
+
class CEntityMessageScreenOverlay
|
371
|
+
optional :bool, :start_effect, 1
|
372
|
+
end
|
373
|
+
|
374
|
+
class CEntityMessageRemoveAllDecals
|
375
|
+
optional :bool, :remove_decals, 1
|
376
|
+
end
|
377
|
+
|
378
|
+
class CEntityMessagePropagateForce
|
379
|
+
optional ::Effigy::Wire::CMsgVector, :impulse, 1
|
380
|
+
end
|
381
|
+
|
382
|
+
class CEntityMessageDoSpark
|
383
|
+
optional ::Effigy::Wire::CMsgVector, :origin, 1
|
384
|
+
optional :uint32, :entityindex, 2
|
385
|
+
optional :float, :radius, 3
|
386
|
+
optional :fixed32, :color, 4
|
387
|
+
optional :uint32, :beams, 5
|
388
|
+
optional :float, :thick, 6
|
389
|
+
optional :float, :duration, 7
|
390
|
+
end
|
391
|
+
|
392
|
+
class CEntityMessageFixAngle
|
393
|
+
optional :bool, :relative, 1
|
394
|
+
optional ::Effigy::Wire::CMsgQAngle, :angle, 2
|
395
|
+
end
|
396
|
+
|
397
|
+
class CUserMessageCameraTransition
|
398
|
+
class Transition_DataDriven
|
399
|
+
optional :string, :filename, 1
|
400
|
+
optional :int32, :attach_ent_index, 2
|
401
|
+
end
|
402
|
+
|
403
|
+
optional :uint32, :camera_type, 1
|
404
|
+
optional :float, :duration, 2
|
405
|
+
optional ::Effigy::Wire::S2::CUserMessageCameraTransition::Transition_DataDriven, :params_data_driven, 3
|
406
|
+
end
|
407
|
+
|
408
|
+
class CUserMsg_ParticleManager
|
409
|
+
class CreateParticle
|
410
|
+
optional :fixed64, :particle_name_index, 1
|
411
|
+
optional :int32, :attach_type, 2
|
412
|
+
optional :int32, :entity_handle, 3
|
413
|
+
end
|
414
|
+
|
415
|
+
class DestroyParticle
|
416
|
+
optional :bool, :destroy_immediately, 1
|
417
|
+
end
|
418
|
+
|
419
|
+
class DestroyParticleInvolving
|
420
|
+
optional :bool, :destroy_immediately, 1
|
421
|
+
optional :int32, :entity_handle, 3
|
422
|
+
end
|
423
|
+
|
424
|
+
class UpdateParticle
|
425
|
+
optional :int32, :control_point, 1
|
426
|
+
optional ::Effigy::Wire::CMsgVector, :position, 2
|
427
|
+
end
|
428
|
+
|
429
|
+
class UpdateParticleFwd
|
430
|
+
optional :int32, :control_point, 1
|
431
|
+
optional ::Effigy::Wire::CMsgVector, :forward, 2
|
432
|
+
end
|
433
|
+
|
434
|
+
class UpdateParticleOrient
|
435
|
+
optional :int32, :control_point, 1
|
436
|
+
optional ::Effigy::Wire::CMsgVector, :forward, 2
|
437
|
+
optional ::Effigy::Wire::CMsgVector, :right, 3
|
438
|
+
optional ::Effigy::Wire::CMsgVector, :up, 4
|
439
|
+
end
|
440
|
+
|
441
|
+
class UpdateParticleFallback
|
442
|
+
optional :int32, :control_point, 1
|
443
|
+
optional ::Effigy::Wire::CMsgVector, :position, 2
|
444
|
+
end
|
445
|
+
|
446
|
+
class UpdateParticleOffset
|
447
|
+
optional :int32, :control_point, 1
|
448
|
+
optional ::Effigy::Wire::CMsgVector, :origin_offset, 2
|
449
|
+
end
|
450
|
+
|
451
|
+
class UpdateParticleEnt
|
452
|
+
optional :int32, :control_point, 1
|
453
|
+
optional :int32, :entity_handle, 2
|
454
|
+
optional :int32, :attach_type, 3
|
455
|
+
optional :int32, :attachment, 4
|
456
|
+
optional ::Effigy::Wire::CMsgVector, :fallback_position, 5
|
457
|
+
optional :bool, :include_wearables, 6
|
458
|
+
end
|
459
|
+
|
460
|
+
class UpdateParticleSetFrozen
|
461
|
+
optional :bool, :set_frozen, 1
|
462
|
+
end
|
463
|
+
|
464
|
+
class UpdateParticleShouldDraw
|
465
|
+
optional :bool, :should_draw, 1
|
466
|
+
end
|
467
|
+
|
468
|
+
class ChangeControlPointAttachment
|
469
|
+
optional :int32, :attachment_old, 1
|
470
|
+
optional :int32, :attachment_new, 2
|
471
|
+
optional :int32, :entity_handle, 3
|
472
|
+
end
|
473
|
+
|
474
|
+
required ::Effigy::Wire::S2::PARTICLE_MESSAGE, :type, 1, :default => ::Effigy::Wire::S2::PARTICLE_MESSAGE::GAME_PARTICLE_MANAGER_EVENT_CREATE
|
475
|
+
required :uint32, :index, 2
|
476
|
+
optional ::Effigy::Wire::S2::CUserMsg_ParticleManager::ReleaseParticleIndex, :release_particle_index, 3
|
477
|
+
optional ::Effigy::Wire::S2::CUserMsg_ParticleManager::CreateParticle, :create_particle, 4
|
478
|
+
optional ::Effigy::Wire::S2::CUserMsg_ParticleManager::DestroyParticle, :destroy_particle, 5
|
479
|
+
optional ::Effigy::Wire::S2::CUserMsg_ParticleManager::DestroyParticleInvolving, :destroy_particle_involving, 6
|
480
|
+
optional ::Effigy::Wire::S2::CUserMsg_ParticleManager::UpdateParticle, :update_particle, 7
|
481
|
+
optional ::Effigy::Wire::S2::CUserMsg_ParticleManager::UpdateParticleFwd, :update_particle_fwd, 8
|
482
|
+
optional ::Effigy::Wire::S2::CUserMsg_ParticleManager::UpdateParticleOrient, :update_particle_orient, 9
|
483
|
+
optional ::Effigy::Wire::S2::CUserMsg_ParticleManager::UpdateParticleFallback, :update_particle_fallback, 10
|
484
|
+
optional ::Effigy::Wire::S2::CUserMsg_ParticleManager::UpdateParticleOffset, :update_particle_offset, 11
|
485
|
+
optional ::Effigy::Wire::S2::CUserMsg_ParticleManager::UpdateParticleEnt, :update_particle_ent, 12
|
486
|
+
optional ::Effigy::Wire::S2::CUserMsg_ParticleManager::UpdateParticleShouldDraw, :update_particle_should_draw, 14
|
487
|
+
optional ::Effigy::Wire::S2::CUserMsg_ParticleManager::UpdateParticleSetFrozen, :update_particle_set_frozen, 15
|
488
|
+
optional ::Effigy::Wire::S2::CUserMsg_ParticleManager::ChangeControlPointAttachment, :change_control_point_attachment, 16
|
489
|
+
end
|
490
|
+
|
491
|
+
class CUserMsg_HudError
|
492
|
+
optional :int32, :order_id, 1
|
493
|
+
end
|
494
|
+
|
495
|
+
class CUserMsg_CustomGameEvent_ClientToServer
|
496
|
+
optional :string, :event_name, 1
|
497
|
+
optional :bytes, :data, 2
|
498
|
+
end
|
499
|
+
|
500
|
+
class CUserMsg_CustomGameEvent_ServerToClient
|
501
|
+
optional :string, :event_name, 1
|
502
|
+
optional :bytes, :data, 2
|
503
|
+
end
|
504
|
+
|
505
|
+
class CUserMsg_TrackedControllerInput_ClientToServer
|
506
|
+
optional :bytes, :data, 1
|
507
|
+
end
|
508
|
+
|
509
|
+
end
|
510
|
+
|
511
|
+
end
|
512
|
+
|
513
|
+
end
|
514
|
+
|
data/lib/effigy/wire.rb
ADDED
data/lib/effigy.rb
ADDED
data/proto/demo.proto
ADDED
@@ -0,0 +1,157 @@
|
|
1
|
+
package effigy.wire;
|
2
|
+
|
3
|
+
option java_package = "skadistats.clarity.wire.common.proto";
|
4
|
+
|
5
|
+
option cc_generic_services = false;
|
6
|
+
|
7
|
+
enum EDemoCommands {
|
8
|
+
DEM_Error = -1;
|
9
|
+
DEM_Stop = 0;
|
10
|
+
DEM_FileHeader = 1;
|
11
|
+
DEM_FileInfo = 2;
|
12
|
+
DEM_SyncTick = 3;
|
13
|
+
DEM_SendTables = 4;
|
14
|
+
DEM_ClassInfo = 5;
|
15
|
+
DEM_StringTables = 6;
|
16
|
+
DEM_Packet = 7;
|
17
|
+
DEM_SignonPacket = 8;
|
18
|
+
DEM_ConsoleCmd = 9;
|
19
|
+
DEM_CustomData = 10;
|
20
|
+
DEM_CustomDataCallbacks = 11;
|
21
|
+
DEM_UserCmd = 12;
|
22
|
+
DEM_FullPacket = 13;
|
23
|
+
DEM_SaveGame = 14;
|
24
|
+
DEM_SpawnGroups = 15;
|
25
|
+
DEM_Max = 16;
|
26
|
+
DEM_IsCompressed_S1 = 112;
|
27
|
+
DEM_IsCompressed_S2 = 64;
|
28
|
+
}
|
29
|
+
|
30
|
+
message CDemoFileHeader {
|
31
|
+
required string demo_file_stamp = 1;
|
32
|
+
optional int32 network_protocol = 2;
|
33
|
+
optional string server_name = 3;
|
34
|
+
optional string client_name = 4;
|
35
|
+
optional string map_name = 5;
|
36
|
+
optional string game_directory = 6;
|
37
|
+
optional int32 fullpackets_version = 7;
|
38
|
+
optional bool allow_clientside_entities = 8;
|
39
|
+
optional bool allow_clientside_particles = 9;
|
40
|
+
optional string addons = 10;
|
41
|
+
}
|
42
|
+
|
43
|
+
message CGameInfo {
|
44
|
+
message CDotaGameInfo {
|
45
|
+
message CPlayerInfo {
|
46
|
+
optional string hero_name = 1;
|
47
|
+
optional string player_name = 2;
|
48
|
+
optional bool is_fake_client = 3;
|
49
|
+
optional uint64 steamid = 4;
|
50
|
+
optional int32 game_team = 5;
|
51
|
+
}
|
52
|
+
|
53
|
+
message CHeroSelectEvent {
|
54
|
+
optional bool is_pick = 1;
|
55
|
+
optional uint32 team = 2;
|
56
|
+
optional uint32 hero_id = 3;
|
57
|
+
}
|
58
|
+
|
59
|
+
optional uint64 match_id = 1;
|
60
|
+
optional int32 game_mode = 2;
|
61
|
+
optional int32 game_winner = 3;
|
62
|
+
repeated CGameInfo.CDotaGameInfo.CPlayerInfo player_info = 4;
|
63
|
+
optional uint32 leagueid = 5;
|
64
|
+
repeated CGameInfo.CDotaGameInfo.CHeroSelectEvent picks_bans = 6;
|
65
|
+
optional uint32 radiant_team_id = 7;
|
66
|
+
optional uint32 dire_team_id = 8;
|
67
|
+
optional string radiant_team_tag = 9;
|
68
|
+
optional string dire_team_tag = 10;
|
69
|
+
optional uint32 end_time = 11;
|
70
|
+
}
|
71
|
+
|
72
|
+
optional CGameInfo.CDotaGameInfo dota = 4;
|
73
|
+
}
|
74
|
+
|
75
|
+
message CDemoFileInfo {
|
76
|
+
optional float playback_time = 1;
|
77
|
+
optional int32 playback_ticks = 2;
|
78
|
+
optional int32 playback_frames = 3;
|
79
|
+
optional CGameInfo game_info = 4;
|
80
|
+
}
|
81
|
+
|
82
|
+
message CDemoPacket {
|
83
|
+
optional int32 sequence_in = 1;
|
84
|
+
optional int32 sequence_out_ack = 2;
|
85
|
+
optional bytes data = 3;
|
86
|
+
}
|
87
|
+
|
88
|
+
message CDemoFullPacket {
|
89
|
+
optional CDemoStringTables string_table = 1;
|
90
|
+
optional CDemoPacket packet = 2;
|
91
|
+
}
|
92
|
+
|
93
|
+
message CDemoSaveGame {
|
94
|
+
optional bytes data = 1;
|
95
|
+
optional fixed64 steam_id = 2;
|
96
|
+
optional fixed64 signature = 3;
|
97
|
+
optional int32 version = 4;
|
98
|
+
}
|
99
|
+
|
100
|
+
message CDemoSyncTick {
|
101
|
+
}
|
102
|
+
|
103
|
+
message CDemoConsoleCmd {
|
104
|
+
optional string cmdstring = 1;
|
105
|
+
}
|
106
|
+
|
107
|
+
message CDemoSendTables {
|
108
|
+
optional bytes data = 1;
|
109
|
+
}
|
110
|
+
|
111
|
+
message CDemoClassInfo {
|
112
|
+
message class_t {
|
113
|
+
optional int32 class_id = 1;
|
114
|
+
optional string network_name = 2;
|
115
|
+
optional string table_name = 3;
|
116
|
+
}
|
117
|
+
|
118
|
+
repeated CDemoClassInfo.class_t classes = 1;
|
119
|
+
}
|
120
|
+
|
121
|
+
message CDemoCustomData {
|
122
|
+
optional int32 callback_index = 1;
|
123
|
+
optional bytes data = 2;
|
124
|
+
}
|
125
|
+
|
126
|
+
message CDemoCustomDataCallbacks {
|
127
|
+
repeated string save_id = 1;
|
128
|
+
}
|
129
|
+
|
130
|
+
message CDemoStringTables {
|
131
|
+
message items_t {
|
132
|
+
optional string str = 1;
|
133
|
+
optional bytes data = 2;
|
134
|
+
}
|
135
|
+
|
136
|
+
message table_t {
|
137
|
+
optional string table_name = 1;
|
138
|
+
repeated CDemoStringTables.items_t items = 2;
|
139
|
+
repeated CDemoStringTables.items_t items_clientside = 3;
|
140
|
+
optional int32 table_flags = 4;
|
141
|
+
}
|
142
|
+
|
143
|
+
repeated CDemoStringTables.table_t tables = 1;
|
144
|
+
}
|
145
|
+
|
146
|
+
message CDemoStop {
|
147
|
+
}
|
148
|
+
|
149
|
+
message CDemoUserCmd {
|
150
|
+
optional int32 cmd_number = 1;
|
151
|
+
optional bytes data = 2;
|
152
|
+
}
|
153
|
+
|
154
|
+
message CDemoSpawnGroups {
|
155
|
+
repeated bytes msgs = 3;
|
156
|
+
}
|
157
|
+
|