effigy_wire 0.0.2 → 0.0.3

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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/Gemfile +2 -0
  4. data/Gemfile.lock +13 -6
  5. data/bin/bundler +17 -0
  6. data/bin/import +47 -0
  7. data/bin/protoc-gen-ruby +17 -0
  8. data/bin/rake +17 -0
  9. data/bin/repath +6 -0
  10. data/bin/rpc_server +17 -0
  11. data/bin/support/00-nuke_everything +35 -0
  12. data/bin/support/10-clarity_protobuf_copy +68 -0
  13. data/bin/support/20-clean_clarity_protobuf +46 -0
  14. data/bin/{effigy/package → support/30-package_proto} +10 -8
  15. data/bin/support/40-tweak_proto +24 -0
  16. data/bin/support/50-compile_proto +100 -0
  17. data/bin/support/60-tweak_rb +23 -0
  18. data/bin/{effigy/mk-require-turds → support/70-make_require_turds} +10 -6
  19. data/bin/support/80-delete_stragglers +7 -0
  20. data/bin/thor +17 -0
  21. data/effigy_wire.gemspec +1 -2
  22. data/lib/effigy/wire.rb +0 -6
  23. data/lib/effigy/wire/demo.pb.rb +22 -21
  24. data/lib/effigy/wire/dota_commonmessages.pb.rb +87 -86
  25. data/lib/effigy/wire/dota_modifiers.pb.rb +2 -1
  26. data/lib/effigy/wire/dota_usermessages.pb.rb +50 -49
  27. data/lib/effigy/wire/netmessages.pb.rb +2 -1
  28. data/lib/effigy/wire/networkbasetypes.pb.rb +15 -14
  29. data/lib/effigy/wire/s1/s1_dota_usermessages.pb.rb +81 -80
  30. data/lib/effigy/wire/s1/s1_netmessages.pb.rb +29 -28
  31. data/lib/effigy/wire/s1/s1_usermessages.pb.rb +33 -32
  32. data/lib/effigy/wire/s2/s2_base_gcmessages.pb.rb +2 -1
  33. data/lib/effigy/wire/s2/s2_dota_gcmessages_common.pb.rb +3 -2
  34. data/lib/effigy/wire/s2/s2_dota_match_metadata.pb.rb +3 -2
  35. data/lib/effigy/wire/s2/s2_dota_usermessages.pb.rb +96 -95
  36. data/lib/effigy/wire/s2/s2_gameevents.pb.rb +15 -14
  37. data/lib/effigy/wire/s2/s2_netmessages.pb.rb +26 -25
  38. data/lib/effigy/wire/s2/s2_te.pb.rb +29 -28
  39. data/lib/effigy/wire/s2/s2_usermessages.pb.rb +48 -47
  40. data/proto/dota_commonmessages.proto +91 -91
  41. data/proto/dota_usermessages.proto +48 -48
  42. data/proto/networkbasetypes.proto +14 -14
  43. data/proto/s1/s1_netmessages.proto +27 -27
  44. data/proto/s2/s2_dota_gcmessages_common.proto +1 -1
  45. data/proto/s2/s2_dota_match_metadata.proto +1 -1
  46. data/proto/s2/s2_netmessages.proto +24 -24
  47. metadata +19 -10
  48. data/BIN_README.txt +0 -18
  49. data/bin/clarity-protobuf/clean +0 -36
  50. data/bin/clarity-protobuf/copy +0 -75
  51. data/bin/effigy/compile-proto +0 -81
  52. data/bin/effigy/tweak-proto +0 -30
  53. data/bin/effigy/tweak-rb +0 -20
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ EFF_WIRE_ROOT = File.join(__dir__, '..', '..')
4
+
5
+ EFF_RUBY_OUT_ROOT =
6
+ begin
7
+ ENV.fetch('EFF_RUBY_OUT_ROOT')
8
+ rescue KeyError
9
+ File.join(EFF_WIRE_ROOT, 'lib', 'effigy', 'wire')
10
+ end
11
+
12
+ Dir.glob(File.join(EFF_RUBY_OUT_ROOT, '**/*')).each do |rb_path|
13
+ next if File.directory?(rb_path)
14
+
15
+ puts "> Tweaking #{File.basename(rb_path)}"
16
+ cmd = <<-EOV
17
+ sed -i \
18
+ -e '/require ''.*..pb''/ s/require/require_relative/' \
19
+ #{rb_path}
20
+ EOV
21
+ status = system(cmd)
22
+ exit(-1) unless !!status
23
+ end
@@ -4,11 +4,13 @@ require 'logger'
4
4
 
