Skip to content

Commit

Permalink
Update protobufs (#1020)
Browse files Browse the repository at this point in the history
* Create directory

* Update protobufs

* Generate steammessages_contentsystem
  • Loading branch information
xPaw authored Sep 23, 2021
1 parent 159a6fc commit b5d8502
Show file tree
Hide file tree
Showing 24 changed files with 2,422 additions and 307 deletions.
3 changes: 3 additions & 0 deletions Resources/ProtobufGen/ProtobufGen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ static int Run( Options arguments )
continue;
}

var dir = Path.GetDirectoryName( arguments.Output );
Directory.CreateDirectory( dir );

File.WriteAllText( arguments.Output, file.Text );
}

Expand Down
4 changes: 3 additions & 1 deletion Resources/ProtobufGen/protos.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ProtoDir,ProtoFileName,ClassFilePath,Namespace
steam,enums.proto,Enums.cs,SteamKit2.Internal
steam,content_manifest.proto,ContentManifest.cs,SteamKit2.Internal
steam,encrypted_app_ticket.proto,SteamMsgAppTicket.cs,SteamKit2.Internal
steam,iclient_objects.proto,ClientObjects.cs,SteamKit2.Internal
steam,steammessages_client_objects.proto,ClientObjects.cs,SteamKit2.Internal
steam,steammessages_accounthardware.steamclient.proto,SteamMsgAccountHardware.cs,SteamKit2.Internal
steam,steammessages_auth.steamclient.proto,SteamMsgAuth.cs,SteamKit2.Internal
steam,steammessages_base.proto,SteamMsgBase.cs,SteamKit2.Internal
Expand All @@ -22,6 +22,7 @@ steam,steammessages_clientserver_ufs.proto,SteamMsgClientServerUFS.cs,SteamKit2.
steam,steammessages_clientserver_userstats.proto,SteamMsgClientServerUserStats.cs,SteamKit2.Internal
steam,steammessages_clientnotificationtypes.proto,SteamMsgClientNotificationTypes.cs,SteamKit2.Internal
steam,steammessages_cloud.steamclient.proto,SteamMsgCloud.cs,SteamKit2.Internal
steam,steammessages_contentsystem.steamclient.proto,SteamMsgContentSystem.cs,SteamKit2.Internal
steam,steammessages_credentials.steamclient.proto,SteamMsgCredentials.cs,SteamKit2.Internal
steam,steammessages_datapublisher.steamclient.proto,SteamMsgDataPublisher.cs,SteamKit2.Internal
steam,steammessages_depotbuilder.steamclient.proto,SteamMsgDepotBuilder.cs,SteamKit2.Internal
Expand Down Expand Up @@ -50,6 +51,7 @@ steam,steammessages_twofactor.steamclient.proto,SteamMsgTwoFactor.cs,SteamKit2.I
steam,steammessages_unified_base.steamclient.proto,SteamMsgUnifiedBase.cs,SteamKit2.Internal
steam,steammessages_useraccount.steamclient.proto,SteamMsgUserAccount.cs,SteamKit2.Internal
steam,steammessages_video.steamclient.proto,SteamMsgVideo.cs,SteamKit2.Internal
steam,steammessages_workshop.steamclient.proto,SteamMsgWorkshop.cs,SteamKit2.Internal
artifact,base_gcmessages.proto,GC\Artifact\SteamMsgGC.cs,SteamKit2.GC.Artifact.Internal
artifact,dcg_gcmessages_client.proto,GC\Artifact\MsgGCClient.cs,SteamKit2.GC.Artifact.Internal
artifact,dcg_gcmessages_common.proto,GC\Artifact\MsgGCCommon.cs,SteamKit2.GC.Artifact.Internal
Expand Down
2 changes: 1 addition & 1 deletion Resources/Protobufs
Submodule Protobufs updated 47 files
+41 −0 csgo/cstrike15_gcmessages.proto
+1 −0 dota2/dota_commonmessages.proto
+25 −22 dota2/dota_gcmessages_client.proto
+1 −0 dota2/dota_gcmessages_client_fantasy.proto
+2 −0 dota2/dota_gcmessages_client_team.proto
+31 −0 dota2/dota_gcmessages_common.proto
+2 −0 dota2/dota_gcmessages_common_league.proto
+4 −0 dota2/dota_gcmessages_msgid.proto
+31 −0 dota2/dota_gcmessages_server.proto
+94 −0 dota2/dota_scenariomessages.proto
+4 −2 dota2/dota_shared_enums.proto
+4 −0 dota2/dota_usermessages.proto
+7 −0 dota2/econ_gcmessages.proto
+20 −28 dota2/enums_clientserver.proto
+12 −0 dota2/network_connection.proto
+2 −1 dota2/steamdatagram_messages_sdr.proto
+15 −0 dota2/steammessages.proto
+36 −0 dota2/steammessages_base.proto
+23 −0 dota2/usermessages.proto
+20 −0 steam/clientmetrics.proto
+16 −0 steam/enums.proto
+3 −0 steam/enums_clientserver.proto
+1 −0 steam/steammessages_appoverview.proto
+37 −2 steam/steammessages_auth.steamclient.proto
+83 −29 steam/steammessages_client_objects.proto
+7 −0 steam/steammessages_clientmetrics.steamclient.proto
+34 −0 steam/steammessages_clientnotificationtypes.proto
+14 −1 steam/steammessages_cloud.steamclient.proto
+13 −0 steam/steammessages_contentsystem.steamclient.proto
+2 −0 steam/steammessages_player.steamclient.proto
+7 −0 steam/steammessages_publishedfile.steamclient.proto
+0 −0 steam/steammessages_remoteplay.proto
+7 −0 steam/steamnetworkingsockets_messages.proto
+11 −6 tf2/steamdatagram_messages_auth.proto
+134 −113 tf2/steamdatagram_messages_sdr.proto
+42 −0 tf2/steammessages_gamenetworkingui.proto
+90 −0 tf2/steamnetworkingsockets_messages.proto
+8 −2 tf2/steamnetworkingsockets_messages_certs.proto
+5 −5 tf2/steamnetworkingsockets_messages_udp.proto
+5 −0 tf2/tf_gcmessages.proto
+1 −164 webui/common.proto
+8 −1 webui/service_clanfaqs.proto
+1 −0 webui/service_clientmetrics.proto
+1 −0 webui/service_community.proto
+0 −1 webui/service_loyaltyrewards.proto
+1 −5 webui/service_quest.proto
+6 −6 webui/service_storebrowse.proto
650 changes: 478 additions & 172 deletions SteamKit2/SteamKit2/Base/Generated/ClientObjects.cs

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions SteamKit2/SteamKit2/Base/Generated/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public enum EPublishedFileQueryType
k_PublishedFileQueryType_RankedByLifetimePlaytimeSessions = 18,
k_PublishedFileQueryType_RankedByInappropriateContentRating = 19,
k_PublishedFileQueryType_RankedByBanContentCheck = 20,
k_PublishedFileQueryType_RankedByLastUpdatedDate = 21,
}

