Skip to content

Commit

Permalink
Merge pull request #1477 from ezhevita/custom-unified-messages-fix
Browse files Browse the repository at this point in the history
Fix to allow custom unified services
  • Loading branch information
xPaw authored Nov 29, 2024
2 parents bf8f379 + af0926f commit 8500c49
Show file tree
Hide file tree
Showing 75 changed files with 2,212 additions and 744 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected override void WriteServiceFooter( GeneratorContext ctx, ServiceDescrip
{
ctx.WriteLine( $"case \"{Escape( serviceMethod.Name )}\":" )
.Indent()
.WriteLine( $"UnifiedMessages.HandleResponseMsg<{Escape( serviceMethod.OutputType[ 1.. ] )}>( packetMsg );" )
.WriteLine( $"PostResponseMsg<{Escape( serviceMethod.OutputType[ 1.. ] )}>( packetMsg );" )
.WriteLine( "break;" )
.Outdent();
}
Expand Down Expand Up @@ -93,7 +93,7 @@ protected override void WriteServiceFooter( GeneratorContext ctx, ServiceDescrip
{
ctx.WriteLine( $"case \"{Escape( notificationMethod.Name )}\":" )
.Indent()
.WriteLine( $"UnifiedMessages.HandleNotificationMsg<{Escape( notificationMethod.InputType[ 1.. ] )}>( packetMsg );" )
.WriteLine( $"PostNotificationMsg<{Escape( notificationMethod.InputType[ 1.. ] )}>( packetMsg );" )
.WriteLine( "break;" )
.Outdent();
}
Expand Down
1 change: 1 addition & 0 deletions Resources/ProtobufGen/protos.csv
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ dota2,dota_gcmessages_common_league.proto,GC\Dota\MsgGCCommonLeague.cs,SteamKit2
dota2,dota_gcmessages_common_lobby.proto,GC\Dota\MsgGCCommonLobby.cs,SteamKit2.GC.Dota.Internal
dota2,dota_gcmessages_common_match_management.proto,GC\Dota\MsgGCCommonMatchMgmt.cs,SteamKit2.GC.Dota.Internal
dota2,dota_gcmessages_common_overworld.proto,GC\Dota\MsgGCCommonOverworld.cs,SteamKit2.GC.Dota.Internal
dota2,dota_gcmessages_common_survivors.proto,GC\Dota\MsgGCCommonSurvivors.cs,SteamKit2.GC.Dota.Internal
dota2,dota_gcmessages_msgid.proto,GC\Dota\MsgGCMsgId.cs,SteamKit2.GC.Dota.Internal
dota2,dota_gcmessages_server.proto,GC\Dota\MsgGCServer.cs,SteamKit2.GC.Dota.Internal
dota2,dota_match_metadata.proto,GC\Dota\MsgMatchMetadata.cs,SteamKit2.GC.Dota.Internal
Expand Down
2 changes: 1 addition & 1 deletion Resources/Protobufs
Submodule Protobufs updated 54 files
+3 −1 csgo/cs_usercmd.proto
+9 −0 csgo/cstrike15_gcmessages.proto
+1 −0 csgo/network_connection.proto
+11 −0 deadlock/base_gcmessages.proto
+215 −25 deadlock/citadel_gcmessages_client.proto
+19 −1 deadlock/citadel_gcmessages_common.proto
+7 −2 deadlock/citadel_gcmessages_server.proto
+2 −0 deadlock/citadel_usercmd.proto
+21 −4 deadlock/citadel_usermessages.proto
+2 −1 deadlock/gcsdk_gcmessages.proto
+1 −1 deadlock/netmessages.proto
+1 −0 deadlock/network_connection.proto
+9 −0 deadlock/valveextensions.proto
+11 −0 dota2/base_gcmessages.proto
+10 −0 dota2/dota_clientmessages.proto
+1 −0 dota2/dota_gcmessages_client.proto
+4 −0 dota2/dota_gcmessages_common_match_management.proto
+90 −0 dota2/dota_gcmessages_common_overworld.proto
+48 −0 dota2/dota_gcmessages_common_survivors.proto
+6 −2 dota2/dota_gcmessages_msgid.proto
+1 −16 dota2/dota_gcmessages_server.proto
+6 −0 dota2/dota_shared_enums.proto
+1 −0 dota2/dota_usermessages.proto
+2 −1 dota2/gcsdk_gcmessages.proto
+1 −1 dota2/netmessages.proto
+1 −0 dota2/network_connection.proto
+3 −5 dota2/networkbasetypes.proto
+12 −1 dota2/steamdatagram_messages_sdr.proto
+46 −0 dota2/steammessages_steamlearn.steamworkssdk.proto
+9 −0 dota2/valveextensions.proto
+25 −1 steam/enums.proto
+2 −0 steam/steammessages_clientnotificationtypes.proto
+3 −1 steam/steammessages_clientsettings.proto
+1 −0 steam/steammessages_datapublisher.steamclient.proto
+1 −0 steam/steammessages_depotbuilder.steamclient.proto
+4 −0 steam/steammessages_remoteplay.proto
+4 −57 steam/webuimessages_gamerecording.proto
+10 −0 tf2/tf_gcmessages.proto
+22 −0 webui/common.proto
+2 −0 webui/service_authentication.proto
+11 −0 webui/service_checkout.proto
+32 −0 webui/service_community.proto
+2 −0 webui/service_econ.proto
+14 −14 webui/service_gamerecording.proto
+3 −0 webui/service_partnerdeadline.proto
+71 −0 webui/service_partnermeetsteam.proto
+11 −0 webui/service_playtest.proto
+17 −12 webui/service_salefeature.proto
+67 −0 webui/service_saleitemrewards.proto
+34 −0 webui/service_steamlearn.proto
+2 −0 webui/service_storebrowse.proto
+44 −8 webui/service_storemarketing.proto
+19 −0 webui/service_storequery.proto
+1 −0 webui/service_storesales.proto
28 changes: 27 additions & 1 deletion SteamKit2/SteamKit2/Base/Generated/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -479,10 +479,11 @@ public enum EBrowserGPUStatus
k_EBrowserGPUStatus_DisabledUnknown = 2,
k_EBrowserGPUStatus_DisabledCrashCount = 4,
k_EBrowserGPUStatus_DisabledBlocklist = 5,
k_EBrowserGPUStatus_DisabledDebugRequest = 6,
k_EBrowserGPUStatus_DisabledJSRequest = 6,
k_EBrowserGPUStatus_DisabledCommandLine = 7,
k_EBrowserGPUStatus_DisabledRuntimeDetect = 8,
k_EBrowserGPUStatus_DisabledChildCommandLine = 9,
k_EBrowserGPUStatus_DisabledCompositingCommandLine = 10,
}

[global::ProtoBuf.ProtoContract()]
Expand All @@ -504,6 +505,31 @@ public enum EBrowserFeatureStatus
k_EBrowserFeatureStatus_EnabledForceOn = 13,
}