5
5
  err_log = Logger.new(STDERR)
6
6
 
7
- LIB_ROOT =
7
+ EFF_WIRE_ROOT = File.join(__dir__, '..', '..')
8
+
9
+ EFF_LIB_ROOT =
8
10
  begin
9
- ENV.fetch('LIB_ROOT')
11
+ ENV.fetch('EFF_LIB_ROOT')
10
12
  rescue KeyError
11
- File.join(__dir__, '..', 'lib')
13
+ File.join(EFF_WIRE_ROOT, 'lib')
12
14
  end
13
15
 
14
16
  REQUIRE_TURD_GENERATOR =
@@ -20,20 +22,22 @@ end
20
22
  EOV
21
23
  end
22
24
 
25
+ puts "> Making some require files..."
26
+
23
27
  # lib/effigy
24
- path = File.join(LIB_ROOT, 'effigy.rb')
28
+ path = File.join(EFF_LIB_ROOT, 'effigy.rb')
25
29
  File.open(path, 'w') do |file|
26
30
  file.write(REQUIRE_TURD_GENERATOR.call('effigy'))
27
31
  end
28
32
 
29
33
  # lib/effigy/wire
30
- path = File.join(LIB_ROOT, 'effigy', 'wire.rb')
34
+ path = File.join(EFF_LIB_ROOT, 'effigy', 'wire.rb')
31
35
  File.open(path, 'w') do |file|
32
36
  file.write(REQUIRE_TURD_GENERATOR.call('wire'))
33
37
  end
34
38
 
35
39
  # lib/effigy/wire/#{package}.rb
36
- packages_root = File.join(LIB_ROOT, 'effigy', 'wire')
40
+ packages_root = File.join(EFF_LIB_ROOT, 'effigy', 'wire')
37
41
  Dir.glob(File.join(packages_root, '*')).each do |path|
38
42
  next unless File.directory?(path)
39
43
  package = File.basename(path)
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'fileutils'
4
+
5
+ puts '> Deleting bizarre stray files...'
6
+
7
+ FileUtils.rm_rf('lib/effigy/wire/s2_base_gcmessages.pb.rb')
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+ #
4
+ # This file was generated by Bundler.
5
+ #
6
+ # The application 'thor' is installed as part of a gem, and
7
+ # this file is here to facilitate running it.
8
+ #
9
+
10
+ require "pathname"
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
+ Pathname.new(__FILE__).realpath)
13
+
14
+ require "rubygems"
15
+ require "bundler/setup"
16
+
17
+ load Gem.bin_path("thor", "thor")
@@ -1,11 +1,10 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'effigy/wire'
5
4
 
6
5
  Gem::Specification.new do |spec|
7
6
  spec.name = 'effigy_wire'
8
- spec.version = Effigy::Wire::VERSION
7
+ spec.version = '0.0.3'
9
8
  spec.authors = ['Joshua Morris']
10
9
  spec.email = ['joshua.a.morris@gmail.com']
11
10
  spec.summary = %q{Protocol buffer definitions for Effigy.}
@@ -1,9 +1,3 @@
1
- module Effigy
2
- module Wire
3
- VERSION = '0.0.2'
4
- end
5
- end
6
-
7
1
  Dir[File.join(File.dirname(__FILE__), 'wire', '*.rb')].each do |file|
8
2
  require file
9
3
  end
@@ -3,35 +3,36 @@
3
3
  ##
4
4
  # This file is auto-generated. DO NOT EDIT!
5
5
  #
6
- require 'protobuf/message'
6
+ require 'protobuf'
7
7
 
8
8
  module Effigy
9
9
  module Wire
10
+ ::Protobuf::Optionable.inject(self) { ::Google::Protobuf::FileOptions }
10
11
 
11
12
  ##
12
13
  # Enum Classes
13
14
  #
14
15
  class EDemoCommands < ::Protobuf::Enum