[global::ProtoBuf.ProtoContract()]
Expand Down Expand Up @@ -154,6 +155,25 @@ public enum EBluetoothDeviceType
k_BluetoothDeviceType_Keyboard = 11,
}

[global::ProtoBuf.ProtoContract()]
public enum EStorageBlockContentType
{
k_EStorageBlockContentType_Invalid = 0,
k_EStorageBlockContentType_Unknown = 1,
k_EStorageBlockContentType_FileSystem = 2,
k_EStorageBlockContentType_Crypto = 3,
k_EStorageBlockContentType_Raid = 4,
}

[global::ProtoBuf.ProtoContract()]
public enum EStorageBlockFileSystemType
{
k_EStorageBlockFileSystemType_Invalid = 0,
k_EStorageBlockFileSystemType_Unknown = 1,
k_EStorageBlockFileSystemType_VFat = 2,
k_EStorageBlockFileSystemType_Ext4 = 3,
}

}

#pragma warning restore CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192
Expand Down
240 changes: 240 additions & 0 deletions SteamKit2/SteamKit2/Base/Generated/GC/CSGO/MsgGC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2008,6 +2008,16 @@ public bool prime_only
public void Resetprime_only() => __pbn__prime_only = null;
private bool? __pbn__prime_only;

[global::ProtoBuf.ProtoMember(7)]
public uint tv_control
{
get => __pbn__tv_control.GetValueOrDefault();
set => __pbn__tv_control = value;
}
public bool ShouldSerializetv_control() => __pbn__tv_control != null;
public void Resettv_control() => __pbn__tv_control = null;
private uint? __pbn__tv_control;

}

[global::ProtoBuf.ProtoContract()]
Expand Down Expand Up @@ -2932,6 +2942,16 @@ public bool b_switched_teams
[global::ProtoBuf.ProtoMember(30)]
public global::System.Collections.Generic.List<int> team_spawn_count { get; } = new global::System.Collections.Generic.List<int>();

