1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-08 10:13:28 +08:00

Update proto files.

This commit is contained in:
Nicholas Hastings 2015-01-21 11:02:16 -05:00
parent 60aa026d74
commit 7f01f7a843
8 changed files with 416 additions and 130 deletions

View File

@ -69,87 +69,8 @@ option cc_generic_services = false;
// time.
//
import "google/protobuf/descriptor.proto";
// for CMsgVector, etc.
import "networkbasetypes.proto";
import "network_connection.proto";
//=============================================================================
// Bidirectional NET Messages
//=============================================================================
enum NET_Messages
{
net_NOP = 0;
net_Disconnect = 1; // disconnect, last message in connection
net_File = 2; // file transmission message request/deny
net_SplitScreenUser = 3; // Changes split screen user, client and server must both provide handler
net_Tick = 4; // s->c world tick, c->s ack world tick
net_StringCmd = 5; // a string command
net_SetConVar = 6; // sends one/multiple convar/userinfo settings
net_SignonState = 7; // signals or acks current signon state
}
message CMsg_CVars
{
message CVar
{
optional string name = 1;
optional string value = 2;
}
repeated CVar cvars = 1;
}
message CNETMsg_NOP
{
}
message CNETMsg_Disconnect
{
optional ENetworkDisconnectionReason reason = 2 [default = NETWORK_DISCONNECT_INVALID];
}
message CNETMsg_File
{
optional int32 transfer_id = 1;
optional string file_name = 2;
optional bool is_replay_demo_file = 3;
optional bool deny = 4;
}
message CNETMsg_SplitScreenUser
{
optional int32 slot = 1;
}
message CNETMsg_Tick
{
optional uint32 tick = 1; // current tick count
optional uint32 host_computationtime = 4;
optional uint32 host_computationtime_std_deviation = 5;
optional uint32 host_framestarttime_std_deviation = 6;
}
message CNETMsg_StringCmd
{
optional string command = 1;
}
message CNETMsg_SetConVar
{
optional CMsg_CVars convars = 1;
}
message CNETMsg_SignonState
{
optional uint32 signon_state = 1; // See SIGNONSTATE_ defines
optional uint32 spawn_count = 2; // server spawn count (session number)
optional uint32 num_server_players = 3; // Number of players the server discloses as connected to the server
repeated string players_networkids = 4; // player network ids
optional string map_name = 5; // Name of the current map
}
//=============================================================================
// Client messages
@ -201,6 +122,7 @@ message CCLCMsg_VoiceData
optional int32 sequence_bytes = 4;
optional uint32 section_number = 5;
optional uint32 uncompressed_sample_offset = 6;
optional uint32 tick = 7;
}
message CCLCMsg_BaselineAck
@ -503,6 +425,7 @@ message CSVCMsg_VoiceData
optional int32 sequence_bytes = 7;
optional uint32 section_number = 8;
optional uint32 uncompressed_sample_offset = 9;
optional uint32 tick = 10;
}
message CSVCMsg_PacketReliable
@ -518,3 +441,10 @@ message CSVCMsg_FullFrameSplit
optional int32 total = 3;
optional bytes data = 4;
}
enum ENetworkSystemLimitReport
{
NSLR_GlobalPacketRateExceeded = 0;
NSLR_ConnectionLessRateLimited = 1;
NSLR_NetChannelRateLimited = 2;
}

View File

@ -125,5 +125,12 @@ enum ENetworkDisconnectionReason
NETWORK_DISCONNECT_PURESERVER_MISMATCH = 44 [(network_connection_token) = "#GameUI_Disconnect_PureServer_Mismatch"];
NETWORK_DISCONNECT_USERCMD = 45 [(network_connection_token) = "#GameUI_Disconnect_UserCmd"];
NETWORK_DISCONNECT_REJECTED_BY_GAME = 46 [(network_connection_token) = "#GameUI_Disconnect_RejectedByGame"];
NETWORK_DISCONNECT_MESSAGE_PARSE_ERROR = 47 [(network_connection_token) = "#GameUI_Disconnect_MessageParseError"];
NETWORK_DISCONNECT_INVALID_MESSAGE_ERROR = 48 [(network_connection_token) = "#GameUI_Disconnect_InvalidMessageError"];
NETWORK_DISCONNECT_BAD_SERVER_PASSWORD = 49 [(network_connection_token) = "#GameUI_Disconnect_BadServerPassword"];
NETWORK_DISCONNECT_DIRECT_CONNECT_RESERVATION = 50;
NETWORK_DISCONNECT_CONNECTION_FAILURE = 51 [(network_connection_token) = "#GameUI_Disconnect_ConnectionFailure"];
NETWORK_DISCONNECT_NO_PEER_GROUP_HANDLERS = 52 [(network_connection_token) = "#GameUI_Disconnect_NoPeerGroupHandlers"];
NETWORK_DISCONNECT_RECONNECTION = 53;
}

