Skip to content

Commit b5d8502

Browse files
authored
Update protobufs (#1020)
* Create directory * Update protobufs * Generate steammessages_contentsystem
1 parent 159a6fc commit b5d8502

24 files changed

+2422
-307
lines changed

Resources/ProtobufGen/ProtobufGen/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ static int Run( Options arguments )
7373
continue;
7474
}
7575

76+
var dir = Path.GetDirectoryName( arguments.Output );
77+
Directory.CreateDirectory( dir );
78+
7679
File.WriteAllText( arguments.Output, file.Text );
7780
}
7881

Resources/ProtobufGen/protos.csv

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ProtoDir,ProtoFileName,ClassFilePath,Namespace
22
steam,enums.proto,Enums.cs,SteamKit2.Internal
33
steam,content_manifest.proto,ContentManifest.cs,SteamKit2.Internal
44
steam,encrypted_app_ticket.proto,SteamMsgAppTicket.cs,SteamKit2.Internal
5-
steam,iclient_objects.proto,ClientObjects.cs,SteamKit2.Internal
5+
steam,steammessages_client_objects.proto,ClientObjects.cs,SteamKit2.Internal
66
steam,steammessages_accounthardware.steamclient.proto,SteamMsgAccountHardware.cs,SteamKit2.Internal
77
steam,steammessages_auth.steamclient.proto,SteamMsgAuth.cs,SteamKit2.Internal
88
steam,steammessages_base.proto,SteamMsgBase.cs,SteamKit2.Internal
@@ -22,6 +22,7 @@ steam,steammessages_clientserver_ufs.proto,SteamMsgClientServerUFS.cs,SteamKit2.
2222
steam,steammessages_clientserver_userstats.proto,SteamMsgClientServerUserStats.cs,SteamKit2.Internal
2323
steam,steammessages_clientnotificationtypes.proto,SteamMsgClientNotificationTypes.cs,SteamKit2.Internal
2424
steam,steammessages_cloud.steamclient.proto,SteamMsgCloud.cs,SteamKit2.Internal
25+
steam,steammessages_contentsystem.steamclient.proto,SteamMsgContentSystem.cs,SteamKit2.Internal
2526
steam,steammessages_credentials.steamclient.proto,SteamMsgCredentials.cs,SteamKit2.Internal
2627
steam,steammessages_datapublisher.steamclient.proto,SteamMsgDataPublisher.cs,SteamKit2.Internal
2728
steam,steammessages_depotbuilder.steamclient.proto,SteamMsgDepotBuilder.cs,SteamKit2.Internal
@@ -50,6 +51,7 @@ steam,steammessages_twofactor.steamclient.proto,SteamMsgTwoFactor.cs,SteamKit2.I
5051
steam,steammessages_unified_base.steamclient.proto,SteamMsgUnifiedBase.cs,SteamKit2.Internal
5152
steam,steammessages_useraccount.steamclient.proto,SteamMsgUserAccount.cs,SteamKit2.Internal
5253
steam,steammessages_video.steamclient.proto,SteamMsgVideo.cs,SteamKit2.Internal
54+
steam,steammessages_workshop.steamclient.proto,SteamMsgWorkshop.cs,SteamKit2.Internal
5355
artifact,base_gcmessages.proto,GC\Artifact\SteamMsgGC.cs,SteamKit2.GC.Artifact.Internal
5456
artifact,dcg_gcmessages_client.proto,GC\Artifact\MsgGCClient.cs,SteamKit2.GC.Artifact.Internal
5557
artifact,dcg_gcmessages_common.proto,GC\Artifact\MsgGCCommon.cs,SteamKit2.GC.Artifact.Internal

Resources/Protobufs

SteamKit2/SteamKit2/Base/Generated/ClientObjects.cs

Lines changed: 478 additions & 172 deletions
Large diffs are not rendered by default.

SteamKit2/SteamKit2/Base/Generated/Enums.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public enum EPublishedFileQueryType
3333
k_PublishedFileQueryType_RankedByLifetimePlaytimeSessions = 18,
3434
k_PublishedFileQueryType_RankedByInappropriateContentRating = 19,
3535
k_PublishedFileQueryType_RankedByBanContentCheck = 20,
36+
k_PublishedFileQueryType_RankedByLastUpdatedDate = 21,
3637
}
3738

3839
[global::ProtoBuf.ProtoContract()]
@@ -154,6 +155,25 @@ public enum EBluetoothDeviceType
154155
k_BluetoothDeviceType_Keyboard = 11,
155156
}
156157

