Skip to content

Commit

Permalink
update proto, update fh_unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Sep 16, 2024
1 parent 9642be6 commit 0ee7210
Show file tree
Hide file tree
Showing 35 changed files with 677 additions and 455 deletions.
2 changes: 2 additions & 0 deletions proto/c_peer2peer_netmessages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ enum P2P_Messages {
p2p_Ping = 258;
p2p_VRAvatarPosition = 259;
p2p_WatchSynchronization = 260;
p2p_FightingGame_GameData = 261;
p2p_FightingGame_Connection = 262;
}

message CP2P_TextMessage {
Expand Down
2 changes: 1 addition & 1 deletion proto/demo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ message CGameInfo {
message CHeroSelectEvent {
optional bool is_pick = 1;
optional uint32 team = 2;
optional uint32 hero_id = 3;
optional int32 hero_id = 3;
}

optional uint64 match_id = 1;
Expand Down
24 changes: 20 additions & 4 deletions proto/dota_clientmessages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ enum EDotaClientMessages {
DOTA_CM_SelectOverworldTokenRewards = 809;
DOTA_CM_FacetAlert = 810;
DOTA_CM_InnateAlert = 811;
DOTA_CM_SelectOverworldID = 812;
DOTA_CM_RerollNeutralItem = 813;
DOTA_CM_RoshanTimer = 814;
}

message CDOTAClientMsg_MapPing {
Expand Down Expand Up @@ -228,7 +231,7 @@ message CDOTAClientMsg_RequestGraphUpdate {

message CDOTAClientMsg_ChatWheel {
optional uint32 chat_message_id = 1 [default = 4294967295];
optional uint32 param_hero_id = 2;
optional int32 param_hero_id = 2;
optional uint32 emoticon_id = 3;
}

Expand Down Expand Up @@ -323,7 +326,7 @@ message CDOTAClientMsg_ChallengeReroll {
optional .EEvent event_id = 1 [default = EVENT_ID_NONE];
optional uint32 slot_id = 2;
optional uint32 sequence_id = 3;
optional uint32 hero_id = 4;
optional int32 hero_id = 4;
}

message CDOTAClientMsg_CoinWager {
Expand Down Expand Up @@ -449,8 +452,8 @@ message CDOTAClientMsg_GuideSelected {
}

message CDOTAClientMsg_DamageReport {
optional uint32 target_hero_id = 1;
optional uint32 source_hero_id = 2;
optional int32 target_hero_id = 1;
optional int32 source_hero_id = 2;
optional int32 damage_amount = 3;
optional bool broadcast = 4;
}
Expand Down Expand Up @@ -569,6 +572,11 @@ message CDOTAClientMsg_ChooseNeutralItem {
optional int32 slot_index = 3;
}

message CDOTAClientMsg_RerollNeutralItem {
optional int32 target_entindex = 1 [default = -1];
optional int32 slot_index = 2;
}

message CDOTAClientMsg_PlayerDraftPick {
optional int32 player_id = 1 [default = -1];
}
Expand Down Expand Up @@ -610,3 +618,11 @@ message CDOTAClientMsg_InnateAlert {
optional uint32 ability_entindex = 1 [default = 16777215];
optional bool ctrl_held = 2;
}

message CDOTAClientMsg_SelectOverworldID {
optional uint32 overworld_id = 1;
}

message CDOTAClientMsg_RoshanTimer {
optional bool negative = 1;
}
54 changes: 54 additions & 0 deletions proto/dota_fighting_game_p2p_messages.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import "netmessages.proto";
import "networkbasetypes.proto";

message CMsgFightingGame_GameData_Fighting {
message InputSample {
optional uint32 button_mask = 1;
}

optional int32 last_acked_frame = 1;
optional uint32 player_id = 2;
optional int32 last_crc_frame = 3;
optional uint32 last_crc_value = 4;
optional float now = 5;
optional float peer_ack_time = 6;
optional int32 input_start_frame = 7;
repeated .CMsgFightingGame_GameData_Fighting.InputSample input_sample = 8;
}

message CMsgFightingGame_GameData_CharacterSelect {
message Item {
optional uint32 item_def = 1;
optional uint32 style_index = 2 [default = 255];
}

optional uint32 cursor_index = 1;
optional int32 selected_hero_id = 2;
optional uint32 selected_style = 3;
repeated .CMsgFightingGame_GameData_CharacterSelect.Item econ_item_refs = 4;
optional int64 message_ack = 5;
optional bool confirmed_style = 6;
}

message CMsgFightingGame_GameData_Loaded {
optional float now = 1;
optional float peer_ack_time = 2;
optional float proposed_start_time = 3;
optional float accepted_start_time = 4;
}

message CP2P_FightingGame_GameData {
enum EState {
k_ChoosingCharacter = 1;
k_Loaded = 2;
k_Fighting = 3;
}

optional .CP2P_FightingGame_GameData.EState state = 1 [default = k_ChoosingCharacter];

oneof state_data {
.CMsgFightingGame_GameData_Fighting fight = 2;
.CMsgFightingGame_GameData_CharacterSelect character_select = 3;
.CMsgFightingGame_GameData_Loaded loaded = 4;
}
}
Loading

0 comments on commit 0ee7210

Please sign in to comment.