15
- define :DEM_Error, -1
16
- define :DEM_Stop, 0
17
- define :DEM_FileHeader, 1
18
- define :DEM_FileInfo, 2
19
- define :DEM_SyncTick, 3
20
- define :DEM_SendTables, 4
21
- define :DEM_ClassInfo, 5
22
- define :DEM_StringTables, 6
23
- define :DEM_Packet, 7
24
- define :DEM_SignonPacket, 8
25
- define :DEM_ConsoleCmd, 9
26
- define :DEM_CustomData, 10
27
- define :DEM_CustomDataCallbacks, 11
28
- define :DEM_UserCmd, 12
29
- define :DEM_FullPacket, 13
30
- define :DEM_SaveGame, 14
31
- define :DEM_SpawnGroups, 15
32
- define :DEM_Max, 16
33
- define :DEM_IsCompressed_S1, 112
34
- define :DEM_IsCompressed_S2, 64
16
+ define :DEM_ERROR, -1
17
+ define :DEM_STOP, 0
18
+ define :DEM_FILEHEADER, 1
19
+ define :DEM_FILEINFO, 2
20
+ define :DEM_SYNCTICK, 3
21
+ define :DEM_SENDTABLES, 4
22
+ define :DEM_CLASSINFO, 5
23
+ define :DEM_STRINGTABLES, 6
24
+ define :DEM_PACKET, 7
25
+ define :DEM_SIGNONPACKET, 8
26
+ define :DEM_CONSOLECMD, 9
27
+ define :DEM_CUSTOMDATA, 10
28
+ define :DEM_CUSTOMDATACALLBACKS, 11
29
+ define :DEM_USERCMD, 12
30
+ define :DEM_FULLPACKET, 13
31
+ define :DEM_SAVEGAME, 14
32
+ define :DEM_SPAWNGROUPS, 15
33
+ define :DEM_MAX, 16
34
+ define :DEM_ISCOMPRESSED_S1, 112
35
+ define :DEM_ISCOMPRESSED_S2, 64
35
36
  end
36
37
 
37
38
 
@@ -3,108 +3,109 @@
3
3
  ##
4
4
  # This file is auto-generated. DO NOT EDIT!
5
5
  #
6
- require 'protobuf/message'
6
+ require 'protobuf'
7
7
 
8
8
  module Effigy
9
9
  module Wire
10
+ ::Protobuf::Optionable.inject(self) { ::Google::Protobuf::FileOptions }
10
11
 
11
12
  ##
12
13
  # Enum Classes
13
14
  #
14
15
  class EDOTAChatWheelMessage < ::Protobuf::Enum
15
- define :K_EDOTA_CW_Ok, 0
16
- define :K_EDOTA_CW_Care, 1
17
- define :K_EDOTA_CW_GetBack, 2
18
- define :K_EDOTA_CW_NeedWards, 3
19
- define :K_EDOTA_CW_Stun, 4
20
- define :K_EDOTA_CW_Help, 5
21
- define :K_EDOTA_CW_Push, 6
22
- define :K_EDOTA_CW_GoodJob, 7
23
- define :K_EDOTA_CW_Missing, 8
24
- define :K_EDOTA_CW_Missing_Top, 9
25
- define :K_EDOTA_CW_Missing_Mid, 10
26
- define :K_EDOTA_CW_Missing_Bottom, 11
27
- define :K_EDOTA_CW_Go, 12
28
- define :K_EDOTA_CW_Initiate, 13
29
- define :K_EDOTA_CW_Follow, 14
30
- define :K_EDOTA_CW_Group_Up, 15
31
- define :K_EDOTA_CW_Spread_Out, 16
32
- define :K_EDOTA_CW_Split_Farm, 17
33
- define :K_EDOTA_CW_Attack, 18
16
+ define :K_EDOTA_CW_OK, 0
17
+ define :K_EDOTA_CW_CARE, 1
18
+ define :K_EDOTA_CW_GETBACK, 2
19
+ define :K_EDOTA_CW_NEEDWARDS, 3
20
+ define :K_EDOTA_CW_STUN, 4
21
+ define :K_EDOTA_CW_HELP, 5
22
+ define :K_EDOTA_CW_PUSH, 6
23
+ define :K_EDOTA_CW_GOODJOB, 7
24
+ define :K_EDOTA_CW_MISSING, 8
25
+ define :K_EDOTA_CW_MISSING_TOP, 9
26
+ define :K_EDOTA_CW_MISSING_MID, 10
27
+ define :K_EDOTA_CW_MISSING_BOTTOM, 11
28
+ define :K_EDOTA_CW_GO, 12
29
+ define :K_EDOTA_CW_INITIATE, 13
30
+ define :K_EDOTA_CW_FOLLOW, 14
31
+ define :K_EDOTA_CW_GROUP_UP, 15
32
+ define :K_EDOTA_CW_SPREAD_OUT, 16
33
+ define :K_EDOTA_CW_SPLIT_FARM, 17
34
+ define :K_EDOTA_CW_ATTACK, 18
34
35
  define :K_EDOTA_CW_BRB, 19