[global::ProtoBuf.ProtoContract()]
public enum EGpuDriverId
{
k_EGpuDriverId_Invalid = 0,
k_EGpuDriverId_Unknown = 1,
k_EGpuDriverId_AmdProprietary = 2,
k_EGpuDriverId_AmdOpenSource = 3,
k_EGpuDriverId_MesaRadv = 4,
k_EGpuDriverId_NvidiaProprietary = 5,
k_EGpuDriverId_IntelPropietary = 6,
k_EGpuDriverId_MesaIntel = 7,
k_EGpuDriverId_QualcommProprietary = 8,
k_EGpuDriverId_ArmProprietary = 9,
k_EGpuDriverId_GoogleSwiftshader = 10,
k_EGpuDriverId_BroadcomProprietary = 11,
k_EGpuDriverId_MesaLLVMPipe = 12,
k_EGpuDriverId_MoltenVK = 13,
k_EGpuDriverId_MesaTurnip = 14,
k_EGpuDriverId_MesaPanVK = 15,
k_EGpuDriverId_MesaVenus = 16,
k_EGpuDriverId_MesaDozen = 17,
k_EGpuDriverId_MesaNVK = 18,
k_EGpuDriverId_MesaHoneyKrisp = 19,
}

[global::ProtoBuf.ProtoContract()]
public enum ECommunityItemClass
{
Expand Down
60 changes: 60 additions & 0 deletions SteamKit2/SteamKit2/Base/Generated/GC/CSGO/MsgGC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6806,6 +6806,65 @@ public partial class CMsgGCCStrike15_v2_Client2GcAckXPShopTracks : global::Proto

}

