Skip to content

Commit

Permalink
update protobufs
Browse files Browse the repository at this point in the history
  • Loading branch information
rossengeorgiev committed Jul 23, 2017
1 parent ea99aa4 commit 8a58379
Show file tree
Hide file tree
Showing 16 changed files with 2,769 additions and 1,408 deletions.
70 changes: 37 additions & 33 deletions dota2/protobufs/dota_gcmessages_client_chat_pb2.py

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dota2/protobufs/dota_gcmessages_client_match_management_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2,480 changes: 1,682 additions & 798 deletions dota2/protobufs/dota_gcmessages_client_pb2.py

Large diffs are not rendered by default.

243 changes: 128 additions & 115 deletions dota2/protobufs/dota_gcmessages_common_match_management_pb2.py

Large diffs are not rendered by default.

431 changes: 219 additions & 212 deletions dota2/protobufs/dota_gcmessages_common_pb2.py

Large diffs are not rendered by default.

44 changes: 42 additions & 2 deletions dota2/protobufs/dota_gcmessages_msgid_pb2.py

Large diffs are not rendered by default.

104 changes: 65 additions & 39 deletions dota2/protobufs/dota_shared_enums_pb2.py

Large diffs are not rendered by default.

598 changes: 417 additions & 181 deletions dota2/protobufs/econ_gcmessages_pb2.py

Large diffs are not rendered by default.

113 changes: 108 additions & 5 deletions protobufs/dota_gcmessages_client.proto
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ message CMsgDOTAPopup {
LOW_BADGE_LEVEL_CHAT = 71;
LOW_WINS_CHAT = 72;
UNVERIFIED_USER_CHAT = 73;
PARTY_STARTED_FINDING_EVENT_MATCH = 74;
GENERIC_INFO = 69;
GENERIC_ERROR = 70;
}
Expand Down Expand Up @@ -417,9 +418,9 @@ message CMsgDOTAWelcome {
optional uint32 gc_socache_file_version = 22;
repeated dota.CMsgDOTAWelcome.LocalizationDigest localization_digests = 23;
optional bool is_perfect_world_test_account = 24;
repeated dota.EEvent active_events = 25;
repeated dota.CMsgDOTAWelcome.CExtraMsg extra_messages = 26;
optional uint64 minimum_recent_item_id = 27;
optional dota.EEvent active_event = 28 [default = EVENT_ID_NONE];
}