35
- define :K_EDOTA_CW_Dive, 20
36
+ define :K_EDOTA_CW_DIVE, 20
36
37
  define :K_EDOTA_CW_OMW, 21
37
- define :K_EDOTA_CW_Get_Ready, 22
38
- define :K_EDOTA_CW_Bait, 23
39
- define :K_EDOTA_CW_Heal, 24
40
- define :K_EDOTA_CW_Mana, 25
38
+ define :K_EDOTA_CW_GET_READY, 22
39
+ define :K_EDOTA_CW_BAIT, 23
40
+ define :K_EDOTA_CW_HEAL, 24
41
+ define :K_EDOTA_CW_MANA, 25
41
42
  define :K_EDOTA_CW_OOM, 26
42
- define :K_EDOTA_CW_Skill_Cooldown, 27
43
- define :K_EDOTA_CW_Ulti_Ready, 28
44
- define :K_EDOTA_CW_Enemy_Returned, 29
45
- define :K_EDOTA_CW_All_Missing, 30
46
- define :K_EDOTA_CW_Enemy_Incoming, 31
47
- define :K_EDOTA_CW_Invis_Enemy, 32
48
- define :K_EDOTA_CW_Enemy_Had_Rune, 33
49
- define :K_EDOTA_CW_Split_Push, 34
50
- define :K_EDOTA_CW_Coming_To_Gank, 35
51
- define :K_EDOTA_CW_Request_Gank, 36
52
- define :K_EDOTA_CW_Fight_Under_Tower, 37
53
- define :K_EDOTA_CW_Deny_Tower, 38
54
- define :K_EDOTA_CW_Buy_Courier, 39
55
- define :K_EDOTA_CW_Upgrade_Courier, 40
56
- define :K_EDOTA_CW_Need_Detection, 41
57
- define :K_EDOTA_CW_They_Have_Detection, 42
58
- define :K_EDOTA_CW_Buy_TP, 43
59
- define :K_EDOTA_CW_Reuse_Courier, 44
60
- define :K_EDOTA_CW_Deward, 45
61
- define :K_EDOTA_CW_Building_Mek, 46
62
- define :K_EDOTA_CW_Building_Pipe, 47
63
- define :K_EDOTA_CW_Stack_And_Pull, 48
64
- define :K_EDOTA_CW_Pull, 49
65
- define :K_EDOTA_CW_Pulling, 50
66
- define :K_EDOTA_CW_Stack, 51
67
- define :K_EDOTA_CW_Jungling, 52
68
- define :K_EDOTA_CW_Roshan, 53
69
- define :K_EDOTA_CW_Affirmative, 54
70
- define :K_EDOTA_CW_Wait, 55
71
- define :K_EDOTA_CW_Pause, 56
72
- define :K_EDOTA_CW_Current_Time, 57
73
- define :K_EDOTA_CW_Check_Runes, 58
74
- define :K_EDOTA_CW_Smoke_Gank, 59
43
+ define :K_EDOTA_CW_SKILL_COOLDOWN, 27
44
+ define :K_EDOTA_CW_ULTI_READY, 28
45
+ define :K_EDOTA_CW_ENEMY_RETURNED, 29
46
+ define :K_EDOTA_CW_ALL_MISSING, 30
47
+ define :K_EDOTA_CW_ENEMY_INCOMING, 31
48
+ define :K_EDOTA_CW_INVIS_ENEMY, 32
49
+ define :K_EDOTA_CW_ENEMY_HAD_RUNE, 33
50
+ define :K_EDOTA_CW_SPLIT_PUSH, 34
51
+ define :K_EDOTA_CW_COMING_TO_GANK, 35
52
+ define :K_EDOTA_CW_REQUEST_GANK, 36
53
+ define :K_EDOTA_CW_FIGHT_UNDER_TOWER, 37
54
+ define :K_EDOTA_CW_DENY_TOWER, 38
55
+ define :K_EDOTA_CW_BUY_COURIER, 39
56
+ define :K_EDOTA_CW_UPGRADE_COURIER, 40
57
+ define :K_EDOTA_CW_NEED_DETECTION, 41
58
+ define :K_EDOTA_CW_THEY_HAVE_DETECTION, 42
59
+ define :K_EDOTA_CW_BUY_TP, 43
60
+ define :K_EDOTA_CW_REUSE_COURIER, 44
61
+ define :K_EDOTA_CW_DEWARD, 45
62
+ define :K_EDOTA_CW_BUILDING_MEK, 46
63
+ define :K_EDOTA_CW_BUILDING_PIPE, 47
64
+ define :K_EDOTA_CW_STACK_AND_PULL, 48
65
+ define :K_EDOTA_CW_PULL, 49
66
+ define :K_EDOTA_CW_PULLING, 50
67
+ define :K_EDOTA_CW_STACK, 51
68
+ define :K_EDOTA_CW_JUNGLING, 52
69
+ define :K_EDOTA_CW_ROSHAN, 53
70
+ define :K_EDOTA_CW_AFFIRMATIVE, 54
71
+ define :K_EDOTA_CW_WAIT, 55
72
+ define :K_EDOTA_CW_PAUSE, 56
73
+ define :K_EDOTA_CW_CURRENT_TIME, 57
74
+ define :K_EDOTA_CW_CHECK_RUNES, 58
75
+ define :K_EDOTA_CW_SMOKE_GANK, 59
75
76
  define :K_EDOTA_CW_GLHF, 60