View File

@ -69,7 +69,9 @@ option cc_generic_services = false;
// time.
//
import "google/protobuf/descriptor.proto";
import "network_connection.proto";
//=============================================================================
// Common Types
@ -99,6 +101,18 @@ message CMsgQAngle
// Bidirectional NET Messages
//=============================================================================
enum NET_Messages
{
net_NOP = 0;
net_Disconnect = 1; // disconnect, last message in connection
net_File = 2; // file transmission message request/deny
net_SplitScreenUser = 3; // Changes split screen user, client and server must both provide handler
net_Tick = 4; // s->c world tick, c->s ack world tick
net_StringCmd = 5; // a string command
net_SetConVar = 6; // sends one/multiple convar/userinfo settings
net_SignonState = 7; // signals or acks current signon state
}
enum SIGNONSTATE
{
SIGNONSTATE_NONE = 0; // no state yet; about to connect
@ -111,6 +125,67 @@ enum SIGNONSTATE
SIGNONSTATE_CHANGELEVEL = 7; // server is changing level; please wait
}
message CMsg_CVars
{
message CVar
{
optional string name = 1;
optional string value = 2;
}
repeated CVar cvars = 1;
}
message CNETMsg_NOP
{
}
message CNETMsg_SplitScreenUser
{
optional int32 slot = 1;
}
message CNETMsg_Disconnect
{
optional ENetworkDisconnectionReason reason = 2 [default = NETWORK_DISCONNECT_INVALID];
}
message CNETMsg_File
{
optional int32 transfer_id = 1;
optional string file_name = 2;
optional bool is_replay_demo_file = 3;
optional bool deny = 4;
optional bool is_file_requested = 5;
}
message CNETMsg_Tick
{
optional uint32 tick = 1; // current tick count
optional uint32 host_computationtime = 4;
optional uint32 host_computationtime_std_deviation = 5;
optional uint32 host_framestarttime_std_deviation = 6;
}
message CNETMsg_StringCmd
{
optional string command = 1;
}
message CNETMsg_SetConVar
{
optional CMsg_CVars convars = 1;
}
message CNETMsg_SignonState
{
optional uint32 signon_state = 1; // See SIGNONSTATE_ defines
optional uint32 spawn_count = 2; // server spawn count (session number)
optional uint32 num_server_players = 3; // Number of players the server discloses as connected to the server
repeated string players_networkids = 4; // player network ids
optional string map_name = 5; // Name of the current map
}
message CSVCMsg_GameEvent
{
message key_t

View File

@ -56,11 +56,6 @@ option cc_generic_services = false;
// time.
//
import "google/protobuf/descriptor.proto";
// for CMsgVector, etc.
import "networkbasetypes.proto";
// for structures shared between user and client messages
import "dota_commonmessages.proto";
@ -99,6 +94,17 @@ enum EDotaClientMessages
DOTA_CM_CameraZoomAmount = 27;
DOTA_CM_BroadcasterUsingCamerman = 28;
DOTA_CM_BroadcasterUsingAssistedCameraOperator = 29;
DOTA_CM_EnemyItemAlert = 30;
DOTA_CM_FreeInventory = 31;
DOTA_CM_BuyBackStateAlert = 32;
DOTA_CM_QuickBuyAlert = 33;
DOTA_CM_HeroStatueLike = 34;
DOTA_CM_ModifierAlert = 35;
DOTA_CM_TeamShowcaseEditor = 36;
DOTA_CM_HPManaAlert = 37;
DOTA_CM_GlyphAlert = 38;
DOTA_CM_TeamShowcaseClientData = 39;
DOTA_CM_PlayTeamShowcase = 40;
}
//=============================================================================
@ -113,6 +119,26 @@ message CDOTAClientMsg_ItemAlert
optional CDOTAMsg_ItemAlert item_alert = 1;
}
message CDOTAClientMsg_EnemyItemAlert
{
optional uint32 item_entindex = 1;
}
message CDOTAClientMsg_ModifierAlert
{
optional int32 buff_internal_index = 1;
}
message CDOTAClientMsg_HPManaAlert
{
optional uint32 target_entindex = 1;
}
message CDOTAClientMsg_GlyphAlert
{
optional bool negative = 1;
}
message CDOTAClientMsg_MapLine
{
optional CDOTAMsg_MapLine mapline = 1;
@ -234,6 +260,17 @@ message CDOTAClientMsg_RecordVote
message CDOTAClientMsg_WillPurchaseAlert
{
optional int32 itemid = 1;
optional uint32 gold_remaining = 2;
}
message CDOTAClientMsg_BuyBackStateAlert
{
}
message CDOTAClientMsg_QuickBuyAlert
{
optional int32 itemid = 1;
optional int32 gold_required = 2;
}
message CDOTAClientMsg_PlayerShowCase
@ -252,3 +289,35 @@ message CDOTAClientMsg_BroadcasterUsingAssistedCameraOperator
{
optional bool enabled = 1;
}
message CAdditionalEquipSlotClientMsg
{
optional uint32 class_id = 1;
optional uint32 slot_id = 2;
optional uint32 def_index = 3;
}
message CDOTAClientMsg_FreeInventory
{
repeated CAdditionalEquipSlotClientMsg equips = 1;
}
message CDOTAClientMsg_HeroStatueLike
{
optional uint32 owner_player_id = 1;
}
message CDOTAClientMsg_TeamShowcaseEditor
{
optional bytes data = 1;
}
message CDOTAClientMsg_TeamShowcaseClientData
{
optional bytes data = 1;
}
message CDOTAClientMsg_PlayTeamShowcase
{
}

View File

@ -56,11 +56,6 @@ option cc_generic_services = false;
// time.
//
import "google/protobuf/descriptor.proto";
// for CMsgVector, etc.
import "networkbasetypes.proto";
//=============================================================================
// Dota Common Messages
//=============================================================================
@ -139,6 +134,19 @@ enum EDOTAChatWheelMessage
k_EDOTA_CW_Relax = 70;
k_EDOTA_CW_MissingHero = 71;
k_EDOTA_CW_ReturnedHero = 72;
k_EDOTA_CW_GG = 73;
k_EDOTA_CW_GGWP = 74;
k_EDOTA_CW_All_GG = 75;
k_EDOTA_CW_All_GGWP = 76;
k_EDOTA_CW_What_To_Buy = 77;
k_EDOTA_CW_Im_Retreating = 78;
k_EDOTA_CW_Space_Created = 79;
k_EDOTA_CW_Whoops = 80;
k_EDOTA_CW_Tower_then_Back = 81;
k_EDOTA_CW_Barracks_then_Back = 82;
k_EDOTA_CW_Ward_Bottom_Rune = 83;
k_EDOTA_CW_Ward_Top_Rune = 84;
k_EDOTA_CW_Zeus_Ult = 85;
}
enum EDOTAStatPopupTypes