158+
[global::ProtoBuf.ProtoContract()]
159+
public enum EStorageBlockContentType
160+
{
161+
k_EStorageBlockContentType_Invalid = 0,
162+
k_EStorageBlockContentType_Unknown = 1,
163+
k_EStorageBlockContentType_FileSystem = 2,
164+
k_EStorageBlockContentType_Crypto = 3,
165+
k_EStorageBlockContentType_Raid = 4,
166+
}
167+
168+
[global::ProtoBuf.ProtoContract()]
169+
public enum EStorageBlockFileSystemType
170+
{
171+
k_EStorageBlockFileSystemType_Invalid = 0,
172+
k_EStorageBlockFileSystemType_Unknown = 1,
173+
k_EStorageBlockFileSystemType_VFat = 2,
174+
k_EStorageBlockFileSystemType_Ext4 = 3,
175+
}
176+
157177
}
158178

159179
#pragma warning restore CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192

SteamKit2/SteamKit2/Base/Generated/GC/CSGO/MsgGC.cs

Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,6 +2008,16 @@ public bool prime_only
20082008
public void Resetprime_only() => __pbn__prime_only = null;
20092009
private bool? __pbn__prime_only;
20102010

2011+
[global::ProtoBuf.ProtoMember(7)]
2012+
public uint tv_control
2013+
{
2014+
get => __pbn__tv_control.GetValueOrDefault();
2015+
set => __pbn__tv_control = value;
2016+
}
2017+
public bool ShouldSerializetv_control() => __pbn__tv_control != null;
2018+
public void Resettv_control() => __pbn__tv_control = null;
2019+
private uint? __pbn__tv_control;
2020+
20112021
}
20122022

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

2945+
[global::ProtoBuf.ProtoMember(31)]
2946+
public uint max_rounds
2947+
{
2948+
get => __pbn__max_rounds.GetValueOrDefault();
2949+
set => __pbn__max_rounds = value;
2950+
}
2951+
public bool ShouldSerializemax_rounds() => __pbn__max_rounds != null;
2952+
public void Resetmax_rounds() => __pbn__max_rounds = null;
2953+
private uint? __pbn__max_rounds;
2954+
29352955
[global::ProtoBuf.ProtoContract()]
29362956
public partial class DropInfo : global::ProtoBuf.IExtensible
29372957
{
@@ -6742,6 +6762,16 @@ public uint loc
67426762
public void Resetloc() => __pbn__loc = null;
67436763
private uint? __pbn__loc;
67446764

6765+
[global::ProtoBuf.ProtoMember(7)]
6766+
public uint accountid
6767+
{
6768+
get => __pbn__accountid.GetValueOrDefault();
6769+
set => __pbn__accountid = value;
6770+
}
6771+
public bool ShouldSerializeaccountid() => __pbn__accountid != null;
6772+
public void Resetaccountid() => __pbn__accountid = null;
6773+
private uint? __pbn__accountid;
6774+
67456775
}
67466776

67476777
}
@@ -7609,6 +7639,199 @@ public string module
76097639

76107640
}
76117641