76
- define :K_EDOTA_CW_Nice, 61
77
- define :K_EDOTA_CW_Thanks, 62
78
- define :K_EDOTA_CW_Sorry, 63
79
- define :K_EDOTA_CW_No_Give_Up, 64
80
- define :K_EDOTA_CW_Just_Happened, 65
81
- define :K_EDOTA_CW_Game_Is_Hard, 66
82
- define :K_EDOTA_CW_New_Meta, 67
83
- define :K_EDOTA_CW_My_Bad, 68
84
- define :K_EDOTA_CW_Regret, 69
85
- define :K_EDOTA_CW_Relax, 70
86
- define :K_EDOTA_CW_MissingHero, 71
87
- define :K_EDOTA_CW_ReturnedHero, 72
77
+ define :K_EDOTA_CW_NICE, 61
78
+ define :K_EDOTA_CW_THANKS, 62
79
+ define :K_EDOTA_CW_SORRY, 63
80
+ define :K_EDOTA_CW_NO_GIVE_UP, 64
81
+ define :K_EDOTA_CW_JUST_HAPPENED, 65
82
+ define :K_EDOTA_CW_GAME_IS_HARD, 66
83
+ define :K_EDOTA_CW_NEW_META, 67
84
+ define :K_EDOTA_CW_MY_BAD, 68
85
+ define :K_EDOTA_CW_REGRET, 69
86
+ define :K_EDOTA_CW_RELAX, 70
87
+ define :K_EDOTA_CW_MISSINGHERO, 71
88
+ define :K_EDOTA_CW_RETURNEDHERO, 72
88
89
  define :K_EDOTA_CW_GG, 73
89
90
  define :K_EDOTA_CW_GGWP, 74
90
- define :K_EDOTA_CW_All_GG, 75
91
- define :K_EDOTA_CW_All_GGWP, 76
92
- define :K_EDOTA_CW_What_To_Buy, 77
93
- define :K_EDOTA_CW_Im_Retreating, 78
94
- define :K_EDOTA_CW_Space_Created, 79
95
- define :K_EDOTA_CW_Whoops, 80
96
- define :K_EDOTA_CW_Tower_then_Back, 81
97
- define :K_EDOTA_CW_Barracks_then_Back, 82
98
- define :K_EDOTA_CW_Ward_Bottom_Rune, 83
99
- define :K_EDOTA_CW_Ward_Top_Rune, 84
100
- define :K_EDOTA_CW_Zeus_Ult, 85
91
+ define :K_EDOTA_CW_ALL_GG, 75
92
+ define :K_EDOTA_CW_ALL_GGWP, 76
93
+ define :K_EDOTA_CW_WHAT_TO_BUY, 77
94
+ define :K_EDOTA_CW_IM_RETREATING, 78
95
+ define :K_EDOTA_CW_SPACE_CREATED, 79
96
+ define :K_EDOTA_CW_WHOOPS, 80
97
+ define :K_EDOTA_CW_TOWER_THEN_BACK, 81
98
+ define :K_EDOTA_CW_BARRACKS_THEN_BACK, 82
99
+ define :K_EDOTA_CW_WARD_BOTTOM_RUNE, 83
100
+ define :K_EDOTA_CW_WARD_TOP_RUNE, 84
101
+ define :K_EDOTA_CW_ZEUS_ULT, 85
101
102
  end
102
103
 
103
104
  class EDOTAStatPopupTypes < ::Protobuf::Enum
