Latest game .protos

This commit is contained in:
Ryan Stecker
2011-10-25 21:34:07 -05:00
parent d7094e0f33
commit 2ead0ebac6
7 changed files with 262 additions and 18 deletions

View File

@@ -37,13 +37,22 @@ message CMsgKickFromParty {
message CMsgLeaveParty {
}
message CMsgServerAddresses {
message CMsgGameServerInfo {
enum ServerType {
UNSPECIFIED = 0;
GAME = 1;
PROXY = 2;
CONTROLLER = 3;
}
optional fixed32 server_public_ip_addr = 1;
optional fixed32 server_private_ip_addr = 2;
optional uint32 server_port = 3;
optional uint32 server_tv_port = 4;
optional string server_key = 5;
optional bool server_hibernation = 6;
optional .CMsgGameServerInfo.ServerType server_type = 7 [default = UNSPECIFIED];
optional uint32 server_region = 8;
}
message CMsgServerAvailable {
@@ -57,6 +66,7 @@ message CSOEconGameAccountClient {
optional bool in_coaches_list = 5;
optional fixed32 trade_ban_expiration = 6;
optional fixed32 duel_ban_expiration = 7;
optional uint32 preview_item_def = 8 [default = 0];
}
message CSOItemCriteriaCondition {
@@ -118,6 +128,11 @@ message CSOEconItemAttribute {
optional uint32 value = 2;
}
message CSOEconItemEquipped {
optional uint32 new_class = 1;
optional uint32 new_slot = 2;
}
message CSOEconItem {
optional uint64 id = 1;
optional uint32 account_id = 2;
@@ -135,6 +150,14 @@ message CSOEconItem {
optional bool in_use = 14 [default = false];
optional uint32 style = 15 [default = 0];
optional uint64 original_id = 16 [default = 0];
optional bool contains_equipped_state = 17;
repeated .CSOEconItemEquipped equipped_state = 18;
}
message CMsgAdjustItemEquippedState {
optional uint64 item_id = 1;
optional uint32 new_class = 2;
optional uint32 new_slot = 3;
}
message CMsgSortItems {
@@ -190,6 +213,19 @@ message CMsgReplicateConVars {
repeated .CMsgConVarValue convars = 1;
}
message CMsgUseItem {
optional uint64 item_id = 1;
optional fixed64 target_steam_id = 2;
repeated uint32 gift__potential_targets = 3;
optional uint32 duel__class_lock = 4;
}
message CMsgReplayUploadedToYouTube {
optional string youtube_url = 1;
optional string youtube_account_name = 2;
optional uint64 session_id = 3;
}
message CMsgItemAcknowledged {
optional uint32 account_id = 1;
optional uint32 inventory = 2;
@@ -197,3 +233,47 @@ message CMsgItemAcknowledged {
optional uint32 quality = 4;
}
message CMsgSetPresetItemPosition {
optional uint32 class_id = 1;
optional uint32 preset_id = 2;
optional uint32 slot_id = 3;
optional uint64 item_id = 4;
}
message CSOEconItemPresetInstance {
optional uint32 account_id = 1;
optional uint32 class_id = 2 [(key_field) = true];
optional uint32 preset_id = 3 [(key_field) = true];
optional uint32 slot_id = 4 [(key_field) = true];
optional uint64 item_id = 5;
}
message CMsgSelectItemPresetForClass {
optional uint32 class_id = 1;
optional uint32 preset_id = 2;
}
message CMsgSelectItemPresetForClassReply {
optional bool success = 1;
}
message CSOSelectedItemPreset {
optional uint32 account_id = 1 [(key_field) = true];
optional uint32 class_id = 2 [(key_field) = true];
optional uint32 preset_id = 3;
}
message CMsgGCReportAbuse {
optional fixed64 target_steam_id = 1;
optional uint32 abuse_type = 2;
optional uint32 content_type = 3;
optional string description = 4;
optional uint64 gid = 5;
}
message CMsgGCReportAbuseResponse {
optional fixed64 target_steam_id = 1;
optional uint32 result = 2;
optional string error_message = 3;
}

View File

@@ -8,6 +8,7 @@ extend .google.protobuf.FieldOptions {
message CMsgProtoBufHeader {
optional fixed64 client_steam_id = 1;
optional int32 client_session_id = 2;
optional uint32 source_app_id = 3;
optional fixed64 job_id_source = 10 [default = 18446744073709551615];
optional fixed64 job_id_target = 11 [default = 18446744073709551615];
optional string target_job_name = 12;
@@ -168,6 +169,23 @@ message CMsgAMAddFreeLicenseResponse {
optional fixed64 transid = 3;
}
message CGCMsgGetIPLocation {
repeated fixed32 ips = 1;
}
message CIPLocationInfo {
optional uint32 ip = 1;
optional float latitude = 2;
optional float longitude = 3;
optional string country = 4;
optional string state = 5;
optional string city = 6;
}
message CGCMsgGetIPLocationResponse {
repeated .CIPLocationInfo infos = 1;
}
message CGCMsgSystemStatsSchema {
optional uint32 gc_app_id = 1;
optional bytes schema_kv = 2;

View File

@@ -70,6 +70,8 @@ message CMsgGameServerInfo {
optional .CMsgGameServerInfo.ServerType server_type = 7 [default = UNSPECIFIED];
optional uint32 server_region = 8;
optional float server_loadavg = 9;
optional float server_tv_broadcast_time = 10;
optional float server_game_time = 11;
}
message CMsgServerAvailable {

View File

@@ -21,6 +21,22 @@ enum DOTA_GC_TEAM {
DOTA_GC_TEAM_NOTEAM = 5;
}
enum DOTA_CM_PICK {
DOTA_CM_RANDOM = 0;
DOTA_CM_GOOD_GUYS = 1;
DOTA_CM_BAD_GUYS = 2;
}
enum DOTALeaverStatus_t {
DOTA_LEAVER_NONE = 0;
DOTA_LEAVER_DISCONNECTED = 1;
DOTA_LEAVER_DISCONNECTED_TOO_LONG = 2;
DOTA_LEAVER_ABANDONED = 3;
DOTA_LEAVER_AFK = 4;
DOTA_LEAVER_NEVER_CONNECTED = 5;
DOTA_LEAVER_NEVER_CONNECTED_TOO_LONG = 6;
}
enum DOTALobbyReadyState {
DOTALobbyReadyState_UNDECLARED = 0;
DOTALobbyReadyState_ACCEPTED = 1;
@@ -44,6 +60,7 @@ message CSODOTAGameAccountClient {
optional uint32 initial_skill = 14;
optional uint32 leaver_count = 15;
optional bool left_last_game = 16;
optional uint32 rank_uncertainty = 17;
}
message CSODOTABetaParticipation {
@@ -59,14 +76,6 @@ message CSODOTAGameHeroStandings {
optional uint32 losses = 4;
}
message CSODOTAPartyMemberMatchmakingInfo {
optional uint32 rank = 1;
optional uint32 initial_skill = 2;
optional uint32 wins = 3;
optional float latitude = 4;
optional float longitude = 5;
}
message CSODOTAParty {
enum State {
UI = 0;
@@ -77,7 +86,6 @@ message CSODOTAParty {
optional uint64 party_id = 1 [(key_field) = true];
optional fixed64 leader_id = 2;
repeated fixed64 member_ids = 3;
repeated .CSODOTAPartyMemberMatchmakingInfo member_matchmaking_info = 13;
optional uint32 game_mode = 4;
repeated fixed64 pending_invites = 5;
optional .CSODOTAParty.State state = 6 [default = UI];
@@ -113,6 +121,7 @@ message CDOTALobbyMember {
optional float latitude = 8;
optional float longitude = 9;
optional .DOTALobbyReadyState ready_state = 11;
optional uint64 party_id = 12;
}
message CDOTALobbyGCPrivate {
@@ -168,6 +177,7 @@ message CSODOTALobby {
optional uint32 matchgroup = 25;
optional float readyup_remaining_time = 26;
optional bool leaver_detected = 27;
optional .DOTA_CM_PICK cm_pick = 28 [default = DOTA_CM_RANDOM];
}
message CMsgConnectedPlayers {
@@ -215,12 +225,13 @@ message CSourceTVGame {
repeated .CSourceTVGame.Player bad_players = 15;
repeated .CSourceTVGame.Player other_players = 16;
optional string game_name = 7;
optional string date = 8;
repeated .CLobbyTeamDetails team_details = 9;
optional uint32 num_spectators = 10;
optional uint32 tournament_id = 11;
optional uint32 tournament_game_id = 12;
optional uint32 tower_state = 13;
optional float tv_broadcast_time = 17;
optional float game_time = 18;
}
message CMsgSourceTVGamesResponse {
@@ -234,6 +245,16 @@ message CMsgFindSourceTVGames {
optional uint32 num_games = 3;
}
message CMsgSpectateFriendGame {
optional fixed64 steam_id = 1;
}
message CMsgSpectateFriendGameResponse {
optional uint32 source_tv_public_addr = 1;
optional uint32 source_tv_private_addr = 2;
optional uint32 source_tv_port = 3;
}
message CMsgAbandonCurrentGame {
}
@@ -273,6 +294,7 @@ message CMsgPracticeLobbySetDetails {
repeated .CLobbyTeamDetails team_details = 3;
optional uint32 server_region = 4;
optional uint32 game_mode = 5;
optional .DOTA_CM_PICK cm_pick = 6 [default = DOTA_CM_RANDOM];
}
message CMsgPracticeLobbyList {
@@ -340,6 +362,7 @@ message CMsgGameMatchSignOut {
optional uint32 hero_healing = 18;
optional uint32 time_last_seen = 19;
optional uint32 support_ability_value = 20;
optional uint64 party_id = 21;
}
repeated .CMsgGameMatchSignOut.CTeam.CPlayer players = 1;

View File

@@ -37,13 +37,22 @@ message CMsgKickFromParty {
message CMsgLeaveParty {
}
message CMsgServerAddresses {
message CMsgGameServerInfo {
enum ServerType {
UNSPECIFIED = 0;
GAME = 1;
PROXY = 2;
CONTROLLER = 3;
}
optional fixed32 server_public_ip_addr = 1;
optional fixed32 server_private_ip_addr = 2;
optional uint32 server_port = 3;
optional uint32 server_tv_port = 4;
optional string server_key = 5;
optional bool server_hibernation = 6;
optional .CMsgGameServerInfo.ServerType server_type = 7 [default = UNSPECIFIED];
optional uint32 server_region = 8;
}
message CMsgServerAvailable {
@@ -57,6 +66,7 @@ message CSOEconGameAccountClient {
optional bool in_coaches_list = 5;
optional fixed32 trade_ban_expiration = 6;
optional fixed32 duel_ban_expiration = 7;
optional uint32 preview_item_def = 8 [default = 0];
}
message CSOItemCriteriaCondition {
@@ -118,6 +128,11 @@ message CSOEconItemAttribute {
optional uint32 value = 2;
}
message CSOEconItemEquipped {
optional uint32 new_class = 1;
optional uint32 new_slot = 2;
}
message CSOEconItem {
optional uint64 id = 1;
optional uint32 account_id = 2;
@@ -135,6 +150,14 @@ message CSOEconItem {
optional bool in_use = 14 [default = false];
optional uint32 style = 15 [default = 0];
optional uint64 original_id = 16 [default = 0];
optional bool contains_equipped_state = 17;
repeated .CSOEconItemEquipped equipped_state = 18;
}
message CMsgAdjustItemEquippedState {
optional uint64 item_id = 1;
optional uint32 new_class = 2;
optional uint32 new_slot = 3;
}
message CMsgSortItems {
@@ -190,6 +213,19 @@ message CMsgReplicateConVars {
repeated .CMsgConVarValue convars = 1;
}
message CMsgUseItem {
optional uint64 item_id = 1;
optional fixed64 target_steam_id = 2;
repeated uint32 gift__potential_targets = 3;
optional uint32 duel__class_lock = 4;
}
message CMsgReplayUploadedToYouTube {
optional string youtube_url = 1;
optional string youtube_account_name = 2;
optional uint64 session_id = 3;
}
message CMsgItemAcknowledged {
optional uint32 account_id = 1;
optional uint32 inventory = 2;
@@ -197,3 +233,46 @@ message CMsgItemAcknowledged {
optional uint32 quality = 4;
}
message CMsgSetPresetItemPosition {
optional uint32 class_id = 1;
optional uint32 preset_id = 2;
optional uint32 slot_id = 3;
optional uint64 item_id = 4;
}
message CSOEconItemPresetInstance {
optional uint32 class_id = 2 [(key_field) = true];
optional uint32 preset_id = 3 [(key_field) = true];
optional uint32 slot_id = 4 [(key_field) = true];
optional uint64 item_id = 5;
}
message CMsgSelectItemPresetForClass {
optional uint32 class_id = 1;
optional uint32 preset_id = 2;
}
message CMsgSelectItemPresetForClassReply {
optional bool success = 1;
}
message CSOSelectedItemPreset {
optional uint32 account_id = 1 [(key_field) = true];
optional uint32 class_id = 2 [(key_field) = true];
optional uint32 preset_id = 3;
}
message CMsgGCReportAbuse {
optional fixed64 target_steam_id = 1;
optional uint32 abuse_type = 2;
optional uint32 content_type = 3;
optional string description = 4;
optional uint64 gid = 5;
}
message CMsgGCReportAbuseResponse {
optional fixed64 target_steam_id = 1;
optional uint32 result = 2;
optional string error_message = 3;
}

View File

@@ -8,6 +8,7 @@ extend .google.protobuf.FieldOptions {
message CMsgProtoBufHeader {
optional fixed64 client_steam_id = 1;
optional int32 client_session_id = 2;
optional uint32 source_app_id = 3;
optional fixed64 job_id_source = 10 [default = 18446744073709551615];
optional fixed64 job_id_target = 11 [default = 18446744073709551615];
optional string target_job_name = 12;
@@ -168,6 +169,23 @@ message CMsgAMAddFreeLicenseResponse {
optional fixed64 transid = 3;
}
message CGCMsgGetIPLocation {
repeated fixed32 ips = 1;
}
message CIPLocationInfo {
optional uint32 ip = 1;
optional float latitude = 2;
optional float longitude = 3;
optional string country = 4;
optional string state = 5;
optional string city = 6;
}
message CGCMsgGetIPLocationResponse {
repeated .CIPLocationInfo infos = 1;
}
message CGCMsgSystemStatsSchema {
optional uint32 gc_app_id = 1;
optional bytes schema_kv = 2;

View File

@@ -88,12 +88,6 @@ message CMsgSaxxyAwarded {
repeated string winner_names = 2;
}
message CMsgReplayUploadedToYouTube {
optional string youtube_url = 1;
optional string youtube_account_name = 2;
optional uint64 session_id = 3;
}
message CMsgReplaySubmitContestEntry {
optional string youtube_url = 1;
optional uint32 category = 2;
@@ -251,3 +245,33 @@ message CMsgGC_GameServer_ResetIdentityResponse {
optional string game_server_identity_token = 3;
}
message CMsgGC_Halloween_ReservedItem {
repeated float x = 1;
repeated float y = 2;
repeated float z = 3;
optional uint32 spawn_meta_info = 7;
}
message CMsgGC_Halloween_GrantItem {
optional uint32 recipient_account_id = 1;
optional uint32 level_id = 2;
}
message CMsgGC_Halloween_GrantItemResponse {
optional uint32 recipient_account_id = 1;
}
message CMsgGC_Halloween_ItemClaimed {
}
message CMsgGC_PickupItemEligibility_Query {
optional uint32 account_id = 1;
optional uint32 seconds_ago = 2;
}
message CMsgGC_PickupItemEligibility_QueryResponse {
optional uint32 account_id = 1;
optional bool was_eligible = 2;
optional uint32 level_id = 3;
}