message CSODOTAGameHeroFavorites {
Expand Down Expand Up @@ -474,7 +475,6 @@ message CStaticLeagueData {
optional string loading_screen_name = 9;
optional uint32 base_prize_pool = 10;
optional bool is_major = 11;
optional uint32 sort_order = 12;
optional uint32 tier = 13;
optional uint32 amateur_region = 14;
optional string organizer = 15;
Expand All @@ -484,6 +484,7 @@ message CStaticLeagueData {
optional string inventory_image = 19;
optional string square_image = 20;
optional bool battle_pass_rollup = 21;
optional string base_prize_pool_string = 22;
}

message CLeagueData {
Expand All @@ -492,6 +493,10 @@ message CLeagueData {
optional bool is_owned = 3;
}

message CMsgResponseLeagueStaticData {
repeated dota.CStaticLeagueData leagues = 1;
}

message CMsgResponseLeagueInfo {
repeated dota.CDynamicLeagueData leagues = 1;
}
Expand Down Expand Up @@ -1221,7 +1226,7 @@ message CMsgClientToGCRecordCompendiumStats {
}

message CMsgGCToClientEventStatusChanged {
repeated dota.EEvent active_events = 1;
optional dota.EEvent active_event = 2 [default = EVENT_ID_NONE];
}

message CMsgClientToGCPlayerStatsRequest {
Expand Down Expand Up @@ -1750,6 +1755,14 @@ message CMsgClientToGCRequestEventPointLogResponse {
optional uint32 correct_answers = 1;
}

message WeeklyGameEvent {
optional uint32 points_won = 1;
}

message ExploitCorrectionEvent {
optional uint32 points_corrected = 1;
}

message EventPointTransaction {
optional uint32 time = 1;
optional int32 event_points = 2;
Expand All @@ -1766,6 +1779,8 @@ message CMsgClientToGCRequestEventPointLogResponse {
optional dota.CMsgClientToGCRequestEventPointLogResponse.CorrectPredictionEvent prediction_event = 13;
optional dota.CMsgClientToGCRequestEventPointLogResponse.FantasyRewardEvent fantasy_reward_event = 15;
optional dota.CMsgClientToGCRequestEventPointLogResponse.BracketRewardEvent bracket_reward_event = 16;
optional dota.CMsgClientToGCRequestEventPointLogResponse.WeeklyGameEvent weekly_game_event = 19;
optional dota.CMsgClientToGCRequestEventPointLogResponse.ExploitCorrectionEvent exploit_correction_event = 20;
}

optional bool result = 1;
Expand Down Expand Up @@ -1935,7 +1950,7 @@ message CMsgClientToGCOpenPlayerCardPackResponse {
}

message CMsgClientToGCRecyclePlayerCard {
optional uint64 player_card_item_id = 1;
repeated uint64 player_card_item_ids = 3;
optional uint32 event_id = 2;
}

Expand All @@ -1956,6 +1971,7 @@ message CMsgClientToGCRecyclePlayerCardResponse {
message CMsgClientToGCCreatePlayerCardPack {
optional uint64 card_dust_item_id = 1;
optional uint32 event_id = 2;
optional bool premium_pack = 3;
}

message CMsgClientToGCCreatePlayerCardPackResponse {
Expand Down Expand Up @@ -2090,6 +2106,66 @@ message CMsgGCToClientBattlePassRollup_Fall2016 {
optional dota.CMsgGCToClientBattlePassRollup_Fall2016.FantasyChallenge fantasy_challenge = 9;
}

message CMsgGCToClientBattlePassRollup_Winter2017 {
message Questlines {
optional string name = 1;
optional uint32 onestar = 2;
optional uint32 twostar = 3;
optional uint32 threestar = 4;
optional uint32 total = 5;
}

message Wagering {
optional uint32 total_wagered = 1;
optional uint32 total_won = 2;
optional uint32 average_won = 3;
optional uint32 success_rate = 4;
optional uint32 total_tips = 5;
}

message Achievements {
optional uint32 completed = 1;
optional uint32 total = 2;
optional uint32 points = 3;
}

message BattleCup {
optional uint32 wins = 1;
optional uint32 score = 2;
}

message Predictions {
optional uint32 correct = 1;
optional uint32 total = 2;
optional uint32 points = 3;
}

message Bracket {
optional uint32 correct = 1;
optional uint32 points = 2;
}

message PlayerCard {
optional uint32 account_id = 1;
optional uint32 quality = 2;
}

message FantasyChallenge {
optional float total_score = 1;
optional float percentile = 2;
}

optional uint32 battle_pass_level = 1;
repeated dota.CMsgGCToClientBattlePassRollup_Winter2017.Questlines questlines = 2;
optional dota.CMsgGCToClientBattlePassRollup_Winter2017.Wagering wagering = 3;
optional dota.CMsgGCToClientBattlePassRollup_Winter2017.Achievements achievements = 4;
optional dota.CMsgGCToClientBattlePassRollup_Winter2017.BattleCup battle_cup = 5;
optional dota.CMsgGCToClientBattlePassRollup_Winter2017.Predictions predictions = 6;
optional dota.CMsgGCToClientBattlePassRollup_Winter2017.Bracket bracket = 7;
repeated dota.CMsgGCToClientBattlePassRollup_Winter2017.PlayerCard player_cards = 8;
optional dota.CMsgGCToClientBattlePassRollup_Winter2017.FantasyChallenge fantasy_challenge = 9;
}

message CMsgGCToClientBattlePassRollupRequest {
optional uint32 event_id = 1;
optional uint32 account_id = 2;
Expand All @@ -2098,6 +2174,7 @@ message CMsgGCToClientBattlePassRollupRequest {
message CMsgGCToClientBattlePassRollupResponse {
optional dota.CMsgGCToClientBattlePassRollup_International2016 event_ti6 = 1;
optional dota.CMsgGCToClientBattlePassRollup_Fall2016 event_fall2016 = 2;
optional dota.CMsgGCToClientBattlePassRollup_Winter2017 event_winter2017 = 3;
}

message CMsgGCToClientBattlePassRollupListRequest {
Expand Down Expand Up @@ -2197,7 +2274,8 @@ message CMsgClientToGCGiveTipResponse {
ERROR_INVALID_MATCH_TIME = 4;
ERROR_NOT_WINNER = 5;
ERROR_UNOWNED_EVENT = 6;
ERROR_UNKNOWN = 7;
ERROR_INVALID_LOBBY_TYPE = 7;
ERROR_UNKNOWN = 8;
}

optional dota.CMsgClientToGCGiveTipResponse.Result result = 1 [default = SUCCESS];
Expand Down Expand Up @@ -2238,3 +2316,28 @@ message CMsgGCToClientTipNotification {
optional uint32 event_id = 5;
}

message CMsgGCToClientAllStarVotesRequest {
optional uint32 event_id = 1;
}

message CMsgGCToClientAllStarVotesReply {
repeated uint32 player_account_ids = 1;
}

message CMsgGCToClientAllStarVotesSubmit {
optional uint32 event_id = 1;
repeated uint32 player_account_ids = 2;
}

message CMsgGCToClientAllStarVotesSubmitReply {
enum Result {
SUCCESS = 1;
ERROR_INTERNAL = 2;
ERROR_INVALID_EVENT_ID = 3;
ERROR_INVALID_ACCOUNT_ID = 4;
ERROR_SELECTIONS_LOCKED = 5;
}

optional dota.CMsgGCToClientAllStarVotesSubmitReply.Result result = 1 [default = SUCCESS];
}

1 change: 1 addition & 0 deletions protobufs/dota_gcmessages_client_chat.proto
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ message CMsgDOTAJoinChatChannelResponse {
PRIVATE_CHAT_NO_PERMISSION = 11;
PRIVATE_CHAT_CREATE_LOCK_FAILED = 12;
PRIVATE_CHAT_KICKED = 13;
USER_NOT_ALLOWED = 14;
}

optional uint32 response = 1;
Expand Down
1 change: 1 addition & 0 deletions protobufs/dota_gcmessages_client_match_management.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ enum EStartFindingMatchResult {
k_EStartFindingMatchResult_MemberMissingEventOwnership = 118;
k_EStartFindingMatchResult_WeekendTourneyNotUnlocked = 119;
k_EStartFindingMatchResult_WeekendTourneyRecentParticipation = 120;
k_EStartFindingMatchResult_MemberMissingAnchoredPhoneNumber = 121;
}

message CMsgStartFindingMatch {
Expand Down
1 change: 1 addition & 0 deletions protobufs/dota_gcmessages_common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ message CSODOTAGameAccountClient {
optional uint32 solo_seasonal_ranked_games_played = 100;
optional uint32 solo_seasonal_ranked_rank_peak = 101;
optional bool solo_seasonal_rank_transferred = 102;
optional uint64 favorite_team_packed = 103;
}

message CMsgLobbyEventPoints {
Expand Down
14 changes: 8 additions & 6 deletions protobufs/dota_gcmessages_common_match_management.proto
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ message CSODOTAParty {
optional uint32 open_guild_id = 30;
repeated uint32 common_guilds = 31;
optional uint32 low_priority_games_remaining = 35;
repeated dota.EEvent active_ingame_events = 39;
optional bool open_for_join_requests = 40;
repeated dota.CSODOTAPartyInvite sent_invites = 41;
repeated dota.CSODOTAPartyInvite recv_invites = 42;
Expand All @@ -80,6 +79,7 @@ message CSODOTAParty {
optional uint32 party_builder_match_groups = 57;
optional uint32 party_builder_start_time = 58;
optional bool solo_queue = 59;
optional uint32 bot_script = 60;
}

message CSODOTAPartyInvite {
Expand Down Expand Up @@ -156,7 +156,7 @@ message CDOTALobbyMember {
repeated uint32 custom_game_product_ids = 31;
optional uint32 lobby_mvp_vote_account_id = 32;
optional dota.MatchType search_match_type = 33 [default = MATCH_TYPE_CASUAL];
optional uint32 favorite_team_and_quality = 34;
optional uint64 favorite_team_packed = 35;
}

message CLobbyTeamDetails {
Expand Down Expand Up @@ -278,7 +278,6 @@ message CSODOTALobby {
optional dota.EMatchOutcome match_outcome = 70 [default = k_EMatchOutcome_Unknown];
optional bool mass_disconnect = 67;
optional uint64 custom_game_id = 68;
repeated dota.EEvent active_ingame_events = 69;
optional uint32 custom_min_players = 71;
optional uint32 custom_max_players = 72;
optional dota.PartnerAccountType partner_type = 73 [default = PARTNER_NONE];
Expand All @@ -292,9 +291,6 @@ message CSODOTALobby {
repeated uint64 previous_series_matches = 81;
optional uint64 previous_match_override = 82;
optional bool custom_game_uses_account_records = 83;
optional uint32 league_selection_priority_team = 84;
optional dota.SelectionPriorityType league_selection_priority_choice = 85 [default = UNDEFINED];
optional dota.SelectionPriorityType league_non_selection_priority_choice = 86 [default = UNDEFINED];
optional uint32 game_start_time = 87;
optional dota.LobbyDotaPauseSetting pause_setting = 88 [default = LobbyDotaPauseSetting_Unlimited];
optional uint32 lobby_mvp_account_id = 89;
Expand All @@ -304,6 +300,12 @@ message CSODOTALobby {
optional dota.DOTABotDifficulty bot_difficulty_dire = 93 [default = BOT_DIFFICULTY_HARD];
optional uint64 bot_radiant = 94;
optional uint64 bot_dire = 95;
optional bool event_progression_enabled = 96;
optional dota.DOTASelectionPriorityRules selection_priority_rules = 97 [default = k_DOTASelectionPriorityRules_Manual];
optional uint32 series_previous_selection_priority_team_id = 98;
optional uint32 series_current_selection_priority_team_id = 99;
optional dota.DOTASelectionPriorityChoice series_current_priority_team_choice = 100 [default = k_DOTASelectionPriorityChoice_Invalid];
optional dota.DOTASelectionPriorityChoice series_current_non_priority_team_choice = 101 [default = k_DOTASelectionPriorityChoice_Invalid];
}

message CMsgLobbyPlaytestDetails {
Expand Down
8 changes: 8 additions & 0 deletions protobufs/dota_gcmessages_msgid.proto
Original file line number Diff line number Diff line change
Expand Up @@ -711,5 +711,13 @@ enum EDOTAGCMsg {
k_EMsgGCToGCSignoutSpendRankWager = 8229;
k_EMsgGCToGCGetFavoriteTeam = 8230;
k_EMsgGCToGCGetFavoriteTeamResponse = 8231;
k_EMsgSignOutEventGameData = 8232;
k_EMsgGCToClientAllStarVotesRequest = 8233;
k_EMsgGCToClientAllStarVotesReply = 8234;
k_EMsgGCToClientAllStarVotesSubmit = 8236;
k_EMsgGCToClientAllStarVotesSubmitReply = 8237;
k_EMsgClientToGCQuickStatsRequest = 8238;
k_EMsgClientToGCQuickStatsResponse = 8239;
k_EMsgGCToGCSubtractEventPointsFromUser = 8240;
}

17 changes: 11 additions & 6 deletions protobufs/dota_shared_enums.proto
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,17 @@ enum DOTAJoinLobbyResult {
DOTA_JOIN_RESULT_TIMEOUT = 11;
}

enum SelectionPriorityType {
UNDEFINED = 0;
RADIANT = 1;
DIRE = 2;
FIRST_PICK = 3;
SECOND_PICK = 4;
enum DOTASelectionPriorityRules {
k_DOTASelectionPriorityRules_Manual = 0;
k_DOTASelectionPriorityRules_Automatic = 1;
}

enum DOTASelectionPriorityChoice {
k_DOTASelectionPriorityChoice_Invalid = 0;
k_DOTASelectionPriorityChoice_FirstPick = 1;
k_DOTASelectionPriorityChoice_SecondPick = 2;
k_DOTASelectionPriorityChoice_Radiant = 3;
k_DOTASelectionPriorityChoice_Dire = 4;
}

enum DOTAMatchVote {
Expand Down

0 comments on commit 8a58379

Please sign in to comment.