104
- define :K_EDOTA_SPT_Textline, 0
105
- define :K_EDOTA_SPT_Basic, 1
106
- define :K_EDOTA_SPT_Poll, 2
107
- define :K_EDOTA_SPT_Grid, 3
105
+ define :K_EDOTA_SPT_TEXTLINE, 0
106
+ define :K_EDOTA_SPT_BASIC, 1
107
+ define :K_EDOTA_SPT_POLL, 2
108
+ define :K_EDOTA_SPT_GRID, 3
108
109
  end
109
110
 
110
111
  class Dotaunitorder_t < ::Protobuf::Enum
@@ -192,7 +193,7 @@ module Effigy
192
193
  end
193
194
 
194
195
  class CDOTAMsg_SendStatPopup
195
- optional ::Effigy::Wire::EDOTAStatPopupTypes, :style, 1, :default => ::Effigy::Wire::EDOTAStatPopupTypes::K_EDOTA_SPT_Textline
196
+ optional ::Effigy::Wire::EDOTAStatPopupTypes, :style, 1, :default => ::Effigy::Wire::EDOTAStatPopupTypes::K_EDOTA_SPT_TEXTLINE
196
197
  repeated :string, :stat_strings, 2
197
198
  repeated :int32, :stat_images, 3
198
199
  end
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  # This file is auto-generated. DO NOT EDIT!
5
5
  #
6
- require 'protobuf/message'
6
+ require 'protobuf'
7
7
 
8
8
 
9
9
  ##
@@ -13,6 +13,7 @@ require_relative 'networkbasetypes.pb'
13
13
 
14
14
  module Effigy
15
15
  module Wire
16
+ ::Protobuf::Optionable.inject(self) { ::Google::Protobuf::FileOptions }
16
17
 
17
18
  ##
18
19
  # Enum Classes
@@ -3,7 +3,7 @@
3
3
  ##
4
4
  # This file is auto-generated. DO NOT EDIT!
5
5
  #
6
- require 'protobuf/message'
6
+ require 'protobuf'
7
7
 
8
8
 
9
9
  ##
@@ -14,6 +14,7 @@ require_relative 'dota_commonmessages.pb'
14
14
 
15
15
  module Effigy
16
16
  module Wire
17
+ ::Protobuf::Optionable.inject(self) { ::Google::Protobuf::FileOptions }
17
18
 
18
19
  ##
19
20
  # Enum Classes
@@ -245,53 +246,53 @@ module Effigy
245
246
  end
246
247
 
247
248
  class EHeroStatType < ::Protobuf::Enum
