-
Notifications
You must be signed in to change notification settings - Fork 301
/
dota_gcmessages_client_fantasy.proto
564 lines (493 loc) · 15.6 KB
/
dota_gcmessages_client_fantasy.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
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
import "dota_shared_enums.proto";
enum DOTA_2013PassportSelectionIndices {
PP13_SEL_ALLSTAR_PLAYER_0 = 0;
PP13_SEL_ALLSTAR_PLAYER_1 = 1;
PP13_SEL_ALLSTAR_PLAYER_2 = 2;
PP13_SEL_ALLSTAR_PLAYER_3 = 3;
PP13_SEL_ALLSTAR_PLAYER_4 = 4;
PP13_SEL_ALLSTAR_PLAYER_5 = 5;
PP13_SEL_ALLSTAR_PLAYER_6 = 6;
PP13_SEL_ALLSTAR_PLAYER_7 = 7;
PP13_SEL_ALLSTAR_PLAYER_8 = 8;
PP13_SEL_ALLSTAR_PLAYER_9 = 9;
PP13_SEL_QUALPRED_WEST_0 = 10;
PP13_SEL_QUALPRED_WEST_1 = 11;
PP13_SEL_QUALPRED_WEST_2 = 12;
PP13_SEL_QUALPRED_WEST_3 = 13;
PP13_SEL_QUALPRED_WEST_4 = 14;
PP13_SEL_QUALPRED_WEST_5 = 15;
PP13_SEL_QUALPRED_WEST_6 = 16;
PP13_SEL_QUALPRED_WEST_7 = 17;
PP13_SEL_QUALPRED_WEST_8 = 18;
PP13_SEL_QUALPRED_WEST_9 = 19;
PP13_SEL_QUALPRED_WEST_10 = 20;
PP13_SEL_QUALPRED_WEST_11 = 21;
PP13_SEL_QUALPRED_WEST_12 = 22;
PP13_SEL_QUALPRED_WEST_13 = 23;
PP13_SEL_QUALPRED_WEST_14 = 24;
PP13_SEL_QUALPRED_EAST_0 = 25;
PP13_SEL_QUALPRED_EAST_1 = 26;
PP13_SEL_QUALPRED_EAST_2 = 27;
PP13_SEL_QUALPRED_EAST_3 = 28;
PP13_SEL_QUALPRED_EAST_4 = 29;
PP13_SEL_QUALPRED_EAST_5 = 30;
PP13_SEL_QUALPRED_EAST_6 = 31;
PP13_SEL_QUALPRED_EAST_7 = 32;
PP13_SEL_QUALPRED_EAST_8 = 33;
PP13_SEL_QUALPRED_EAST_9 = 34;
PP13_SEL_QUALPRED_EAST_10 = 35;
PP13_SEL_QUALPRED_EAST_11 = 36;
PP13_SEL_QUALPRED_EAST_12 = 37;
PP13_SEL_QUALPRED_EAST_13 = 38;
PP13_SEL_QUALPRED_EAST_14 = 39;
PP13_SEL_TEAMCUP_TEAM = 40;
PP13_SEL_TEAMCUP_PLAYER = 41;
PP13_SEL_TEAMCUP_TEAM_LOCK = 42;
PP13_SEL_TEAMCUP_PLAYER_LOCK = 43;
PP13_SEL_EVENTPRED_0 = 44;
PP13_SEL_EVENTPRED_1 = 45;
PP13_SEL_EVENTPRED_2 = 46;
PP13_SEL_EVENTPRED_3 = 47;
PP13_SEL_EVENTPRED_4 = 48;
PP13_SEL_EVENTPRED_5 = 49;
PP13_SEL_EVENTPRED_6 = 50;
PP13_SEL_EVENTPRED_7 = 51;
PP13_SEL_EVENTPRED_8 = 52;
PP13_SEL_EVENTPRED_9 = 53;
PP13_SEL_EVENTPRED_10 = 54;
PP13_SEL_EVENTPRED_11 = 55;
PP13_SEL_EVENTPRED_12 = 56;
PP13_SEL_EVENTPRED_13 = 57;
PP13_SEL_EVENTPRED_14 = 58;
PP13_SEL_EVENTPRED_15 = 59;
PP13_SEL_EVENTPRED_16 = 60;
PP13_SEL_EVENTPRED_17 = 61;
PP13_SEL_EVENTPRED_18 = 62;
PP13_SEL_EVENTPRED_19 = 63;
PP13_SEL_EVENTPRED_20 = 64;
PP13_SEL_EVENTPRED_21 = 65;
PP13_SEL_EVENTPRED_22 = 66;
PP13_SEL_EVENTPRED_23 = 67;
PP13_SEL_EVENTPRED_24 = 68;
PP13_SEL_EVENTPRED_25 = 69;
PP13_SEL_EVENTPRED_26 = 70;
PP13_SEL_EVENTPRED_27 = 71;
PP13_SEL_EVENTPRED_28 = 72;
PP13_SEL_EVENTPRED_29 = 73;
PP13_SEL_EVENTPRED_30 = 74;
PP13_SEL_EVENTPRED_31 = 75;
PP13_SEL_EVENTPRED_32 = 76;
PP13_SEL_EVENTPRED_33 = 77;
PP13_SEL_EVENTPRED_34 = 78;
PP13_SEL_EVENTPRED_35 = 79;
PP13_SEL_EVENTPRED_36 = 80;
PP13_SEL_EVENTPRED_37 = 81;
PP13_SEL_EVENTPRED_38 = 82;
PP13_SEL_EVENTPRED_39 = 83;
PP13_SEL_EVENTPRED_40 = 84;
PP13_SEL_EVENTPRED_41 = 85;
PP13_SEL_EVENTPRED_42 = 86;
PP13_SEL_EVENTPRED_43 = 87;
PP13_SEL_SOLO_0 = 88;
PP13_SEL_SOLO_1 = 89;
PP13_SEL_SOLO_2 = 90;
PP13_SEL_SOLO_3 = 91;
PP13_SEL_SOLO_4 = 92;
PP13_SEL_SOLO_5 = 93;
PP13_SEL_SOLO_6 = 94;
PP13_SEL_SOLO_7 = 95;
}
message CMsgDOTAPlayerInfo {
message Results {
optional uint32 league_id = 1;
optional uint32 placement = 2;
optional uint32 earnings = 3;
}
message AuditEntry {
optional uint32 start_timestamp = 1;
optional uint32 end_timestamp = 2;
optional uint32 team_id = 3;
optional string team_name = 4;
optional string team_tag = 5;
optional string team_url_logo = 6;
}
optional uint32 account_id = 1;
optional string name = 2;
optional string country_code = 3;
optional .Fantasy_Roles fantasy_role = 4 [default = FANTASY_ROLE_UNDEFINED];
optional uint32 team_id = 5;
optional string team_name = 6;
optional string team_tag = 7;
optional string sponsor = 8;
optional bool is_locked = 9;
optional bool is_pro = 10;
optional string real_name = 11;
optional uint32 total_earnings = 13;
repeated .CMsgDOTAPlayerInfo.Results results = 14;
optional string team_url_logo = 15;
repeated .CMsgDOTAPlayerInfo.AuditEntry audit_entries = 16;
optional string team_abbreviation = 17;
}
message CMsgDOTAPlayerInfoList {
repeated .CMsgDOTAPlayerInfo player_infos = 1;
}
message CMsgDOTATeamRoster {
optional uint32 timestamp = 1;
optional uint32 team_id = 2;
repeated uint32 member_account_ids = 3;
optional uint32 coach_account_id = 4;
}
message CMsgDOTADPCProfileInfo {
message PredictionInfo {
optional uint32 percent = 1;
optional int32 shard_winnings = 2;
}
message FantasyInfo {
optional uint32 top_90_finishes = 1;
optional uint32 top_75_finishes = 2;
optional uint32 top_50_finishes = 3;
optional uint32 shard_winnings = 4;
}
optional .CMsgDOTAPlayerInfo player_info = 1;
optional .CMsgDOTADPCProfileInfo.PredictionInfo prediction_info = 2;
optional .CMsgDOTADPCProfileInfo.FantasyInfo fantasy_info = 3;
repeated uint32 disabled_notifications = 4;
}
message CMsgDOTALeaderboards {
message RegionLeaderboard {
optional uint32 division = 1;
repeated uint32 account_ids = 2;
}
repeated .CMsgDOTALeaderboards.RegionLeaderboard leaderboards = 2;
}
message CMsgDOTAPassportVoteTeamGuess {
optional uint32 league_id = 1;
optional uint32 winner_id = 2;
optional uint32 runnerup_id = 3;
}
message CMsgDOTAPassportVoteGenericSelection {
optional .DOTA_2013PassportSelectionIndices selection_index = 1 [default = PP13_SEL_ALLSTAR_PLAYER_0];
optional uint32 selection = 2;
}
message CMsgDOTAPassportStampedPlayer {
optional uint64 steam_id = 1;
optional uint32 stamp_level = 2;
}
message CMsgDOTAPassportPlayerCardChallenge {
optional uint32 challenge_id = 1;
}
message CMsgDOTAPassportVote {
repeated .CMsgDOTAPassportVoteTeamGuess team_votes = 1;
repeated .CMsgDOTAPassportVoteGenericSelection generic_selections = 2;
repeated .CMsgDOTAPassportStampedPlayer stamped_players = 3;
repeated .CMsgDOTAPassportPlayerCardChallenge player_card_challenges = 4;
}
message CMsgClientToGCGetPlayerCardRosterRequest {
optional uint32 league_id = 1;
optional uint32 fantasy_period = 3 [default = 4294967295];
}
message CMsgClientToGCGetPlayerCardRosterResponse {
enum Result {
SUCCESS = 0;
ERROR_UNSPECIFIED = 1;
ERROR_INVALID_LEAGUE_ID = 2;
ERROR_INVALID_TIMESTAMP = 3;
}
optional .CMsgClientToGCGetPlayerCardRosterResponse.Result result = 1 [default = SUCCESS];
repeated uint64 player_card_item_id = 2;
optional float score = 3;
optional bool finalized = 4;
optional float percentile = 5;
}
message CMsgClientToGCBatchGetPlayerCardRosterRequest {
message LeagueTimestamp {
optional uint32 league_id = 1;
optional uint32 fantasy_period = 3 [default = 4294967295];
}
repeated .CMsgClientToGCBatchGetPlayerCardRosterRequest.LeagueTimestamp league_timestamps = 1;
}
message CMsgClientToGCBatchGetPlayerCardRosterResponse {
message RosterResponse {
optional uint32 league_id = 1;
optional uint32 deprecated_timestamp = 2;
optional .CMsgClientToGCBatchGetPlayerCardRosterResponse.Result result = 3 [default = SUCCESS];
repeated uint64 player_card_item_id = 4;
optional float score = 5;
optional bool finalized = 6;
optional float percentile = 7;
optional uint32 fantasy_period = 8 [default = 4294967295];
}
enum Result {
SUCCESS = 0;
ERROR_UNSPECIFIED = 1;
ERROR_INVALID_LEAGUE_ID = 2;
ERROR_INVALID_TIMESTAMP = 3;
}
repeated .CMsgClientToGCBatchGetPlayerCardRosterResponse.RosterResponse responses = 1;
}
message CMsgClientToGCSetPlayerCardRosterRequest {
optional uint32 league_id = 1;
optional uint32 deprecated_timestamp = 2;
optional uint32 slot = 3;
optional uint64 player_card_item_id = 4;
optional uint32 event_id = 5;
optional uint32 fantasy_period = 6 [default = 4294967295];
}
message CMsgClientToGCSetPlayerCardRosterResponse {
enum Result {
SUCCESS = 0;
ERROR_UNSPECIFIED = 1;
ERROR_INVALID_LEAGUE_ID = 2;
ERROR_INVALID_TIMESTAMP = 3;
ERROR_PLAYER_CARD_NOT_OWNED = 4;
ERROR_INVALID_SLOT = 5;
ERROR_FAILED_CARD_INFO = 6;
ERROR_ACCOUNT_DUPLICATE = 7;
ERROR_LOCKED_TIMESTAMP = 8;
ERROR_INVALID_LEAGUE_FOR_PERIOD = 9;
ERROR_INVALID_EVENT = 10;
}
optional .CMsgClientToGCSetPlayerCardRosterResponse.Result result = 1 [default = SUCCESS];
}
message CMsgDOTAFantasyDPCLeagueStatus {
message LeagueInfo {
optional uint32 league_id = 1;
optional string league_name = 2;
optional uint32 start_timestamp = 3;
optional uint32 end_timestamp = 4;
repeated uint32 day_timestamps = 5;
optional .CMsgDOTAFantasyDPCLeagueStatus.ERosterStatus status = 8 [default = UNSET];
}
enum ERosterStatus {
UNSET = 0;
PARTIAL = 1;
FULL = 2;
CONCLUDED = 3;
}
repeated .CMsgDOTAFantasyDPCLeagueStatus.LeagueInfo league_infos = 1;
}
message CMsgDOTADPCSearchResults {
message Player {
optional uint32 id = 1;
optional string name = 2;
optional string real_name = 3;
}
message Team {
optional uint32 id = 1;
optional string name = 2;
optional string url = 3;
}
message League {
optional uint32 id = 1;
optional string name = 2;
}
enum ESearchResultsDesired {
k_ESearchResultsDesired_Players = 1;
k_ESearchResultsDesired_Teams = 2;
k_ESearchResultsDesired_Leagues = 4;
k_ESearchResultsDesired_All = 7;
}
repeated .CMsgDOTADPCSearchResults.Player players = 1;
repeated .CMsgDOTADPCSearchResults.Team teams = 2;
repeated .CMsgDOTADPCSearchResults.League leagues = 3;
}
message CMsgDOTADPCTeamFavoriteRankings {
message Team {
optional uint32 team_id = 1;
optional uint32 favorites = 2;
}
repeated .CMsgDOTADPCTeamFavoriteRankings.Team teams = 1;
}
message CMsgDotaFantasyCraftingTabletPeriodData {
message Gem {
optional .Fantasy_Gem_Type type = 1 [default = FANTASY_GEM_TYPE_RUBY];
optional uint32 slot = 2;
optional uint32 shape = 3;
optional uint32 quality = 4;
optional .Fantasy_Scoring stat = 5 [default = FANTASY_SCORING_KILLS];
}
message Tablet {
optional uint32 tablet_id = 1;
optional uint32 tablet_level = 2;
optional .Fantasy_Roles fantasy_role = 3 [default = FANTASY_ROLE_UNDEFINED];
optional uint32 account_id = 4;
optional uint32 prefix = 5;
optional uint32 suffix = 6;
repeated .CMsgDotaFantasyCraftingTabletPeriodData.Gem gems = 7;
optional float score = 8;
optional uint32 best_series = 9;
}
optional uint32 fantasy_period = 1 [default = 4294967295];
repeated .CMsgDotaFantasyCraftingTabletPeriodData.Tablet tablets = 2;
}
message CMsgDotaFantasyCraftingTabletData {
message TabletPeriodDataEntry {
optional uint32 key = 1;
optional .CMsgDotaFantasyCraftingTabletPeriodData value = 2;
}
repeated .CMsgDotaFantasyCraftingTabletData.TabletPeriodDataEntry tablet_period_data = 1;
}
message CMsgDotaFantasyCraftingUserData {
message PeriodScore {
optional float total_score = 1;
optional float percentile = 2;
}
message PeriodRollTokensEntry {
optional uint32 key = 1;
optional uint32 value = 2;
}
message PeriodScoresEntry {
optional uint32 key = 1;
optional .CMsgDotaFantasyCraftingUserData.PeriodScore value = 2;
}
repeated uint32 available_rolls = 1;
repeated .CMsgDotaFantasyCraftingUserData.PeriodRollTokensEntry period_roll_tokens = 2;
repeated .CMsgDotaFantasyCraftingUserData.PeriodScoresEntry period_scores = 3;
}
message CMsgDotaFantasyCraftingDataCache {
message CacheEntry {
optional uint32 account_id = 1;
optional uint32 fantasy_league = 2;
optional .CMsgGCToClientFantasyCraftingDataUpdated cache_data = 3;
}
repeated .CMsgDotaFantasyCraftingDataCache.CacheEntry cache_entries = 1;
}
message CMsgClientToGCFantasyCraftingGetData {
optional uint32 fantasy_league = 1;
optional uint32 account_id = 2;
}
message CMsgClientToGCFantasyCraftingGetDataResponse {
enum EResponse {
k_eInternalError = 0;
k_eSuccess = 1;
k_eTooBusy = 2;
k_eDisabled = 3;
k_eTimeout = 4;
k_eInvalidLeague = 5;
}
optional .CMsgClientToGCFantasyCraftingGetDataResponse.EResponse response = 1 [default = k_eInternalError];
optional .CMsgDotaFantasyCraftingUserData user_data = 2;
optional .CMsgDotaFantasyCraftingTabletData tablet_data = 4;
}
message CMsgClientToGCFantasyCraftingPerformOperation {
optional uint32 fantasy_league = 1;
optional uint32 tablet_id = 2;
optional uint32 operation_id = 3;
optional uint64 extra_data = 4;
}
message CMsgClientToGCFantasyCraftingPerformOperationResponse {
message TitleChoice {
optional uint32 prefix_choice = 1;
optional uint32 suffix_choice = 2;
}
enum EResponse {
k_eInternalError = 0;
k_eSuccess = 1;
k_eTooBusy = 2;
k_eDisabled = 3;
k_eTimeout = 4;
k_eInvalidLeague = 5;
k_eNoTokens = 6;
k_eMoreInfo = 7;
}
optional .CMsgClientToGCFantasyCraftingPerformOperationResponse.EResponse response = 1 [default = k_eInternalError];
optional uint32 operation_id = 2;
optional uint32 tablet_id = 7;
optional .CMsgDotaFantasyCraftingUserData user_data = 8;
optional .CMsgDotaFantasyCraftingTabletData tablet_data = 9;
repeated uint32 player_choices = 3;
repeated uint32 prefix_choices = 4;
repeated uint32 suffix_choices = 5;
repeated .CMsgClientToGCFantasyCraftingPerformOperationResponse.TitleChoice title_choices = 6;
}
message CMsgGCToClientFantasyCraftingDataUpdated {
optional uint32 fantasy_league = 1;
optional .CMsgDotaFantasyCraftingUserData user_data = 2;
optional .CMsgDotaFantasyCraftingTabletData tablet_data = 4;
}
message CMsgClientToGCFantasyCraftingDevModifyTablet {
optional uint32 fantasy_league = 1;
optional bool reset_tablet = 2;
optional uint32 modify_tokens = 3;
optional bool upgrade_tablets = 6;
optional uint32 fantasy_period = 5 [default = 4294967295];
}
message CMsgClientToGCFantasyCraftingDevModifyTabletResponse {
enum EResponse {
k_eInternalError = 0;
k_eSuccess = 1;
k_eTooBusy = 2;
k_eDisabled = 3;
k_eTimeout = 4;
k_eInvalidLeague = 5;
}
optional .CMsgClientToGCFantasyCraftingDevModifyTabletResponse.EResponse response = 1 [default = k_eInternalError];
optional .CMsgDotaFantasyCraftingUserData user_data = 2;
optional .CMsgDotaFantasyCraftingTabletData tablet_data = 3;
}
message CMsgClientToGCFantasyCraftingSelectPlayer {
optional uint32 fantasy_league = 1;
optional uint32 account_id = 2;
}
message CMsgClientToGCFantasyCraftingSelectPlayerResponse {
enum EResponse {
k_eInternalError = 0;
k_eSuccess = 1;
k_eTooBusy = 2;
k_eDisabled = 3;
k_eTimeout = 4;
k_eInvalidLeague = 5;
k_eInvalidPlayer = 6;
}
optional .CMsgClientToGCFantasyCraftingSelectPlayerResponse.EResponse response = 1 [default = k_eInternalError];
optional .CMsgDotaFantasyCraftingTabletData tablet_data = 2;
}
message CMsgClientToGCFantasyCraftingGenerateTablets {
optional uint32 fantasy_league = 1;
repeated uint32 account_ids = 2;
}
message CMsgClientToGCFantasyCraftingGenerateTabletsResponse {
enum EResponse {
k_eInternalError = 0;
k_eSuccess = 1;
k_eTooBusy = 2;
k_eDisabled = 3;
k_eTimeout = 4;
k_eInvalidLeague = 5;
k_eInvalidPlayer = 6;
}
optional .CMsgClientToGCFantasyCraftingGenerateTabletsResponse.EResponse response = 1 [default = k_eInternalError];
optional .CMsgDotaFantasyCraftingUserData user_data = 2;
optional .CMsgDotaFantasyCraftingTabletData tablet_data = 3;
}
message CMsgClientToGcFantasyCraftingUpgradeTablets {
optional uint32 fantasy_league = 1;
}
message CMsgClientToGcFantasyCraftingUpgradeTabletsResponse {
enum EResponse {
k_eInternalError = 0;
k_eSuccess = 1;
k_eTooBusy = 2;
k_eDisabled = 3;
k_eTimeout = 4;
k_eInvalidLeague = 5;
}
optional .CMsgClientToGcFantasyCraftingUpgradeTabletsResponse.EResponse response = 1 [default = k_eInternalError];
optional .CMsgDotaFantasyCraftingTabletData tablet_data = 3;
}
message CMsgClientToGCFantasyCraftingRerollOptions {
optional uint32 fantasy_league = 1;
}
message CMsgClientToGCFantasyCraftingRerollOptionsResponse {
enum EResponse {
k_eInternalError = 0;
k_eSuccess = 1;
k_eTooBusy = 2;
k_eDisabled = 3;
k_eTimeout = 4;
k_eInvalidLeague = 5;
k_eInsufficientTokens = 6;
}
optional .CMsgClientToGCFantasyCraftingRerollOptionsResponse.EResponse response = 1 [default = k_eInternalError];
optional .CMsgDotaFantasyCraftingUserData user_data = 2;
}