Updated Dota 2 Test protobufs

This commit is contained in:
Netshroud
2012-12-23 19:49:47 +11:00
parent ad854e992c
commit dd3dcb3093
10 changed files with 131 additions and 22 deletions

View File

@@ -536,5 +536,7 @@ enum Activity {
ACT_DOTA_BELLYACHE_END = 535;
ACT_DOTA_ROQUELAIRE_LAND = 536;
ACT_DOTA_ROQUELAIRE_LAND_IDLE = 537;
ACT_DOTA_GREEVIL_CAST = 538;
ACT_DOTA_GREEVIL_OVERRIDE_ABILITY = 539;
}

View File

@@ -23,15 +23,6 @@ enum EGCBaseMsg {
k_EMsgGCReplay_UploadedToYouTube = 4510;
}
enum EGCSharedMsg {
k_EMsgInterGCAchievementAwarded = 7001;
k_EMsgInterGCAchievementAwardedResponse = 7002;
k_EMsgInterGCLoadAchievements = 7003;
k_EMsgInterGCLoadAchievementResponse = 7004;
k_EMsgInterGCSurgeTest = 7005;
k_EMsgInterGCProfile = 7006;
}
enum EGCBaseProtoObjectTypes {
k_EProtoObjectPartyInvite = 1001;
k_EProtoObjectLobbyInvite = 1002;

View File

@@ -41,11 +41,20 @@ message CGameInfo {
optional uint64 steamid = 4;
}
message CHeroSelectEvent {
optional bool is_pick = 1;
optional uint32 team = 2;
optional uint32 hero_id = 3;
}
optional uint32 match_id = 1;
optional int32 game_mode = 2;
optional int32 game_winner = 3;
repeated .CGameInfo.CDotaGameInfo.CPlayerInfo player_info = 4;
optional uint32 leagueid = 5;
repeated .CGameInfo.CDotaGameInfo.CHeroSelectEvent picks_bans = 6;
optional uint32 radiant_team_id = 7;
optional uint32 dire_team_id = 8;
}
optional .CGameInfo.CDotaGameInfo dota = 4;

View File