248
- define :K_EHeroStatType_None, 0
249
- define :K_EHeroStatType_AxeTotalDamage, 2000
250
- define :K_EHeroStatType_BattleHungerDamage, 2001
251
- define :K_EHeroStatType_CounterHelixDamage, 2002
252
- define :K_EHeroStatType_CullingBladeDamage, 2003
253
- define :K_EHeroStatType_BerserkersCallCastCount, 2004
254
- define :K_EHeroStatType_BerserkersCallHeroesHitAverage, 2005
255
- define :K_EHeroStatType_BerserkersCallOtherUnitsHit, 2006
256
- define :K_EHeroStatType_BerserkersCallHeroAttacksTaken, 2007
257
- define :K_EHeroStatType_BerserkersCallOtherAttacksTaken, 2008
258
- define :K_EHeroStatType_BattleHungerCastCount, 2009
259
- define :K_EHeroStatType_BattleHungerPotentialDuration, 2010
260
- define :K_EHeroStatType_BattleHungerAverageDuration, 2011
261
- define :K_EHeroStatType_CounterHelixProcCount, 2012
262
- define :K_EHeroStatType_CounterHelixHeroProcCount, 2013
263
- define :K_EHeroStatType_CounterHelixHeroesHitAverage, 2014
264
- define :K_EHeroStatType_CounterHelixOtherUnitsHitCount, 2015
265
- define :K_EHeroStatType_CullingBladeCastCount, 2016
266
- define :K_EHeroStatType_CullingBladeKillCount, 2017
267
- define :K_EHeroStatType_CullingBladeAverageHealthCulled, 2018
268
- define :K_EHeroStatType_CullingBladeAverageDamageAvailable, 2019
269
- define :K_EHeroStatType_CullingBladeHeroBuffAverage, 2020
249
+ define :K_EHEROSTATTYPE_NONE, 0
250
+ define :K_EHEROSTATTYPE_AXETOTALDAMAGE, 2000
251
+ define :K_EHEROSTATTYPE_BATTLEHUNGERDAMAGE, 2001
252
+ define :K_EHEROSTATTYPE_COUNTERHELIXDAMAGE, 2002
253
+ define :K_EHEROSTATTYPE_CULLINGBLADEDAMAGE, 2003
254
+ define :K_EHEROSTATTYPE_BERSERKERSCALLCASTCOUNT, 2004
255
+ define :K_EHEROSTATTYPE_BERSERKERSCALLHEROESHITAVERAGE, 2005
256
+ define :K_EHEROSTATTYPE_BERSERKERSCALLOTHERUNITSHIT, 2006
257
+ define :K_EHEROSTATTYPE_BERSERKERSCALLHEROATTACKSTAKEN, 2007
258
+ define :K_EHEROSTATTYPE_BERSERKERSCALLOTHERATTACKSTAKEN, 2008
259
+ define :K_EHEROSTATTYPE_BATTLEHUNGERCASTCOUNT, 2009
260
+ define :K_EHEROSTATTYPE_BATTLEHUNGERPOTENTIALDURATION, 2010
261
+ define :K_EHEROSTATTYPE_BATTLEHUNGERAVERAGEDURATION, 2011
262
+ define :K_EHEROSTATTYPE_COUNTERHELIXPROCCOUNT, 2012
263
+ define :K_EHEROSTATTYPE_COUNTERHELIXHEROPROCCOUNT, 2013
264
+ define :K_EHEROSTATTYPE_COUNTERHELIXHEROESHITAVERAGE, 2014
265
+ define :K_EHEROSTATTYPE_COUNTERHELIXOTHERUNITSHITCOUNT, 2015
266
+ define :K_EHEROSTATTYPE_CULLINGBLADECASTCOUNT, 2016
267
+ define :K_EHEROSTATTYPE_CULLINGBLADEKILLCOUNT, 2017
268
+ define :K_EHEROSTATTYPE_CULLINGBLADEAVERAGEHEALTHCULLED, 2018
269
+ define :K_EHEROSTATTYPE_CULLINGBLADEAVERAGEDAMAGEAVAILABLE, 2019
270
+ define :K_EHEROSTATTYPE_CULLINGBLADEHEROBUFFAVERAGE, 2020
270
271
  end
271
272
 
272
273
  class EPlayerVoiceListenState < ::Protobuf::Enum
273
- define :KPVLS_None, 0
274
- define :KPVLS_DeniedChatBanned, 1
275
- define :KPVLS_DeniedPartner, 2
276
- define :KPVLS_DeniedHLTVTalkerNotSpectator, 3
277
- define :KPVLS_DeniedHLTVNoTalkerPlayerID, 4
278
- define :KPVLS_DeniedHLTVTalkerNotBroadcaster, 5
279
- define :KPVLS_DeniedTeamSpectator, 6
280
- define :KPVLS_DeniedStudent, 8
281
- define :KPVLS_Denied, 64
282
- define :KPVLS_AllowHLTVTalkerIsBroadcaster, 65
283
- define :KPVLS_AllowCoBroadcaster, 66
284
- define :KPVLS_AllowAllChat, 67
285
- define :KPVLS_AllowStudentToCoach, 68
286
- define :KPVLS_AllowFellowStudent, 69
287
- define :KPVLS_AllowTalkerIsCoach, 70
288
- define :KPVLS_AllowCoachHearTeam, 71
289
- define :KPVLS_AllowSameTeam, 72
290
- define :KPVLS_AllowShowcase, 73
274
+ define :KPVLS_NONE, 0
275
+ define :KPVLS_DENIEDCHATBANNED, 1
276
+ define :KPVLS_DENIEDPARTNER, 2
277
+ define :KPVLS_DENIEDHLTVTALKERNOTSPECTATOR, 3
278
+ define :KPVLS_DENIEDHLTVNOTALKERPLAYERID, 4
279
+ define :KPVLS_DENIEDHLTVTALKERNOTBROADCASTER, 5
280
+ define :KPVLS_DENIEDTEAMSPECTATOR, 6
281
+ define :KPVLS_DENIEDSTUDENT, 8
282
+ define :KPVLS_DENIED, 64
283
+ define :KPVLS_ALLOWHLTVTALKERISBROADCASTER, 65
284
+ define :KPVLS_ALLOWCOBROADCASTER, 66
285
+ define :KPVLS_ALLOWALLCHAT, 67
286
+ define :KPVLS_ALLOWSTUDENTTOCOACH, 68
287
+ define :KPVLS_ALLOWFELLOWSTUDENT, 69
288
+ define :KPVLS_ALLOWTALKERISCOACH, 70
289
+ define :KPVLS_ALLOWCOACHHEARTEAM, 71
290
+ define :KPVLS_ALLOWSAMETEAM, 72
291
+ define :KPVLS_ALLOWSHOWCASE, 73
291
292
  end
