-
Notifications
You must be signed in to change notification settings - Fork 104
/
callbacks.go
6736 lines (5387 loc) · 197 KB
/
callbacks.go
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package manta
import (
"github.com/dotabuff/manta/dota"
"github.com/golang/protobuf/proto"
)
// Callbacks decodes and routes replay events to callback functions
type Callbacks struct {
onCDemoStop []func(*dota.CDemoStop) error
onCDemoFileHeader []func(*dota.CDemoFileHeader) error
onCDemoFileInfo []func(*dota.CDemoFileInfo) error
onCDemoSyncTick []func(*dota.CDemoSyncTick) error
onCDemoSendTables []func(*dota.CDemoSendTables) error
onCDemoClassInfo []func(*dota.CDemoClassInfo) error
onCDemoStringTables []func(*dota.CDemoStringTables) error
onCDemoPacket []func(*dota.CDemoPacket) error
onCDemoSignonPacket []func(*dota.CDemoPacket) error
onCDemoConsoleCmd []func(*dota.CDemoConsoleCmd) error
onCDemoCustomData []func(*dota.CDemoCustomData) error
onCDemoCustomDataCallbacks []func(*dota.CDemoCustomDataCallbacks) error
onCDemoUserCmd []func(*dota.CDemoUserCmd) error
onCDemoFullPacket []func(*dota.CDemoFullPacket) error
onCDemoSaveGame []func(*dota.CDemoSaveGame) error
onCDemoSpawnGroups []func(*dota.CDemoSpawnGroups) error
onCDemoAnimationData []func(*dota.CDemoAnimationData) error
onCDemoAnimationHeader []func(*dota.CDemoAnimationHeader) error
onCNETMsg_NOP []func(*dota.CNETMsg_NOP) error
onCNETMsg_SplitScreenUser []func(*dota.CNETMsg_SplitScreenUser) error
onCNETMsg_Tick []func(*dota.CNETMsg_Tick) error
onCNETMsg_StringCmd []func(*dota.CNETMsg_StringCmd) error
onCNETMsg_SetConVar []func(*dota.CNETMsg_SetConVar) error
onCNETMsg_SignonState []func(*dota.CNETMsg_SignonState) error
onCNETMsg_SpawnGroup_Load []func(*dota.CNETMsg_SpawnGroup_Load) error
onCNETMsg_SpawnGroup_ManifestUpdate []func(*dota.CNETMsg_SpawnGroup_ManifestUpdate) error
onCNETMsg_SpawnGroup_SetCreationTick []func(*dota.CNETMsg_SpawnGroup_SetCreationTick) error
onCNETMsg_SpawnGroup_Unload []func(*dota.CNETMsg_SpawnGroup_Unload) error
onCNETMsg_SpawnGroup_LoadCompleted []func(*dota.CNETMsg_SpawnGroup_LoadCompleted) error
onCNETMsg_DebugOverlay []func(*dota.CNETMsg_DebugOverlay) error
onCSVCMsg_ServerInfo []func(*dota.CSVCMsg_ServerInfo) error
onCSVCMsg_FlattenedSerializer []func(*dota.CSVCMsg_FlattenedSerializer) error
onCSVCMsg_ClassInfo []func(*dota.CSVCMsg_ClassInfo) error
onCSVCMsg_SetPause []func(*dota.CSVCMsg_SetPause) error
onCSVCMsg_CreateStringTable []func(*dota.CSVCMsg_CreateStringTable) error
onCSVCMsg_UpdateStringTable []func(*dota.CSVCMsg_UpdateStringTable) error
onCSVCMsg_VoiceInit []func(*dota.CSVCMsg_VoiceInit) error
onCSVCMsg_VoiceData []func(*dota.CSVCMsg_VoiceData) error
onCSVCMsg_Print []func(*dota.CSVCMsg_Print) error
onCSVCMsg_Sounds []func(*dota.CSVCMsg_Sounds) error
onCSVCMsg_SetView []func(*dota.CSVCMsg_SetView) error
onCSVCMsg_ClearAllStringTables []func(*dota.CSVCMsg_ClearAllStringTables) error
onCSVCMsg_CmdKeyValues []func(*dota.CSVCMsg_CmdKeyValues) error
onCSVCMsg_BSPDecal []func(*dota.CSVCMsg_BSPDecal) error
onCSVCMsg_SplitScreen []func(*dota.CSVCMsg_SplitScreen) error
onCSVCMsg_PacketEntities []func(*dota.CSVCMsg_PacketEntities) error
onCSVCMsg_Prefetch []func(*dota.CSVCMsg_Prefetch) error
onCSVCMsg_Menu []func(*dota.CSVCMsg_Menu) error
onCSVCMsg_GetCvarValue []func(*dota.CSVCMsg_GetCvarValue) error
onCSVCMsg_StopSound []func(*dota.CSVCMsg_StopSound) error
onCSVCMsg_PeerList []func(*dota.CSVCMsg_PeerList) error
onCSVCMsg_PacketReliable []func(*dota.CSVCMsg_PacketReliable) error
onCSVCMsg_HLTVStatus []func(*dota.CSVCMsg_HLTVStatus) error
onCSVCMsg_ServerSteamID []func(*dota.CSVCMsg_ServerSteamID) error
onCSVCMsg_FullFrameSplit []func(*dota.CSVCMsg_FullFrameSplit) error
onCSVCMsg_RconServerDetails []func(*dota.CSVCMsg_RconServerDetails) error
onCSVCMsg_UserMessage []func(*dota.CSVCMsg_UserMessage) error
onCSVCMsg_Broadcast_Command []func(*dota.CSVCMsg_Broadcast_Command) error
onCSVCMsg_HltvFixupOperatorStatus []func(*dota.CSVCMsg_HltvFixupOperatorStatus) error
onCUserMessageAchievementEvent []func(*dota.CUserMessageAchievementEvent) error
onCUserMessageCloseCaption []func(*dota.CUserMessageCloseCaption) error
onCUserMessageCloseCaptionDirect []func(*dota.CUserMessageCloseCaptionDirect) error
onCUserMessageCurrentTimescale []func(*dota.CUserMessageCurrentTimescale) error
onCUserMessageDesiredTimescale []func(*dota.CUserMessageDesiredTimescale) error
onCUserMessageFade []func(*dota.CUserMessageFade) error
onCUserMessageGameTitle []func(*dota.CUserMessageGameTitle) error
onCUserMessageHudMsg []func(*dota.CUserMessageHudMsg) error
onCUserMessageHudText []func(*dota.CUserMessageHudText) error
onCUserMessageColoredText []func(*dota.CUserMessageColoredText) error
onCUserMessageRequestState []func(*dota.CUserMessageRequestState) error
onCUserMessageResetHUD []func(*dota.CUserMessageResetHUD) error
onCUserMessageRumble []func(*dota.CUserMessageRumble) error
onCUserMessageSayText []func(*dota.CUserMessageSayText) error
onCUserMessageSayText2 []func(*dota.CUserMessageSayText2) error
onCUserMessageSayTextChannel []func(*dota.CUserMessageSayTextChannel) error
onCUserMessageShake []func(*dota.CUserMessageShake) error
onCUserMessageShakeDir []func(*dota.CUserMessageShakeDir) error
onCUserMessageWaterShake []func(*dota.CUserMessageWaterShake) error
onCUserMessageTextMsg []func(*dota.CUserMessageTextMsg) error
onCUserMessageScreenTilt []func(*dota.CUserMessageScreenTilt) error
onCUserMessageVoiceMask []func(*dota.CUserMessageVoiceMask) error
onCUserMessageSendAudio []func(*dota.CUserMessageSendAudio) error
onCUserMessageItemPickup []func(*dota.CUserMessageItemPickup) error
onCUserMessageAmmoDenied []func(*dota.CUserMessageAmmoDenied) error
onCUserMessageShowMenu []func(*dota.CUserMessageShowMenu) error
onCUserMessageCreditsMsg []func(*dota.CUserMessageCreditsMsg) error
onCEntityMessagePlayJingle []func(*dota.CEntityMessagePlayJingle) error
onCEntityMessageScreenOverlay []func(*dota.CEntityMessageScreenOverlay) error
onCEntityMessageRemoveAllDecals []func(*dota.CEntityMessageRemoveAllDecals) error
onCEntityMessagePropagateForce []func(*dota.CEntityMessagePropagateForce) error
onCEntityMessageDoSpark []func(*dota.CEntityMessageDoSpark) error
onCEntityMessageFixAngle []func(*dota.CEntityMessageFixAngle) error
onCUserMessageCloseCaptionPlaceholder []func(*dota.CUserMessageCloseCaptionPlaceholder) error
onCUserMessageCameraTransition []func(*dota.CUserMessageCameraTransition) error
onCUserMessageAudioParameter []func(*dota.CUserMessageAudioParameter) error
onCUserMessageHapticsManagerPulse []func(*dota.CUserMessageHapticsManagerPulse) error
onCUserMessageHapticsManagerEffect []func(*dota.CUserMessageHapticsManagerEffect) error
onCUserMessageUpdateCssClasses []func(*dota.CUserMessageUpdateCssClasses) error
onCUserMessageServerFrameTime []func(*dota.CUserMessageServerFrameTime) error
onCUserMessageLagCompensationError []func(*dota.CUserMessageLagCompensationError) error
onCUserMessageRequestDllStatus []func(*dota.CUserMessageRequestDllStatus) error
onCUserMessageRequestUtilAction []func(*dota.CUserMessageRequestUtilAction) error
onCUserMessageRequestInventory []func(*dota.CUserMessageRequestInventory) error
onCUserMessageRequestDiagnostic []func(*dota.CUserMessageRequestDiagnostic) error
onCMsgVDebugGameSessionIDEvent []func(*dota.CMsgVDebugGameSessionIDEvent) error
onCMsgPlaceDecalEvent []func(*dota.CMsgPlaceDecalEvent) error
onCMsgClearWorldDecalsEvent []func(*dota.CMsgClearWorldDecalsEvent) error
onCMsgClearEntityDecalsEvent []func(*dota.CMsgClearEntityDecalsEvent) error
onCMsgClearDecalsForSkeletonInstanceEvent []func(*dota.CMsgClearDecalsForSkeletonInstanceEvent) error
onCMsgSource1LegacyGameEventList []func(*dota.CMsgSource1LegacyGameEventList) error
onCMsgSource1LegacyListenEvents []func(*dota.CMsgSource1LegacyListenEvents) error
onCMsgSource1LegacyGameEvent []func(*dota.CMsgSource1LegacyGameEvent) error
onCMsgSosStartSoundEvent []func(*dota.CMsgSosStartSoundEvent) error
onCMsgSosStopSoundEvent []func(*dota.CMsgSosStopSoundEvent) error
onCMsgSosSetSoundEventParams []func(*dota.CMsgSosSetSoundEventParams) error
onCMsgSosSetLibraryStackFields []func(*dota.CMsgSosSetLibraryStackFields) error
onCMsgSosStopSoundEventHash []func(*dota.CMsgSosStopSoundEventHash) error
onCDOTAUserMsg_AIDebugLine []func(*dota.CDOTAUserMsg_AIDebugLine) error
onCDOTAUserMsg_ChatEvent []func(*dota.CDOTAUserMsg_ChatEvent) error
onCDOTAUserMsg_CombatHeroPositions []func(*dota.CDOTAUserMsg_CombatHeroPositions) error
onCDOTAUserMsg_CombatLogBulkData []func(*dota.CDOTAUserMsg_CombatLogBulkData) error
onCDOTAUserMsg_CreateLinearProjectile []func(*dota.CDOTAUserMsg_CreateLinearProjectile) error
onCDOTAUserMsg_DestroyLinearProjectile []func(*dota.CDOTAUserMsg_DestroyLinearProjectile) error
onCDOTAUserMsg_DodgeTrackingProjectiles []func(*dota.CDOTAUserMsg_DodgeTrackingProjectiles) error
onCDOTAUserMsg_GlobalLightColor []func(*dota.CDOTAUserMsg_GlobalLightColor) error
onCDOTAUserMsg_GlobalLightDirection []func(*dota.CDOTAUserMsg_GlobalLightDirection) error
onCDOTAUserMsg_InvalidCommand []func(*dota.CDOTAUserMsg_InvalidCommand) error
onCDOTAUserMsg_LocationPing []func(*dota.CDOTAUserMsg_LocationPing) error
onCDOTAUserMsg_MapLine []func(*dota.CDOTAUserMsg_MapLine) error
onCDOTAUserMsg_MiniKillCamInfo []func(*dota.CDOTAUserMsg_MiniKillCamInfo) error
onCDOTAUserMsg_MinimapDebugPoint []func(*dota.CDOTAUserMsg_MinimapDebugPoint) error
onCDOTAUserMsg_MinimapEvent []func(*dota.CDOTAUserMsg_MinimapEvent) error
onCDOTAUserMsg_NevermoreRequiem []func(*dota.CDOTAUserMsg_NevermoreRequiem) error
onCDOTAUserMsg_OverheadEvent []func(*dota.CDOTAUserMsg_OverheadEvent) error
onCDOTAUserMsg_SetNextAutobuyItem []func(*dota.CDOTAUserMsg_SetNextAutobuyItem) error
onCDOTAUserMsg_SharedCooldown []func(*dota.CDOTAUserMsg_SharedCooldown) error
onCDOTAUserMsg_SpectatorPlayerClick []func(*dota.CDOTAUserMsg_SpectatorPlayerClick) error
onCDOTAUserMsg_TutorialTipInfo []func(*dota.CDOTAUserMsg_TutorialTipInfo) error
onCDOTAUserMsg_UnitEvent []func(*dota.CDOTAUserMsg_UnitEvent) error
onCDOTAUserMsg_BotChat []func(*dota.CDOTAUserMsg_BotChat) error
onCDOTAUserMsg_HudError []func(*dota.CDOTAUserMsg_HudError) error
onCDOTAUserMsg_ItemPurchased []func(*dota.CDOTAUserMsg_ItemPurchased) error
onCDOTAUserMsg_Ping []func(*dota.CDOTAUserMsg_Ping) error
onCDOTAUserMsg_ItemFound []func(*dota.CDOTAUserMsg_ItemFound) error
onCDOTAUserMsg_SwapVerify []func(*dota.CDOTAUserMsg_SwapVerify) error
onCDOTAUserMsg_WorldLine []func(*dota.CDOTAUserMsg_WorldLine) error
onCMsgGCToClientTournamentItemDrop []func(*dota.CMsgGCToClientTournamentItemDrop) error
onCDOTAUserMsg_ItemAlert []func(*dota.CDOTAUserMsg_ItemAlert) error
onCDOTAUserMsg_HalloweenDrops []func(*dota.CDOTAUserMsg_HalloweenDrops) error
onCDOTAUserMsg_ChatWheel []func(*dota.CDOTAUserMsg_ChatWheel) error
onCDOTAUserMsg_ReceivedXmasGift []func(*dota.CDOTAUserMsg_ReceivedXmasGift) error
onCDOTAUserMsg_UpdateSharedContent []func(*dota.CDOTAUserMsg_UpdateSharedContent) error
onCDOTAUserMsg_TutorialRequestExp []func(*dota.CDOTAUserMsg_TutorialRequestExp) error
onCDOTAUserMsg_TutorialPingMinimap []func(*dota.CDOTAUserMsg_TutorialPingMinimap) error
onCDOTAUserMsg_GamerulesStateChanged []func(*dota.CDOTAUserMsg_GamerulesStateChanged) error
onCDOTAUserMsg_ShowSurvey []func(*dota.CDOTAUserMsg_ShowSurvey) error
onCDOTAUserMsg_TutorialFade []func(*dota.CDOTAUserMsg_TutorialFade) error
onCDOTAUserMsg_AddQuestLogEntry []func(*dota.CDOTAUserMsg_AddQuestLogEntry) error
onCDOTAUserMsg_SendStatPopup []func(*dota.CDOTAUserMsg_SendStatPopup) error
onCDOTAUserMsg_TutorialFinish []func(*dota.CDOTAUserMsg_TutorialFinish) error
onCDOTAUserMsg_SendRoshanPopup []func(*dota.CDOTAUserMsg_SendRoshanPopup) error
onCDOTAUserMsg_SendGenericToolTip []func(*dota.CDOTAUserMsg_SendGenericToolTip) error
onCDOTAUserMsg_SendFinalGold []func(*dota.CDOTAUserMsg_SendFinalGold) error
onCDOTAUserMsg_CustomMsg []func(*dota.CDOTAUserMsg_CustomMsg) error
onCDOTAUserMsg_CoachHUDPing []func(*dota.CDOTAUserMsg_CoachHUDPing) error
onCDOTAUserMsg_ClientLoadGridNav []func(*dota.CDOTAUserMsg_ClientLoadGridNav) error
onCDOTAUserMsg_TE_Projectile []func(*dota.CDOTAUserMsg_TE_Projectile) error
onCDOTAUserMsg_TE_ProjectileLoc []func(*dota.CDOTAUserMsg_TE_ProjectileLoc) error
onCDOTAUserMsg_TE_DotaBloodImpact []func(*dota.CDOTAUserMsg_TE_DotaBloodImpact) error
onCDOTAUserMsg_TE_UnitAnimation []func(*dota.CDOTAUserMsg_TE_UnitAnimation) error
onCDOTAUserMsg_TE_UnitAnimationEnd []func(*dota.CDOTAUserMsg_TE_UnitAnimationEnd) error
onCDOTAUserMsg_AbilityPing []func(*dota.CDOTAUserMsg_AbilityPing) error
onCDOTAUserMsg_ShowGenericPopup []func(*dota.CDOTAUserMsg_ShowGenericPopup) error
onCDOTAUserMsg_VoteStart []func(*dota.CDOTAUserMsg_VoteStart) error
onCDOTAUserMsg_VoteUpdate []func(*dota.CDOTAUserMsg_VoteUpdate) error
onCDOTAUserMsg_VoteEnd []func(*dota.CDOTAUserMsg_VoteEnd) error
onCDOTAUserMsg_BoosterState []func(*dota.CDOTAUserMsg_BoosterState) error
onCDOTAUserMsg_WillPurchaseAlert []func(*dota.CDOTAUserMsg_WillPurchaseAlert) error
onCDOTAUserMsg_TutorialMinimapPosition []func(*dota.CDOTAUserMsg_TutorialMinimapPosition) error
onCDOTAUserMsg_PlayerMMR []func(*dota.CDOTAUserMsg_PlayerMMR) error
onCDOTAUserMsg_AbilitySteal []func(*dota.CDOTAUserMsg_AbilitySteal) error
onCDOTAUserMsg_CourierKilledAlert []func(*dota.CDOTAUserMsg_CourierKilledAlert) error
onCDOTAUserMsg_EnemyItemAlert []func(*dota.CDOTAUserMsg_EnemyItemAlert) error
onCDOTAUserMsg_StatsMatchDetails []func(*dota.CDOTAUserMsg_StatsMatchDetails) error
onCDOTAUserMsg_MiniTaunt []func(*dota.CDOTAUserMsg_MiniTaunt) error
onCDOTAUserMsg_BuyBackStateAlert []func(*dota.CDOTAUserMsg_BuyBackStateAlert) error
onCDOTAUserMsg_SpeechBubble []func(*dota.CDOTAUserMsg_SpeechBubble) error
onCDOTAUserMsg_CustomHeaderMessage []func(*dota.CDOTAUserMsg_CustomHeaderMessage) error
onCDOTAUserMsg_QuickBuyAlert []func(*dota.CDOTAUserMsg_QuickBuyAlert) error
onCDOTAUserMsg_StatsHeroMinuteDetails []func(*dota.CDOTAUserMsg_StatsHeroMinuteDetails) error
onCDOTAUserMsg_ModifierAlert []func(*dota.CDOTAUserMsg_ModifierAlert) error
onCDOTAUserMsg_HPManaAlert []func(*dota.CDOTAUserMsg_HPManaAlert) error
onCDOTAUserMsg_GlyphAlert []func(*dota.CDOTAUserMsg_GlyphAlert) error
onCDOTAUserMsg_BeastChat []func(*dota.CDOTAUserMsg_BeastChat) error
onCDOTAUserMsg_SpectatorPlayerUnitOrders []func(*dota.CDOTAUserMsg_SpectatorPlayerUnitOrders) error
onCDOTAUserMsg_CustomHudElement_Create []func(*dota.CDOTAUserMsg_CustomHudElement_Create) error
onCDOTAUserMsg_CustomHudElement_Modify []func(*dota.CDOTAUserMsg_CustomHudElement_Modify) error
onCDOTAUserMsg_CustomHudElement_Destroy []func(*dota.CDOTAUserMsg_CustomHudElement_Destroy) error
onCDOTAUserMsg_CompendiumState []func(*dota.CDOTAUserMsg_CompendiumState) error
onCDOTAUserMsg_ProjectionAbility []func(*dota.CDOTAUserMsg_ProjectionAbility) error
onCDOTAUserMsg_ProjectionEvent []func(*dota.CDOTAUserMsg_ProjectionEvent) error
onCMsgDOTACombatLogEntry []func(*dota.CMsgDOTACombatLogEntry) error
onCDOTAUserMsg_XPAlert []func(*dota.CDOTAUserMsg_XPAlert) error
onCDOTAUserMsg_UpdateQuestProgress []func(*dota.CDOTAUserMsg_UpdateQuestProgress) error
onCDOTAMatchMetadataFile []func(*dota.CDOTAMatchMetadataFile) error
onCDOTAUserMsg_QuestStatus []func(*dota.CDOTAUserMsg_QuestStatus) error
onCDOTAUserMsg_SuggestHeroPick []func(*dota.CDOTAUserMsg_SuggestHeroPick) error
onCDOTAUserMsg_SuggestHeroRole []func(*dota.CDOTAUserMsg_SuggestHeroRole) error
onCDOTAUserMsg_KillcamDamageTaken []func(*dota.CDOTAUserMsg_KillcamDamageTaken) error
onCDOTAUserMsg_SelectPenaltyGold []func(*dota.CDOTAUserMsg_SelectPenaltyGold) error
onCDOTAUserMsg_RollDiceResult []func(*dota.CDOTAUserMsg_RollDiceResult) error
onCDOTAUserMsg_FlipCoinResult []func(*dota.CDOTAUserMsg_FlipCoinResult) error
onCDOTAUserMsg_SendRoshanSpectatorPhase []func(*dota.CDOTAUserMsg_SendRoshanSpectatorPhase) error
onCDOTAUserMsg_ChatWheelCooldown []func(*dota.CDOTAUserMsg_ChatWheelCooldown) error
onCDOTAUserMsg_DismissAllStatPopups []func(*dota.CDOTAUserMsg_DismissAllStatPopups) error
onCDOTAUserMsg_TE_DestroyProjectile []func(*dota.CDOTAUserMsg_TE_DestroyProjectile) error
onCDOTAUserMsg_HeroRelicProgress []func(*dota.CDOTAUserMsg_HeroRelicProgress) error
onCDOTAUserMsg_AbilityDraftRequestAbility []func(*dota.CDOTAUserMsg_AbilityDraftRequestAbility) error
onCDOTAUserMsg_ItemSold []func(*dota.CDOTAUserMsg_ItemSold) error
onCDOTAUserMsg_DamageReport []func(*dota.CDOTAUserMsg_DamageReport) error
onCDOTAUserMsg_SalutePlayer []func(*dota.CDOTAUserMsg_SalutePlayer) error
onCDOTAUserMsg_TipAlert []func(*dota.CDOTAUserMsg_TipAlert) error
onCDOTAUserMsg_ReplaceQueryUnit []func(*dota.CDOTAUserMsg_ReplaceQueryUnit) error
onCDOTAUserMsg_EmptyTeleportAlert []func(*dota.CDOTAUserMsg_EmptyTeleportAlert) error
onCDOTAUserMsg_MarsArenaOfBloodAttack []func(*dota.CDOTAUserMsg_MarsArenaOfBloodAttack) error
onCDOTAUserMsg_ESArcanaCombo []func(*dota.CDOTAUserMsg_ESArcanaCombo) error
onCDOTAUserMsg_ESArcanaComboSummary []func(*dota.CDOTAUserMsg_ESArcanaComboSummary) error
onCDOTAUserMsg_HighFiveLeftHanging []func(*dota.CDOTAUserMsg_HighFiveLeftHanging) error
onCDOTAUserMsg_HighFiveCompleted []func(*dota.CDOTAUserMsg_HighFiveCompleted) error
onCDOTAUserMsg_ShovelUnearth []func(*dota.CDOTAUserMsg_ShovelUnearth) error
onCDOTAUserMsg_RadarAlert []func(*dota.CDOTAUserMsg_RadarAlert) error
onCDOTAUserMsg_AllStarEvent []func(*dota.CDOTAUserMsg_AllStarEvent) error
onCDOTAUserMsg_TalentTreeAlert []func(*dota.CDOTAUserMsg_TalentTreeAlert) error
onCDOTAUserMsg_QueuedOrderRemoved []func(*dota.CDOTAUserMsg_QueuedOrderRemoved) error
onCDOTAUserMsg_DebugChallenge []func(*dota.CDOTAUserMsg_DebugChallenge) error
onCDOTAUserMsg_OMArcanaCombo []func(*dota.CDOTAUserMsg_OMArcanaCombo) error
onCDOTAUserMsg_FoundNeutralItem []func(*dota.CDOTAUserMsg_FoundNeutralItem) error
onCDOTAUserMsg_OutpostCaptured []func(*dota.CDOTAUserMsg_OutpostCaptured) error
onCDOTAUserMsg_OutpostGrantedXP []func(*dota.CDOTAUserMsg_OutpostGrantedXP) error
onCDOTAUserMsg_MoveCameraToUnit []func(*dota.CDOTAUserMsg_MoveCameraToUnit) error
onCDOTAUserMsg_PauseMinigameData []func(*dota.CDOTAUserMsg_PauseMinigameData) error
onCDOTAUserMsg_VersusScene_PlayerBehavior []func(*dota.CDOTAUserMsg_VersusScene_PlayerBehavior) error
onCDOTAUserMsg_QoP_ArcanaSummary []func(*dota.CDOTAUserMsg_QoP_ArcanaSummary) error
onCDOTAUserMsg_HotPotato_Created []func(*dota.CDOTAUserMsg_HotPotato_Created) error
onCDOTAUserMsg_HotPotato_Exploded []func(*dota.CDOTAUserMsg_HotPotato_Exploded) error
onCDOTAUserMsg_WK_Arcana_Progress []func(*dota.CDOTAUserMsg_WK_Arcana_Progress) error
onCDOTAUserMsg_GuildChallenge_Progress []func(*dota.CDOTAUserMsg_GuildChallenge_Progress) error
onCDOTAUserMsg_WRArcanaProgress []func(*dota.CDOTAUserMsg_WRArcanaProgress) error
onCDOTAUserMsg_WRArcanaSummary []func(*dota.CDOTAUserMsg_WRArcanaSummary) error
onCDOTAUserMsg_EmptyItemSlotAlert []func(*dota.CDOTAUserMsg_EmptyItemSlotAlert) error
onCDOTAUserMsg_AghsStatusAlert []func(*dota.CDOTAUserMsg_AghsStatusAlert) error
onCDOTAUserMsg_PingConfirmation []func(*dota.CDOTAUserMsg_PingConfirmation) error
onCDOTAUserMsg_MutedPlayers []func(*dota.CDOTAUserMsg_MutedPlayers) error
onCDOTAUserMsg_ContextualTip []func(*dota.CDOTAUserMsg_ContextualTip) error
onCDOTAUserMsg_ChatMessage []func(*dota.CDOTAUserMsg_ChatMessage) error
onCDOTAUserMsg_NeutralCampAlert []func(*dota.CDOTAUserMsg_NeutralCampAlert) error
onCDOTAUserMsg_RockPaperScissorsStarted []func(*dota.CDOTAUserMsg_RockPaperScissorsStarted) error
onCDOTAUserMsg_RockPaperScissorsFinished []func(*dota.CDOTAUserMsg_RockPaperScissorsFinished) error
onCDOTAUserMsg_DuelOpponentKilled []func(*dota.CDOTAUserMsg_DuelOpponentKilled) error
onCDOTAUserMsg_DuelAccepted []func(*dota.CDOTAUserMsg_DuelAccepted) error
onCDOTAUserMsg_DuelRequested []func(*dota.CDOTAUserMsg_DuelRequested) error
onCDOTAUserMsg_MuertaReleaseEvent_AssignedTargetKilled []func(*dota.CDOTAUserMsg_MuertaReleaseEvent_AssignedTargetKilled) error
onCDOTAUserMsg_PlayerDraftSuggestPick []func(*dota.CDOTAUserMsg_PlayerDraftSuggestPick) error
onCDOTAUserMsg_PlayerDraftPick []func(*dota.CDOTAUserMsg_PlayerDraftPick) error
onCDOTAUserMsg_UpdateLinearProjectileCPData []func(*dota.CDOTAUserMsg_UpdateLinearProjectileCPData) error
onCDOTAUserMsg_GiftPlayer []func(*dota.CDOTAUserMsg_GiftPlayer) error
onCDOTAUserMsg_FacetPing []func(*dota.CDOTAUserMsg_FacetPing) error
onCDOTAUserMsg_InnatePing []func(*dota.CDOTAUserMsg_InnatePing) error
pb *proto.Buffer
}
func newCallbacks() *Callbacks {
return &Callbacks{
pb: &proto.Buffer{},
}
}
// OnCDemoStop registers a callback EDemoCommands_DEM_Stop
func (c *Callbacks) OnCDemoStop(fn func(*dota.CDemoStop) error) {
c.onCDemoStop = append(c.onCDemoStop, fn)
}
// OnCDemoFileHeader registers a callback EDemoCommands_DEM_FileHeader
func (c *Callbacks) OnCDemoFileHeader(fn func(*dota.CDemoFileHeader) error) {
c.onCDemoFileHeader = append(c.onCDemoFileHeader, fn)
}
// OnCDemoFileInfo registers a callback EDemoCommands_DEM_FileInfo
func (c *Callbacks) OnCDemoFileInfo(fn func(*dota.CDemoFileInfo) error) {
c.onCDemoFileInfo = append(c.onCDemoFileInfo, fn)
}
// OnCDemoSyncTick registers a callback EDemoCommands_DEM_SyncTick
func (c *Callbacks) OnCDemoSyncTick(fn func(*dota.CDemoSyncTick) error) {
c.onCDemoSyncTick = append(c.onCDemoSyncTick, fn)
}
// OnCDemoSendTables registers a callback EDemoCommands_DEM_SendTables
func (c *Callbacks) OnCDemoSendTables(fn func(*dota.CDemoSendTables) error) {
c.onCDemoSendTables = append(c.onCDemoSendTables, fn)
}
// OnCDemoClassInfo registers a callback EDemoCommands_DEM_ClassInfo
func (c *Callbacks) OnCDemoClassInfo(fn func(*dota.CDemoClassInfo) error) {
c.onCDemoClassInfo = append(c.onCDemoClassInfo, fn)
}
// OnCDemoStringTables registers a callback EDemoCommands_DEM_StringTables
func (c *Callbacks) OnCDemoStringTables(fn func(*dota.CDemoStringTables) error) {
c.onCDemoStringTables = append(c.onCDemoStringTables, fn)
}
// OnCDemoPacket registers a callback EDemoCommands_DEM_Packet
func (c *Callbacks) OnCDemoPacket(fn func(*dota.CDemoPacket) error) {
c.onCDemoPacket = append(c.onCDemoPacket, fn)
}
// OnCDemoSignonPacket registers a callback EDemoCommands_DEM_SignonPacket
func (c *Callbacks) OnCDemoSignonPacket(fn func(*dota.CDemoPacket) error) {
c.onCDemoSignonPacket = append(c.onCDemoSignonPacket, fn)
}
// OnCDemoConsoleCmd registers a callback EDemoCommands_DEM_ConsoleCmd
func (c *Callbacks) OnCDemoConsoleCmd(fn func(*dota.CDemoConsoleCmd) error) {
c.onCDemoConsoleCmd = append(c.onCDemoConsoleCmd, fn)
}
// OnCDemoCustomData registers a callback EDemoCommands_DEM_CustomData
func (c *Callbacks) OnCDemoCustomData(fn func(*dota.CDemoCustomData) error) {
c.onCDemoCustomData = append(c.onCDemoCustomData, fn)
}
// OnCDemoCustomDataCallbacks registers a callback EDemoCommands_DEM_CustomDataCallbacks
func (c *Callbacks) OnCDemoCustomDataCallbacks(fn func(*dota.CDemoCustomDataCallbacks) error) {
c.onCDemoCustomDataCallbacks = append(c.onCDemoCustomDataCallbacks, fn)
}
// OnCDemoUserCmd registers a callback EDemoCommands_DEM_UserCmd
func (c *Callbacks) OnCDemoUserCmd(fn func(*dota.CDemoUserCmd) error) {
c.onCDemoUserCmd = append(c.onCDemoUserCmd, fn)
}
// OnCDemoFullPacket registers a callback EDemoCommands_DEM_FullPacket
func (c *Callbacks) OnCDemoFullPacket(fn func(*dota.CDemoFullPacket) error) {
c.onCDemoFullPacket = append(c.onCDemoFullPacket, fn)
}
// OnCDemoSaveGame registers a callback EDemoCommands_DEM_SaveGame
func (c *Callbacks) OnCDemoSaveGame(fn func(*dota.CDemoSaveGame) error) {
c.onCDemoSaveGame = append(c.onCDemoSaveGame, fn)
}
// OnCDemoSpawnGroups registers a callback EDemoCommands_DEM_SpawnGroups
func (c *Callbacks) OnCDemoSpawnGroups(fn func(*dota.CDemoSpawnGroups) error) {
c.onCDemoSpawnGroups = append(c.onCDemoSpawnGroups, fn)
}
// OnCDemoAnimationData registers a callback EDemoCommands_DEM_AnimationData
func (c *Callbacks) OnCDemoAnimationData(fn func(*dota.CDemoAnimationData) error) {
c.onCDemoAnimationData = append(c.onCDemoAnimationData, fn)
}
// OnCDemoAnimationHeader registers a callback EDemoCommands_DEM_AnimationHeader
func (c *Callbacks) OnCDemoAnimationHeader(fn func(*dota.CDemoAnimationHeader) error) {
c.onCDemoAnimationHeader = append(c.onCDemoAnimationHeader, fn)
}
// OnCNETMsg_NOP registers a callback for NET_Messages_net_NOP
func (c *Callbacks) OnCNETMsg_NOP(fn func(*dota.CNETMsg_NOP) error) {
c.onCNETMsg_NOP = append(c.onCNETMsg_NOP, fn)
}
// OnCNETMsg_SplitScreenUser registers a callback for NET_Messages_net_SplitScreenUser
func (c *Callbacks) OnCNETMsg_SplitScreenUser(fn func(*dota.CNETMsg_SplitScreenUser) error) {
c.onCNETMsg_SplitScreenUser = append(c.onCNETMsg_SplitScreenUser, fn)
}
// OnCNETMsg_Tick registers a callback for NET_Messages_net_Tick
func (c *Callbacks) OnCNETMsg_Tick(fn func(*dota.CNETMsg_Tick) error) {
c.onCNETMsg_Tick = append(c.onCNETMsg_Tick, fn)
}
// OnCNETMsg_StringCmd registers a callback for NET_Messages_net_StringCmd
func (c *Callbacks) OnCNETMsg_StringCmd(fn func(*dota.CNETMsg_StringCmd) error) {
c.onCNETMsg_StringCmd = append(c.onCNETMsg_StringCmd, fn)
}
// OnCNETMsg_SetConVar registers a callback for NET_Messages_net_SetConVar
func (c *Callbacks) OnCNETMsg_SetConVar(fn func(*dota.CNETMsg_SetConVar) error) {
c.onCNETMsg_SetConVar = append(c.onCNETMsg_SetConVar, fn)
}
// OnCNETMsg_SignonState registers a callback for NET_Messages_net_SignonState
func (c *Callbacks) OnCNETMsg_SignonState(fn func(*dota.CNETMsg_SignonState) error) {
c.onCNETMsg_SignonState = append(c.onCNETMsg_SignonState, fn)
}
// OnCNETMsg_SpawnGroup_Load registers a callback for NET_Messages_net_SpawnGroup_Load
func (c *Callbacks) OnCNETMsg_SpawnGroup_Load(fn func(*dota.CNETMsg_SpawnGroup_Load) error) {
c.onCNETMsg_SpawnGroup_Load = append(c.onCNETMsg_SpawnGroup_Load, fn)
}
// OnCNETMsg_SpawnGroup_ManifestUpdate registers a callback for NET_Messages_net_SpawnGroup_ManifestUpdate
func (c *Callbacks) OnCNETMsg_SpawnGroup_ManifestUpdate(fn func(*dota.CNETMsg_SpawnGroup_ManifestUpdate) error) {
c.onCNETMsg_SpawnGroup_ManifestUpdate = append(c.onCNETMsg_SpawnGroup_ManifestUpdate, fn)
}
// OnCNETMsg_SpawnGroup_SetCreationTick registers a callback for NET_Messages_net_SpawnGroup_SetCreationTick
func (c *Callbacks) OnCNETMsg_SpawnGroup_SetCreationTick(fn func(*dota.CNETMsg_SpawnGroup_SetCreationTick) error) {
c.onCNETMsg_SpawnGroup_SetCreationTick = append(c.onCNETMsg_SpawnGroup_SetCreationTick, fn)
}
// OnCNETMsg_SpawnGroup_Unload registers a callback for NET_Messages_net_SpawnGroup_Unload
func (c *Callbacks) OnCNETMsg_SpawnGroup_Unload(fn func(*dota.CNETMsg_SpawnGroup_Unload) error) {
c.onCNETMsg_SpawnGroup_Unload = append(c.onCNETMsg_SpawnGroup_Unload, fn)
}
// OnCNETMsg_SpawnGroup_LoadCompleted registers a callback for NET_Messages_net_SpawnGroup_LoadCompleted
func (c *Callbacks) OnCNETMsg_SpawnGroup_LoadCompleted(fn func(*dota.CNETMsg_SpawnGroup_LoadCompleted) error) {
c.onCNETMsg_SpawnGroup_LoadCompleted = append(c.onCNETMsg_SpawnGroup_LoadCompleted, fn)
}
// OnCNETMsg_DebugOverlay registers a callback for NET_Messages_net_DebugOverlay
func (c *Callbacks) OnCNETMsg_DebugOverlay(fn func(*dota.CNETMsg_DebugOverlay) error) {
c.onCNETMsg_DebugOverlay = append(c.onCNETMsg_DebugOverlay, fn)
}
// OnCSVCMsg_ServerInfo registers a callback for SVC_Messages_svc_ServerInfo
func (c *Callbacks) OnCSVCMsg_ServerInfo(fn func(*dota.CSVCMsg_ServerInfo) error) {
c.onCSVCMsg_ServerInfo = append(c.onCSVCMsg_ServerInfo, fn)
}
// OnCSVCMsg_FlattenedSerializer registers a callback for SVC_Messages_svc_FlattenedSerializer
func (c *Callbacks) OnCSVCMsg_FlattenedSerializer(fn func(*dota.CSVCMsg_FlattenedSerializer) error) {
c.onCSVCMsg_FlattenedSerializer = append(c.onCSVCMsg_FlattenedSerializer, fn)
}
// OnCSVCMsg_ClassInfo registers a callback for SVC_Messages_svc_ClassInfo
func (c *Callbacks) OnCSVCMsg_ClassInfo(fn func(*dota.CSVCMsg_ClassInfo) error) {
c.onCSVCMsg_ClassInfo = append(c.onCSVCMsg_ClassInfo, fn)
}
// OnCSVCMsg_SetPause registers a callback for SVC_Messages_svc_SetPause
func (c *Callbacks) OnCSVCMsg_SetPause(fn func(*dota.CSVCMsg_SetPause) error) {
c.onCSVCMsg_SetPause = append(c.onCSVCMsg_SetPause, fn)
}
// OnCSVCMsg_CreateStringTable registers a callback for SVC_Messages_svc_CreateStringTable
func (c *Callbacks) OnCSVCMsg_CreateStringTable(fn func(*dota.CSVCMsg_CreateStringTable) error) {
c.onCSVCMsg_CreateStringTable = append(c.onCSVCMsg_CreateStringTable, fn)
}
// OnCSVCMsg_UpdateStringTable registers a callback for SVC_Messages_svc_UpdateStringTable
func (c *Callbacks) OnCSVCMsg_UpdateStringTable(fn func(*dota.CSVCMsg_UpdateStringTable) error) {
c.onCSVCMsg_UpdateStringTable = append(c.onCSVCMsg_UpdateStringTable, fn)
}
// OnCSVCMsg_VoiceInit registers a callback for SVC_Messages_svc_VoiceInit
func (c *Callbacks) OnCSVCMsg_VoiceInit(fn func(*dota.CSVCMsg_VoiceInit) error) {
c.onCSVCMsg_VoiceInit = append(c.onCSVCMsg_VoiceInit, fn)
}
// OnCSVCMsg_VoiceData registers a callback for SVC_Messages_svc_VoiceData
func (c *Callbacks) OnCSVCMsg_VoiceData(fn func(*dota.CSVCMsg_VoiceData) error) {
c.onCSVCMsg_VoiceData = append(c.onCSVCMsg_VoiceData, fn)
}
// OnCSVCMsg_Print registers a callback for SVC_Messages_svc_Print
func (c *Callbacks) OnCSVCMsg_Print(fn func(*dota.CSVCMsg_Print) error) {
c.onCSVCMsg_Print = append(c.onCSVCMsg_Print, fn)
}
// OnCSVCMsg_Sounds registers a callback for SVC_Messages_svc_Sounds
func (c *Callbacks) OnCSVCMsg_Sounds(fn func(*dota.CSVCMsg_Sounds) error) {
c.onCSVCMsg_Sounds = append(c.onCSVCMsg_Sounds, fn)
}
// OnCSVCMsg_SetView registers a callback for SVC_Messages_svc_SetView
func (c *Callbacks) OnCSVCMsg_SetView(fn func(*dota.CSVCMsg_SetView) error) {
c.onCSVCMsg_SetView = append(c.onCSVCMsg_SetView, fn)
}
// OnCSVCMsg_ClearAllStringTables registers a callback for SVC_Messages_svc_ClearAllStringTables
func (c *Callbacks) OnCSVCMsg_ClearAllStringTables(fn func(*dota.CSVCMsg_ClearAllStringTables) error) {
c.onCSVCMsg_ClearAllStringTables = append(c.onCSVCMsg_ClearAllStringTables, fn)
}
// OnCSVCMsg_CmdKeyValues registers a callback for SVC_Messages_svc_CmdKeyValues
func (c *Callbacks) OnCSVCMsg_CmdKeyValues(fn func(*dota.CSVCMsg_CmdKeyValues) error) {
c.onCSVCMsg_CmdKeyValues = append(c.onCSVCMsg_CmdKeyValues, fn)
}
// OnCSVCMsg_BSPDecal registers a callback for SVC_Messages_svc_BSPDecal
func (c *Callbacks) OnCSVCMsg_BSPDecal(fn func(*dota.CSVCMsg_BSPDecal) error) {
c.onCSVCMsg_BSPDecal = append(c.onCSVCMsg_BSPDecal, fn)
}
// OnCSVCMsg_SplitScreen registers a callback for SVC_Messages_svc_SplitScreen
func (c *Callbacks) OnCSVCMsg_SplitScreen(fn func(*dota.CSVCMsg_SplitScreen) error) {
c.onCSVCMsg_SplitScreen = append(c.onCSVCMsg_SplitScreen, fn)
}
// OnCSVCMsg_PacketEntities registers a callback for SVC_Messages_svc_PacketEntities
func (c *Callbacks) OnCSVCMsg_PacketEntities(fn func(*dota.CSVCMsg_PacketEntities) error) {
c.onCSVCMsg_PacketEntities = append(c.onCSVCMsg_PacketEntities, fn)
}
// OnCSVCMsg_Prefetch registers a callback for SVC_Messages_svc_Prefetch
func (c *Callbacks) OnCSVCMsg_Prefetch(fn func(*dota.CSVCMsg_Prefetch) error) {
c.onCSVCMsg_Prefetch = append(c.onCSVCMsg_Prefetch, fn)
}
// OnCSVCMsg_Menu registers a callback for SVC_Messages_svc_Menu
func (c *Callbacks) OnCSVCMsg_Menu(fn func(*dota.CSVCMsg_Menu) error) {
c.onCSVCMsg_Menu = append(c.onCSVCMsg_Menu, fn)
}
// OnCSVCMsg_GetCvarValue registers a callback for SVC_Messages_svc_GetCvarValue
func (c *Callbacks) OnCSVCMsg_GetCvarValue(fn func(*dota.CSVCMsg_GetCvarValue) error) {
c.onCSVCMsg_GetCvarValue = append(c.onCSVCMsg_GetCvarValue, fn)
}
// OnCSVCMsg_StopSound registers a callback for SVC_Messages_svc_StopSound
func (c *Callbacks) OnCSVCMsg_StopSound(fn func(*dota.CSVCMsg_StopSound) error) {
c.onCSVCMsg_StopSound = append(c.onCSVCMsg_StopSound, fn)
}
// OnCSVCMsg_PeerList registers a callback for SVC_Messages_svc_PeerList
func (c *Callbacks) OnCSVCMsg_PeerList(fn func(*dota.CSVCMsg_PeerList) error) {
c.onCSVCMsg_PeerList = append(c.onCSVCMsg_PeerList, fn)
}
// OnCSVCMsg_PacketReliable registers a callback for SVC_Messages_svc_PacketReliable
func (c *Callbacks) OnCSVCMsg_PacketReliable(fn func(*dota.CSVCMsg_PacketReliable) error) {
c.onCSVCMsg_PacketReliable = append(c.onCSVCMsg_PacketReliable, fn)
}
// OnCSVCMsg_HLTVStatus registers a callback for SVC_Messages_svc_HLTVStatus
func (c *Callbacks) OnCSVCMsg_HLTVStatus(fn func(*dota.CSVCMsg_HLTVStatus) error) {
c.onCSVCMsg_HLTVStatus = append(c.onCSVCMsg_HLTVStatus, fn)
}
// OnCSVCMsg_ServerSteamID registers a callback for SVC_Messages_svc_ServerSteamID
func (c *Callbacks) OnCSVCMsg_ServerSteamID(fn func(*dota.CSVCMsg_ServerSteamID) error) {
c.onCSVCMsg_ServerSteamID = append(c.onCSVCMsg_ServerSteamID, fn)
}
// OnCSVCMsg_FullFrameSplit registers a callback for SVC_Messages_svc_FullFrameSplit
func (c *Callbacks) OnCSVCMsg_FullFrameSplit(fn func(*dota.CSVCMsg_FullFrameSplit) error) {
c.onCSVCMsg_FullFrameSplit = append(c.onCSVCMsg_FullFrameSplit, fn)
}
// OnCSVCMsg_RconServerDetails registers a callback for SVC_Messages_svc_RconServerDetails
func (c *Callbacks) OnCSVCMsg_RconServerDetails(fn func(*dota.CSVCMsg_RconServerDetails) error) {
c.onCSVCMsg_RconServerDetails = append(c.onCSVCMsg_RconServerDetails, fn)
}
// OnCSVCMsg_UserMessage registers a callback for SVC_Messages_svc_UserMessage
func (c *Callbacks) OnCSVCMsg_UserMessage(fn func(*dota.CSVCMsg_UserMessage) error) {
c.onCSVCMsg_UserMessage = append(c.onCSVCMsg_UserMessage, fn)
}
// OnCSVCMsg_Broadcast_Command registers a callback for SVC_Messages_svc_Broadcast_Command
func (c *Callbacks) OnCSVCMsg_Broadcast_Command(fn func(*dota.CSVCMsg_Broadcast_Command) error) {
c.onCSVCMsg_Broadcast_Command = append(c.onCSVCMsg_Broadcast_Command, fn)
}
// OnCSVCMsg_HltvFixupOperatorStatus registers a callback for SVC_Messages_svc_HltvFixupOperatorStatus
func (c *Callbacks) OnCSVCMsg_HltvFixupOperatorStatus(fn func(*dota.CSVCMsg_HltvFixupOperatorStatus) error) {
c.onCSVCMsg_HltvFixupOperatorStatus = append(c.onCSVCMsg_HltvFixupOperatorStatus, fn)
}
// OnCUserMessageAchievementEvent registers a callback for EBaseUserMessages_UM_AchievementEvent
func (c *Callbacks) OnCUserMessageAchievementEvent(fn func(*dota.CUserMessageAchievementEvent) error) {
c.onCUserMessageAchievementEvent = append(c.onCUserMessageAchievementEvent, fn)
}
// OnCUserMessageCloseCaption registers a callback for EBaseUserMessages_UM_CloseCaption
func (c *Callbacks) OnCUserMessageCloseCaption(fn func(*dota.CUserMessageCloseCaption) error) {
c.onCUserMessageCloseCaption = append(c.onCUserMessageCloseCaption, fn)
}
// OnCUserMessageCloseCaptionDirect registers a callback for EBaseUserMessages_UM_CloseCaptionDirect
func (c *Callbacks) OnCUserMessageCloseCaptionDirect(fn func(*dota.CUserMessageCloseCaptionDirect) error) {
c.onCUserMessageCloseCaptionDirect = append(c.onCUserMessageCloseCaptionDirect, fn)
}
// OnCUserMessageCurrentTimescale registers a callback for EBaseUserMessages_UM_CurrentTimescale
func (c *Callbacks) OnCUserMessageCurrentTimescale(fn func(*dota.CUserMessageCurrentTimescale) error) {
c.onCUserMessageCurrentTimescale = append(c.onCUserMessageCurrentTimescale, fn)
}
// OnCUserMessageDesiredTimescale registers a callback for EBaseUserMessages_UM_DesiredTimescale
func (c *Callbacks) OnCUserMessageDesiredTimescale(fn func(*dota.CUserMessageDesiredTimescale) error) {
c.onCUserMessageDesiredTimescale = append(c.onCUserMessageDesiredTimescale, fn)
}
// OnCUserMessageFade registers a callback for EBaseUserMessages_UM_Fade
func (c *Callbacks) OnCUserMessageFade(fn func(*dota.CUserMessageFade) error) {
c.onCUserMessageFade = append(c.onCUserMessageFade, fn)
}
// OnCUserMessageGameTitle registers a callback for EBaseUserMessages_UM_GameTitle
func (c *Callbacks) OnCUserMessageGameTitle(fn func(*dota.CUserMessageGameTitle) error) {
c.onCUserMessageGameTitle = append(c.onCUserMessageGameTitle, fn)
}
// OnCUserMessageHudMsg registers a callback for EBaseUserMessages_UM_HudMsg
func (c *Callbacks) OnCUserMessageHudMsg(fn func(*dota.CUserMessageHudMsg) error) {
c.onCUserMessageHudMsg = append(c.onCUserMessageHudMsg, fn)
}
// OnCUserMessageHudText registers a callback for EBaseUserMessages_UM_HudText
func (c *Callbacks) OnCUserMessageHudText(fn func(*dota.CUserMessageHudText) error) {
c.onCUserMessageHudText = append(c.onCUserMessageHudText, fn)
}
// OnCUserMessageColoredText registers a callback for EBaseUserMessages_UM_ColoredText
func (c *Callbacks) OnCUserMessageColoredText(fn func(*dota.CUserMessageColoredText) error) {
c.onCUserMessageColoredText = append(c.onCUserMessageColoredText, fn)
}
// OnCUserMessageRequestState registers a callback for EBaseUserMessages_UM_RequestState
func (c *Callbacks) OnCUserMessageRequestState(fn func(*dota.CUserMessageRequestState) error) {
c.onCUserMessageRequestState = append(c.onCUserMessageRequestState, fn)
}
// OnCUserMessageResetHUD registers a callback for EBaseUserMessages_UM_ResetHUD
func (c *Callbacks) OnCUserMessageResetHUD(fn func(*dota.CUserMessageResetHUD) error) {
c.onCUserMessageResetHUD = append(c.onCUserMessageResetHUD, fn)
}
// OnCUserMessageRumble registers a callback for EBaseUserMessages_UM_Rumble
func (c *Callbacks) OnCUserMessageRumble(fn func(*dota.CUserMessageRumble) error) {
c.onCUserMessageRumble = append(c.onCUserMessageRumble, fn)
}
// OnCUserMessageSayText registers a callback for EBaseUserMessages_UM_SayText
func (c *Callbacks) OnCUserMessageSayText(fn func(*dota.CUserMessageSayText) error) {
c.onCUserMessageSayText = append(c.onCUserMessageSayText, fn)
}
// OnCUserMessageSayText2 registers a callback for EBaseUserMessages_UM_SayText2
func (c *Callbacks) OnCUserMessageSayText2(fn func(*dota.CUserMessageSayText2) error) {
c.onCUserMessageSayText2 = append(c.onCUserMessageSayText2, fn)
}
// OnCUserMessageSayTextChannel registers a callback for EBaseUserMessages_UM_SayTextChannel
func (c *Callbacks) OnCUserMessageSayTextChannel(fn func(*dota.CUserMessageSayTextChannel) error) {
c.onCUserMessageSayTextChannel = append(c.onCUserMessageSayTextChannel, fn)
}
// OnCUserMessageShake registers a callback for EBaseUserMessages_UM_Shake
func (c *Callbacks) OnCUserMessageShake(fn func(*dota.CUserMessageShake) error) {
c.onCUserMessageShake = append(c.onCUserMessageShake, fn)
}
// OnCUserMessageShakeDir registers a callback for EBaseUserMessages_UM_ShakeDir
func (c *Callbacks) OnCUserMessageShakeDir(fn func(*dota.CUserMessageShakeDir) error) {
c.onCUserMessageShakeDir = append(c.onCUserMessageShakeDir, fn)
}
// OnCUserMessageWaterShake registers a callback for EBaseUserMessages_UM_WaterShake
func (c *Callbacks) OnCUserMessageWaterShake(fn func(*dota.CUserMessageWaterShake) error) {
c.onCUserMessageWaterShake = append(c.onCUserMessageWaterShake, fn)
}
// OnCUserMessageTextMsg registers a callback for EBaseUserMessages_UM_TextMsg
func (c *Callbacks) OnCUserMessageTextMsg(fn func(*dota.CUserMessageTextMsg) error) {
c.onCUserMessageTextMsg = append(c.onCUserMessageTextMsg, fn)
}
// OnCUserMessageScreenTilt registers a callback for EBaseUserMessages_UM_ScreenTilt
func (c *Callbacks) OnCUserMessageScreenTilt(fn func(*dota.CUserMessageScreenTilt) error) {
c.onCUserMessageScreenTilt = append(c.onCUserMessageScreenTilt, fn)
}
// OnCUserMessageVoiceMask registers a callback for EBaseUserMessages_UM_VoiceMask
func (c *Callbacks) OnCUserMessageVoiceMask(fn func(*dota.CUserMessageVoiceMask) error) {
c.onCUserMessageVoiceMask = append(c.onCUserMessageVoiceMask, fn)
}
// OnCUserMessageSendAudio registers a callback for EBaseUserMessages_UM_SendAudio
func (c *Callbacks) OnCUserMessageSendAudio(fn func(*dota.CUserMessageSendAudio) error) {
c.onCUserMessageSendAudio = append(c.onCUserMessageSendAudio, fn)
}
// OnCUserMessageItemPickup registers a callback for EBaseUserMessages_UM_ItemPickup
func (c *Callbacks) OnCUserMessageItemPickup(fn func(*dota.CUserMessageItemPickup) error) {
c.onCUserMessageItemPickup = append(c.onCUserMessageItemPickup, fn)
}
// OnCUserMessageAmmoDenied registers a callback for EBaseUserMessages_UM_AmmoDenied
func (c *Callbacks) OnCUserMessageAmmoDenied(fn func(*dota.CUserMessageAmmoDenied) error) {
c.onCUserMessageAmmoDenied = append(c.onCUserMessageAmmoDenied, fn)
}
// OnCUserMessageShowMenu registers a callback for EBaseUserMessages_UM_ShowMenu
func (c *Callbacks) OnCUserMessageShowMenu(fn func(*dota.CUserMessageShowMenu) error) {
c.onCUserMessageShowMenu = append(c.onCUserMessageShowMenu, fn)
}
// OnCUserMessageCreditsMsg registers a callback for EBaseUserMessages_UM_CreditsMsg
func (c *Callbacks) OnCUserMessageCreditsMsg(fn func(*dota.CUserMessageCreditsMsg) error) {
c.onCUserMessageCreditsMsg = append(c.onCUserMessageCreditsMsg, fn)
}
// OnCEntityMessagePlayJingle registers a callback for EBaseEntityMessages_EM_PlayJingle
func (c *Callbacks) OnCEntityMessagePlayJingle(fn func(*dota.CEntityMessagePlayJingle) error) {
c.onCEntityMessagePlayJingle = append(c.onCEntityMessagePlayJingle, fn)
}
// OnCEntityMessageScreenOverlay registers a callback for EBaseEntityMessages_EM_ScreenOverlay
func (c *Callbacks) OnCEntityMessageScreenOverlay(fn func(*dota.CEntityMessageScreenOverlay) error) {
c.onCEntityMessageScreenOverlay = append(c.onCEntityMessageScreenOverlay, fn)
}
// OnCEntityMessageRemoveAllDecals registers a callback for EBaseEntityMessages_EM_RemoveAllDecals
func (c *Callbacks) OnCEntityMessageRemoveAllDecals(fn func(*dota.CEntityMessageRemoveAllDecals) error) {
c.onCEntityMessageRemoveAllDecals = append(c.onCEntityMessageRemoveAllDecals, fn)
}
// OnCEntityMessagePropagateForce registers a callback for EBaseEntityMessages_EM_PropagateForce
func (c *Callbacks) OnCEntityMessagePropagateForce(fn func(*dota.CEntityMessagePropagateForce) error) {
c.onCEntityMessagePropagateForce = append(c.onCEntityMessagePropagateForce, fn)
}
// OnCEntityMessageDoSpark registers a callback for EBaseEntityMessages_EM_DoSpark
func (c *Callbacks) OnCEntityMessageDoSpark(fn func(*dota.CEntityMessageDoSpark) error) {
c.onCEntityMessageDoSpark = append(c.onCEntityMessageDoSpark, fn)
}
// OnCEntityMessageFixAngle registers a callback for EBaseEntityMessages_EM_FixAngle
func (c *Callbacks) OnCEntityMessageFixAngle(fn func(*dota.CEntityMessageFixAngle) error) {
c.onCEntityMessageFixAngle = append(c.onCEntityMessageFixAngle, fn)
}
// OnCUserMessageCloseCaptionPlaceholder registers a callback for EBaseUserMessages_UM_CloseCaptionPlaceholder
func (c *Callbacks) OnCUserMessageCloseCaptionPlaceholder(fn func(*dota.CUserMessageCloseCaptionPlaceholder) error) {
c.onCUserMessageCloseCaptionPlaceholder = append(c.onCUserMessageCloseCaptionPlaceholder, fn)
}
// OnCUserMessageCameraTransition registers a callback for EBaseUserMessages_UM_CameraTransition
func (c *Callbacks) OnCUserMessageCameraTransition(fn func(*dota.CUserMessageCameraTransition) error) {
c.onCUserMessageCameraTransition = append(c.onCUserMessageCameraTransition, fn)
}
// OnCUserMessageAudioParameter registers a callback for EBaseUserMessages_UM_AudioParameter
func (c *Callbacks) OnCUserMessageAudioParameter(fn func(*dota.CUserMessageAudioParameter) error) {
c.onCUserMessageAudioParameter = append(c.onCUserMessageAudioParameter, fn)
}
// OnCUserMessageHapticsManagerPulse registers a callback for EBaseUserMessages_UM_HapticsManagerPulse
func (c *Callbacks) OnCUserMessageHapticsManagerPulse(fn func(*dota.CUserMessageHapticsManagerPulse) error) {
c.onCUserMessageHapticsManagerPulse = append(c.onCUserMessageHapticsManagerPulse, fn)
}
// OnCUserMessageHapticsManagerEffect registers a callback for EBaseUserMessages_UM_HapticsManagerEffect
func (c *Callbacks) OnCUserMessageHapticsManagerEffect(fn func(*dota.CUserMessageHapticsManagerEffect) error) {
c.onCUserMessageHapticsManagerEffect = append(c.onCUserMessageHapticsManagerEffect, fn)
}
// OnCUserMessageUpdateCssClasses registers a callback for EBaseUserMessages_UM_UpdateCssClasses
func (c *Callbacks) OnCUserMessageUpdateCssClasses(fn func(*dota.CUserMessageUpdateCssClasses) error) {
c.onCUserMessageUpdateCssClasses = append(c.onCUserMessageUpdateCssClasses, fn)
}
// OnCUserMessageServerFrameTime registers a callback for EBaseUserMessages_UM_ServerFrameTime
func (c *Callbacks) OnCUserMessageServerFrameTime(fn func(*dota.CUserMessageServerFrameTime) error) {
c.onCUserMessageServerFrameTime = append(c.onCUserMessageServerFrameTime, fn)
}
// OnCUserMessageLagCompensationError registers a callback for EBaseUserMessages_UM_LagCompensationError
func (c *Callbacks) OnCUserMessageLagCompensationError(fn func(*dota.CUserMessageLagCompensationError) error) {
c.onCUserMessageLagCompensationError = append(c.onCUserMessageLagCompensationError, fn)
}
// OnCUserMessageRequestDllStatus registers a callback for EBaseUserMessages_UM_RequestDllStatus
func (c *Callbacks) OnCUserMessageRequestDllStatus(fn func(*dota.CUserMessageRequestDllStatus) error) {
c.onCUserMessageRequestDllStatus = append(c.onCUserMessageRequestDllStatus, fn)
}
// OnCUserMessageRequestUtilAction registers a callback for EBaseUserMessages_UM_RequestUtilAction
func (c *Callbacks) OnCUserMessageRequestUtilAction(fn func(*dota.CUserMessageRequestUtilAction) error) {
c.onCUserMessageRequestUtilAction = append(c.onCUserMessageRequestUtilAction, fn)
}
// OnCUserMessageRequestInventory registers a callback for EBaseUserMessages_UM_RequestInventory
func (c *Callbacks) OnCUserMessageRequestInventory(fn func(*dota.CUserMessageRequestInventory) error) {
c.onCUserMessageRequestInventory = append(c.onCUserMessageRequestInventory, fn)
}
// OnCUserMessageRequestDiagnostic registers a callback for EBaseUserMessages_UM_RequestDiagnostic
func (c *Callbacks) OnCUserMessageRequestDiagnostic(fn func(*dota.CUserMessageRequestDiagnostic) error) {
c.onCUserMessageRequestDiagnostic = append(c.onCUserMessageRequestDiagnostic, fn)
}
// OnCMsgVDebugGameSessionIDEvent registers a callback for EBaseGameEvents_GE_VDebugGameSessionIDEvent
func (c *Callbacks) OnCMsgVDebugGameSessionIDEvent(fn func(*dota.CMsgVDebugGameSessionIDEvent) error) {
c.onCMsgVDebugGameSessionIDEvent = append(c.onCMsgVDebugGameSessionIDEvent, fn)
}
// OnCMsgPlaceDecalEvent registers a callback for EBaseGameEvents_GE_PlaceDecalEvent
func (c *Callbacks) OnCMsgPlaceDecalEvent(fn func(*dota.CMsgPlaceDecalEvent) error) {
c.onCMsgPlaceDecalEvent = append(c.onCMsgPlaceDecalEvent, fn)
}
// OnCMsgClearWorldDecalsEvent registers a callback for EBaseGameEvents_GE_ClearWorldDecalsEvent
func (c *Callbacks) OnCMsgClearWorldDecalsEvent(fn func(*dota.CMsgClearWorldDecalsEvent) error) {
c.onCMsgClearWorldDecalsEvent = append(c.onCMsgClearWorldDecalsEvent, fn)
}
// OnCMsgClearEntityDecalsEvent registers a callback for EBaseGameEvents_GE_ClearEntityDecalsEvent
func (c *Callbacks) OnCMsgClearEntityDecalsEvent(fn func(*dota.CMsgClearEntityDecalsEvent) error) {
c.onCMsgClearEntityDecalsEvent = append(c.onCMsgClearEntityDecalsEvent, fn)
}
// OnCMsgClearDecalsForSkeletonInstanceEvent registers a callback for EBaseGameEvents_GE_ClearDecalsForSkeletonInstanceEvent
func (c *Callbacks) OnCMsgClearDecalsForSkeletonInstanceEvent(fn func(*dota.CMsgClearDecalsForSkeletonInstanceEvent) error) {
c.onCMsgClearDecalsForSkeletonInstanceEvent = append(c.onCMsgClearDecalsForSkeletonInstanceEvent, fn)
}
// OnCMsgSource1LegacyGameEventList registers a callback for EBaseGameEvents_GE_Source1LegacyGameEventList
func (c *Callbacks) OnCMsgSource1LegacyGameEventList(fn func(*dota.CMsgSource1LegacyGameEventList) error) {
c.onCMsgSource1LegacyGameEventList = append(c.onCMsgSource1LegacyGameEventList, fn)
}
// OnCMsgSource1LegacyListenEvents registers a callback for EBaseGameEvents_GE_Source1LegacyListenEvents
func (c *Callbacks) OnCMsgSource1LegacyListenEvents(fn func(*dota.CMsgSource1LegacyListenEvents) error) {
c.onCMsgSource1LegacyListenEvents = append(c.onCMsgSource1LegacyListenEvents, fn)
}
// OnCMsgSource1LegacyGameEvent registers a callback for EBaseGameEvents_GE_Source1LegacyGameEvent
func (c *Callbacks) OnCMsgSource1LegacyGameEvent(fn func(*dota.CMsgSource1LegacyGameEvent) error) {
c.onCMsgSource1LegacyGameEvent = append(c.onCMsgSource1LegacyGameEvent, fn)
}
// OnCMsgSosStartSoundEvent registers a callback for EBaseGameEvents_GE_SosStartSoundEvent
func (c *Callbacks) OnCMsgSosStartSoundEvent(fn func(*dota.CMsgSosStartSoundEvent) error) {
c.onCMsgSosStartSoundEvent = append(c.onCMsgSosStartSoundEvent, fn)
}
// OnCMsgSosStopSoundEvent registers a callback for EBaseGameEvents_GE_SosStopSoundEvent
func (c *Callbacks) OnCMsgSosStopSoundEvent(fn func(*dota.CMsgSosStopSoundEvent) error) {
c.onCMsgSosStopSoundEvent = append(c.onCMsgSosStopSoundEvent, fn)
}
// OnCMsgSosSetSoundEventParams registers a callback for EBaseGameEvents_GE_SosSetSoundEventParams
func (c *Callbacks) OnCMsgSosSetSoundEventParams(fn func(*dota.CMsgSosSetSoundEventParams) error) {
c.onCMsgSosSetSoundEventParams = append(c.onCMsgSosSetSoundEventParams, fn)
}
// OnCMsgSosSetLibraryStackFields registers a callback for EBaseGameEvents_GE_SosSetLibraryStackFields
func (c *Callbacks) OnCMsgSosSetLibraryStackFields(fn func(*dota.CMsgSosSetLibraryStackFields) error) {
c.onCMsgSosSetLibraryStackFields = append(c.onCMsgSosSetLibraryStackFields, fn)
}
// OnCMsgSosStopSoundEventHash registers a callback for EBaseGameEvents_GE_SosStopSoundEventHash
func (c *Callbacks) OnCMsgSosStopSoundEventHash(fn func(*dota.CMsgSosStopSoundEventHash) error) {
c.onCMsgSosStopSoundEventHash = append(c.onCMsgSosStopSoundEventHash, fn)
}
// OnCDOTAUserMsg_AIDebugLine registers a callback for EDotaUserMessages_DOTA_UM_AIDebugLine
func (c *Callbacks) OnCDOTAUserMsg_AIDebugLine(fn func(*dota.CDOTAUserMsg_AIDebugLine) error) {
c.onCDOTAUserMsg_AIDebugLine = append(c.onCDOTAUserMsg_AIDebugLine, fn)
}
// OnCDOTAUserMsg_ChatEvent registers a callback for EDotaUserMessages_DOTA_UM_ChatEvent
func (c *Callbacks) OnCDOTAUserMsg_ChatEvent(fn func(*dota.CDOTAUserMsg_ChatEvent) error) {
c.onCDOTAUserMsg_ChatEvent = append(c.onCDOTAUserMsg_ChatEvent, fn)
}
// OnCDOTAUserMsg_CombatHeroPositions registers a callback for EDotaUserMessages_DOTA_UM_CombatHeroPositions
func (c *Callbacks) OnCDOTAUserMsg_CombatHeroPositions(fn func(*dota.CDOTAUserMsg_CombatHeroPositions) error) {
c.onCDOTAUserMsg_CombatHeroPositions = append(c.onCDOTAUserMsg_CombatHeroPositions, fn)
}
// OnCDOTAUserMsg_CombatLogBulkData registers a callback for EDotaUserMessages_DOTA_UM_CombatLogBulkData
func (c *Callbacks) OnCDOTAUserMsg_CombatLogBulkData(fn func(*dota.CDOTAUserMsg_CombatLogBulkData) error) {
c.onCDOTAUserMsg_CombatLogBulkData = append(c.onCDOTAUserMsg_CombatLogBulkData, fn)
}
// OnCDOTAUserMsg_CreateLinearProjectile registers a callback for EDotaUserMessages_DOTA_UM_CreateLinearProjectile
func (c *Callbacks) OnCDOTAUserMsg_CreateLinearProjectile(fn func(*dota.CDOTAUserMsg_CreateLinearProjectile) error) {
c.onCDOTAUserMsg_CreateLinearProjectile = append(c.onCDOTAUserMsg_CreateLinearProjectile, fn)
}
// OnCDOTAUserMsg_DestroyLinearProjectile registers a callback for EDotaUserMessages_DOTA_UM_DestroyLinearProjectile
func (c *Callbacks) OnCDOTAUserMsg_DestroyLinearProjectile(fn func(*dota.CDOTAUserMsg_DestroyLinearProjectile) error) {
c.onCDOTAUserMsg_DestroyLinearProjectile = append(c.onCDOTAUserMsg_DestroyLinearProjectile, fn)
}
// OnCDOTAUserMsg_DodgeTrackingProjectiles registers a callback for EDotaUserMessages_DOTA_UM_DodgeTrackingProjectiles
func (c *Callbacks) OnCDOTAUserMsg_DodgeTrackingProjectiles(fn func(*dota.CDOTAUserMsg_DodgeTrackingProjectiles) error) {
c.onCDOTAUserMsg_DodgeTrackingProjectiles = append(c.onCDOTAUserMsg_DodgeTrackingProjectiles, fn)
}
// OnCDOTAUserMsg_GlobalLightColor registers a callback for EDotaUserMessages_DOTA_UM_GlobalLightColor
func (c *Callbacks) OnCDOTAUserMsg_GlobalLightColor(fn func(*dota.CDOTAUserMsg_GlobalLightColor) error) {
c.onCDOTAUserMsg_GlobalLightColor = append(c.onCDOTAUserMsg_GlobalLightColor, fn)
}
// OnCDOTAUserMsg_GlobalLightDirection registers a callback for EDotaUserMessages_DOTA_UM_GlobalLightDirection
func (c *Callbacks) OnCDOTAUserMsg_GlobalLightDirection(fn func(*dota.CDOTAUserMsg_GlobalLightDirection) error) {
c.onCDOTAUserMsg_GlobalLightDirection = append(c.onCDOTAUserMsg_GlobalLightDirection, fn)
}
// OnCDOTAUserMsg_InvalidCommand registers a callback for EDotaUserMessages_DOTA_UM_InvalidCommand
func (c *Callbacks) OnCDOTAUserMsg_InvalidCommand(fn func(*dota.CDOTAUserMsg_InvalidCommand) error) {
c.onCDOTAUserMsg_InvalidCommand = append(c.onCDOTAUserMsg_InvalidCommand, fn)
}
// OnCDOTAUserMsg_LocationPing registers a callback for EDotaUserMessages_DOTA_UM_LocationPing
func (c *Callbacks) OnCDOTAUserMsg_LocationPing(fn func(*dota.CDOTAUserMsg_LocationPing) error) {
c.onCDOTAUserMsg_LocationPing = append(c.onCDOTAUserMsg_LocationPing, fn)
}
// OnCDOTAUserMsg_MapLine registers a callback for EDotaUserMessages_DOTA_UM_MapLine
func (c *Callbacks) OnCDOTAUserMsg_MapLine(fn func(*dota.CDOTAUserMsg_MapLine) error) {
c.onCDOTAUserMsg_MapLine = append(c.onCDOTAUserMsg_MapLine, fn)
}
// OnCDOTAUserMsg_MiniKillCamInfo registers a callback for EDotaUserMessages_DOTA_UM_MiniKillCamInfo
func (c *Callbacks) OnCDOTAUserMsg_MiniKillCamInfo(fn func(*dota.CDOTAUserMsg_MiniKillCamInfo) error) {
c.onCDOTAUserMsg_MiniKillCamInfo = append(c.onCDOTAUserMsg_MiniKillCamInfo, fn)
}
// OnCDOTAUserMsg_MinimapDebugPoint registers a callback for EDotaUserMessages_DOTA_UM_MinimapDebugPoint
func (c *Callbacks) OnCDOTAUserMsg_MinimapDebugPoint(fn func(*dota.CDOTAUserMsg_MinimapDebugPoint) error) {
c.onCDOTAUserMsg_MinimapDebugPoint = append(c.onCDOTAUserMsg_MinimapDebugPoint, fn)
}
// OnCDOTAUserMsg_MinimapEvent registers a callback for EDotaUserMessages_DOTA_UM_MinimapEvent
func (c *Callbacks) OnCDOTAUserMsg_MinimapEvent(fn func(*dota.CDOTAUserMsg_MinimapEvent) error) {
c.onCDOTAUserMsg_MinimapEvent = append(c.onCDOTAUserMsg_MinimapEvent, fn)
}
// OnCDOTAUserMsg_NevermoreRequiem registers a callback for EDotaUserMessages_DOTA_UM_NevermoreRequiem
func (c *Callbacks) OnCDOTAUserMsg_NevermoreRequiem(fn func(*dota.CDOTAUserMsg_NevermoreRequiem) error) {
c.onCDOTAUserMsg_NevermoreRequiem = append(c.onCDOTAUserMsg_NevermoreRequiem, fn)
}
// OnCDOTAUserMsg_OverheadEvent registers a callback for EDotaUserMessages_DOTA_UM_OverheadEvent
func (c *Callbacks) OnCDOTAUserMsg_OverheadEvent(fn func(*dota.CDOTAUserMsg_OverheadEvent) error) {
c.onCDOTAUserMsg_OverheadEvent = append(c.onCDOTAUserMsg_OverheadEvent, fn)
}
// OnCDOTAUserMsg_SetNextAutobuyItem registers a callback for EDotaUserMessages_DOTA_UM_SetNextAutobuyItem
func (c *Callbacks) OnCDOTAUserMsg_SetNextAutobuyItem(fn func(*dota.CDOTAUserMsg_SetNextAutobuyItem) error) {
c.onCDOTAUserMsg_SetNextAutobuyItem = append(c.onCDOTAUserMsg_SetNextAutobuyItem, fn)
}
// OnCDOTAUserMsg_SharedCooldown registers a callback for EDotaUserMessages_DOTA_UM_SharedCooldown
func (c *Callbacks) OnCDOTAUserMsg_SharedCooldown(fn func(*dota.CDOTAUserMsg_SharedCooldown) error) {
c.onCDOTAUserMsg_SharedCooldown = append(c.onCDOTAUserMsg_SharedCooldown, fn)
}
// OnCDOTAUserMsg_SpectatorPlayerClick registers a callback for EDotaUserMessages_DOTA_UM_SpectatorPlayerClick
func (c *Callbacks) OnCDOTAUserMsg_SpectatorPlayerClick(fn func(*dota.CDOTAUserMsg_SpectatorPlayerClick) error) {
c.onCDOTAUserMsg_SpectatorPlayerClick = append(c.onCDOTAUserMsg_SpectatorPlayerClick, fn)
}
// OnCDOTAUserMsg_TutorialTipInfo registers a callback for EDotaUserMessages_DOTA_UM_TutorialTipInfo
func (c *Callbacks) OnCDOTAUserMsg_TutorialTipInfo(fn func(*dota.CDOTAUserMsg_TutorialTipInfo) error) {
c.onCDOTAUserMsg_TutorialTipInfo = append(c.onCDOTAUserMsg_TutorialTipInfo, fn)
}
// OnCDOTAUserMsg_UnitEvent registers a callback for EDotaUserMessages_DOTA_UM_UnitEvent
func (c *Callbacks) OnCDOTAUserMsg_UnitEvent(fn func(*dota.CDOTAUserMsg_UnitEvent) error) {
c.onCDOTAUserMsg_UnitEvent = append(c.onCDOTAUserMsg_UnitEvent, fn)
}
// OnCDOTAUserMsg_BotChat registers a callback for EDotaUserMessages_DOTA_UM_BotChat
func (c *Callbacks) OnCDOTAUserMsg_BotChat(fn func(*dota.CDOTAUserMsg_BotChat) error) {
c.onCDOTAUserMsg_BotChat = append(c.onCDOTAUserMsg_BotChat, fn)
}
// OnCDOTAUserMsg_HudError registers a callback for EDotaUserMessages_DOTA_UM_HudError
func (c *Callbacks) OnCDOTAUserMsg_HudError(fn func(*dota.CDOTAUserMsg_HudError) error) {
c.onCDOTAUserMsg_HudError = append(c.onCDOTAUserMsg_HudError, fn)
}
// OnCDOTAUserMsg_ItemPurchased registers a callback for EDotaUserMessages_DOTA_UM_ItemPurchased
func (c *Callbacks) OnCDOTAUserMsg_ItemPurchased(fn func(*dota.CDOTAUserMsg_ItemPurchased) error) {
c.onCDOTAUserMsg_ItemPurchased = append(c.onCDOTAUserMsg_ItemPurchased, fn)
}
// OnCDOTAUserMsg_Ping registers a callback for EDotaUserMessages_DOTA_UM_Ping
func (c *Callbacks) OnCDOTAUserMsg_Ping(fn func(*dota.CDOTAUserMsg_Ping) error) {
c.onCDOTAUserMsg_Ping = append(c.onCDOTAUserMsg_Ping, fn)