@@ -18,6 +18,7 @@ enum EDotaClientMessages {
DOTA_CM_WorldLine = 13;
DOTA_CM_RequestGraphUpdate = 14;
DOTA_CM_ItemAlert = 15;
DOTA_CM_ChatWheel = 16;
}
message CDOTAClientMsg_MapPing {
@@ -80,3 +81,7 @@ message CDOTAClientMsg_WorldLine {
message CDOTAClientMsg_RequestGraphUpdate {
}
message CDOTAClientMsg_ChatWheel {
optional .EDOTAChatWheelMessage chat_message = 1 [default = k_EDOTA_CW_Ok];
}

View File

@@ -1,6 +1,21 @@
import "google/protobuf/descriptor.proto";
import "netmessages.proto";
enum EDOTAChatWheelMessage {
k_EDOTA_CW_Ok = 0;
k_EDOTA_CW_Care = 1;
k_EDOTA_CW_GetBack = 2;
k_EDOTA_CW_NeedWards = 3;
k_EDOTA_CW_Stun = 4;
k_EDOTA_CW_Help = 5;
k_EDOTA_CW_Push = 6;
k_EDOTA_CW_GoodJob = 7;
k_EDOTA_CW_Missing = 8;
k_EDOTA_CW_Missing_Top = 9;
k_EDOTA_CW_Missing_Mid = 10;
k_EDOTA_CW_Missing_Bottom = 11;
}
message CDOTAMsg_LocationPing {
optional int32 x = 1;
optional int32 y = 2;

View File

@@ -84,8 +84,6 @@ enum EDOTAGCMsg {
k_EMsgGCCancelWatchGame = 7097;
k_EMsgGCProfileRequest = 7098;
k_EMsgGCProfileResponse = 7099;
k_EMsgGCDOTAIntraGCRankRequest = 7100;
k_EMsgGCDOTAIntraGCRankResponse = 7101;
k_EMsgGCPopup = 7102;
k_EMsgGCDOTANotifySuccessfulReport = 7103;
k_EMsgGCDOTAClearNotifySuccessfulReport = 7104;
@@ -121,8 +119,6 @@ enum EDOTAGCMsg {
k_EMsgGCPlayerHeroesFavoritesRemove = 7134;
k_EMsgGCPlayerHeroesRecentRequest = 7135;
k_EMsgGCPlayerHeroesRecentResponse = 7136;
k_EMsgGCSetChatChannelVerbosity = 7137;
k_EMsgDOTAChatChannelFullUpdate = 7138;
k_EMsgGCEditTeamLogo = 7139;
k_EMsgGCEditTeamLogoResponse = 7140;
k_EMsgGCSetShowcaseHero = 7141;
@@ -165,6 +161,11 @@ enum EDOTAGCMsg {
k_EMsgGCHalloweenHighScoreRequest = 7178;
k_EMsgGCHalloweenHighScoreResponse = 7179;
k_EMsgGCGenerateDiretidePrizeListResponse = 7180;
k_EMsgGCNotifyResetKeybindings = 7181;
k_EMsgGCStorePromoPagesRequest = 7182;
k_EMsgGCStorePromoPagesResponse = 7183;
k_EMsgGCSpawnLootGreevil = 7184;
k_EMsgGCDismissLootGreevil = 7185;
k_EMsgGCDev_GrantWarKill = 8001;
}
@@ -178,6 +179,8 @@ enum DOTA_GameMode {
DOTA_GAMEMODE_INTRO = 6;
DOTA_GAMEMODE_HW = 7;
DOTA_GAMEMODE_REVERSE_CM = 8;
DOTA_GAMEMODE_XMAS = 9;
DOTA_GAMEMODE_TUTORIAL = 10;
}
enum DOTA_GameState {
@@ -382,6 +385,7 @@ message CDOTALobbyMember {
optional .DOTALeaverStatus_t leaver_status = 16 [default = DOTA_LEAVER_NONE];
optional uint32 channel = 17;
optional uint32 prize_def_index = 18;
optional uint32 meta_xp_bonus_rate = 19;
}
message CLobbyTeamDetails {
@@ -522,6 +526,14 @@ message CMsgReadyUpStatus {
repeated uint32 declined_ids = 3;
}
message CMsgSpawnLootGreevil {
}
message CMsgDismissLootGreevil {
optional fixed64 lobby_id = 1;
optional bool killed = 2;
}
message CMsgMatchmakingSearchCountRequest {
}
@@ -566,6 +578,7 @@ message CMsgFindSourceTVGames {
optional uint32 leagueid = 4;
optional uint32 heroid = 5;
optional bool diretide = 6;
optional bool xmas = 7;
}
message CMsgSpectateFriendGame {
@@ -1056,6 +1069,7 @@ message CMsgDOTATeam {
optional string url = 16;
optional uint32 fullgamesplayed = 17;
repeated uint32 leagues = 18;
optional uint32 gamesplayed = 19;
}
message CMsgDOTACreateTeam {
@@ -1529,6 +1543,7 @@ message CMsgDOTARequestSaveGamesResponse {
message CMsgDOTAPlayerFailedToConnect {
repeated fixed64 failed_loaders = 1;
repeated fixed64 abandoned_loaders = 2;
}
message CMsgGCToRelayConnect {
@@ -1643,14 +1658,6 @@ message CMsgDOTAProfileResponse {
optional uint32 team_id = 12;
}
message CMsgDOTAIntraGCRankRequest {
optional uint32 account_id = 1;
}
message CMsgDOTAIntraGCRankResponse {
optional uint32 rank = 1;
}
message CMsgDOTANotifySuccessfulReport {
}
@@ -1957,3 +1964,21 @@ message CMsgDOTAHalloweenHighScoreResponse {
optional int32 round = 4;
}
message CMsgDOTANotifyResetKeybindings {
optional uint32 keybind_template = 1;
}
message CMsgDOTAStorePromoPagesRequest {
optional uint32 version_seen = 1;
}
message CMsgDOTAStorePromoPagesResponse {
message PromoPage {
optional uint32 promo_id = 1;
optional string title = 2;
optional string url = 3;
}
repeated .CMsgDOTAStorePromoPagesResponse.PromoPage pages = 1;
}

View File

@@ -40,6 +40,7 @@ enum EDotaUserMessages {
DOTA_UM_TournamentDrop = 98;
DOTA_UM_ItemAlert = 99;
DOTA_UM_HalloweenDrops = 100;
DOTA_UM_ChatWheel = 101;
}
enum DOTA_CHAT_MESSAGE {
@@ -99,6 +100,8 @@ enum DOTA_CHAT_MESSAGE {
CHAT_MESSAGE_INFORMATIONAL = 52;
CHAT_MESSAGE_AEGIS_STOLEN = 53;
CHAT_MESSAGE_ROSHAN_CANDY = 54;
CHAT_MESSAGE_ITEM_GIFTED = 55;
CHAT_MESSAGE_HERO_KILL_WITH_GREEVIL = 56;
}
enum DOTA_NO_BATTLE_POINTS_REASONS {
@@ -504,3 +507,9 @@ message CDOTAUserMsg_TournamentDrop {
optional int32 event_type = 2;
}
message CDOTAUserMsg_ChatWheel {
optional .EDOTAChatWheelMessage chat_message = 1 [default = k_EDOTA_CW_Ok];
optional uint32 player_id = 2;
optional uint32 account_id = 3;
}

View File

@@ -69,3 +69,23 @@ message CMsgGCMultiplexMessage {
repeated fixed64 steamids = 3;
}
message CGCToGCMsgMasterAck {
optional uint32 dir_index = 1;
optional uint32 gc_type = 2;
}
message CGCToGCMsgMasterAck_Response {
optional int32 eresult = 1 [default = 2];
}
message CGCToGCMsgRouted {
optional uint32 msg_type = 1;
optional fixed64 sender_id = 2;
optional bytes net_message = 3;
}
message CGCToGCMsgRoutedReply {
optional uint32 msg_type = 1;
optional bytes net_message = 2;
}

View File

@@ -24,7 +24,6 @@ enum EGCSystemMsg {
k_EGCMsgPreTestSetup = 69;
k_EGCMsgRecordSupportAction = 70;
k_EGCMsgGetAccountDetails_DEPRECATED = 71;
k_EGCMsgSendInterAppMessage = 72;
k_EGCMsgReceiveInterAppMessage = 73;
k_EGCMsgFindAccounts = 74;
k_EGCMsgPostAlert = 75;
@@ -57,6 +56,8 @@ enum EGCSystemMsg {
k_EGCMsgMemCachedGetResponse = 201;
k_EGCMsgMemCachedSet = 202;
k_EGCMsgMemCachedDelete = 203;
k_EGCMsgMasterSetDirectory = 220;
k_EGCMsgMasterSetDirectoryResponse = 221;
}
enum ESOMsg {
@@ -70,3 +71,10 @@ enum ESOMsg {
k_ESOMsg_CacheSubscriptionRefresh = 28;
}
enum EGCToGCMsg {
k_EGCToGCMsgMasterAck = 150;
k_EGCToGCMsgMasterAckResponse = 151;
k_EGCToGCMsgRouted = 152;
k_EGCToGCMsgRoutedReply = 153;
}

View File

@@ -9,6 +9,14 @@ extend .google.protobuf.MessageOptions {
optional int32 msgpool_hard_limit = 50001 [default = 384];
}
enum GCProtoBufMsgSrc {
GCProtoBufMsgSrc_Unspecified = 0;
GCProtoBufMsgSrc_FromSystem = 1;
GCProtoBufMsgSrc_FromSteamID = 2;
GCProtoBufMsgSrc_FromGC = 3;
GCProtoBufMsgSrc_ReplySystem = 4;
}
message CMsgProtoBufHeader {
option (msgpool_soft_limit) = 1024;
option (msgpool_hard_limit) = 256;
@@ -18,6 +26,8 @@ message CMsgProtoBufHeader {
optional fixed64 job_id_source = 10 [default = 18446744073709551615];
optional fixed64 job_id_target = 11 [default = 18446744073709551615];
optional string target_job_name = 12;
optional .GCProtoBufMsgSrc gc_msg_src = 200 [default = GCProtoBufMsgSrc_Unspecified];
optional uint32 gc_dir_index_source = 201;
}
message CMsgWebAPIKey {
@@ -302,3 +312,18 @@ message CMsgGCGetPersonaNames_Response {
repeated fixed64 failed_lookup_steamids = 2;
}
message CMsgGCMsgMasterSetDirectory {
message SubGC {
optional uint32 dir_index = 1;
optional string name = 2;
optional string box = 3;
}
optional uint32 master_dir_index = 1;
repeated .CMsgGCMsgMasterSetDirectory.SubGC dir = 2;
}
message CMsgGCMsgMasterSetDirectory_Response {
optional int32 eresult = 1 [default = 2];
}