[global::ProtoBuf.ProtoMember(31)]
public uint max_rounds
{
get => __pbn__max_rounds.GetValueOrDefault();
set => __pbn__max_rounds = value;
}
public bool ShouldSerializemax_rounds() => __pbn__max_rounds != null;
public void Resetmax_rounds() => __pbn__max_rounds = null;
private uint? __pbn__max_rounds;

[global::ProtoBuf.ProtoContract()]
public partial class DropInfo : global::ProtoBuf.IExtensible
{
Expand Down Expand Up @@ -6742,6 +6762,16 @@ public uint loc
public void Resetloc() => __pbn__loc = null;
private uint? __pbn__loc;

[global::ProtoBuf.ProtoMember(7)]
public uint accountid
{
get => __pbn__accountid.GetValueOrDefault();
set => __pbn__accountid = value;
}
public bool ShouldSerializeaccountid() => __pbn__accountid != null;
public void Resetaccountid() => __pbn__accountid = null;
private uint? __pbn__accountid;

}

}
Expand Down Expand Up @@ -7609,6 +7639,199 @@ public string module

}

[global::ProtoBuf.ProtoContract()]
public partial class CMsgGCCStrike15_v2_GC2ClientInitSystem : 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 bool load
{
get => __pbn__load.GetValueOrDefault();
set => __pbn__load = value;
}
public bool ShouldSerializeload() => __pbn__load != null;
public void Resetload() => __pbn__load = null;
private bool? __pbn__load;

[global::ProtoBuf.ProtoMember(2)]
[global::System.ComponentModel.DefaultValue("")]
public string name
{
get => __pbn__name ?? "";
set => __pbn__name = value;
}
public bool ShouldSerializename() => __pbn__name != null;
public void Resetname() => __pbn__name = null;
private string __pbn__name;

[global::ProtoBuf.ProtoMember(3)]
[global::System.ComponentModel.DefaultValue("")]
public string outputname
{
get => __pbn__outputname ?? "";
set => __pbn__outputname = value;
}
public bool ShouldSerializeoutputname() => __pbn__outputname != null;
public void Resetoutputname() => __pbn__outputname = null;
private string __pbn__outputname;

[global::ProtoBuf.ProtoMember(4)]
public byte[] key_data
{
get => __pbn__key_data;
set => __pbn__key_data = value;
}
public bool ShouldSerializekey_data() => __pbn__key_data != null;
public void Resetkey_data() => __pbn__key_data = null;
private byte[] __pbn__key_data;

[global::ProtoBuf.ProtoMember(5)]
public byte[] sha_hash
{
get => __pbn__sha_hash;
set => __pbn__sha_hash = value;
}
public bool ShouldSerializesha_hash() => __pbn__sha_hash != null;
public void Resetsha_hash() => __pbn__sha_hash = null;
private byte[] __pbn__sha_hash;

[global::ProtoBuf.ProtoMember(6)]
public int cookie
{
get => __pbn__cookie.GetValueOrDefault();
set => __pbn__cookie = value;
}
public bool ShouldSerializecookie() => __pbn__cookie != null;
public void Resetcookie() => __pbn__cookie = null;
private int? __pbn__cookie;

[global::ProtoBuf.ProtoMember(7)]
[global::System.ComponentModel.DefaultValue("")]
public string manifest
{
get => __pbn__manifest ?? "";
set => __pbn__manifest = value;
}
public bool ShouldSerializemanifest() => __pbn__manifest != null;
public void Resetmanifest() => __pbn__manifest = null;
private string __pbn__manifest;

}

[global::ProtoBuf.ProtoContract()]
public partial class CMsgGCCStrike15_v2_GC2ClientInitSystem_Response : 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 bool success
{
get => __pbn__success.GetValueOrDefault();
set => __pbn__success = value;
}
public bool ShouldSerializesuccess() => __pbn__success != null;
public void Resetsuccess() => __pbn__success = null;
private bool? __pbn__success;

[global::ProtoBuf.ProtoMember(2)]
[global::System.ComponentModel.DefaultValue("")]
public string diagnostic
{
get => __pbn__diagnostic ?? "";
set => __pbn__diagnostic = value;
}
public bool ShouldSerializediagnostic() => __pbn__diagnostic != null;
public void Resetdiagnostic() => __pbn__diagnostic = null;
private string __pbn__diagnostic;