View File

@ -56,8 +56,6 @@ option cc_generic_services = false;
// time.
//
import "google/protobuf/descriptor.proto";
// for CMsgVector, etc.
import "networkbasetypes.proto";
@ -137,6 +135,16 @@ enum EDotaUserMessages
DOTA_UM_PlayerMMR = 126;
DOTA_UM_AbilitySteal = 127;
DOTA_UM_CourierKilledAlert = 128;
DOTA_UM_EnemyItemAlert = 129;
DOTA_UM_StatsMatchDetails = 130;
DOTA_UM_MiniTaunt = 131;
DOTA_UM_BuyBackStateAlert = 132;
DOTA_UM_QuickBuyAlert = 133;
DOTA_UM_StatsHeroDetails = 134;
DOTA_UM_PredictionResult = 135;
DOTA_UM_ModifierAlert = 136;
DOTA_UM_HPManaAlert = 137;
DOTA_UM_GlyphAlert = 138;
}
//=============================================================================
@ -232,6 +240,13 @@ enum DOTA_CHAT_MESSAGE
CHAT_MESSAGE_RANKED_GAME_STILL_SCORED_LEAVERS_GET_LOSS = 83;
CHAT_MESSAGE_ABANDON_RANKED_BEFORE_FIRST_BLOOD_PARTY = 84;
CHAT_MESSAGE_COMPENDIUM_LEVEL = 85;
CHAT_MESSAGE_VICTORY_PREDICTION_STREAK = 86;
CHAT_MESSAGE_ASSASSIN_ANNOUNCE = 87;
CHAT_MESSAGE_ASSASSIN_SUCCESS = 88;
CHAT_MESSAGE_ASSASSIN_DENIED = 89;
CHAT_MESSAGE_VICTORY_PREDICTION_SINGLE_USER_CONFIRM = 90;
CHAT_MESSAGE_EFFIGY_KILL = 91;
CHAT_MESSAGE_VOICE_TEXT_BANNED_OVERFLOW = 92;
}
enum DOTA_NO_BATTLE_POINTS_REASONS
@ -270,36 +285,6 @@ message CDOTAUserMsg_ChatEvent
optional sint32 playerid_6 = 8 [ default = -1 ];
}
enum DOTA_COMBATLOG_TYPES
{
DOTA_COMBATLOG_DAMAGE = 0;
DOTA_COMBATLOG_HEAL = 1;
DOTA_COMBATLOG_MODIFIER_ADD = 2;
DOTA_COMBATLOG_MODIFIER_REMOVE = 3;
DOTA_COMBATLOG_DEATH = 4;
DOTA_COMBATLOG_ABILITY = 5;
DOTA_COMBATLOG_ITEM = 6;
DOTA_COMBATLOG_LOCATION = 7;
DOTA_COMBATLOG_GOLD = 8;
DOTA_COMBATLOG_GAME_STATE = 9;
DOTA_COMBATLOG_XP = 10;
DOTA_COMBATLOG_PURCHASE = 11;
DOTA_COMBATLOG_BUYBACK = 12;
}
message CDOTAUserMsg_CombatLogData
{
optional DOTA_COMBATLOG_TYPES type = 1 [default = DOTA_COMBATLOG_DAMAGE];
optional uint32 target_name = 2;
optional uint32 attacker_name = 3;
optional bool attacker_illusion = 4;
optional bool target_illusion = 5;
optional uint32 inflictor_name = 6;
optional int32 value = 7;
optional int32 health = 8;
optional float time = 9;
}
message CDOTAUserMsg_CombatLogShowDeath
{
}
@ -361,10 +346,51 @@ message CDOTAUserMsg_ItemAlert
optional CDOTAMsg_ItemAlert item_alert = 2;
}
message CDOTAUserMsg_EnemyItemAlert
{
optional uint32 player_id = 1;
optional uint32 target_player_id = 2;
optional int32 itemid = 3;
optional uint32 rune_type = 4;
}
message CDOTAUserMsg_ModifierAlert
{
optional uint32 player_id = 1;
optional string class_name = 2;
optional uint32 stack_count = 3;
optional bool is_debuff = 4;
}
message CDOTAUserMsg_HPManaAlert
{
optional uint32 player_id = 1;
optional uint32 target_entindex = 2;
}
message CDOTAUserMsg_GlyphAlert
{
optional uint32 player_id = 1;
optional bool negative = 2;
}
message CDOTAUserMsg_WillPurchaseAlert
{
optional int32 itemid = 1;
optional int32 player_id = 2;
optional uint32 gold_remaining = 3;
}
message CDOTAUserMsg_BuyBackStateAlert
{
optional int32 player_id = 1;
}
message CDOTAUserMsg_QuickBuyAlert
{
optional int32 player_id = 1;
optional int32 itemid = 2;
optional int32 gold_required = 3;
}
message CDOTAUserMsg_CourierKilledAlert
@ -476,6 +502,30 @@ enum EDotaEntityMessages
DOTA_UNIT_SPEECH_CLIENTSIDE_RULES = 7;
}
message CDOTAUserMsg_PredictionResult
{
optional uint32 account_id = 1;
optional uint64 match_id = 2;
optional bool correct = 3;
message Prediction
{
enum EResult
{
k_eResult_ItemGranted = 1;
k_eResult_Destroyed = 2;
}
optional uint32 item_def = 1;
optional uint32 num_correct = 2;
optional uint32 num_fails = 3;
optional EResult result = 4 [default = k_eResult_ItemGranted];
optional uint32 granted_item_def = 5;
}
repeated Prediction predictions = 4;
}
message CDOTAResponseQuerySerialized
{
message Fact
@ -602,6 +652,7 @@ message CDOTAUserMsg_ParticleManager
optional int32 particle_name_index = 1;
optional int32 attach_type = 2;
optional int32 entity_handle = 3;
optional int32 entity_handle_for_modifiers = 4;
}
message DestroyParticle
{
@ -738,12 +789,6 @@ message CDOTAUserMsg_WorldLine
optional CDOTAMsg_WorldLine worldline = 2;
}
message CDOTAUserMsg_TournamentDrop
{
optional string winner_name = 1;
optional int32 event_type = 2;
}
message CDOTAUserMsg_ChatWheel
{
optional EDOTAChatWheelMessage chat_message = 1 [default = k_EDOTA_CW_Ok];
@ -843,6 +888,8 @@ enum DOTA_ABILITY_PING_TYPE
ABILITY_PING_READY = 1;
ABILITY_PING_MANA = 2;
ABILITY_PING_COOLDOWN = 3;
ABILITY_PING_ENEMY = 4;
ABILITY_PING_UNLEARNED = 5;
}
message CDOTAUserMsg_AbilityPing
@ -851,6 +898,9 @@ message CDOTAUserMsg_AbilityPing
optional uint32 ability_id = 2;
optional DOTA_ABILITY_PING_TYPE type = 3 [default = ABILITY_PING_READY];
optional uint32 cooldown_seconds = 4;
optional uint32 level = 5;
optional bool passive = 6;
optional uint32 mana_needed = 7;
}
message CDOTAUserMsg_ShowGenericPopup
@ -905,3 +955,151 @@ message CDOTAUserMsg_AbilitySteal
optional uint32 ability_id = 2;
optional uint32 ability_level = 3;
}
message CDOTAUserMsg_StatsHeroLookup
{
optional int32 player_id = 1;
optional int32 hero_id = 2;
optional string hero_name = 3;
optional string persona = 4;
}
enum DOTA_POSITION_CATEGORY
{
DOTA_POSITION_NONE = 0;
DOTA_POSITION_BOTTOM_LANE = 1;
DOTA_POSITION_MID_LANE = 2;
DOTA_POSITION_TOP_LANE = 3;
DOTA_POSITION_RADIANT_JUNGLE = 4;
DOTA_POSITION_DIRE_JUNGLE = 5;
DOTA_POSITION_RADIANT_ANCIENTS = 6;
DOTA_POSITION_DIRE_ANCIENTS = 7;
DOTA_POSITION_RADIANT_SECRET_SHOP = 8;
DOTA_POSITION_DIRE_SECRET_SHOP = 9;
DOTA_POSITION_RIVER = 10;
DOTA_POSITION_ROSHAN_PIT = 11;
DOTA_POSITION_RADIANT_BASE = 12;
DOTA_POSITION_DIRE_BASE = 13;
DOTA_POSITION_OTHER = 14;
}
message CDOTAUserMsg_StatsHeroPositionInfo
{
message PositionPair
{
optional DOTA_POSITION_CATEGORY position_category = 1 [default = DOTA_POSITION_NONE];
optional uint32 position_count = 2;
}
optional float average_position = 1;
repeated PositionPair position_details = 2;
}
message CDOTAUserMsg_StatsHeroMinuteDetails
{
optional uint32 last_hits = 1;
optional uint32 hero_kills = 2;
optional uint32 hero_damage = 3;
optional uint32 tower_damage = 4;
optional CDOTAUserMsg_StatsHeroPositionInfo position_info = 5;
optional uint32 total_xp = 6;
optional uint32 net_worth = 7;
optional uint32 harvested_creep_gold = 8;
}
message CDOTAUserMsg_StatsTeamMinuteDetails
{
message LocationPerformance
{
optional uint32 location_category = 1;
optional uint32 stat_type = 2;
optional uint32 value = 3;
}
repeated CDOTAUserMsg_StatsHeroMinuteDetails player_stats = 1;
optional uint32 tower_kills = 2;
optional uint32 barrack_kills = 3;
optional uint32 available_lane_creep_gold = 4;
optional uint32 balance_kill_value = 5;
optional uint32 balance_tower_value = 6;
optional uint32 balance_barracks_value = 7;
optional uint32 balance_gold_value = 8;
optional uint32 balance_xp_value = 9;
repeated LocationPerformance lane_performance = 10;
}
message CDOTAUserMsg_StatsPlayerKillShare
{
optional int32 player_id = 1;
optional float kill_share_percent = 2;
}
message CDOTAUserMsg_StatsKillDetails
{
optional uint32 victim_id = 1;
repeated CDOTAUserMsg_StatsPlayerKillShare kill_shares = 2;
optional uint32 damage_to_kill = 3;
optional uint32 effective_health = 4;
optional float death_time = 5;
optional uint32 killer_id = 6;
}
message CDOTAUserMsg_StatsMatchDetails
{
repeated CDOTAUserMsg_StatsHeroLookup hero_lookup = 1;
repeated CDOTAUserMsg_StatsTeamMinuteDetails radiant_stats = 2;
repeated CDOTAUserMsg_StatsTeamMinuteDetails dire_stats = 3;
repeated CDOTAUserMsg_StatsKillDetails radiant_kills = 4;
repeated CDOTAUserMsg_StatsKillDetails dire_kills = 5;
}
message CDOTAUserMsg_MiniTaunt
{
optional uint32 taunting_player_id = 1;
}
enum EHeroStatType
{
k_EHeroStatType_None = 0;
k_EHeroStatType_AxeTotalDamage = 2000;
k_EHeroStatType_BattleHungerDamage = 2001;
k_EHeroStatType_CounterHelixDamage = 2002;
k_EHeroStatType_CullingBladeDamage = 2003;
k_EHeroStatType_BerserkersCallCastCount = 2004;
k_EHeroStatType_BerserkersCallHeroesHitAverage = 2005;
k_EHeroStatType_BerserkersCallOtherUnitsHit = 2006;
k_EHeroStatType_BerserkersCallHeroAttacksTaken = 2007;
k_EHeroStatType_BerserkersCallOtherAttacksTaken = 2008;
k_EHeroStatType_BattleHungerCastCount = 2009;
k_EHeroStatType_BattleHungerPotentialDuration = 2010;
k_EHeroStatType_BattleHungerAverageDuration = 2011;
k_EHeroStatType_CounterHelixProcCount = 2012;
k_EHeroStatType_CounterHelixHeroProcCount = 2013;
k_EHeroStatType_CounterHelixHeroesHitAverage = 2014;
k_EHeroStatType_CounterHelixOtherUnitsHitCount = 2015;
k_EHeroStatType_CullingBladeCastCount = 2016;
k_EHeroStatType_CullingBladeKillCount = 2017;
k_EHeroStatType_CullingBladeAverageHealthCulled = 2018;
k_EHeroStatType_CullingBladeAverageDamageAvailable = 2019;
k_EHeroStatType_CullingBladeHeroBuffAverage = 2020;
}
message CMsgHeroAbilityStat
{
optional EHeroStatType stat_type = 1 [default = k_EHeroStatType_None];
optional int32 int_value = 2;
optional float float_value = 3;
}
message CMsgCombatAnalyzerPlayerStat
{
optional uint32 account_id = 1;
repeated CMsgHeroAbilityStat hero_ability_stats = 2;
}
message CMsgCombatAnalyzerStats
{
optional uint64 match_id = 1;
repeated CMsgCombatAnalyzerPlayerStat player_stats = 2;
}

View File

@ -725,6 +725,7 @@ enum Activity
ACT_DOTA_THUNDER_STRIKE = 599;
ACT_DOTA_KINETIC_FIELD = 600;
ACT_DOTA_STATIC_STORM = 601;
ACT_DOTA_MINI_TAUNT = 602;
};

View File

@ -56,8 +56,6 @@ option cc_generic_services = false;
// time.
//
import "google/protobuf/descriptor.proto";
// for CMsgVector, etc.
import "networkbasetypes.proto";