[global::ProtoBuf.ProtoContract()]
public partial class CMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStats : global::ProtoBuf.IExtensible
{
private global::ProtoBuf.IExtension __pbn__extensionData;
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
=> global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);

[global::ProtoBuf.ProtoMember(1)]
public uint gs_location_id
{
get => __pbn__gs_location_id.GetValueOrDefault();
set => __pbn__gs_location_id = value;
}
public bool ShouldSerializegs_location_id() => __pbn__gs_location_id != null;
public void Resetgs_location_id() => __pbn__gs_location_id = null;
private uint? __pbn__gs_location_id;

[global::ProtoBuf.ProtoMember(2)]
public uint data_center_id
{
get => __pbn__data_center_id.GetValueOrDefault();
set => __pbn__data_center_id = value;
}
public bool ShouldSerializedata_center_id() => __pbn__data_center_id != null;
public void Resetdata_center_id() => __pbn__data_center_id = null;
private uint? __pbn__data_center_id;

[global::ProtoBuf.ProtoMember(3)]
public uint num_locked_in
{
get => __pbn__num_locked_in.GetValueOrDefault();
set => __pbn__num_locked_in = value;
}
public bool ShouldSerializenum_locked_in() => __pbn__num_locked_in != null;
public void Resetnum_locked_in() => __pbn__num_locked_in = null;
private uint? __pbn__num_locked_in;

[global::ProtoBuf.ProtoMember(4)]
public uint num_found_nearby
{
get => __pbn__num_found_nearby.GetValueOrDefault();
set => __pbn__num_found_nearby = value;
}
public bool ShouldSerializenum_found_nearby() => __pbn__num_found_nearby != null;
public void Resetnum_found_nearby() => __pbn__num_found_nearby = null;
private uint? __pbn__num_found_nearby;

[global::ProtoBuf.ProtoMember(5)]
public uint note_level
{
get => __pbn__note_level.GetValueOrDefault();
set => __pbn__note_level = value;
}
public bool ShouldSerializenote_level() => __pbn__note_level != null;
public void Resetnote_level() => __pbn__note_level = null;
private uint? __pbn__note_level;

}

[global::ProtoBuf.ProtoContract()]
public partial class CMsgGC_GlobalGame_Subscribe : global::ProtoBuf.IExtensible
{
Expand Down Expand Up @@ -8784,6 +8843,7 @@ public enum ECsgoGCMsg
k_EMsgGCCStrike15_v2_ClientNetworkConfig = 9220,
k_EMsgGCCStrike15_v2_GC2ClientNotifyXPShop = 9221,
k_EMsgGCCStrike15_v2_Client2GcAckXPShopTracks = 9222,
k_EMsgGCCStrike15_v2_MatchmakingGC2ClientSearchStats = 9223,
}

[global::ProtoBuf.ProtoContract()]
Expand Down
11 changes: 11 additions & 0 deletions SteamKit2/SteamKit2/Base/Generated/GC/Dota/MsgGCClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2491,6 +2491,17 @@ public uint quantity
[global::ProtoBuf.ProtoMember(4)]
public CMsgDOTAClaimEventActionData data { get; set; }

[global::ProtoBuf.ProtoMember(5)]
[global::System.ComponentModel.DefaultValue(EEventActionScoreMode.k_eEventActionScoreMode_Add)]
public EEventActionScoreMode score_mode
{
get => __pbn__score_mode ?? EEventActionScoreMode.k_eEventActionScoreMode_Add;
set => __pbn__score_mode = value;
}
public bool ShouldSerializescore_mode() => __pbn__score_mode != null;
public void Resetscore_mode() => __pbn__score_mode = null;
private EEventActionScoreMode? __pbn__score_mode;

}

[global::ProtoBuf.ProtoContract()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,10 @@ public enum MvpAccoladeType
kKillEaterEventType_Ringmaster_LongRangeDaggerHits = 279,
kKillEaterEventType_Ringmaster_MultiHeroWhips = 280,
kKillEaterEventType_Ringmaster_MultiHeroMesmerizes = 281,
kKillEaterEventType_Kez_ParryCounterAttacks = 282,
kKillEaterEventType_Kez_RavensVeilKills = 283,
kKillEaterEventType_Kez_RaptorDanceHealing = 284,
kKillEaterEventType_Kez_KillsDuringFalconRush = 285,
}

}
Expand Down
Loading

0 comments on commit 8500c49

Please sign in to comment.