292
293
 
293
294
  class EProjectionEvent < ::Protobuf::Enum
294
- define :EPE_FirstBlood, 0
295
+ define :EPE_FIRSTBLOOD, 0
295
296
  end
296
297
 
297
298
 
@@ -343,8 +344,8 @@ module Effigy
343
344
  class CDOTAUserMsg_PredictionResult < ::Protobuf::Message
344
345
  class Prediction < ::Protobuf::Message
345
346
  class EResult < ::Protobuf::Enum
346
- define :K_eResult_ItemGranted, 1
347
- define :K_eResult_Destroyed, 2
347
+ define :K_ERESULT_ITEMGRANTED, 1
348
+ define :K_ERESULT_DESTROYED, 2
348
349
  end
349
350
 
350
351
  end
@@ -691,7 +692,7 @@ module Effigy
691
692
  optional :uint32, :item_def, 1
692
693
  optional :uint32, :num_correct, 2
693
694
  optional :uint32, :num_fails, 3
694
- optional ::Effigy::Wire::CDOTAUserMsg_PredictionResult::Prediction::EResult, :result, 4, :default => ::Effigy::Wire::CDOTAUserMsg_PredictionResult::Prediction::EResult::K_eResult_ItemGranted
695
+ optional ::Effigy::Wire::CDOTAUserMsg_PredictionResult::Prediction::EResult, :result, 4, :default => ::Effigy::Wire::CDOTAUserMsg_PredictionResult::Prediction::EResult::K_ERESULT_ITEMGRANTED
695
696
  repeated :uint32, :granted_item_defs, 6
696
697
  end
697
698
 
@@ -899,7 +900,7 @@ module Effigy
899
900
  end
900
901
 
901
902
  class CDOTAUserMsg_ChatWheel
902
- optional ::Effigy::Wire::EDOTAChatWheelMessage, :chat_message, 1, :default => ::Effigy::Wire::EDOTAChatWheelMessage::K_EDOTA_CW_Ok
903
+ optional ::Effigy::Wire::EDOTAChatWheelMessage, :chat_message, 1, :default => ::Effigy::Wire::EDOTAChatWheelMessage::K_EDOTA_CW_OK
903
904
  optional :uint32, :player_id, 2
904
905
  optional :uint32, :account_id, 3
905
906
  optional :uint32, :param_hero_id, 4
@@ -1099,7 +1100,7 @@ module Effigy
1099
1100
  optional :uint32, :tower_damage, 4
1100
1101
  optional ::Effigy::Wire::CDOTAUserMsg_StatsHeroPositionInfo, :position_info, 5
1101
1102
  optional :uint32, :total_xp, 6
1102
- optional :uint32, :NET_worth, 7
1103
+ optional :uint32, :net_worth, 7
1103
1104
  optional :uint32, :harvested_creep_gold, 8
1104
1105
  optional :uint32, :claimed_farm, 9
1105
1106
  optional :uint32, :wards_placed, 10
@@ -1186,7 +1187,7 @@ module Effigy
1186
1187
  end
1187
1188
 
1188
1189
  class CMsgHeroAbilityStat
1189
- optional ::Effigy::Wire::EHeroStatType, :stat_type, 1, :default => ::Effigy::Wire::EHeroStatType::K_EHeroStatType_None
1190
+ optional ::Effigy::Wire::EHeroStatType, :stat_type, 1, :default => ::Effigy::Wire::EHeroStatType::K_EHEROSTATTYPE_NONE
1190
1191
  optional :int32, :int_value, 2
1191
1192
  optional :float, :float_value, 3
1192
1193
  end
@@ -1245,7 +1246,7 @@ module Effigy
1245
1246
  end
1246
1247
 
1247
1248
  class CDOTAUserMsg_ProjectionEvent
1248
- optional ::Effigy::Wire::EProjectionEvent, :event_id, 1, :default => ::Effigy::Wire::EProjectionEvent::EPE_FirstBlood
1249
+ optional ::Effigy::Wire::EProjectionEvent, :event_id, 1, :default => ::Effigy::Wire::EProjectionEvent::EPE_FIRSTBLOOD
1249
1250
  optional :uint32, :team, 2
1250
1251
  end
1251
1252