effigy_wire 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- 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,133 @@
|
|
1
|
+
package effigy.wire;
|
2
|
+
|
3
|
+
option java_package = "skadistats.clarity.wire.common.proto";
|
4
|
+
option java_outer_classname = "NetMessages";
|
5
|
+
|
6
|
+
import "networkbasetypes.proto";
|
7
|
+
|
8
|
+
option cc_generic_services = false;
|
9
|
+
|
10
|
+
enum VoiceDataFormat_t {
|
11
|
+
VOICEDATA_FORMAT_STEAM = 0;
|
12
|
+
VOICEDATA_FORMAT_ENGINE = 1;
|
13
|
+
}
|
14
|
+
|
15
|
+
message CSVCMsg_GameEventList {
|
16
|
+
message key_t {
|
17
|
+
optional int32 type = 1;
|
18
|
+
optional string name = 2;
|
19
|
+
}
|
20
|
+
|
21
|
+
message descriptor_t {
|
22
|
+
optional int32 eventid = 1;
|
23
|
+
optional string name = 2;
|
24
|
+
repeated CSVCMsg_GameEventList.key_t keys = 3;
|
25
|
+
}
|
26
|
+
|
27
|
+
repeated CSVCMsg_GameEventList.descriptor_t descriptors = 1;
|
28
|
+
}
|
29
|
+
|
30
|
+
message CSVCMsg_PacketEntities {
|
31
|
+
optional int32 max_entries = 1;
|
32
|
+
optional int32 updated_entries = 2;
|
33
|
+
optional bool is_delta = 3;
|
34
|
+
optional bool update_baseline = 4;
|
35
|
+
optional int32 baseline = 5;
|
36
|
+
optional int32 delta_from = 6;
|
37
|
+
optional bytes entity_data = 7;
|
38
|
+
optional bool pending_full_frame = 8;
|
39
|
+
optional uint32 active_spawngroup_handle = 9;
|
40
|
+
optional uint32 max_spawngroup_creationsequence = 10;
|
41
|
+
}
|
42
|
+
|
43
|
+
message CSVCMsg_ServerInfo {
|
44
|
+
optional int32 protocol = 1;
|
45
|
+
optional int32 server_count = 2;
|
46
|
+
optional bool is_dedicated = 3;
|
47
|
+
optional bool is_hltv = 4;
|
48
|
+
optional bool is_replay = 5;
|
49
|
+
optional int32 c_os = 6;
|
50
|
+
optional fixed32 map_crc = 7;
|
51
|
+
optional fixed32 client_crc = 8;
|
52
|
+
optional fixed32 string_table_crc = 9;
|
53
|
+
optional int32 max_clients = 10;
|
54
|
+
optional int32 max_classes = 11;
|
55
|
+
optional int32 player_slot = 12;
|
56
|
+
optional float tick_interval = 13;
|
57
|
+
optional string game_dir = 14;
|
58
|
+
optional string map_name = 15;
|
59
|
+
optional string sky_name = 16;
|
60
|
+
optional string host_name = 17;
|
61
|
+
optional string addon_name = 18;
|
62
|
+
optional CSVCMsg_GameSessionConfiguration game_session_config = 19;
|
63
|
+
optional bytes game_session_manifest = 20;
|
64
|
+
}
|
65
|
+
|
66
|
+
message CSVCMsg_ClassInfo {
|
67
|
+
message class_t {
|
68
|
+
optional int32 class_id = 1;
|
69
|
+
optional string data_table_name = 2;
|
70
|
+
optional string class_name = 3;
|
71
|
+
}
|
72
|
+
|
73
|
+
optional bool create_on_client = 1;
|
74
|
+
repeated CSVCMsg_ClassInfo.class_t classes = 2;
|
75
|
+
}
|
76
|
+
|
77
|
+
message CSVCMsg_SetView {
|
78
|
+
optional int32 entity_index = 1;
|
79
|
+
optional int32 slot = 2;
|
80
|
+
}
|
81
|
+
|
82
|
+
message CSVCMsg_Print {
|
83
|
+
optional string text = 1;
|
84
|
+
}
|
85
|
+
|
86
|
+
message CSVCMsg_VoiceInit {
|
87
|
+
optional int32 quality = 1;
|
88
|
+
optional string codec = 2;
|
89
|
+
optional int32 version = 3 [default = 0];
|
90
|
+
}
|
91
|
+
|
92
|
+
message CSVCMsg_Sounds {
|
93
|
+
message sounddata_t {
|
94
|
+
optional sint32 origin_x = 1;
|
95
|
+
optional sint32 origin_y = 2;
|
96
|
+
optional sint32 origin_z = 3;
|
97
|
+
optional uint32 volume = 4;
|
98
|
+
optional float delay_value = 5;
|
99
|
+
optional int32 sequence_number = 6;
|
100
|
+
optional int32 entity_index = 7;
|
101
|
+
optional int32 channel = 8;
|
102
|
+
optional int32 pitch = 9;
|
103
|
+
optional int32 flags = 10;
|
104
|
+
optional uint32 sound_num = 11;
|
105
|
+
optional fixed32 sound_num_handle = 12;
|
106
|
+
optional int32 speaker_entity = 13;
|
107
|
+
optional int32 random_seed = 14;
|
108
|
+
optional int32 sound_level = 15;
|
109
|
+
optional bool is_sentence = 16;
|
110
|
+
optional bool is_ambient = 17;
|
111
|
+
optional uint32 guid = 18;
|
112
|
+
optional fixed64 sound_resource_id = 19;
|
113
|
+
}
|
114
|
+
|
115
|
+
optional bool reliable_sound = 1;
|
116
|
+
repeated CSVCMsg_Sounds.sounddata_t sounds = 2;
|
117
|
+
}
|
118
|
+
|
119
|
+
message CSVCMsg_UpdateStringTable {
|
120
|
+
optional int32 table_id = 1;
|
121
|
+
optional int32 num_changed_entries = 2;
|
122
|
+
optional bytes string_data = 3;
|
123
|
+
}
|
124
|
+
|
125
|
+
message CSVCMsg_FullFrameSplit {
|
126
|
+
optional int32 tick = 1;
|
127
|
+
optional int32 section = 2;
|
128
|
+
optional int32 total = 3;
|
129
|
+
optional bytes data = 4;
|
130
|
+
}
|
131
|
+
|
132
|
+
|
133
|
+
|
@@ -0,0 +1,219 @@
|
|
1
|
+
package effigy.wire;
|
2
|
+
|
3
|
+
option java_package = "skadistats.clarity.wire.common.proto";
|
4
|
+
option java_outer_classname = "NetworkBaseTypes";
|
5
|
+
|
6
|
+
option cc_generic_services = false;
|
7
|
+
|
8
|
+
enum NET_Messages {
|
9
|
+
NET_NOP = 0;
|
10
|
+
NET_Disconnect = 1;
|
11
|
+
NET_File = 2;
|
12
|
+
NET_SplitScreenUser = 3;
|
13
|
+
NET_Tick = 4;
|
14
|
+
NET_StringCmd = 5;
|
15
|
+
NET_SetConVar = 6;
|
16
|
+
NET_SignonState = 7;
|
17
|
+
NET_SpawnGroup_Load = 8;
|
18
|
+
NET_SpawnGroup_ManifestUpdate = 9;
|
19
|
+
NET_SpawnGroup_SetCreationTick = 11;
|
20
|
+
NET_SpawnGroup_Unload = 12;
|
21
|
+
NET_SpawnGroup_LoadCompleted = 13;
|
22
|
+
NET_ReliableMessageEndMarker = 14;
|
23
|
+
}
|
24
|
+
|
25
|
+
enum SpawnGroupFlags_t {
|
26
|
+
SPAWN_GROUP_LOAD_ENTITIES_FROM_SAVE = 1;
|
27
|
+
SPAWN_GROUP_DONT_SPAWN_ENTITIES = 2;
|
28
|
+
SPAWN_GROUP_SYNCHRONOUS_SPAWN = 4;
|
29
|
+
SPAWN_GROUP_IS_INITIAL_SPAWN_GROUP = 8;
|
30
|
+
SPAWN_GROUP_CREATE_CLIENT_ONLY_ENTITIES = 16;
|
31
|
+
SPAWN_GROUP_SAVE_ENTITIES = 32;
|
32
|
+
SPAWN_GROUP_BLOCK_UNTIL_LOADED = 64;
|
33
|
+
SPAWN_GROUP_LOAD_STREAMING_DATA = 128;
|
34
|
+
SPAWN_GROUP_CREATE_NEW_SCENE_WORLD = 256;
|
35
|
+
}
|
36
|
+
|
37
|
+
message CMsgVector {
|
38
|
+
optional float x = 1;
|
39
|
+
optional float y = 2;
|
40
|
+
optional float z = 3;
|
41
|
+
}
|
42
|
+
|
43
|
+
message CMsgVector2D {
|
44
|
+
optional float x = 1;
|
45
|
+
optional float y = 2;
|
46
|
+
}
|
47
|
+
|
48
|
+
message CMsgQAngle {
|
49
|
+
optional float x = 1;
|
50
|
+
optional float y = 2;
|
51
|
+
optional float z = 3;
|
52
|
+
}
|
53
|
+
|
54
|
+
message CMsgPlayerInfo {
|
55
|
+
optional string name = 1;
|
56
|
+
optional fixed64 xuid = 2;
|
57
|
+
optional int32 userid = 3;
|
58
|
+
optional fixed64 steamid = 4;
|
59
|
+
optional bool fakeplayer = 5;
|
60
|
+
optional bool ishltv = 6;
|
61
|
+
repeated fixed32 customFiles = 7;
|
62
|
+
optional int32 filesDownloaded = 8;
|
63
|
+
}
|
64
|
+
|
65
|
+
message CMsg_CVars {
|
66
|
+
message CVar {
|
67
|
+
optional string name = 1;
|
68
|
+
optional string value = 2;
|
69
|
+
}
|
70
|
+
|
71
|
+
repeated CMsg_CVars.CVar cvars = 1;
|
72
|
+
}
|
73
|
+
|
74
|
+
message CNETMsg_NOP {
|
75
|
+
}
|
76
|
+
|
77
|
+
message CNETMsg_SplitScreenUser {
|
78
|
+
optional int32 slot = 1;
|
79
|
+
}
|
80
|
+
|
81
|
+
message CNETMsg_Disconnect {
|
82
|
+
// optional ENetworkDisconnectionReason reason = 2 [default = NETWORK_DISCONNECT_INVALID];
|
83
|
+
}
|
84
|
+
|
85
|
+
message CNETMsg_File {
|
86
|
+
optional int32 transfer_id = 1;
|
87
|
+
optional string file_name = 2;
|
88
|
+
optional bool is_replay_demo_file = 3;
|
89
|
+
optional bool deny = 4;
|
90
|
+
optional bool is_file_requested = 5;
|
91
|
+
}
|
92
|
+
|
93
|
+
message CNETMsg_Tick {
|
94
|
+
optional uint32 tick = 1;
|
95
|
+
optional uint32 host_frametime = 2;
|
96
|
+
optional uint32 host_frametime_std_deviation = 3;
|
97
|
+
optional uint32 host_computationtime = 4;
|
98
|
+
optional uint32 host_computationtime_std_deviation = 5;
|
99
|
+
optional uint32 host_framestarttime_std_deviation = 6;
|
100
|
+
}
|
101
|
+
|
102
|
+
message CNETMsg_StringCmd {
|
103
|
+
optional string command = 1;
|
104
|
+
}
|
105
|
+
|
106
|
+
message CNETMsg_SetConVar {
|
107
|
+
optional CMsg_CVars convars = 1;
|
108
|
+
}
|
109
|
+
|
110
|
+
message CNETMsg_SignonState {
|
111
|
+
optional uint32 signon_state = 1;
|
112
|
+
optional uint32 spawn_count = 2;
|
113
|
+
optional uint32 num_server_players = 3;
|
114
|
+
repeated string players_networkids = 4;
|
115
|
+
optional string map_name = 5;
|
116
|
+
}
|
117
|
+
|
118
|
+
message CSVCMsg_GameEvent {
|
119
|
+
message key_t {
|
120
|
+
optional int32 type = 1;
|
121
|
+
optional string val_string = 2;
|
122
|
+
optional float val_float = 3;
|
123
|
+
optional int32 val_long = 4;
|
124
|
+
optional int32 val_short = 5;
|
125
|
+
optional int32 val_byte = 6;
|
126
|
+
optional bool val_bool = 7;
|
127
|
+
optional uint64 val_uint64 = 8;
|
128
|
+
}
|
129
|
+
|
130
|
+
optional string event_name = 1;
|
131
|
+
optional int32 eventid = 2;
|
132
|
+
repeated CSVCMsg_GameEvent.key_t keys = 3;
|
133
|
+
}
|
134
|
+
|
135
|
+
message CSVCMsgList_GameEvents {
|
136
|
+
message event_t {
|
137
|
+
optional int32 tick = 1;
|
138
|
+
optional CSVCMsg_GameEvent event = 2;
|
139
|
+
}
|
140
|
+
|
141
|
+
repeated CSVCMsgList_GameEvents.event_t events = 1;
|
142
|
+
}
|
143
|
+
|
144
|
+
message CSVCMsg_UserMessage {
|
145
|
+
optional int32 msg_type = 1;
|
146
|
+
optional bytes msg_data = 2;
|
147
|
+
}
|
148
|
+
|
149
|
+
message CSVCMsgList_UserMessages {
|
150
|
+
message usermsg_t {
|
151
|
+
optional int32 tick = 1;
|
152
|
+
optional CSVCMsg_UserMessage msg = 2;
|
153
|
+
}
|
154
|
+
|
155
|
+
repeated CSVCMsgList_UserMessages.usermsg_t usermsgs = 1;
|
156
|
+
}
|
157
|
+
|
158
|
+
message CNETMsg_SpawnGroup_Load {
|
159
|
+
optional string worldname = 1;
|
160
|
+
optional string entitylumpname = 2;
|
161
|
+
optional string entityfiltername = 3;
|
162
|
+
optional uint32 spawngrouphandle = 4;
|
163
|
+
optional uint32 spawngroupownerhandle = 5;
|
164
|
+
optional CMsgVector world_offset_pos = 6;
|
165
|
+
optional CMsgQAngle world_offset_angle = 7;
|
166
|
+
optional bytes spawngroupmanifest = 8;
|
167
|
+
optional uint32 flags = 9;
|
168
|
+
optional int32 tickcount = 10;
|
169
|
+
optional bool manifestincomplete = 11;
|
170
|
+
optional string localnamefixup = 12;
|
171
|
+
optional string parentnamefixup = 13;
|
172
|
+
optional int32 manifestloadpriority = 14;
|
173
|
+
optional uint32 worldgroupid = 15;
|
174
|
+
optional uint32 creationsequence = 16;
|
175
|
+
}
|
176
|
+
|
177
|
+
message CNETMsg_SpawnGroup_ManifestUpdate {
|
178
|
+
optional uint32 spawngrouphandle = 1;
|
179
|
+
optional bytes spawngroupmanifest = 2;
|
180
|
+
optional bool manifestincomplete = 3;
|
181
|
+
}
|
182
|
+
|
183
|
+
message CNETMsg_SpawnGroup_SetCreationTick {
|
184
|
+
optional uint32 spawngrouphandle = 1;
|
185
|
+
optional int32 tickcount = 2;
|
186
|
+
optional uint32 creationsequence = 3;
|
187
|
+
}
|
188
|
+
|
189
|
+
message CNETMsg_SpawnGroup_Unload {
|
190
|
+
optional uint32 spawngrouphandle = 1;
|
191
|
+
optional uint32 flags = 2;
|
192
|
+
optional int32 tickcount = 3;
|
193
|
+
}
|
194
|
+
|
195
|
+
message CNETMsg_SpawnGroup_LoadCompleted {
|
196
|
+
optional uint32 spawngrouphandle = 1;
|
197
|
+
}
|
198
|
+
|
199
|
+
message CSVCMsg_GameSessionConfiguration {
|
200
|
+
optional bool is_multiplayer = 1;
|
201
|
+
optional bool is_loadsavegame = 2;
|
202
|
+
optional bool is_background_map = 3;
|
203
|
+
optional bool is_headless = 4;
|
204
|
+
optional uint32 min_client_limit = 5;
|
205
|
+
optional uint32 max_client_limit = 6;
|
206
|
+
optional uint32 max_clients = 7;
|
207
|
+
optional fixed32 tick_interval = 8;
|
208
|
+
optional string hostname = 9;
|
209
|
+
optional string savegamename = 10;
|
210
|
+
optional string s1_mapname = 11;
|
211
|
+
optional string gamemode = 12;
|
212
|
+
optional string server_ip_address = 13;
|
213
|
+
optional bytes data = 14;
|
214
|
+
optional bool is_localonly = 15;
|
215
|
+
}
|
216
|
+
|
217
|
+
message CNETMsg_ReliableMessageEndMarker {
|
218
|
+
}
|
219
|
+
|