Skip to content

Commit

Permalink
update protos for spring cleaning update
Browse files Browse the repository at this point in the history
  • Loading branch information
rossengeorgiev committed Feb 3, 2018
1 parent 3faf179 commit 98763e7
Show file tree
Hide file tree
Showing 14 changed files with 2,553 additions and 1,322 deletions.
231 changes: 119 additions & 112 deletions dota2/protobufs/dota_gcmessages_client_match_management_pb2.py

Large diffs are not rendered by default.

2,223 changes: 1,386 additions & 837 deletions dota2/protobufs/dota_gcmessages_client_pb2.py

Large diffs are not rendered by default.

390 changes: 352 additions & 38 deletions dota2/protobufs/dota_gcmessages_common_match_management_pb2.py

Large diffs are not rendered by default.

617 changes: 387 additions & 230 deletions dota2/protobufs/dota_gcmessages_common_pb2.py

Large diffs are not rendered by default.

59 changes: 57 additions & 2 deletions dota2/protobufs/dota_gcmessages_msgid_pb2.py

Large diffs are not rendered by default.

65 changes: 35 additions & 30 deletions dota2/protobufs/dota_shared_enums_pb2.py

Large diffs are not rendered by default.

151 changes: 79 additions & 72 deletions dota2/protobufs/steammessages_pb2.py

Large diffs are not rendered by default.

66 changes: 65 additions & 1 deletion protobufs/dota_gcmessages_client.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import "dota_shared_enums.proto";
import "dota_gcmessages_common.proto";
import "gcsdk_gcmessages.proto";
import "dota_gcmessages_common_match_management.proto";
import "base_gcmessages.proto";

option optimize_for = SPEED;
option py_generic_services = false;
Expand Down Expand Up @@ -421,6 +422,7 @@ message CMsgDOTAWelcome {
repeated dota.CMsgDOTAWelcome.CExtraMsg extra_messages = 26;
optional uint64 minimum_recent_item_id = 27;
optional dota.EEvent active_event = 28 [default = EVENT_ID_NONE];
optional uint32 additional_user_message = 29;
}