[global::ProtoBuf.ProtoMember(3)]
public byte[] sha_hash
{
get => __pbn__sha_hash;
set => __pbn__sha_hash = value;
}
public bool ShouldSerializesha_hash() => __pbn__sha_hash != null;
public void Resetsha_hash() => __pbn__sha_hash = null;
private byte[] __pbn__sha_hash;

[global::ProtoBuf.ProtoMember(4)]
public int response
{
get => __pbn__response.GetValueOrDefault();
set => __pbn__response = value;
}
public bool ShouldSerializeresponse() => __pbn__response != null;
public void Resetresponse() => __pbn__response = null;
private int? __pbn__response;

[global::ProtoBuf.ProtoMember(5)]
public int error_code1
{
get => __pbn__error_code1.GetValueOrDefault();
set => __pbn__error_code1 = value;
}
public bool ShouldSerializeerror_code1() => __pbn__error_code1 != null;
public void Reseterror_code1() => __pbn__error_code1 = null;
private int? __pbn__error_code1;

[global::ProtoBuf.ProtoMember(6)]
public int error_code2
{
get => __pbn__error_code2.GetValueOrDefault();
set => __pbn__error_code2 = value;
}
public bool ShouldSerializeerror_code2() => __pbn__error_code2 != null;
public void Reseterror_code2() => __pbn__error_code2 = null;
private int? __pbn__error_code2;

[global::ProtoBuf.ProtoMember(7)]
public long handle
{
get => __pbn__handle.GetValueOrDefault();
set => __pbn__handle = value;
}
public bool ShouldSerializehandle() => __pbn__handle != null;
public void Resethandle() => __pbn__handle = null;
private long? __pbn__handle;

[global::ProtoBuf.ProtoMember(8)]
[global::System.ComponentModel.DefaultValue(EInitSystemResult.k_EInitSystemResult_Invalid)]
public EInitSystemResult einit_result
{
get => __pbn__einit_result ?? EInitSystemResult.k_EInitSystemResult_Invalid;
set => __pbn__einit_result = value;
}
public bool ShouldSerializeeinit_result() => __pbn__einit_result != null;
public void Reseteinit_result() => __pbn__einit_result = null;
private EInitSystemResult? __pbn__einit_result;

[global::ProtoBuf.ProtoMember(9)]
public int aux_system1
{
get => __pbn__aux_system1.GetValueOrDefault();
set => __pbn__aux_system1 = value;
}
public bool ShouldSerializeaux_system1() => __pbn__aux_system1 != null;
public void Resetaux_system1() => __pbn__aux_system1 = null;
private int? __pbn__aux_system1;

[global::ProtoBuf.ProtoMember(10)]
public int aux_system2
{
get => __pbn__aux_system2.GetValueOrDefault();
set => __pbn__aux_system2 = value;
}
public bool ShouldSerializeaux_system2() => __pbn__aux_system2 != null;
public void Resetaux_system2() => __pbn__aux_system2 = null;
private int? __pbn__aux_system2;

}

[global::ProtoBuf.ProtoContract()]
public enum ECsgoGCMsg
{
Expand Down Expand Up @@ -7707,6 +7930,9 @@ public enum ECsgoGCMsg
k_EMsgGCCStrike15_v2_ClientRedeemMissionReward = 9209,
k_EMsgGCCStrike15_ClientDeepStats = 9210,
k_EMsgGCCStrike15_StartAgreementSessionInGame = 9211,
k_EMsgGCCStrike15_v2_GC2ClientInitSystem = 9212,
k_EMsgGCCStrike15_v2_GC2ClientInitSystem_Response = 9213,
k_EMsgGCCStrike15_v2_PrivateQueues = 9214,
}

[global::ProtoBuf.ProtoContract()]
Expand All @@ -7725,6 +7951,20 @@ public enum EClientReportingVersion
k_EClientReportingVersion_SupportsTrustedMode = 2,
}

[global::ProtoBuf.ProtoContract()]
public enum EInitSystemResult
{
k_EInitSystemResult_Invalid = 0,
k_EInitSystemResult_Success = 1,
k_EInitSystemResult_None = 2,
k_EInitSystemResult_NotFound = 3,
k_EInitSystemResult_Existing = 4,
k_EInitSystemResult_FailedOpen = 5,
k_EInitSystemResult_Mismatch = 6,
k_EInitSystemResult_FailedInit = 7,
k_EInitSystemResult_Max = 8,
}

}

#pragma warning restore CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192
Expand Down
Loading

0 comments on commit b5d8502

Please sign in to comment.