Skip to content

Commit

Permalink
0.7.6 cleanup and update
Browse files Browse the repository at this point in the history
  • Loading branch information
paralin committed Mar 6, 2016
1 parent 4b63efa commit dd16522
Show file tree
Hide file tree
Showing 25 changed files with 1,303 additions and 661 deletions.
15 changes: 15 additions & 0 deletions Resources/Protobufs/dota/clientmessages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ option cc_generic_services = false;
enum EBaseClientMessages {
CM_CustomGameEvent = 280;
CM_TrackedControllerInput = 281;
CM_ClientUIEvent = 282;
CM_MAX_BASE = 300;
}

enum EClientUIEvent {
EClientUIEvent_Invalid = 0;
EClientUIEvent_DialogFinished = 1;
EClientUIEvent_FireOutput = 2;
}

message CClientMsg_CustomGameEvent {
optional string event_name = 1;
optional bytes data = 2;
Expand All @@ -16,3 +23,11 @@ message CClientMsg_TrackedControllerInput {
optional bytes data = 1;
}

message CClientMsg_ClientUIEvent {
optional .EClientUIEvent event = 1 [default = EClientUIEvent_Invalid];
optional uint32 ent_ehandle = 2;
optional uint32 client_ehandle = 3;
optional string data1 = 4;
optional string data2 = 5;
}

2 changes: 1 addition & 1 deletion Resources/Protobufs/dota/demo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ message CGameInfo {
optional uint32 hero_id = 3;
}

optional uint32 match_id = 1;
optional uint64 match_id = 1;
optional int32 game_mode = 2;
optional int32 game_winner = 3;
repeated .CGameInfo.CDotaGameInfo.CPlayerInfo player_info = 4;
Expand Down
11 changes: 6 additions & 5 deletions Resources/Protobufs/dota/dota_clientmessages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ enum EDotaClientMessages {
DOTA_CM_MapPing = 303;
DOTA_CM_UnitsAutoAttack = 304;
DOTA_CM_AutoPurchaseItems = 305;
DOTA_CM_TestItems = 306;
DOTA_CM_SearchString = 307;
DOTA_CM_Pause = 308;
DOTA_CM_ShopViewMode = 309;
Expand Down Expand Up @@ -57,6 +56,7 @@ enum EDotaClientMessages {
DOTA_CM_XPAlert = 351;
DOTA_CM_GenericBooleanConvar = 352;
DOTA_CM_EventPointsTip = 353;
DOTA_CM_MatchMetadata = 354;
}

message CDOTAClientMsg_MapPing {
Expand Down Expand Up @@ -122,10 +122,6 @@ message CDOTAClientMsg_AutoPurchaseItems {
optional bool enabled = 1;
}

message CDOTAClientMsg_TestItems {
optional string key_values = 1;
}

message CDOTAClientMsg_SearchString {
optional string search = 1;
}
Expand Down Expand Up @@ -292,3 +288,8 @@ message CDOTAClientMsg_XPAlert {
optional uint32 target_entindex = 1;
}

message CDOTAClientMsg_MatchMetadata {
optional uint64 match_id = 1;
optional bytes metadata = 2;
}

119 changes: 78 additions & 41 deletions Resources/Protobufs/dota/dota_gcmessages_client.proto
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,6 @@ message CMsgPracticeLobbyCreate {
}

optional string search_key = 1;
optional bool tournament_game = 2;
optional uint32 tournament_game_id = 3;
optional uint32 tournament_id = 4;
optional string pass_key = 5;
optional uint32 client_version = 6;
optional .CMsgPracticeLobbySetDetails lobby_details = 7;
Expand Down Expand Up @@ -544,6 +541,8 @@ message CMsgDOTAMatch {
repeated .CMatchPlayerAbilityUpgrade ability_upgrades = 47;
repeated .CMatchAdditionalUnitInventory additional_units_inventory = 48;
optional .CMsgDOTAMatch.Player.CustomGameData custom_game_data = 50;
optional bool active_battle_pass = 51;
optional uint32 net_worth = 52;
}

message BroadcasterInfo {
Expand Down Expand Up @@ -610,6 +609,9 @@ message CMsgDOTAMatch {
optional uint32 engine = 44;
optional .CMsgDOTAMatch.CustomGameData custom_game_data = 45;
optional uint32 match_flags = 46;
optional fixed32 private_metadata_key = 47;
optional uint32 radiant_team_score = 48;
optional uint32 dire_team_score = 49;
}

message CMsgDOTAPlayerMatchHistory {
Expand Down Expand Up @@ -810,6 +812,8 @@ message CMsgDOTATeam {
optional uint32 teammatchmakinggamesplayed = 21;
optional uint32 lastplayedgametime = 22;
optional uint32 lastrenametime = 23;
repeated uint64 recent_match_ids = 25;
repeated uint64 top_match_ids = 26;
}

message CMsgDOTATeamsInfo {
Expand Down Expand Up @@ -1703,8 +1707,6 @@ message CMsgDOTAWelcome {
optional bytes contents = 2;
}

optional bool tournament_admin = 3;
optional bool tournament_broadcaster = 4;
optional uint32 store_item_hash = 5;
optional uint32 timeplayedconsecutively = 6;
optional bool allow_3rd_party_match_history = 7;
Expand Down Expand Up @@ -1934,27 +1936,19 @@ message CMsgDOTALeaguesInMonthResponse {
repeated .CMsgDOTALeague leagues = 4;
}

message CMsgMatchGroupServerStatus {
repeated fixed32 ip = 1 [packed = true];
repeated uint32 port = 2 [packed = true];
optional sint32 auto_region_select_ping_penalty = 3;
optional .EMatchGroupServerStatus status = 4 [default = k_EMatchGroupServerStatus_OK];
}

message CMsgMatchmakingGroupServerSample {
repeated .CMsgMatchGroupServerStatus match_groups = 5;
optional uint32 legacy_servers_to_ping = 2;
message CMsgMatchmakingMatchGroupInfo {
optional uint32 players_searching = 1;
optional sint32 auto_region_select_ping_penalty = 2;
optional .EMatchGroupServerStatus status = 3 [default = k_EMatchGroupServerStatus_OK];
}

message CMsgDOTAMatchmakingStatsRequest {
}

message CMsgDOTAMatchmakingStatsResponse {
optional uint32 matchgroups_version = 1;
repeated uint32 searching_players_by_group = 2;
repeated uint32 searching_players_by_group_source2 = 7;
optional .CMsgMatchmakingGroupServerSample gameserver_sample_source2 = 6;
optional uint32 legacy_disabled_groups_source2 = 8;
repeated uint32 legacy_searching_players_by_group_source2 = 7;
repeated .CMsgMatchmakingMatchGroupInfo match_groups = 8;
}

message CMsgDOTASetMatchHistoryAccess {
Expand Down Expand Up @@ -2256,6 +2250,7 @@ message CMsgDOTAGetPlayerMatchHistoryResponse {
optional bool abandon = 10;
optional uint32 duration = 11;
optional uint32 engine = 12;
optional bool active_battle_pass = 13;
}

repeated .CMsgDOTAGetPlayerMatchHistoryResponse.Match matches = 1;
Expand Down Expand Up @@ -2762,28 +2757,6 @@ message CDummyUnbreakMessage {
optional .ETournamentState another_dummy_field = 2 [default = k_ETournamentState_Unknown];
}

message CMsgClientToGCCreateStaticRecipe {
message Item {
optional uint64 item_id = 1;
optional uint32 slot_id = 2;
}

repeated .CMsgClientToGCCreateStaticRecipe.Item items = 1;
optional uint32 recipe_def_index = 2;
}

message CMsgClientToGCCreateStaticRecipeResponse {
enum EResponse {
eResponse_Success = 0;
eResponse_OfferingDisabled = 1;
eResponse_InvalidItems = 2;
eResponse_InternalError = 3;
eResponse_MissingLeague = 4;
}

optional .CMsgClientToGCCreateStaticRecipeResponse.EResponse response = 1 [default = eResponse_Success];
}

message CDOTAReplayDownloadInfo {
message Highlight {
optional uint32 timestamp = 1;
Expand Down Expand Up @@ -2983,3 +2956,67 @@ message CMsgEventGoals {
repeated .CMsgEventGoals.EventGoal event_goals = 1;
}

message CMsgGCToGCLeaguePredictions {
optional uint32 league_id = 1;
}

message CMsgPredictionRankings {
message PredictionLine {
optional uint32 answer_id = 1;
optional string answer_name = 2;
optional uint64 answer_logo = 3;
optional float answer_value = 4;
}

message Prediction {
optional uint32 selection_id = 1;
repeated .CMsgPredictionRankings.PredictionLine prediction_lines = 2;
}

repeated .CMsgPredictionRankings.Prediction predictions = 1;
}

message CMsgPredictionResults {
message ResultBreakdown {
optional uint32 answer_selection = 2;
optional float answer_value = 3;
}

message Result {
optional uint32 selection_id = 1;
repeated .CMsgPredictionResults.ResultBreakdown result_breakdown = 2;
}

repeated .CMsgPredictionResults.Result results = 1;
}

message CMsgClientToGCSuspiciousActivity {
optional uint64 app_data = 1;
}

message CMsgClientToGCHasPlayerVotedForMVP {
optional uint64 match_id = 1;
}

message CMsgClientToGCHasPlayerVotedForMVPResponse {
optional bool result = 1;
}

message CMsgClientToGCVoteForMVP {
optional uint64 match_id = 1;
optional uint32 account_id = 3;
}

message CMsgClientToGCVoteForMVPResponse {
optional bool result = 1;
}

message CMsgMVPVotesForMatch {
message Player {
optional uint32 account_id = 1;
optional uint32 vote_count = 2;
}

repeated .CMsgMVPVotesForMatch.Player players = 1;
}

23 changes: 0 additions & 23 deletions Resources/Protobufs/dota/dota_gcmessages_client_fantasy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -955,26 +955,3 @@ message CMsgDOTAPassportVote {
repeated .CMsgDOTAPassportPlayerCardChallenge player_card_challenges = 4;
}

message CMsgPassportDataRequest {
optional uint32 account_id = 1;
}

message CMsgPassportDataResponse {
optional uint32 account_id = 1;
optional uint32 result = 2 [default = 2];
optional .CMsgDOTATournament international = 5;
optional uint32 east_qualifiers_predict_end_time = 7;
optional uint32 west_qualifiers_predict_end_time = 8;
optional uint32 allstar_match_end_time = 9;
optional .CMsgDOTAPassportVote league_guesses = 6;
optional uint32 east_qualifiers_winner_team_id = 10;
optional uint32 east_qualifiers_runner_up_team_id = 11;
optional uint32 west_qualifiers_winner_team_id = 12;
optional uint32 west_qualifiers_runner_up_team_id = 13;
optional uint32 passports_bought = 14;
optional uint32 original_purchaser_id = 15;
optional uint32 fantasy_team_count = 16;
optional uint32 fantasy_teamexpiration = 17;
optional uint32 fantasy_teams_will_lock_at = 18;
}

60 changes: 55 additions & 5 deletions Resources/Protobufs/dota/dota_gcmessages_common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ enum EDOTAGCMsg {
k_EMsgGCPracticeLobbySetDetails = 7046;
k_EMsgGCPracticeLobbySetTeamSlot = 7047;
k_EMsgGCInitialQuestionnaireResponse = 7049;
k_EMsgGCTournamentRequest = 7051;
k_EMsgGCTournamentResponse = 7052;
k_EMsgGCPracticeLobbyResponse = 7055;
k_EMsgGCBroadcastNotification = 7056;
k_EMsgGCLiveScoreboardUpdate = 7057;
Expand Down Expand Up @@ -103,7 +101,6 @@ enum EDOTAGCMsg {
k_EMsgGCApplyTeamToPracticeLobby = 7142;
k_EMsgGCRequestInternatinalTicketEmail = 7143;
k_EMsgGCTransferTeamAdmin = 7144;
k_EMsgGCClearTournamentGame = 7145;
k_EMsgRequestLeagueInfo = 7147;
k_EMsgResponseLeagueInfo = 7148;
k_EMsgGCPracticeLobbyJoinBroadcastChannel = 7149;
Expand Down Expand Up @@ -522,8 +519,8 @@ enum EDOTAGCMsg {
k_EMsgSQLGCToGCSignoutUpdateLeagueSchedule = 7601;
k_EMsgGCToServerUpdateBroadcastCheers = 7602;
k_EMsgClientToGCApplyGemCombiner = 7603;
k_EMsgClientToGCCreateStaticRecipe = 7604;
k_EMsgClientToGCCreateStaticRecipeResponse = 7605;
k_EMsgClientToGCDOTACreateStaticRecipe = 7604;
k_EMsgClientToGCDOTACreateStaticRecipeResponse = 7605;
k_EMsgClientToGCGetAllHeroOrder = 7606;
k_EMsgClientToGCGetAllHeroOrderResponse = 7607;
k_EMsgSQLGCToGCGrantBadgePoints = 7608;
Expand Down Expand Up @@ -628,6 +625,17 @@ enum EDOTAGCMsg {
k_EMsgClientToGCEventGoalsRequest = 8103;
k_EMsgClientToGCEventGoalsResponse = 8104;
k_EMsgGCToGCEventGoalsCacheIncrement = 8105;
k_EMsgClientToGCLeaguePredictions = 8106;
k_EMsgGCToClientLeaguePredictionsResponse = 8107;
k_EMsgGCToGCLeaguePredictionsUpdate = 8108;
k_EMsgClientToGCSuspiciousActivity = 8109;
k_EMsgGCToGCAddUserToPostGameChat = 8110;
k_EMsgClientToGCHasPlayerVotedForMVP = 8111;
k_EMsgClientToGCHasPlayerVotedForMVPResponse = 8112;
k_EMsgClientToGCVoteForMVP = 8113;
k_EMsgClientToGCVoteForMVPResponse = 8114;
k_EMsgGCToGCGetEventOwnership = 8115;
k_EMsgGCToGCGetEventOwnershipResponse = 8116;
}

enum ESpecialPingValue {
Expand Down Expand Up @@ -975,6 +983,7 @@ enum DOTAChatChannelType_t {
DOTAChannelType_Cafe = 15;
DOTAChannelType_CustomGame = 16;
DOTAChannelType_Private = 17;
DOTAChannelType_PostGame = 18;
}

message CSODOTAGameAccountClient {
Expand Down Expand Up @@ -1967,3 +1976,44 @@ message CMsgDOTASeasonAchievements {
repeated .CMsgDOTASeasonAchievements.Achievement achievements = 1;
}

message CMsgDOTASeasonPredictions {
message Choice {
optional uint32 value = 1;
optional string name = 2;
}

message Prediction {
optional uint32 type = 1;
optional string question = 2;
repeated .CMsgDOTASeasonPredictions.Choice choices = 3;
optional uint32 team_id = 4;
optional uint32 series_id = 5;
optional uint32 group_id = 6;
optional uint32 phase_id = 7;
optional uint32 selection_id = 8;
optional uint32 lock_date = 9;
optional uint32 reward = 10;
optional uint32 answer_type = 11;
optional uint32 answer_id = 12;
}

enum ePredictionType {
Generic = 0;
Hero = 1;
Team = 2;
Player = 3;
}

enum eAnswerType {
SingleInt = 0;
SingleFloat = 1;
MultipleInt = 2;
MultipleFloat = 3;
AnswerTeam = 4;
SingleTime = 5;
MultipleTime = 6;
}

repeated .CMsgDOTASeasonPredictions.Prediction predictions = 1;
}

Loading

0 comments on commit dd16522

Please sign in to comment.