message CSODOTAGameHeroFavorites {
Expand Down Expand Up @@ -1215,6 +1217,10 @@ message CMsgGCToClientPlayerStatsResponse {
optional float support_score = 17;
optional float push_score = 18;
optional float versatility_score = 19;
optional float mean_networth = 20;
optional float mean_damage = 21;
optional float mean_heals = 22;
optional uint32 rapiers_purchased = 23;
}

message CMsgClientToGCCustomGamePlayerCountRequest {
Expand Down Expand Up @@ -2212,7 +2218,12 @@ message CMsgGCToClientBattlePassRollupListRequest {
}

message CMsgGCToClientBattlePassRollupListResponse {
repeated uint32 event_id = 1;
message EventInfo {
optional uint32 event_id = 1;
optional uint32 level = 2;
}

repeated dota.CMsgGCToClientBattlePassRollupListResponse.EventInfo event_info = 1;
}

message CMsgClientToGCTransferSeasonalMMRRequest {
Expand Down Expand Up @@ -2346,6 +2357,12 @@ message CMsgGCToClientTipNotification {
optional uint32 event_id = 5;
}

message CMsgGCToClientCommendNotification {
optional uint32 commender_account_id = 1;
optional string commender_name = 2;
optional uint32 flags = 3;
}

message CMsgGCToClientAllStarVotesRequest {
optional uint32 event_id = 1;
}
Expand Down Expand Up @@ -2433,6 +2450,13 @@ message CMsgDOTADestroyLobbyResponse {
optional dota.CMsgDOTADestroyLobbyResponse.Result result = 1 [default = SUCCESS];
}

message CMsgDOTAGetRecentPlayTimeFriendsRequest {
}

message CMsgDOTAGetRecentPlayTimeFriendsResponse {
repeated fixed32 account_ids = 1;
}

message CMsgPurchaseItemWithEventPoints {
optional uint32 item_def = 1;
optional uint32 quantity = 2;
Expand Down Expand Up @@ -2488,3 +2512,43 @@ message CMsgGCRequestSkillUpRecommendationsResponse {
repeated dota.CMsgGCRequestSkillUpRecommendationsResponse.AbilitySelection abilities = 1;
}

message CMsgProfileRequest {
optional uint32 account_id = 1;
}

message CMsgProfileResponse {
message FeaturedHero {
optional uint32 hero_id = 1;
repeated dota.CSOEconItem equipped_econ_items = 2;
optional bool manually_set = 3;
}

message MatchInfo {
optional uint64 match_id = 1;
optional uint32 match_timestamp = 2;
optional sint32 performance_rating = 3;
optional uint32 hero_id = 4;
optional bool won_match = 5;
}

optional dota.CSOEconItem background_item = 1;
repeated dota.CMsgProfileResponse.FeaturedHero featured_heroes = 2;
repeated dota.CMsgProfileResponse.MatchInfo recent_matches = 3;
repeated dota.CMsgSuccessfulHero successful_heroes = 4;
optional dota.CMsgRecentMatchInfo recent_match_details = 5;
}

message CMsgProfileUpdate {
optional uint64 background_item_id = 1;
repeated uint32 featured_hero_ids = 2;
}

message CMsgProfileUpdateResponse {
enum Result {
SUCCESS = 0;
FAILURE = 1;
}

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

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 @@ -132,6 +132,7 @@ message CMsgPracticeLobbySetDetails {
optional uint64 bot_radiant = 44;
optional uint64 bot_dire = 45;
optional dota.DOTASelectionPriorityRules selection_priority_rules = 46 [default = k_DOTASelectionPriorityRules_Manual];
optional bool custom_game_penalties = 47;
}

message CMsgPracticeLobbyCreate {
Expand Down
19 changes: 19 additions & 0 deletions protobufs/dota_gcmessages_common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ message CSODOTAGameAccountClient {
optional bool solo_seasonal_rank_transferred = 102;
optional uint64 favorite_team_packed = 103;
optional uint32 recent_report_time = 104;
optional uint32 custom_game_disabled_until_date = 105;
}

message CSODOTAGameAccountPrime {
Expand Down Expand Up @@ -1232,3 +1233,21 @@ message CMsgDOTALeagueTournament {
repeated dota.CMsgDOTALeagueTournament.NodeGroup node_groups = 2;
}

message CMsgSuccessfulHero {
optional uint32 hero_id = 1;
optional float win_percent = 2;
optional uint32 longest_streak = 3;
}

message CMsgRecentMatchInfo {
optional uint64 match_id = 1;
optional dota.DOTA_GameMode game_mode = 2 [default = DOTA_GAMEMODE_NONE];
optional uint32 kills = 3;
optional uint32 deaths = 4;
optional uint32 assists = 5;
optional uint32 duration = 6;
optional uint32 player_slot = 7;
optional dota.EMatchOutcome match_outcome = 8 [default = k_EMatchOutcome_Unknown];
optional uint32 timestamp = 9;
}

40 changes: 40 additions & 0 deletions protobufs/dota_gcmessages_common_match_management.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,20 @@ enum LobbyDotaPauseSetting {
LobbyDotaPauseSetting_Disabled = 2;
}

enum EReadyCheckStatus {
k_EReadyCheckStatus_Unknown = 0;
k_EReadyCheckStatus_NotReady = 1;
k_EReadyCheckStatus_Ready = 2;
}

enum EReadyCheckRequestResult {
k_EReadyCheckRequestResult_Success = 0;
k_EReadyCheckRequestResult_AlreadyInProgress = 1;
k_EReadyCheckRequestResult_NotInParty = 2;
k_EReadyCheckRequestResult_SendError = 3;
k_EReadyCheckRequestResult_UnknownError = 4;
}

message CSODOTAPartyMember {
optional dota.PartnerAccountType partner_type = 1 [default = PARTNER_NONE];
optional bool is_coach = 2;
Expand Down Expand Up @@ -80,6 +94,7 @@ message CSODOTAParty {
optional bool solo_queue = 59;
optional uint32 bot_script_index = 60;
optional uint32 steam_clan_account_id = 61;
optional dota.CMsgReadyCheckStatus ready_check = 62;
}

message CSODOTAPartyInvite {
Expand Down Expand Up @@ -312,9 +327,34 @@ message CSODOTALobby {
optional dota.EEvent current_primary_event = 103 [default = EVENT_ID_NONE];
optional bool lowpri_deprecated = 104;
repeated uint32 emergency_disabled_hero_ids = 105;
optional fixed64 custom_game_private_key = 106;
optional bool custom_game_penalties = 107;
}

message CMsgLobbyPlaytestDetails {
optional string json = 1;
}

message CMsgReadyCheckStatus {
message ReadyMember {
optional uint32 account_id = 1;
optional dota.EReadyCheckStatus ready_status = 2 [default = k_EReadyCheckStatus_Unknown];
}

optional uint32 start_timestamp = 1;
optional uint32 finish_timestamp = 2;
optional uint32 initiator_account_id = 3;
repeated dota.CMsgReadyCheckStatus.ReadyMember ready_members = 4;
}

message CMsgPartyReadyCheckRequest {
}

message CMsgPartyReadyCheckResponse {
optional dota.EReadyCheckRequestResult result = 1 [default = k_EReadyCheckRequestResult_Success];
}

message CMsgPartyReadyCheckAcknowledge {
optional dota.EReadyCheckStatus ready_status = 1 [default = k_EReadyCheckStatus_Unknown];
}

11 changes: 11 additions & 0 deletions protobufs/dota_gcmessages_msgid.proto
Original file line number Diff line number Diff line change
Expand Up @@ -724,5 +724,16 @@ enum EDOTAGCMsg {
k_EMsgGCGetHeroTimedStats = 8252;
k_EMsgGCGetHeroTimedStatsResponse = 8253;
k_EMsgServerToGCMatchStateHistory = 8255;
k_EMsgGetRecentPlayTimeFriendsRequest = 8265;
k_EMsgGetRecentPlayTimeFriendsResponse = 8266;
k_EMsgPartyReadyCheckRequest = 8262;
k_EMsgPartyReadyCheckResponse = 8263;
k_EMsgPartyReadyCheckAcknowledge = 8264;
k_EMsgGCToClientCommendNotification = 8267;
k_EMsgProfileRequest = 8268;
k_EMsgProfileResponse = 8269;
k_EMsgProfileUpdate = 8270;
k_EMsgProfileUpdateResponse = 8271;
k_EMsgSuccessfulHero = 8273;
}

1 change: 1 addition & 0 deletions protobufs/dota_shared_enums.proto
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ enum DOTAJoinLobbyResult {
DOTA_JOIN_RESULT_LOBBY_FULL = 9;
DOTA_JOIN_RESULT_CUSTOM_GAME_INCORRECT_VERSION = 10;
DOTA_JOIN_RESULT_TIMEOUT = 11;
DOTA_JOIN_RESULT_CUSTOM_GAME_COOLDOWN = 12;
}

enum DOTASelectionPriorityRules {
Expand Down
1 change: 1 addition & 0 deletions protobufs/steammessages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ message CMsgGCGetAppFriendsList_Response {
optional bool success = 1;
repeated fixed64 steamids = 2;
repeated fixed32 friendship_timestamps = 3;
repeated fixed32 last_playtimes = 4;
}

message CMsgGCMsgMasterSetDirectory {
Expand Down

0 comments on commit 98763e7

Please sign in to comment.