Skip to content

Commit

Permalink
fix proto builder
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Oct 20, 2024
1 parent 5a115b7 commit 8312f7a
Show file tree
Hide file tree
Showing 27 changed files with 2,941 additions and 1 deletion.
5 changes: 4 additions & 1 deletion protobuf/build/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,10 @@ impl Kind {
}
}
struct_name.eq_ignore_ascii_case(stripped)
|| struct_name[self.struct_name_prefix_alt_len..].eq_ignore_ascii_case(stripped)
|| struct_name
.get(self.struct_name_prefix_alt_len..)
.unwrap_or_default()
.eq_ignore_ascii_case(stripped)
}

pub fn ident(&self) -> TokenStream {
Expand Down
8 changes: 8 additions & 0 deletions protobuf/dota2/src/generated/base_gcmessages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10525,6 +10525,10 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCIntegrityStatus {
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind for CMsgClientToGCIntegrityStatus {
type KindEnum = crate::base_gcmessages::EGCBaseMsg;
const KIND: Self::KindEnum = crate::base_gcmessages::EGCBaseMsg::k_EMsgClientToGCIntegrityStatus;
}
impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCAggregateMetrics {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
Expand All @@ -10538,6 +10542,10 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCAggregateMetrics {
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind for CMsgClientToGCAggregateMetrics {
type KindEnum = crate::base_gcmessages::EGCBaseMsg;
const KIND: Self::KindEnum = crate::base_gcmessages::EGCBaseMsg::k_EMsgClientToGCAggregateMetrics;
}
impl ::steam_vent_proto_common::RpcMessage for CMsgGCToClientAggregateMetricsBackoff {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
Expand Down
1 change: 1 addition & 0 deletions protobuf/dota2/src/generated/clientmessages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1403,3 +1403,4 @@ impl ::steam_vent_proto_common::RpcMessage for CClientMsg_ListenForResponseFound
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::MsgKindEnum for EBaseClientMessages {}
1 change: 1 addition & 0 deletions protobuf/dota2/src/generated/dota_broadcastmessages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -878,3 +878,4 @@ impl ::steam_vent_proto_common::RpcMessage for CDOTABroadcastMsg_LANLobbyReply {
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::MsgKindEnum for EDotaBroadcastMessages {}
1 change: 1 addition & 0 deletions protobuf/dota2/src/generated/dota_clientmessages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15884,3 +15884,4 @@ impl ::steam_vent_proto_common::RpcMessage for CDOTAClientMsg_SelectOverworldID
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::MsgKindEnum for EDotaClientMessages {}
1,202 changes: 1,202 additions & 0 deletions protobuf/dota2/src/generated/dota_gcmessages_client.rs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6781,6 +6781,10 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCGetBattleReport {
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind for CMsgClientToGCGetBattleReport {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCGetBattleReport;
}
impl ::steam_vent_proto_common::RpcMessage for CMsgBattleReport_Game {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
Expand Down Expand Up @@ -6898,6 +6902,11 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCGetBattleReportResp
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind
for CMsgClientToGCGetBattleReportResponse {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCGetBattleReportResponse;
}
impl ::steam_vent_proto_common::RpcMessage
for CMsgClientToGCGetBattleReportAggregateStats {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
Expand All @@ -6912,6 +6921,11 @@ for CMsgClientToGCGetBattleReportAggregateStats {
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind
for CMsgClientToGCGetBattleReportAggregateStats {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCGetBattleReportAggregateStats;
}
impl ::steam_vent_proto_common::RpcMessage
for CMsgClientToGCGetBattleReportAggregateStatsResponse {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
Expand All @@ -6926,6 +6940,11 @@ for CMsgClientToGCGetBattleReportAggregateStatsResponse {
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind
for CMsgClientToGCGetBattleReportAggregateStatsResponse {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCGetBattleReportAggregateStatsResponse;
}
impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCGetBattleReportInfo {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
Expand All @@ -6939,6 +6958,11 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCGetBattleReportInfo
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind
for CMsgClientToGCGetBattleReportInfo {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCGetBattleReportInfo;
}
impl ::steam_vent_proto_common::RpcMessage
for CMsgClientToGCGetBattleReportInfoResponse {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
Expand All @@ -6953,6 +6977,11 @@ for CMsgClientToGCGetBattleReportInfoResponse {
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind
for CMsgClientToGCGetBattleReportInfoResponse {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCGetBattleReportInfoResponse;
}
impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCAcknowledgeBattleReport {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
Expand All @@ -6966,6 +6995,11 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCAcknowledgeBattleRe
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind
for CMsgClientToGCAcknowledgeBattleReport {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCAcknowledgeBattleReport;
}
impl ::steam_vent_proto_common::RpcMessage
for CMsgClientToGCAcknowledgeBattleReportResponse {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
Expand All @@ -6980,6 +7014,11 @@ for CMsgClientToGCAcknowledgeBattleReportResponse {
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind
for CMsgClientToGCAcknowledgeBattleReportResponse {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCAcknowledgeBattleReportResponse;
}
impl ::steam_vent_proto_common::RpcMessage
for CMsgClientToGCGetBattleReportMatchHistory {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
Expand All @@ -6994,6 +7033,11 @@ for CMsgClientToGCGetBattleReportMatchHistory {
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind
for CMsgClientToGCGetBattleReportMatchHistory {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCGetBattleReportMatchHistory;
}
impl ::steam_vent_proto_common::RpcMessage
for CMsgClientToGCGetBattleReportMatchHistoryResponse {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
Expand All @@ -7008,3 +7052,8 @@ for CMsgClientToGCGetBattleReportMatchHistoryResponse {
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind
for CMsgClientToGCGetBattleReportMatchHistoryResponse {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCGetBattleReportMatchHistoryResponse;
}
41 changes: 41 additions & 0 deletions protobuf/dota2/src/generated/dota_gcmessages_client_bingo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2048,6 +2048,10 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCBingoGetUserData {
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind for CMsgClientToGCBingoGetUserData {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCBingoGetUserData;
}
impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCBingoGetUserDataResponse {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
Expand All @@ -2061,6 +2065,11 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCBingoGetUserDataRes
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind
for CMsgClientToGCBingoGetUserDataResponse {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCBingoGetUserDataResponse;
}
impl ::steam_vent_proto_common::RpcMessage for CMsgBingoIndividualStatData {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
Expand Down Expand Up @@ -2100,6 +2109,10 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCBingoGetStatsData {
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind for CMsgClientToGCBingoGetStatsData {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCBingoGetStatsData;
}
impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCBingoGetStatsDataResponse {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
Expand All @@ -2113,6 +2126,11 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCBingoGetStatsDataRe
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind
for CMsgClientToGCBingoGetStatsDataResponse {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCBingoGetStatsDataResponse;
}
impl ::steam_vent_proto_common::RpcMessage for CMsgGCToClientBingoUserDataUpdated {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
Expand All @@ -2126,6 +2144,11 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgGCToClientBingoUserDataUpdate
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind
for CMsgGCToClientBingoUserDataUpdated {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgGCToClientBingoUserDataUpdated;
}
impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCBingoClaimRow {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
Expand All @@ -2139,6 +2162,10 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCBingoClaimRow {
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind for CMsgClientToGCBingoClaimRow {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCBingoClaimRow;
}
impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCBingoClaimRowResponse {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
Expand All @@ -2152,6 +2179,11 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCBingoClaimRowRespon
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind
for CMsgClientToGCBingoClaimRowResponse {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCBingoClaimRowResponse;
}
impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCBingoDevRerollCard {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
Expand All @@ -2165,6 +2197,10 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCBingoDevRerollCard
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind for CMsgClientToGCBingoDevRerollCard {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCBingoDevRerollCard;
}
impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCBingoDevRerollCardResponse {
fn parse(reader: &mut dyn std::io::Read) -> ::steam_vent_proto_common::protobuf::Result<Self> {
<Self as ::steam_vent_proto_common::protobuf::Message>::parse_from_reader(reader)
Expand All @@ -2178,3 +2214,8 @@ impl ::steam_vent_proto_common::RpcMessage for CMsgClientToGCBingoDevRerollCardR
self.compute_size() as usize
}
}
impl ::steam_vent_proto_common::RpcMessageWithKind
for CMsgClientToGCBingoDevRerollCardResponse {
type KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg;
const KIND: Self::KindEnum = crate::dota_gcmessages_msgid::EDOTAGCMsg::k_EMsgClientToGCBingoDevRerollCardResponse;
}
Loading

0 comments on commit 8312f7a

Please sign in to comment.