7642+
[global::ProtoBuf.ProtoContract()]
7643+
public partial class CMsgGCCStrike15_v2_GC2ClientInitSystem : global::ProtoBuf.IExtensible
7644+
{
7645+
private global::ProtoBuf.IExtension __pbn__extensionData;
7646+
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
7647+
=> global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);
7648+
7649+
[global::ProtoBuf.ProtoMember(1)]
7650+
public bool load
7651+
{
7652+
get => __pbn__load.GetValueOrDefault();
7653+
set => __pbn__load = value;
7654+
}
7655+
public bool ShouldSerializeload() => __pbn__load != null;
7656+
public void Resetload() => __pbn__load = null;
7657+
private bool? __pbn__load;
7658+
7659+
[global::ProtoBuf.ProtoMember(2)]
7660+
[global::System.ComponentModel.DefaultValue("")]
7661+
public string name
7662+
{
7663+
get => __pbn__name ?? "";
7664+
set => __pbn__name = value;
7665+
}
7666+
public bool ShouldSerializename() => __pbn__name != null;
7667+
public void Resetname() => __pbn__name = null;
7668+
private string __pbn__name;
7669+
7670+
[global::ProtoBuf.ProtoMember(3)]
7671+
[global::System.ComponentModel.DefaultValue("")]
7672+
public string outputname
7673+
{
7674+
get => __pbn__outputname ?? "";
7675+
set => __pbn__outputname = value;
7676+
}
7677+
public bool ShouldSerializeoutputname() => __pbn__outputname != null;
7678+
public void Resetoutputname() => __pbn__outputname = null;
7679+
private string __pbn__outputname;
7680+
7681+
[global::ProtoBuf.ProtoMember(4)]
7682+
public byte[] key_data
7683+
{
7684+
get => __pbn__key_data;
7685+
set => __pbn__key_data = value;
7686+
}
7687+
public bool ShouldSerializekey_data() => __pbn__key_data != null;
7688+
public void Resetkey_data() => __pbn__key_data = null;
7689+
private byte[] __pbn__key_data;
7690+
7691+
[global::ProtoBuf.ProtoMember(5)]
7692+
public byte[] sha_hash
7693+
{
7694+
get => __pbn__sha_hash;
7695+
set => __pbn__sha_hash = value;
7696+
}
7697+
public bool ShouldSerializesha_hash() => __pbn__sha_hash != null;
7698+
public void Resetsha_hash() => __pbn__sha_hash = null;
7699+
private byte[] __pbn__sha_hash;
7700+
7701+
[global::ProtoBuf.ProtoMember(6)]
7702+
public int cookie
7703+
{
7704+
get => __pbn__cookie.GetValueOrDefault();
7705+
set => __pbn__cookie = value;
7706+
}
7707+
public bool ShouldSerializecookie() => __pbn__cookie != null;
7708+
public void Resetcookie() => __pbn__cookie = null;
7709+
private int? __pbn__cookie;
7710+
7711+
[global::ProtoBuf.ProtoMember(7)]
7712+
[global::System.ComponentModel.DefaultValue("")]
7713+
public string manifest
7714+
{
7715+
get => __pbn__manifest ?? "";
7716+
set => __pbn__manifest = value;
7717+
}
7718+
public bool ShouldSerializemanifest() => __pbn__manifest != null;
7719+
public void Resetmanifest() => __pbn__manifest = null;
7720+
private string __pbn__manifest;
7721+
7722+
}
7723+
7724+
[global::ProtoBuf.ProtoContract()]
7725+
public partial class CMsgGCCStrike15_v2_GC2ClientInitSystem_Response : global::ProtoBuf.IExtensible
7726+
{
7727+
private global::ProtoBuf.IExtension __pbn__extensionData;
7728+
global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
7729+
=> global::ProtoBuf.Extensible.GetExtensionObject(ref __pbn__extensionData, createIfMissing);
7730+
7731+
[global::ProtoBuf.ProtoMember(1)]
7732+
public bool success
7733+
{
7734+
get => __pbn__success.GetValueOrDefault();
7735+
set => __pbn__success = value;
7736+
}
7737+
public bool ShouldSerializesuccess() => __pbn__success != null;
7738+
public void Resetsuccess() => __pbn__success = null;
7739+
private bool? __pbn__success;
7740+
7741+
[global::ProtoBuf.ProtoMember(2)]
7742+
[global::System.ComponentModel.DefaultValue("")]
7743+
public string diagnostic
7744+
{
7745+
get => __pbn__diagnostic ?? "";
7746+
set => __pbn__diagnostic = value;
7747+
}
7748+
public bool ShouldSerializediagnostic() => __pbn__diagnostic != null;
7749+
public void Resetdiagnostic() => __pbn__diagnostic = null;
7750+
private string __pbn__diagnostic;
7751+
7752+
[global::ProtoBuf.ProtoMember(3)]
7753+
public byte[] sha_hash
7754+
{
7755+
get => __pbn__sha_hash;
7756+
set => __pbn__sha_hash = value;
7757+
}
7758+
public bool ShouldSerializesha_hash() => __pbn__sha_hash != null;
7759+
public void Resetsha_hash() => __pbn__sha_hash = null;
7760+
private byte[] __pbn__sha_hash;
7761+
7762+
[global::ProtoBuf.ProtoMember(4)]
7763+
public int response
7764+
{
7765+
get => __pbn__response.GetValueOrDefault();
7766+
set => __pbn__response = value;
7767+
}
7768+
public bool ShouldSerializeresponse() => __pbn__response != null;
7769+
public void Resetresponse() => __pbn__response = null;
7770+
private int? __pbn__response;
7771+
7772+
[global::ProtoBuf.ProtoMember(5)]
7773+
public int error_code1
7774+
{
7775+
get => __pbn__error_code1.GetValueOrDefault();
7776+
set => __pbn__error_code1 = value;
7777+
}
7778+
public bool ShouldSerializeerror_code1() => __pbn__error_code1 != null;
7779+
public void Reseterror_code1() => __pbn__error_code1 = null;
7780+
private int? __pbn__error_code1;
7781+
7782+
[global::ProtoBuf.ProtoMember(6)]
7783+
public int error_code2
7784+
{
7785+
get => __pbn__error_code2.GetValueOrDefault();
7786+
set => __pbn__error_code2 = value;
7787+
}
7788+
public bool ShouldSerializeerror_code2() => __pbn__error_code2 != null;
7789+
public void Reseterror_code2() => __pbn__error_code2 = null;
7790+
private int? __pbn__error_code2;
7791+
7792+
[global::ProtoBuf.ProtoMember(7)]
7793+
public long handle
7794+
{
7795+
get => __pbn__handle.GetValueOrDefault();
7796+
set => __pbn__handle = value;
7797+
}
7798+
public bool ShouldSerializehandle() => __pbn__handle != null;
7799+
public void Resethandle() => __pbn__handle = null;
7800+
private long? __pbn__handle;
7801+
7802+
[global::ProtoBuf.ProtoMember(8)]
7803+
[global::System.ComponentModel.DefaultValue(EInitSystemResult.k_EInitSystemResult_Invalid)]
7804+
public EInitSystemResult einit_result
7805+
{
7806+
get => __pbn__einit_result ?? EInitSystemResult.k_EInitSystemResult_Invalid;
7807+
set => __pbn__einit_result = value;
7808+
}
7809+
public bool ShouldSerializeeinit_result() => __pbn__einit_result != null;
7810+
public void Reseteinit_result() => __pbn__einit_result = null;
7811+
private EInitSystemResult? __pbn__einit_result;
7812+
7813+
[global::ProtoBuf.ProtoMember(9)]
7814+
public int aux_system1
7815+
{
7816+
get => __pbn__aux_system1.GetValueOrDefault();
7817+
set => __pbn__aux_system1 = value;
7818+
}
7819+
public bool ShouldSerializeaux_system1() => __pbn__aux_system1 != null;
7820+
public void Resetaux_system1() => __pbn__aux_system1 = null;
7821+
private int? __pbn__aux_system1;
7822+
7823+
[global::ProtoBuf.ProtoMember(10)]
7824+
public int aux_system2
7825+
{
7826+
get => __pbn__aux_system2.GetValueOrDefault();
7827+
set => __pbn__aux_system2 = value;
7828+
}
7829+
public bool ShouldSerializeaux_system2() => __pbn__aux_system2 != null;
7830+
public void Resetaux_system2() => __pbn__aux_system2 = null;
7831+
private int? __pbn__aux_system2;
7832+
7833+
}
7834+
76127835
[global::ProtoBuf.ProtoContract()]
76137836
public enum ECsgoGCMsg
76147837
{
@@ -7707,6 +7930,9 @@ public enum ECsgoGCMsg
77077930
k_EMsgGCCStrike15_v2_ClientRedeemMissionReward = 9209,
77087931
k_EMsgGCCStrike15_ClientDeepStats = 9210,
77097932
k_EMsgGCCStrike15_StartAgreementSessionInGame = 9211,
7933+
k_EMsgGCCStrike15_v2_GC2ClientInitSystem = 9212,
7934+
k_EMsgGCCStrike15_v2_GC2ClientInitSystem_Response = 9213,
7935+
k_EMsgGCCStrike15_v2_PrivateQueues = 9214,
77107936
}
77117937

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

7954+
[global::ProtoBuf.ProtoContract()]
7955+
public enum EInitSystemResult
7956+
{
7957+
k_EInitSystemResult_Invalid = 0,
7958+
k_EInitSystemResult_Success = 1,
7959+
k_EInitSystemResult_None = 2,
7960+
k_EInitSystemResult_NotFound = 3,
7961+
k_EInitSystemResult_Existing = 4,
7962+
k_EInitSystemResult_FailedOpen = 5,
7963+
k_EInitSystemResult_Mismatch = 6,
7964+
k_EInitSystemResult_FailedInit = 7,
7965+
k_EInitSystemResult_Max = 8,
7966+
}
7967+
77287968
}
77297969

77307970
#pragma warning restore CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192

0 commit comments

Comments
 (0)