diff --git a/DepotDownloaderMod/AccountSettingsStore.cs b/DepotDownloaderMod/AccountSettingsStore.cs index b1c4e13d7..5847dfdf5 100644 --- a/DepotDownloaderMod/AccountSettingsStore.cs +++ b/DepotDownloaderMod/AccountSettingsStore.cs @@ -11,27 +11,25 @@ namespace DepotDownloader [ProtoContract] class AccountSettingsStore { - [ProtoMember(1, IsRequired = false)] - public Dictionary SentryData { get; private set; } + // Member 1 was a Dictionary for SentryData. [ProtoMember(2, IsRequired = false)] public ConcurrentDictionary ContentServerPenalty { get; private set; } - [ProtoMember(3, IsRequired = false)] - public Dictionary LoginKeys { get; private set; } - // Member 3 was a Dictionary for LoginKeys. [ProtoMember(4, IsRequired = false)] public Dictionary LoginTokens { get; private set; } + [ProtoMember(5, IsRequired = false)] + public Dictionary GuardData { get; private set; } string FileName; AccountSettingsStore() { - SentryData = new Dictionary(); ContentServerPenalty = new ConcurrentDictionary(); - LoginTokens = new Dictionary(); + LoginTokens = []; + GuardData = []; } static bool Loaded @@ -51,11 +49,9 @@ public static void LoadFromFile(string filename) { try { - using (var fs = IsolatedStorage.OpenFile(filename, FileMode.Open, FileAccess.Read)) - using (var ds = new DeflateStream(fs, CompressionMode.Decompress)) - { - Instance = Serializer.Deserialize(ds); - } + using var fs = IsolatedStorage.OpenFile(filename, FileMode.Open, FileAccess.Read); + using var ds = new DeflateStream(fs, CompressionMode.Decompress); + Instance = Serializer.Deserialize(ds); } catch (IOException ex) { @@ -78,11 +74,9 @@ public static void Save() try { - using (var fs = IsolatedStorage.OpenFile(Instance.FileName, FileMode.Create, FileAccess.Write)) - using (var ds = new DeflateStream(fs, CompressionMode.Compress)) - { - Serializer.Serialize(ds, Instance); - } + using var fs = IsolatedStorage.OpenFile(Instance.FileName, FileMode.Create, FileAccess.Write); + using var ds = new DeflateStream(fs, CompressionMode.Compress); + Serializer.Serialize(ds, Instance); } catch (IOException ex) { diff --git a/DepotDownloaderMod/CDNClientPool.cs b/DepotDownloaderMod/CDNClientPool.cs index 6b20f7dba..37648a853 100644 --- a/DepotDownloaderMod/CDNClientPool.cs +++ b/DepotDownloaderMod/CDNClientPool.cs @@ -20,12 +20,12 @@ class CDNClientPool public Client CDNClient { get; } public Server ProxyServer { get; private set; } - private readonly ConcurrentStack activeConnectionPool; - private readonly BlockingCollection availableServerEndpoints; + private readonly ConcurrentStack activeConnectionPool = []; + private readonly BlockingCollection availableServerEndpoints = []; - private readonly AutoResetEvent populatePoolEvent; + private readonly AutoResetEvent populatePoolEvent = new(true); private readonly Task monitorTask; - private readonly CancellationTokenSource shutdownToken; + private readonly CancellationTokenSource shutdownToken = new(); public CancellationTokenSource ExhaustedToken { get; set; } public CDNClientPool(Steam3Session steamSession, uint appId) @@ -34,12 +34,6 @@ public CDNClientPool(Steam3Session steamSession, uint appId) this.appId = appId; CDNClient = new Client(steamSession.steamClient); - activeConnectionPool = new ConcurrentStack(); - availableServerEndpoints = new BlockingCollection(); - - populatePoolEvent = new AutoResetEvent(true); - shutdownToken = new CancellationTokenSource(); - monitorTask = Task.Factory.StartNew(ConnectionPoolMonitorAsync).Unwrap(); } diff --git a/DepotDownloaderMod/ContentDownloader.cs b/DepotDownloaderMod/ContentDownloader.cs index c17590467..5f4302db8 100644 --- a/DepotDownloaderMod/ContentDownloader.cs +++ b/DepotDownloaderMod/ContentDownloader.cs @@ -15,9 +15,8 @@ namespace DepotDownloader { - public class ContentDownloaderException : Exception + class ContentDownloaderException(string value) : Exception(value) { - public ContentDownloaderException(String value) : base(value) { } } static class ContentDownloader @@ -27,39 +26,25 @@ static class ContentDownloader public const ulong INVALID_MANIFEST_ID = ulong.MaxValue; public const string DEFAULT_BRANCH = "public"; - public static DownloadConfig Config = new DownloadConfig(); + public static DownloadConfig Config = new(); private static Steam3Session steam3; - private static Steam3Session.Credentials steam3Credentials; private static CDNClientPool cdnPool; private static string DEFAULT_DOWNLOAD_DIR = "depots"; private const string CONFIG_DIR = ".DepotDownloader"; private static readonly string STAGING_DIR = Path.Combine(CONFIG_DIR, "staging"); - private sealed class DepotDownloadInfo + private sealed class DepotDownloadInfo( + uint depotid, uint appId, ulong manifestId, string branch, + string installDir, byte[] depotKey) { - public uint id { get; private set; } - public uint appId { get; private set; } - public ulong manifestId { get; private set; } - public string branch { get; private set; } - public string installDir { get; private set; } - - public byte[] depotKey { get; private set; } - - - public DepotDownloadInfo( - uint depotid, uint appId, ulong manifestId, string branch, - string installDir, - byte[] depotKey) - { - this.id = depotid; - this.appId = appId; - this.manifestId = manifestId; - this.branch = branch; - this.installDir = installDir; - this.depotKey = depotKey; - } + public uint DepotId { get; } = depotid; + public uint AppId { get; } = appId; + public ulong ManifestId { get; } = manifestId; + public string Branch { get; } = branch; + public string InstallDir { get; } = installDir; + public byte[] DepotKey { get; } = depotKey; } static bool CreateDirectories(uint depotId, uint depotVersion, out string installDir) @@ -140,8 +125,7 @@ static bool AccountHasAccess(uint depotId) foreach (var license in licenseQuery) { - SteamApps.PICSProductInfoCallback.PICSProductInfo package; - if (steam3.PackageInfo.TryGetValue(license, out package) && package != null) + if (steam3.PackageInfo.TryGetValue(license, out var package) && package != null) { if (package.KeyValues["appids"].Children.Any(child => child.AsUnsignedInteger() == depotId)) return true; @@ -161,34 +145,23 @@ internal static KeyValue GetSteam3AppSection(uint appId, EAppInfoSection section return null; } - SteamApps.PICSProductInfoCallback.PICSProductInfo app; - if (!steam3.AppInfo.TryGetValue(appId, out app) || app == null) + if (!steam3.AppInfo.TryGetValue(appId, out var app) || app == null) { return null; } var appinfo = app.KeyValues; - string section_key; - - switch (section) - { - case EAppInfoSection.Common: - section_key = "common"; - break; - case EAppInfoSection.Extended: - section_key = "extended"; - break; - case EAppInfoSection.Config: - section_key = "config"; - break; - case EAppInfoSection.Depots: - section_key = "depots"; - break; - default: - throw new NotImplementedException(); - } - - var section_kv = appinfo.Children.Where(c => c.Name == section_key).FirstOrDefault(); + var section_key = section switch + { + + EAppInfoSection.Common => "common", + EAppInfoSection.Extended => "extended", + EAppInfoSection.Config => "config", + EAppInfoSection.Depots => "depots", + _ => throw new NotImplementedException(), + }; + +var section_kv = appinfo.Children.Where(c => c.Name == section_key).FirstOrDefault(); return section_kv; } @@ -273,7 +246,7 @@ static ulong GetSteam3DepotManifest(uint depotId, uint appId, string branch) { // Submit the password to Steam now to get encryption keys steam3.CheckAppBetaPassword(appId, Config.BetaPassword); - if (!steam3.AppBetaPasswords.ContainsKey(branch)) + if (!steam3.AppBetaPasswords.TryGetValue(branch, out var appBetaPassword)) { Console.WriteLine("Password was invalid for branch {0}", branch); return INVALID_MANIFEST_ID; @@ -282,7 +255,7 @@ static ulong GetSteam3DepotManifest(uint depotId, uint appId, string branch) byte[] manifest_bytes; try { - manifest_bytes = CryptoHelper.SymmetricDecryptECB(input, steam3.AppBetaPasswords[branch]); + manifest_bytes = CryptoHelper.SymmetricDecryptECB(input, appBetaPassword); } catch (Exception e) { @@ -298,14 +271,14 @@ static ulong GetSteam3DepotManifest(uint depotId, uint appId, string branch) } if (node.Value == null) return INVALID_MANIFEST_ID; - return UInt64.Parse(node.Value); + return ulong.Parse(node.Value); } static string GetAppName(uint depotId, uint appId) { var info = GetSteam3AppSection(appId, EAppInfoSection.Common); if (info == null) - return String.Empty; + return string.Empty; return info["name"].AsString(); } @@ -319,20 +292,17 @@ public static bool InitializeSteam3(string username, string password) _ = AccountSettingsStore.Instance.LoginTokens.TryGetValue(username, out loginToken); } - if (TokenCFG.useMachineAuth) { - var sentryFileHash = CryptoHelper.SHAHash(File.ReadAllBytes(TokenCFG.MachineAuth)); - var machineAuthFileName = Path.GetFileName(TokenCFG.MachineAuth); - Console.WriteLine("Using Machine Auth: {0}", machineAuthFileName); + var guarddata = TokenCFG.MachineAuth; + Console.WriteLine("Using Machine Auth."); steam3 = new Steam3Session( new SteamUser.LogOnDetails { - SentryFileHash = sentryFileHash, Username = username, Password = loginToken == null ? password : null, ShouldRememberPassword = Config.RememberPassword, - AccessToken = loginToken, + AccessToken = guarddata, LoginID = Config.LoginID ?? 0x534B32, // "SK2" } ); @@ -350,13 +320,8 @@ public static bool InitializeSteam3(string username, string password) } ); } - - - - - steam3Credentials = steam3.WaitForCredentials(); - if (!steam3Credentials.IsValid) + if (!steam3.WaitForCredentials()) { Console.WriteLine("Unable to get steam3 credentials."); return false; @@ -422,8 +387,7 @@ public static async Task DownloadUGCAsync(uint appId, ulong ugcId) private static async Task DownloadWebFile(uint appId, string fileName, string url) { - string installDir; - if (!CreateDirectories(appId, 0, out installDir)) + if (!CreateDirectories(appId, 0, out var installDir)) { Console.WriteLine("Error: Unable to create install directories!"); return; @@ -466,8 +430,7 @@ public static async Task DownloadAppAsync(uint appId, List<(uint depotId, ulong Directory.CreateDirectory(Path.Combine(configPath, CONFIG_DIR)); DepotConfigStore.LoadFromFile(Path.Combine(configPath, CONFIG_DIR, "depot.config")); - if (steam3 != null) - steam3.RequestAppInfo(appId); + steam3?.RequestAppInfo(appId); /* if (!AccountHasAccess(appId)) @@ -482,14 +445,14 @@ public static async Task DownloadAppAsync(uint appId, List<(uint depotId, ulong else { var contentName = GetAppOrDepotName(INVALID_DEPOT_ID, appId); - throw new ContentDownloaderException(String.Format("App {0} ({1}) is not available from this account.", appId, contentName)); + throw new ContentDownloaderException(string.Format("App {0} ({1}) is not available from this account.", appId, contentName)); } } */ var hasSpecificDepots = depotManifestIds.Count > 0; var depotIdsFound = new List(); - var depotIdsExpected = depotManifestIds.Select(x => x.Item1).ToList(); + var depotIdsExpected = depotManifestIds.Select(x => x.depotId).ToList(); var depots = GetSteam3AppSection(appId, EAppInfoSection.Depots); if (isUgc) @@ -568,7 +531,7 @@ public static async Task DownloadAppAsync(uint appId, List<(uint depotId, ulong if (depotManifestIds.Count == 0 && !hasSpecificDepots) { - throw new ContentDownloaderException(String.Format("Couldn't find any depots to download for app {0}", appId)); + throw new ContentDownloaderException(string.Format("Couldn't find any depots to download for app {0}", appId)); } if (depotIdsFound.Count < depotIdsExpected.Count) @@ -580,9 +543,9 @@ public static async Task DownloadAppAsync(uint appId, List<(uint depotId, ulong var infos = new List(); - foreach (var depotManifest in depotManifestIds) + foreach (var (depotId, manifestId) in depotManifestIds) { - var info = GetDepotInfo(depotManifest.Item1, appId, depotManifest.Item2, branch); + var info = GetDepotInfo(depotId, appId, manifestId, branch); if (info != null) { infos.Add(info); @@ -591,7 +554,7 @@ public static async Task DownloadAppAsync(uint appId, List<(uint depotId, ulong try { - await DownloadSteam3Async(appId, infos).ConfigureAwait(false); + await DownloadSteam3Async(infos).ConfigureAwait(false); } catch (OperationCanceledException) { @@ -605,12 +568,10 @@ static DepotDownloadInfo GetDepotInfo(uint depotId, uint appId, ulong manifestId if (steam3 != null && appId != INVALID_APP_ID) steam3.RequestAppInfo(appId); - var contentName = GetAppName(depotId, appId); - /* if (!AccountHasAccess(depotId)) { - Console.WriteLine("Depot {0} ({1}) is not available from this account.", depotId, contentName); + Console.WriteLine("Depot {0} is not available from this account.", depotId); return null; } @@ -633,31 +594,28 @@ static DepotDownloadInfo GetDepotInfo(uint depotId, uint appId, ulong manifestId } } - // For depots that are proxied through depotfromapp, we still need to resolve the proxy app id - var containingAppId = appId; - var proxyAppId = GetSteam3DepotProxyAppId(depotId, appId); - if (proxyAppId != INVALID_APP_ID) containingAppId = proxyAppId; - - var uVersion = GetSteam3AppBuildNumber(appId, branch); + - byte[] depotKey; + byte[] depotKey = null; if (DepotKeyStore.ContainsKey(depotId)) { depotKey = DepotKeyStore.Get(depotId); + steam3.DepotKeys.Add(depotId,depotKey); } else { steam3.RequestDepotKey(depotId, appId); - if (!steam3.DepotKeys.ContainsKey(depotId)) - { - Console.WriteLine("No valid depot key for {0}, unable to download.", depotId); - return null; - } - depotKey = steam3.DepotKeys[depotId]; } + + if (!steam3.DepotKeys.TryGetValue(depotId, out depotKey)) + { + Console.WriteLine("No valid depot key for {0}, unable to download.", depotId); + return null; + } + + var uVersion = GetSteam3AppBuildNumber(appId, branch); - string installDir; - if (!CreateDirectories(depotId, uVersion, out installDir)) + if (!CreateDirectories(depotId, uVersion, out var installDir)) { Console.WriteLine("Error: Unable to create install directories!"); return null; @@ -666,16 +624,10 @@ static DepotDownloadInfo GetDepotInfo(uint depotId, uint appId, ulong manifestId return new DepotDownloadInfo(depotId, appId, manifestId, branch, installDir, depotKey); } - private class ChunkMatch + private class ChunkMatch(ProtoManifest.ChunkData oldChunk, ProtoManifest.ChunkData newChunk) { - public ChunkMatch(ProtoManifest.ChunkData oldChunk, ProtoManifest.ChunkData newChunk) - { - OldChunk = oldChunk; - NewChunk = newChunk; - } - - public ProtoManifest.ChunkData OldChunk { get; private set; } - public ProtoManifest.ChunkData NewChunk { get; private set; } + public ProtoManifest.ChunkData OldChunk { get; } = oldChunk; + public ProtoManifest.ChunkData NewChunk { get; } = newChunk; } private class DepotFilesData @@ -710,19 +662,19 @@ private class DepotDownloadCounter public ulong DepotBytesUncompressed; } - private static async Task DownloadSteam3Async(uint appId, List depots) + private static async Task DownloadSteam3Async(List depots) { var cts = new CancellationTokenSource(); cdnPool.ExhaustedToken = cts; var downloadCounter = new GlobalDownloadCounter(); var depotsToDownload = new List(depots.Count); - var allFileNamesAllDepots = new HashSet(); + var allFileNamesAllDepots = new HashSet(); // First, fetch all the manifests for each depot (including previous manifests) and perform the initial setup foreach (var depot in depots) { - var depotFileData = await ProcessDepotManifestAndFiles(cts, appId, depot); + var depotFileData = await ProcessDepotManifestAndFiles(cts, depot); if (depotFileData != null) { @@ -737,7 +689,7 @@ private static async Task DownloadSteam3Async(uint appId, List 0) { - var claimedFileNames = new HashSet(); + var claimedFileNames = new HashSet(); for (var i = depotsToDownload.Count - 1; i >= 0; i--) { @@ -750,56 +702,96 @@ private static async Task DownloadSteam3Async(uint appId, List ProcessDepotManifestAndFiles(CancellationTokenSource cts, - uint appId, DepotDownloadInfo depot) + private static async Task ProcessDepotManifestAndFiles(CancellationTokenSource cts, DepotDownloadInfo depot) { var depotCounter = new DepotDownloadCounter(); - Console.WriteLine("Processing depot {0}", depot.id); + Console.WriteLine("Processing depot {0}", depot.DepotId); ProtoManifest oldProtoManifest = null; ProtoManifest newProtoManifest = null; - var configDir = Path.Combine(depot.installDir, CONFIG_DIR); + var configDir = Path.Combine(depot.InstallDir, CONFIG_DIR); var lastManifestId = INVALID_MANIFEST_ID; - DepotConfigStore.Instance.InstalledManifestIDs.TryGetValue(depot.id, out lastManifestId); + DepotConfigStore.Instance.InstalledManifestIDs.TryGetValue(depot.DepotId, out lastManifestId); // In case we have an early exit, this will force equiv of verifyall next run. - DepotConfigStore.Instance.InstalledManifestIDs[depot.id] = INVALID_MANIFEST_ID; + DepotConfigStore.Instance.InstalledManifestIDs[depot.DepotId] = INVALID_MANIFEST_ID; DepotConfigStore.Save(); - var oldManifestFileName = Path.Combine(configDir, string.Format("{0}_{1}.manifest", depot.id, lastManifestId)); - if (Config.UseManifestFile) + if (lastManifestId != INVALID_MANIFEST_ID) { - newProtoManifest = ProtoManifest.LoadFromFile(Config.ManifestFile, out _, false); + var oldManifestFileName = Path.Combine(configDir, string.Format("{0}_{1}.bin", depot.DepotId, lastManifestId)); + + if (File.Exists(oldManifestFileName)) + { + byte[] expectedChecksum; + + try + { + expectedChecksum = File.ReadAllBytes(oldManifestFileName + ".sha"); + } + catch (IOException) + { + expectedChecksum = null; + } + + oldProtoManifest = ProtoManifest.LoadFromFile(oldManifestFileName, out var currentChecksum); + + if (expectedChecksum == null || !expectedChecksum.SequenceEqual(currentChecksum)) + { + // We only have to show this warning if the old manifest ID was different + if (lastManifestId != depot.ManifestId) + Console.WriteLine("Manifest {0} on disk did not match the expected checksum.", lastManifestId); + } + } } - else + + if (Config.UseManifestFile) { - oldProtoManifest = ProtoManifest.LoadFromFile(oldManifestFileName, out _); + lastManifestId = depot.ManifestId; + oldProtoManifest = ProtoManifest.LoadFromFile(Config.ManifestFile, out _, false); } - - if (lastManifestId == depot.manifestId && oldProtoManifest != null) + if (lastManifestId == depot.ManifestId && oldProtoManifest != null) { newProtoManifest = oldProtoManifest; - Console.WriteLine("Already have manifest {0} for depot {1}.", depot.manifestId, depot.id); + Console.WriteLine("Already have manifest {0} for depot {1}.", depot.ManifestId, depot.DepotId); } - else { - var newManifestFileName = Path.Combine(configDir, string.Format("{0}_{1}.manifest", depot.id, depot.manifestId)); + var newManifestFileName = Path.Combine(configDir, string.Format("{0}_{1}.bin", depot.DepotId, depot.ManifestId)); + if (newManifestFileName != null) + { + byte[] expectedChecksum; + + try + { + expectedChecksum = File.ReadAllBytes(newManifestFileName + ".sha"); + } + catch (IOException) + { + expectedChecksum = null; + } + newProtoManifest = ProtoManifest.LoadFromFile(newManifestFileName, out var currentChecksum); + + if (newProtoManifest != null && (expectedChecksum == null || !expectedChecksum.SequenceEqual(currentChecksum))) + { + Console.WriteLine("Manifest {0} on disk did not match the expected checksum.", depot.ManifestId); + } + } if (newProtoManifest != null) { - Console.WriteLine("Already have manifest {0} for depot {1}.", depot.manifestId, depot.id); + Console.WriteLine("Already have manifest {0} for depot {1}.", depot.ManifestId, depot.DepotId); } else { @@ -826,39 +818,39 @@ private static async Task ProcessDepotManifestAndFiles(Cancellat if (manifestRequestCode == 0 || now >= manifestRequestCodeExpiration) { manifestRequestCode = await steam3.GetDepotManifestRequestCodeAsync( - depot.id, - depot.appId, - depot.manifestId, - depot.branch); + depot.DepotId, + depot.AppId, + depot.ManifestId, + depot.Branch); // This code will hopefully be valid for one period following the issuing period manifestRequestCodeExpiration = now.Add(TimeSpan.FromMinutes(5)); // If we could not get the manifest code, this is a fatal error if (manifestRequestCode == 0) { - Console.WriteLine("No manifest request code was returned for {0} {1}", depot.id, depot.manifestId); + Console.WriteLine("No manifest request code was returned for {0} {1}", depot.DepotId, depot.ManifestId); cts.Cancel(); } } DebugLog.WriteLine("ContentDownloader", "Downloading manifest {0} from {1} with {2}", - depot.manifestId, + depot.ManifestId, connection, cdnPool.ProxyServer != null ? cdnPool.ProxyServer : "no proxy"); depotManifest = await cdnPool.CDNClient.DownloadManifestAsync( - depot.id, - depot.manifestId, + depot.DepotId, + depot.ManifestId, manifestRequestCode, connection, - depot.depotKey, + depot.DepotKey, cdnPool.ProxyServer).ConfigureAwait(false); cdnPool.ReturnConnection(connection); } catch (TaskCanceledException) { - Console.WriteLine("Connection timeout downloading depot manifest {0} {1}. Retrying.", depot.id, depot.manifestId); + Console.WriteLine("Connection timeout downloading depot manifest {0} {1}. Retrying.", depot.DepotId, depot.ManifestId); } catch (SteamKitWebRequestException e) { @@ -866,17 +858,17 @@ private static async Task ProcessDepotManifestAndFiles(Cancellat if (e.StatusCode == HttpStatusCode.Unauthorized || e.StatusCode == HttpStatusCode.Forbidden) { - Console.WriteLine("Encountered 401 for depot manifest {0} {1}. Aborting.", depot.id, depot.manifestId); + Console.WriteLine("Encountered 401 for depot manifest {0} {1}. Aborting.", depot.DepotId, depot.ManifestId); break; } if (e.StatusCode == HttpStatusCode.NotFound) { - Console.WriteLine("Encountered 404 for depot manifest {0} {1}. Aborting.", depot.id, depot.manifestId); + Console.WriteLine("Encountered 404 for depot manifest {0} {1}. Aborting.", depot.DepotId, depot.ManifestId); break; } - Console.WriteLine("Encountered error downloading depot manifest {0} {1}: {2}", depot.id, depot.manifestId, e.StatusCode); + Console.WriteLine("Encountered error downloading depot manifest {0} {1}: {2}", depot.DepotId, depot.ManifestId, e.StatusCode); } catch (OperationCanceledException) { @@ -885,23 +877,22 @@ private static async Task ProcessDepotManifestAndFiles(Cancellat catch (Exception e) { cdnPool.ReturnBrokenConnection(connection); - Console.WriteLine("Encountered error downloading manifest for depot {0} {1}: {2}", depot.id, depot.manifestId, e.Message); + Console.WriteLine("Encountered error downloading manifest for depot {0} {1}: {2}", depot.DepotId, depot.ManifestId, e.Message); } } while (depotManifest == null); if (depotManifest == null) { - Console.WriteLine("\nUnable to download manifest {0} for depot {1}", depot.manifestId, depot.id); + Console.WriteLine("\nUnable to download manifest {0} for depot {1}", depot.ManifestId, depot.DepotId); cts.Cancel(); } // Throw the cancellation exception if requested so that this task is marked failed cts.Token.ThrowIfCancellationRequested(); - byte[] checksum; - newProtoManifest = new ProtoManifest(depotManifest, depot.manifestId); - newProtoManifest.SaveToFile(newManifestFileName, out checksum); + newProtoManifest = new ProtoManifest(depotManifest, depot.ManifestId); + newProtoManifest.SaveToFile(newManifestFileName, out var checksum); File.WriteAllBytes(newManifestFileName + ".sha", checksum); Console.WriteLine(" Done!"); @@ -910,7 +901,7 @@ private static async Task ProcessDepotManifestAndFiles(Cancellat newProtoManifest.Files.Sort((x, y) => string.Compare(x.FileName, y.FileName, StringComparison.Ordinal)); - Console.WriteLine("Manifest {0} ({1})", depot.manifestId, newProtoManifest.CreationTime); + Console.WriteLine("Manifest {0} ({1})", depot.ManifestId, newProtoManifest.CreationTime); if (Config.DownloadManifestOnly) { @@ -918,7 +909,7 @@ private static async Task ProcessDepotManifestAndFiles(Cancellat return null; } - var stagingDir = Path.Combine(depot.installDir, STAGING_DIR); + var stagingDir = Path.Combine(depot.InstallDir, STAGING_DIR); var filesAfterExclusions = newProtoManifest.Files.AsParallel().Where(f => TestIsFileIncluded(f.FileName)).ToList(); var allFileNames = new HashSet(filesAfterExclusions.Count); @@ -928,7 +919,7 @@ private static async Task ProcessDepotManifestAndFiles(Cancellat { allFileNames.Add(file.FileName); - var fileFinalPath = Path.Combine(depot.installDir, file.FileName); + var fileFinalPath = Path.Combine(depot.InstallDir, file.FileName); var fileStagingPath = Path.Combine(stagingDir, file.FileName); if (file.Flags.HasFlag(EDepotFileFlag.Directory)) @@ -958,13 +949,14 @@ private static async Task ProcessDepotManifestAndFiles(Cancellat }; } - private static async Task DownloadSteam3AsyncDepotFiles(CancellationTokenSource cts, uint appId, - GlobalDownloadCounter downloadCounter, DepotFilesData depotFilesData, HashSet allFileNamesAllDepots) + + private static async Task DownloadSteam3AsyncDepotFiles(CancellationTokenSource cts, + GlobalDownloadCounter downloadCounter, DepotFilesData depotFilesData, HashSet allFileNamesAllDepots) { var depot = depotFilesData.depotDownloadInfo; var depotCounter = depotFilesData.depotCounter; - Console.WriteLine("Downloading depot {0}", depot.id); + Console.WriteLine("Downloading depot {0}", depot.DepotId); var files = depotFilesData.filteredFiles.Where(f => !f.Flags.HasFlag(EDepotFileFlag.Directory)).ToArray(); var networkChunkQueue = new ConcurrentQueue<(FileStreamData fileStreamData, ProtoManifest.FileData fileData, ProtoManifest.ChunkData chunk)>(); @@ -977,7 +969,7 @@ await Task.Run(() => DownloadSteam3AsyncDepotFile(cts, depotFilesData, file, net await Util.InvokeAsync( networkChunkQueue.Select(q => new Func(async () => - await Task.Run(() => DownloadSteam3AsyncDepotFileChunk(cts, appId, downloadCounter, depotFilesData, + await Task.Run(() => DownloadSteam3AsyncDepotFileChunk(cts, downloadCounter, depotFilesData, q.fileData, q.fileStreamData, q.chunk)))), maxDegreeOfParallelism: Config.MaxDownloads ); @@ -1001,7 +993,7 @@ await Task.Run(() => DownloadSteam3AsyncDepotFileChunk(cts, appId, downloadCount foreach (var existingFileName in previousFilteredFiles) { - var fileFinalPath = Path.Combine(depot.installDir, existingFileName); + var fileFinalPath = Path.Combine(depot.InstallDir, existingFileName); if (!File.Exists(fileFinalPath)) continue; @@ -1011,10 +1003,10 @@ await Task.Run(() => DownloadSteam3AsyncDepotFileChunk(cts, appId, downloadCount } } - DepotConfigStore.Instance.InstalledManifestIDs[depot.id] = depot.manifestId; + DepotConfigStore.Instance.InstalledManifestIDs[depot.DepotId] = depot.ManifestId; DepotConfigStore.Save(); - Console.WriteLine("Depot {0} - Downloaded {1} bytes ({2} bytes uncompressed)", depot.id, depotCounter.DepotBytesCompressed, depotCounter.DepotBytesUncompressed); + Console.WriteLine("Depot {0} - Downloaded {1} bytes ({2} bytes uncompressed)", depot.DepotId, depotCounter.DepotBytesCompressed, depotCounter.DepotBytesUncompressed); } private static void DownloadSteam3AsyncDepotFile( @@ -1035,7 +1027,7 @@ private static void DownloadSteam3AsyncDepotFile( oldManifestFile = oldProtoManifest.Files.SingleOrDefault(f => f.FileName == file.FileName); } - var fileFinalPath = Path.Combine(depot.installDir, file.FileName); + var fileFinalPath = Path.Combine(depot.InstallDir, file.FileName); var fileStagingPath = Path.Combine(stagingDir, file.FileName); // This may still exist if the previous run exited before cleanup @@ -1059,7 +1051,7 @@ private static void DownloadSteam3AsyncDepotFile( } catch (IOException ex) { - throw new ContentDownloaderException(String.Format("Failed to allocate file {0}: {1}", fileFinalPath, ex.Message)); + throw new ContentDownloaderException(string.Format("Failed to allocate file {0}: {1}", fileFinalPath, ex.Message)); } neededChunks = new List(file.Chunks); @@ -1069,7 +1061,7 @@ private static void DownloadSteam3AsyncDepotFile( // open existing if (oldManifestFile != null) { - neededChunks = new List(); + neededChunks = []; var hashMatches = oldManifestFile.FileHash.SequenceEqual(file.FileHash); if (Config.VerifyAll || !hashMatches) @@ -1133,7 +1125,7 @@ private static void DownloadSteam3AsyncDepotFile( } catch (IOException ex) { - throw new ContentDownloaderException(String.Format("Failed to resize file to expected size {0}: {1}", fileFinalPath, ex.Message)); + throw new ContentDownloaderException(string.Format("Failed to resize file to expected size {0}: {1}", fileFinalPath, ex.Message)); } foreach (var match in copyChunks) @@ -1165,15 +1157,15 @@ private static void DownloadSteam3AsyncDepotFile( } catch (IOException ex) { - throw new ContentDownloaderException(String.Format("Failed to allocate file {0}: {1}", fileFinalPath, ex.Message)); + throw new ContentDownloaderException(string.Format("Failed to allocate file {0}: {1}", fileFinalPath, ex.Message)); } } Console.WriteLine("Validating {0}", fileFinalPath); - neededChunks = Util.ValidateSteam3FileChecksums(fs, file.Chunks.OrderBy(x => x.Offset).ToArray()); + neededChunks = Util.ValidateSteam3FileChecksums(fs, [.. file.Chunks.OrderBy(x => x.Offset)]); } - if (neededChunks.Count() == 0) + if (neededChunks.Count == 0) { lock (depotDownloadCounter) { @@ -1255,16 +1247,14 @@ private static string GetCDNAuth(uint app, uint depot, string host_name, bool fo return authData.Token; } - DebugLog.WriteLine("ContentDownloader", "No CDN Auth Required."); + DebugLog.WriteLine("ContentDownloader", "CDN Auth empty."); cdnAuths.Add(new CDNAuth{app=app,depot=depot,host_name = host_name,noauth=true,}); return null; - - } private static async Task DownloadSteam3AsyncDepotFileChunk( - CancellationTokenSource cts, uint appId, + CancellationTokenSource cts, GlobalDownloadCounter downloadCounter, DepotFilesData depotFilesData, ProtoManifest.FileData file, @@ -1278,12 +1268,14 @@ private static async Task DownloadSteam3AsyncDepotFileChunk( var chunkID = Util.EncodeHexString(chunk.ChunkID); - var data = new DepotManifest.ChunkData(); - data.ChunkID = chunk.ChunkID; - data.Checksum = chunk.Checksum; - data.Offset = chunk.Offset; - data.CompressedLength = chunk.CompressedLength; - data.UncompressedLength = chunk.UncompressedLength; + var data = new DepotManifest.ChunkData + { + ChunkID = chunk.ChunkID, + Checksum = chunk.Checksum, + Offset = chunk.Offset, + CompressedLength = chunk.CompressedLength, + UncompressedLength = chunk.UncompressedLength + }; DepotChunk chunkData = null; @@ -1299,12 +1291,12 @@ private static async Task DownloadSteam3AsyncDepotFileChunk( DebugLog.WriteLine("ContentDownloader", "Downloading chunk {0} from {1} with {2}", chunkID, connection, cdnPool.ProxyServer != null ? cdnPool.ProxyServer : "no proxy"); chunkData = await cdnPool.CDNClient.DownloadDepotChunkAsync( - depot.id, + depot.DepotId, data, connection, - depot.depotKey, + depot.DepotKey, cdnPool.ProxyServer, - GetCDNAuth(depot.appId, depot.id, connection.VHost)).ConfigureAwait(false); + GetCDNAuth(depot.AppId, depot.DepotId, connection.VHost)).ConfigureAwait(false); cdnPool.ReturnConnection(connection); } @@ -1319,7 +1311,7 @@ private static async Task DownloadSteam3AsyncDepotFileChunk( if (e.StatusCode == HttpStatusCode.Unauthorized || e.StatusCode == HttpStatusCode.Forbidden) { Console.WriteLine("Encountered 401 for chunk {0}. Aborting.", chunkID); - GetCDNAuth(depot.appId, depot.id, connection.VHost, true); + GetCDNAuth(depot.AppId, depot.DepotId, connection.VHost, true); break; } @@ -1338,7 +1330,7 @@ private static async Task DownloadSteam3AsyncDepotFileChunk( if (chunkData == null) { - Console.WriteLine("Failed to find any server with chunk {0} for depot {1}. Aborting.", chunkID, depot.id); + Console.WriteLine("Failed to find any server with chunk {0} for depot {1}. Aborting.", chunkID, depot.DepotId); cts.Cancel(); } @@ -1351,12 +1343,12 @@ private static async Task DownloadSteam3AsyncDepotFileChunk( if (fileStreamData.fileStream == null) { - var fileFinalPath = Path.Combine(depot.installDir, file.FileName); + var fileFinalPath = Path.Combine(depot.InstallDir, file.FileName); fileStreamData.fileStream = File.Open(fileFinalPath, FileMode.Open); } fileStreamData.fileStream.Seek((long)chunkData.ChunkInfo.Offset, SeekOrigin.Begin); - await fileStreamData.fileStream.WriteAsync(chunkData.Data, 0, chunkData.Data.Length); + await fileStreamData.fileStream.WriteAsync(chunkData.Data.AsMemory(0, chunkData.Data.Length), cts.Token); } finally { @@ -1387,7 +1379,7 @@ private static async Task DownloadSteam3AsyncDepotFileChunk( if (DebugLog.Enabled && remainingChunks == 0) { - var fileFinalPath = Path.Combine(depot.installDir, file.FileName); + var fileFinalPath = Path.Combine(depot.InstallDir, file.FileName); Console.Write("{0,6:#00.00}% {1}\n\n", (sizeDownloaded / (float)depotDownloadCounter.CompleteDownloadSize) * 100.0f, fileFinalPath); } @@ -1423,44 +1415,41 @@ private static string Getspeed(ulong sizeDownloaded) static void DumpManifestToTextFile(DepotDownloadInfo depot, ProtoManifest manifest) { - var txtManifest = Path.Combine(depot.installDir, $"manifest_{depot.id}_{depot.manifestId}.txt"); - - using (var sw = new StreamWriter(txtManifest)) - { - sw.WriteLine($"Content Manifest for Depot {depot.id}"); - sw.WriteLine(); - sw.WriteLine($"Manifest ID / date : {depot.manifestId} / {manifest.CreationTime}"); + var txtManifest = Path.Combine(depot.InstallDir, $"manifest_{depot.DepotId}_{depot.ManifestId}.txt"); + using var sw = new StreamWriter(txtManifest); + sw.WriteLine($"Content Manifest for Depot {depot.DepotId}"); + sw.WriteLine(); + sw.WriteLine($"Manifest ID / date : {depot.ManifestId} / {manifest.CreationTime}"); - int numFiles = 0, numChunks = 0; - ulong uncompressedSize = 0, compressedSize = 0; + int numFiles = 0, numChunks = 0; + ulong uncompressedSize = 0, compressedSize = 0; - foreach (var file in manifest.Files) - { - if (file.Flags.HasFlag(EDepotFileFlag.Directory)) - continue; + foreach (var file in manifest.Files) + { + if (file.Flags.HasFlag(EDepotFileFlag.Directory)) + continue; - numFiles++; - numChunks += file.Chunks.Count; + numFiles++; + numChunks += file.Chunks.Count; - foreach (var chunk in file.Chunks) - { - uncompressedSize += chunk.UncompressedLength; - compressedSize += chunk.CompressedLength; - } + foreach (var chunk in file.Chunks) + { + uncompressedSize += chunk.UncompressedLength; + compressedSize += chunk.CompressedLength; } + } - sw.WriteLine($"Total number of files : {numFiles}"); - sw.WriteLine($"Total number of chunks : {numChunks}"); - sw.WriteLine($"Total bytes on disk : {uncompressedSize}"); - sw.WriteLine($"Total bytes compressed : {compressedSize}"); - sw.WriteLine(); - sw.WriteLine(" Size Chunks File SHA Flags Name"); + sw.WriteLine($"Total number of files : {numFiles}"); + sw.WriteLine($"Total number of chunks : {numChunks}"); + sw.WriteLine($"Total bytes on disk : {uncompressedSize}"); + sw.WriteLine($"Total bytes compressed : {compressedSize}"); + sw.WriteLine(); + sw.WriteLine(" Size Chunks File SHA Flags Name"); - foreach (var file in manifest.Files) - { - var sha1Hash = BitConverter.ToString(file.FileHash).Replace("-", ""); - sw.WriteLine($"{file.TotalSize,14} {file.Chunks.Count,6} {sha1Hash} {file.Flags,5:D} {file.FileName}"); - } + foreach (var file in manifest.Files) + { + var sha1Hash = BitConverter.ToString(file.FileHash).Replace("-", ""); + sw.WriteLine($"{file.TotalSize,14} {file.Chunks.Count,6} {sha1Hash} {file.Flags,5:D} {file.FileName}"); } } } diff --git a/DepotDownloaderMod/DepotConfigStore.cs b/DepotDownloaderMod/DepotConfigStore.cs index 2bd2bb598..99f052c5f 100644 --- a/DepotDownloaderMod/DepotConfigStore.cs +++ b/DepotDownloaderMod/DepotConfigStore.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.IO; using System.IO.Compression; @@ -16,7 +16,7 @@ class DepotConfigStore DepotConfigStore() { - InstalledManifestIDs = new Dictionary(); + InstalledManifestIDs = []; } static bool Loaded @@ -33,9 +33,9 @@ public static void LoadFromFile(string filename) if (File.Exists(filename)) { - using (var fs = File.Open(filename, FileMode.Open)) - using (var ds = new DeflateStream(fs, CompressionMode.Decompress)) - Instance = Serializer.Deserialize(ds); + using var fs = File.Open(filename, FileMode.Open); + using var ds = new DeflateStream(fs, CompressionMode.Decompress); + Instance = Serializer.Deserialize(ds); } else { @@ -50,9 +50,9 @@ public static void Save() if (!Loaded) throw new Exception("Saved config before loading"); - using (var fs = File.Open(Instance.FileName, FileMode.Create)) - using (var ds = new DeflateStream(fs, CompressionMode.Compress)) - Serializer.Serialize(ds, Instance); + using var fs = File.Open(Instance.FileName, FileMode.Create); + using var ds = new DeflateStream(fs, CompressionMode.Compress); + Serializer.Serialize(ds, Instance); } } } diff --git a/DepotDownloaderMod/DepotDownloaderMod.csproj b/DepotDownloaderMod/DepotDownloaderMod.csproj index c75b73120..0f8f0ec97 100644 --- a/DepotDownloaderMod/DepotDownloaderMod.csproj +++ b/DepotDownloaderMod/DepotDownloaderMod.csproj @@ -1,19 +1,19 @@ Exe - net6.0 + net8.0 true LatestMajor - 2.4.5 + 2.6.0 Steam Downloading Utility SteamRE Team Copyright © SteamRE Team 2021 - - + + diff --git a/DepotDownloaderMod/HttpClientFactory.cs b/DepotDownloaderMod/HttpClientFactory.cs index 8067826bf..aa642bc76 100644 --- a/DepotDownloaderMod/HttpClientFactory.cs +++ b/DepotDownloaderMod/HttpClientFactory.cs @@ -1,4 +1,4 @@ -using System.IO; +using System.IO; using System.Net.Http; using System.Net.Http.Headers; using System.Net.Sockets; @@ -29,8 +29,10 @@ static async ValueTask IPv4ConnectAsync(SocketsHttpConnectionContext con // By default, we create dual-mode sockets: // Socket socket = new Socket(SocketType.Stream, ProtocolType.Tcp); - var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); - socket.NoDelay = true; + var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp) + { + NoDelay = true + }; try { diff --git a/DepotDownloaderMod/HttpDiagnosticEventListener.cs b/DepotDownloaderMod/HttpDiagnosticEventListener.cs index 31546b978..f3b114290 100644 --- a/DepotDownloaderMod/HttpDiagnosticEventListener.cs +++ b/DepotDownloaderMod/HttpDiagnosticEventListener.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Diagnostics.Tracing; using System.Text; @@ -35,7 +35,7 @@ protected override void OnEventWritten(EventWrittenEventArgs eventData) } } - sb.Append(")"); + sb.Append(')'); Console.WriteLine(sb.ToString()); } } diff --git a/DepotDownloaderMod/PlatformUtilities.cs b/DepotDownloaderMod/PlatformUtilities.cs index 9e3d2b6c9..549165a50 100644 --- a/DepotDownloaderMod/PlatformUtilities.cs +++ b/DepotDownloaderMod/PlatformUtilities.cs @@ -3,7 +3,7 @@ namespace DepotDownloader { - public static class PlatformUtilities + static class PlatformUtilities { private const int ModeExecuteOwner = 0x0040; private const int ModeExecuteGroup = 0x0008; diff --git a/DepotDownloaderMod/Program.cs b/DepotDownloaderMod/Program.cs index 111f30fd8..f22436b4c 100644 --- a/DepotDownloaderMod/Program.cs +++ b/DepotDownloaderMod/Program.cs @@ -27,6 +27,8 @@ class Program static int Main(string[] args) => MainAsync(args).GetAwaiter().GetResult(); + internal static readonly char[] newLineCharacters = ['\n', '\r']; + static async Task MainAsync(string[] args) { if (args.Length == 0) @@ -83,20 +85,22 @@ static async Task MainAsync(string[] args) if (fileList != null) { + const string RegexPrefix = "regex:"; + try { var fileListData = await File.ReadAllTextAsync(fileList); - var files = fileListData.Split(new[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries); + var files = fileListData.Split(newLineCharacters, StringSplitOptions.RemoveEmptyEntries); ContentDownloader.Config.UsingFileList = true; ContentDownloader.Config.FilesToDownload = new HashSet(StringComparer.OrdinalIgnoreCase); - ContentDownloader.Config.FilesToDownloadRegex = new List(); + ContentDownloader.Config.FilesToDownloadRegex = []; foreach (var fileEntry in files) { - if (fileEntry.StartsWith("regex:")) + if (fileEntry.StartsWith(RegexPrefix)) { - var rgx = new Regex(fileEntry.Substring(6), RegexOptions.Compiled | RegexOptions.IgnoreCase); + var rgx = new Regex(fileEntry[RegexPrefix.Length..], RegexOptions.Compiled | RegexOptions.IgnoreCase); ContentDownloader.Config.FilesToDownloadRegex.Add(rgx); } else @@ -124,8 +128,7 @@ static async Task MainAsync(string[] args) string[] lines = depotKeysListData.Split(new char[] { '\n', '\r' }, StringSplitOptions.RemoveEmptyEntries); DepotKeyStore.AddAll(lines); - - + Console.WriteLine("Using depot keys from '{0}'.", depotKeysList); } catch (Exception ex) @@ -235,7 +238,7 @@ ex is ContentDownloaderException ContentDownloader.Config.DownloadAllPlatforms = HasParameter(args, "-all-platforms"); var os = GetParameter(args, "-os"); - if (ContentDownloader.Config.DownloadAllPlatforms && !String.IsNullOrEmpty(os)) + if (ContentDownloader.Config.DownloadAllPlatforms && !string.IsNullOrEmpty(os)) { Console.WriteLine("Error: Cannot specify -os when -all-platforms is specified."); return 1; @@ -246,7 +249,7 @@ ex is ContentDownloaderException ContentDownloader.Config.DownloadAllLanguages = HasParameter(args, "-all-languages"); var language = GetParameter(args, "-language"); - if (ContentDownloader.Config.DownloadAllLanguages && !String.IsNullOrEmpty(language)) + if (ContentDownloader.Config.DownloadAllLanguages && !string.IsNullOrEmpty(language)) { Console.WriteLine("Error: Cannot specify -language when -all-languages is specified."); return 1; @@ -357,7 +360,7 @@ static bool HasParameter(string[] args, string param) return IndexOfParam(args, param) > -1; } - static T GetParameter(string[] args, string param, T defaultValue = default(T)) + static T GetParameter(string[] args, string param, T defaultValue = default) { var index = IndexOfParam(args, param); @@ -372,7 +375,7 @@ static bool HasParameter(string[] args, string param) return (T)converter.ConvertFromString(strParam); } - return default(T); + return default; } static List GetParameterList(string[] args, string param) diff --git a/DepotDownloaderMod/Properties/launchSettings.json b/DepotDownloaderMod/Properties/launchSettings.json index 583cb3390..06347e0b6 100644 --- a/DepotDownloaderMod/Properties/launchSettings.json +++ b/DepotDownloaderMod/Properties/launchSettings.json @@ -1,7 +1,9 @@ { "profiles": { "DepotDownloaderMod": { - "commandName": "Project" + "commandName": "Project", + "commandLineArgs": "-app 2553050 -depot 2553051 -manifest 2447965233829436464 -manifestfile 2553051_2447965233829436464.manifest -depotkeys 2553050.key -max-servers 128 -max-downloads 256 -verify-all\r\n", + "workingDirectory": "H:\\DepotDownloaderMod" } } } \ No newline at end of file diff --git a/DepotDownloaderMod/ProtoManifest.cs b/DepotDownloaderMod/ProtoManifest.cs index 1da405790..90d5947a6 100644 --- a/DepotDownloaderMod/ProtoManifest.cs +++ b/DepotDownloaderMod/ProtoManifest.cs @@ -4,7 +4,7 @@ using System.IO.Compression; using ProtoBuf; using SteamKit2; -using static SteamKit2.Internal.CMsgClientUGSGetGlobalStatsResponse; +using System.Security.Cryptography; namespace DepotDownloader { @@ -14,7 +14,7 @@ class ProtoManifest // Proto ctor private ProtoManifest() { - Files = new List(); + Files = []; } public ProtoManifest(DepotManifest sourceManifest, ulong id) : this() @@ -30,7 +30,7 @@ public class FileData // Proto ctor private FileData() { - Chunks = new List(); + Chunks = []; } public FileData(DepotManifest.FileData sourceData) : this() @@ -145,7 +145,7 @@ public static ProtoManifest LoadFromFile(string filename, out byte[] checksum,bo { fs.CopyTo(ms); } - checksum = Util.SHAHash(ms.ToArray()); + checksum = SHA1.HashData(ms.ToArray()); ms.Seek(0, SeekOrigin.Begin); if (fromdepotdownloader) @@ -166,7 +166,7 @@ public void SaveToFile(string filename, out byte[] checksum) { Serializer.Serialize(ms, this); - checksum = Util.SHAHash(ms.ToArray()); + checksum = SHA1.HashData(ms.ToArray()); ms.Seek(0, SeekOrigin.Begin); diff --git a/DepotDownloaderMod/Steam3Session.cs b/DepotDownloaderMod/Steam3Session.cs index 2e9a18ca2..ecd771fc8 100644 --- a/DepotDownloaderMod/Steam3Session.cs +++ b/DepotDownloaderMod/Steam3Session.cs @@ -2,11 +2,10 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.IO; using System.Linq; -using QRCoder; using System.Threading; using System.Threading.Tasks; +using QRCoder; using SteamKit2; using SteamKit2.Authentication; using SteamKit2.Internal; @@ -15,16 +14,7 @@ namespace DepotDownloader { class Steam3Session { - public class Credentials - { - public bool LoggedOn { get; set; } - public ulong SessionToken { get; set; } - - public bool IsValid - { - get { return LoggedOn; } - } - } + public bool IsLoggedOn { get; private set; } public ReadOnlyCollection Licenses { @@ -32,13 +22,12 @@ public ReadOnlyCollection Licenses private set; } - public Dictionary AppTokens { get; private set; } - public Dictionary PackageTokens { get; private set; } - public Dictionary DepotKeys { get; private set; } - public ConcurrentDictionary> CDNAuthTokens { get; private set; } - public Dictionary AppInfo { get; private set; } - public Dictionary PackageInfo { get; private set; } - public Dictionary AppBetaPasswords { get; private set; } + public Dictionary AppTokens { get; } = []; + public Dictionary PackageTokens { get; } = []; + public Dictionary DepotKeys { get; } = []; + public Dictionary AppInfo { get; } = []; + public Dictionary PackageInfo { get; } = []; + public Dictionary AppBetaPasswords { get; } = []; public SteamClient steamClient; public SteamUser steamUser; @@ -65,32 +54,13 @@ public ReadOnlyCollection Licenses // input readonly SteamUser.LogOnDetails logonDetails; - // output - readonly Credentials credentials; - static readonly TimeSpan STEAM3_TIMEOUT = TimeSpan.FromSeconds(30); public Steam3Session(SteamUser.LogOnDetails details) { this.logonDetails = details; - this.authenticatedUser = details.Username != null || ContentDownloader.Config.UseQrCode; - this.credentials = new Credentials(); - this.bConnected = false; - this.bConnecting = false; - this.bAborted = false; - this.bExpectingDisconnectRemote = false; - this.bDidDisconnect = false; - this.seq = 0; - - this.AppTokens = new Dictionary(); - this.PackageTokens = new Dictionary(); - this.DepotKeys = new Dictionary(); - this.CDNAuthTokens = new ConcurrentDictionary>(); - this.AppInfo = new Dictionary(); - this.PackageInfo = new Dictionary(); - this.AppBetaPasswords = new Dictionary(); var clientConfiguration = SteamConfiguration.Create(config => config @@ -110,34 +80,16 @@ public Steam3Session(SteamUser.LogOnDetails details) this.callbacks.Subscribe(ConnectedCallback); this.callbacks.Subscribe(DisconnectedCallback); this.callbacks.Subscribe(LogOnCallback); - this.callbacks.Subscribe(SessionTokenCallback); this.callbacks.Subscribe(LicenseListCallback); - this.callbacks.Subscribe(UpdateMachineAuthCallback); Console.Write("Connecting to Steam3..."); - if (details.Username != null) - { - var fi = new FileInfo(String.Format("{0}.sentryFile", logonDetails.Username)); - if (AccountSettingsStore.Instance.SentryData != null && AccountSettingsStore.Instance.SentryData.ContainsKey(logonDetails.Username)) - { - logonDetails.SentryFileHash = Util.SHAHash(AccountSettingsStore.Instance.SentryData[logonDetails.Username]); - } - else if (fi.Exists && fi.Length > 0) - { - var sentryData = File.ReadAllBytes(fi.FullName); - logonDetails.SentryFileHash = Util.SHAHash(sentryData); - AccountSettingsStore.Instance.SentryData[logonDetails.Username] = sentryData; - AccountSettingsStore.Save(); - } - } - Connect(); } public delegate bool WaitCondition(); - private readonly object steamLock = new object(); + private readonly object steamLock = new (); public bool WaitUntilCallback(Action submitter, WaitCondition waiter) { @@ -161,14 +113,12 @@ public bool WaitUntilCallback(Action submitter, WaitCondition waiter) return bAborted; } - public Credentials WaitForCredentials() + public bool WaitForCredentials() { - if (credentials.IsValid || bAborted) - return credentials; - - WaitUntilCallback(() => { }, () => { return credentials.IsValid; }); - - return credentials; + if (IsLoggedOn || bAborted) + return IsLoggedOn; + WaitUntilCallback(() => { }, () => IsLoggedOn); + return IsLoggedOn; } public void RequestAppInfo(uint appId, bool bForce = false) @@ -235,9 +185,9 @@ public void RequestAppInfo(uint appId, bool bForce = false) else { var request = new SteamApps.PICSRequest(appId); - if (AppTokens.ContainsKey(appId)) + if (AppTokens.TryGetValue(appId, out var token)) { - request.AccessToken = AppTokens[appId]; + request.AccessToken = token; } WaitUntilCallback(() => @@ -499,7 +449,7 @@ private void Abort(bool sendLogOff = true) public void Disconnect(bool sendLogOff = true) { - if (sendLogOff) + if (sendLogOff && bConnected) { steamUser.LogOff(); } @@ -565,11 +515,13 @@ private async void ConnectedCallback(SteamClient.ConnectedCallback connected) { try { + _ = AccountSettingsStore.Instance.GuardData.TryGetValue(logonDetails.Username, out var guarddata); authSession = await steamClient.Authentication.BeginAuthSessionViaCredentialsAsync(new SteamKit2.Authentication.AuthSessionDetails { Username = logonDetails.Username, Password = logonDetails.Password, IsPersistentSession = ContentDownloader.Config.RememberPassword, + GuardData = guarddata, Authenticator = new UserConsoleAuthenticator(), }); } @@ -631,7 +583,15 @@ private async void ConnectedCallback(SteamClient.ConnectedCallback connected) logonDetails.Username = result.AccountName; logonDetails.Password = null; logonDetails.AccessToken = result.RefreshToken; - + if (result.NewGuardData != null) + { + AccountSettingsStore.Instance.GuardData[result.AccountName] = result.NewGuardData; + } + else + { + AccountSettingsStore.Instance.GuardData.Remove(result.AccountName); + } + Console.WriteLine("Guard Data:" + result.NewGuardData); AccountSettingsStore.Instance.LoginTokens[result.AccountName] = result.RefreshToken; AccountSettingsStore.Save(); } @@ -694,7 +654,12 @@ private void LogOnCallback(SteamUser.LoggedOnCallback loggedOn) { var isSteamGuard = loggedOn.Result == EResult.AccountLogonDenied; var is2FA = loggedOn.Result == EResult.AccountLoginDeniedNeedTwoFactor; - var isAccessToken = ContentDownloader.Config.RememberPassword && logonDetails.AccessToken != null && loggedOn.Result == EResult.InvalidPassword; // TODO: Get EResult for bad access token + var isAccessToken = ContentDownloader.Config.RememberPassword && logonDetails.AccessToken != null && + loggedOn.Result is EResult.InvalidPassword + or EResult.InvalidSignature + or EResult.AccessDenied + or EResult.Expired + or EResult.Revoked; if (isSteamGuard || is2FA || isAccessToken) { @@ -712,7 +677,7 @@ private void LogOnCallback(SteamUser.LoggedOnCallback loggedOn) { Console.Write("Please enter your 2 factor auth code from your authenticator app: "); logonDetails.TwoFactorCode = Console.ReadLine(); - } while (String.Empty == logonDetails.TwoFactorCode); + } while (string.Empty == logonDetails.TwoFactorCode); } else if (isAccessToken) { @@ -720,7 +685,7 @@ private void LogOnCallback(SteamUser.LoggedOnCallback loggedOn) AccountSettingsStore.Save(); // TODO: Handle gracefully by falling back to password prompt? - Console.WriteLine("Access token was rejected."); + Console.WriteLine($"Access token was rejected ({loggedOn.Result})."); Abort(false); return; } @@ -767,7 +732,7 @@ private void LogOnCallback(SteamUser.LoggedOnCallback loggedOn) Console.WriteLine(" Done!"); this.seq++; - credentials.LoggedOn = true; + IsLoggedOn = true; if (ContentDownloader.Config.CellID == 0) { @@ -776,16 +741,6 @@ private void LogOnCallback(SteamUser.LoggedOnCallback loggedOn) } } - private void SessionTokenCallback(SteamUser.SessionTokenCallback sessionToken) - { - - Console.WriteLine("Got session token!"); - credentials.SessionToken = sessionToken.SessionToken; - - - - } - private void LicenseListCallback(SteamApps.LicenseListCallback licenseList) { if (licenseList.Result != EResult.OK) @@ -808,37 +763,6 @@ private void LicenseListCallback(SteamApps.LicenseListCallback licenseList) } } - private void UpdateMachineAuthCallback(SteamUser.UpdateMachineAuthCallback machineAuth) - { - - - var hash = Util.SHAHash(machineAuth.Data); - Console.WriteLine("Got Machine Auth: {0} {1} {2} {3}", machineAuth.FileName, machineAuth.Offset, machineAuth.BytesToWrite, machineAuth.Data.Length); - - AccountSettingsStore.Instance.SentryData[logonDetails.Username] = machineAuth.Data; - AccountSettingsStore.Save(); - - var authResponse = new SteamUser.MachineAuthDetails - { - BytesWritten = machineAuth.BytesToWrite, - FileName = machineAuth.FileName, - FileSize = machineAuth.BytesToWrite, - Offset = machineAuth.Offset, - - SentryFileHash = hash, // should be the sha1 hash of the sentry file we just wrote - - OneTimePassword = machineAuth.OneTimePassword, // not sure on this one yet, since we've had no examples of steam using OTPs - - LastError = 0, // result from win32 GetLastError - Result = EResult.OK, // if everything went okay, otherwise ~who knows~ - - JobID = machineAuth.JobID, // so we respond to the correct server job - }; - - // send off our response - steamUser.SendMachineAuthResponse(authResponse); - } - private static void DisplayQrCode(string challengeUrl) { // Encode the link as a QR code diff --git a/DepotDownloaderMod/Util.cs b/DepotDownloaderMod/Util.cs index 394afc642..c26a2c6f7 100644 --- a/DepotDownloaderMod/Util.cs +++ b/DepotDownloaderMod/Util.cs @@ -3,7 +3,6 @@ using System.IO; using System.Linq; using System.Runtime.InteropServices; -using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; @@ -120,16 +119,6 @@ public static byte[] AdlerHash(byte[] input) return BitConverter.GetBytes(a | (b << 16)); } - public static byte[] SHAHash(byte[] input) - { - using (var sha = SHA1.Create()) - { - var output = sha.ComputeHash(input); - - return output; - } - } - public static byte[] DecodeHexString(string hex) { if (hex == null) @@ -153,8 +142,8 @@ public static string EncodeHexString(byte[] input) public static async Task InvokeAsync(IEnumerable> taskFactories, int maxDegreeOfParallelism) { - if (taskFactories == null) throw new ArgumentNullException(nameof(taskFactories)); - if (maxDegreeOfParallelism <= 0) throw new ArgumentException(nameof(maxDegreeOfParallelism)); + ArgumentNullException.ThrowIfNull(taskFactories); + ArgumentOutOfRangeException.ThrowIfLessThanOrEqual(maxDegreeOfParallelism, 0); var queue = taskFactories.ToArray(); diff --git a/README.md b/README.md index 2e25f175c..abe9a5290 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ DepotDownloaderMod =============== IMPROTANT: This Tool require a manifest file to work Due to GetManifestRequestCode Verification. -Steam depot downloader utilizing the SteamKit2 library with depot keys support and many other features. Supports .NET 6.0 +Steam depot downloader utilizing the SteamKit2 library with depot keys support and many other features. Supports .NET 8.0 Works with keys from SteamTools: diff --git a/Scripts/storage_depotdownloadermod.py b/Scripts/storage_depotdownloadermod.py index 3ae9bf434..d62b1e605 100644 --- a/Scripts/storage_depotdownloadermod.py +++ b/Scripts/storage_depotdownloadermod.py @@ -14,7 +14,7 @@ lock = Lock() depotdownloader = "DepotDownloadermod.exe" -depotdownlaoderargs = "-max-servers 128 -max-downloads 256" +depotdownlaoderargs = "-max-servers 128 -max-downloads 256 -verify-all" def get(sha, path): url_list = [f'https://cdn.jsdelivr.net/gh/{repo}@{sha}/{path}', @@ -59,6 +59,12 @@ def get_manifest(sha, path, output_path: Path, app_id=None): print(f'密钥下载成功: {path}') depots_config = vdf.loads(content.decode(encoding='utf-8')) + elif path == 'Key.vdf': + content = get(sha, path) + with lock: + print(f'密钥下载成功: {path}') + depots_config = vdf.loads(content.decode(encoding='utf-8')) + if depotkey_add( [(depot_id, '1', depots_config['depots'][depot_id]['DecryptionKey']) for depot_id in depots_config['depots']],output_path,app_id): @@ -115,7 +121,7 @@ def main(app_id,path=get_script_path()): return False parser = argparse.ArgumentParser() -parser.add_argument('-r', '--repo', default='heyong5454/ManifestAutoUpdate') +parser.add_argument('-r', '--repo', default='ManifestHub/ManifestHub') parser.add_argument('-a', '--app-id') parser.add_argument('-p', '--output-path') args = parser.parse_args() diff --git a/Scripts/storage_depotdownloadermod_alt.py b/Scripts/storage_depotdownloadermod_alt.py new file mode 100644 index 000000000..388201660 --- /dev/null +++ b/Scripts/storage_depotdownloadermod_alt.py @@ -0,0 +1,156 @@ +import os +import vdf +import time +import shutil +import winreg +import sqlite3 +import argparse +import requests +import traceback +from pathlib import Path +from multiprocessing.pool import ThreadPool +from multiprocessing.dummy import Pool, Lock + +lock = Lock() + +depotdownloader = "DepotDownloadermod.exe" +depotdownlaoderargs = "-max-servers 128 -max-downloads 256 -verify-all" + +def get(sha, path): + url_list = [f'https://cdn.jsdelivr.net/gh/{repo}@{sha}/{path}', + f'https://ghproxy.com/https://raw.githubusercontent.com/{repo}/{sha}/{path}'] + retry = 3 + while True: + for url in url_list: + try: + r = requests.get(url) + if r.status_code == 200: + return r.content + except requests.exceptions.ConnectionError: + print(f'获取失败: {path}') + retry -= 1 + if not retry: + print(f'超过最大重试次数: {path}') + raise + +def downloader_add(appid,path: Path,outpath): + depotid = path[0:path.find('_')] + manifestid = path[path.find('_') + 1:path.find('.')] + out = Path(os.path.join(outpath, f'{appid}.bat')) + with out.open('a') as f: + f.write(f'{depotdownloader} -app {appid} -depot {depotid} -manifest {manifestid} -manifestfile {path} -depotkeys {appid}.key {depotdownlaoderargs}\n') + return True + +def xor_decrypt(toBeEncrypted, sKey): + sEncrypted = [] + iKey = len(sKey) + iIn = len(toBeEncrypted) + x = 0 + for i in range(iIn): + val = ord(toBeEncrypted[i]) ^ ord(sKey[x]) + sEncrypted.append(chr(val)) + x += 1 + if x == iKey: + x = 0 + return "".join(sEncrypted) + +def get_manifest(sha, path, output_path: Path, app_id=None): + try: + if path.endswith('.manifest'): + save_path = Path(os.path.join(output_path,path)) + content = get(sha, path) + with lock: + print(f'清单下载成功: {path}') + with save_path.open('wb') as f: + f.write(content) + downloader_add(app_id,path,output_path) + + elif path == 'config.vdf': + content = get(sha, path) + with lock: + print(f'密钥下载成功: {path}') + depots_config = vdf.loads(content.decode(encoding='utf-8')) + + elif path == 'Key.vdf': + content = get(sha, path) + with lock: + print(f'密钥下载成功: {path}') + depots_config = vdf.loads(content.decode(encoding='utf-8')) + + if depotkey_add( + [(depot_id, '1', depots_config['depots'][depot_id]['DecryptionKey']) + for depot_id in depots_config['depots']],output_path,app_id): + print('导入depotdownloader成功') + except KeyboardInterrupt: + raise + except: + traceback.print_exc() + raise + return True + +def depotkey_add(depot_list,Outpath: Path,app_id): + for depot_id, type_, depot_key in depot_list: + if depot_key: + depot_key = f'{depot_key}' + str = bytearray.fromhex(depot_key).decode('utf-8') + depot_key = xor_decrypt(str, "Scalping dogs, I'll fuck you") + out = Path(os.path.join(Outpath, f'{app_id}.key')) + with out.open('a') as f: + f.write(f'{depot_id};{depot_key}\n') + + return True + + +def get_script_path(): + return os.getcwd() + + +def main(app_id,path=get_script_path()): + Outpath = Path(path) + url = f'https://api.github.com/repos/{repo}/branches/{app_id}' + r = requests.get(url) + if 'commit' in r.json(): + sha = r.json()['commit']['sha'] + url = r.json()['commit']['commit']['tree']['url'] + r = requests.get(url) + if 'tree' in r.json(): + result_list = [] + with Pool(32) as pool: + pool: ThreadPool + for i in r.json()['tree']: + result_list.append(pool.apply_async(get_manifest, (sha, i['path'], Outpath, app_id))) + try: + while pool._state == 'RUN': + if all([result.ready() for result in result_list]): + break + time.sleep(0.1) + except KeyboardInterrupt: + with lock: + pool.terminate() + raise + if all([result.successful() for result in result_list]): + print(f'导入成功: {app_id}') + return True + print(f'导入失败: {app_id}') + return False + +parser = argparse.ArgumentParser() +parser.add_argument('-r', '--repo', default='BlankTMing/ManifestAutoUpdate') +parser.add_argument('-a', '--app-id') +parser.add_argument('-p', '--output-path') +args = parser.parse_args() +repo = args.repo +if __name__ == '__main__': + try: + if args.output_path: + if not os.path.exists(args.output_path): + os.makedirs(args.output_path) + main(args.app_id or input('appid: '),args.output_path) + else: + main(args.app_id or input('appid: ')) + except KeyboardInterrupt: + exit() + except: + traceback.print_exc() + if not args.app_id and not args.output_path: + os.system('pause') diff --git a/SteamKit2/Base/ClientMsg.cs b/SteamKit2/Base/ClientMsg.cs index 974a75abc..437697fca 100644 --- a/SteamKit2/Base/ClientMsg.cs +++ b/SteamKit2/Base/ClientMsg.cs @@ -109,7 +109,7 @@ internal ClientMsgProtobuf( EMsg eMsg, int payloadReserve = 64 ) public ClientMsgProtobuf( IPacketMsg msg ) : this( msg.GetMsgTypeWithNullCheck( nameof(msg) ) ) { - if ( !( msg is PacketClientMsgProtobuf packetMsgProto ) ) + if ( msg is not PacketClientMsgProtobuf packetMsgProto ) { throw new InvalidDataException( "ClientMsgProtobuf used for non-proto message!" ); } @@ -184,7 +184,7 @@ public ClientMsgProtobuf( EMsg eMsg, MsgBase msg, int payloadRes public ClientMsgProtobuf( IPacketMsg msg ) : this( msg.GetMsgTypeWithNullCheck( nameof(msg) ) ) { - if ( !( msg is PacketClientMsgProtobuf packetMsg ) ) + if ( msg is not PacketClientMsgProtobuf packetMsg ) { throw new InvalidDataException( $"ClientMsgProtobuf<{typeof(TBody).FullName}> used for non-proto message!" ); } @@ -325,10 +325,7 @@ public ClientMsg( int payloadReserve = 64 ) public ClientMsg( MsgBase msg, int payloadReserve = 64 ) : this( payloadReserve ) { - if ( msg == null ) - { - throw new ArgumentNullException( nameof(msg) ); - } + ArgumentNullException.ThrowIfNull( msg ); // our target is where the message came from Header.TargetJobID = msg.Header.SourceJobID; @@ -342,12 +339,9 @@ public ClientMsg( MsgBase msg, int payloadReserve = 64 ) public ClientMsg( IPacketMsg msg ) : this() { - if ( msg == null ) - { - throw new ArgumentNullException( nameof(msg) ); - } + ArgumentNullException.ThrowIfNull( msg ); - if ( !( msg is PacketClientMsg packetMsg ) ) + if ( msg is not PacketClientMsg packetMsg ) { throw new InvalidDataException( $"ClientMsg<{typeof( TBody ).FullName}> used for proto message!" ); } @@ -479,10 +473,7 @@ public Msg( int payloadReserve = 0 ) public Msg( MsgBase msg, int payloadReserve = 0 ) : this( payloadReserve ) { - if ( msg == null ) - { - throw new ArgumentNullException( nameof(msg) ); - } + ArgumentNullException.ThrowIfNull( msg ); // our target is where the message came from Header.TargetJobID = msg.Header.SourceJobID; @@ -496,12 +487,9 @@ public Msg( MsgBase msg, int payloadReserve = 0 ) public Msg( IPacketMsg msg ) : this() { - if ( msg == null ) - { - throw new ArgumentNullException( nameof(msg) ); - } + ArgumentNullException.ThrowIfNull( msg ); - if ( !( msg is PacketMsg packetMsg ) ) + if ( msg is not PacketMsg packetMsg ) { throw new InvalidDataException( $"ClientMsg<{typeof( TBody ).FullName}> used for proto message!" ); } diff --git a/SteamKit2/Base/GC/ClientMsgGC.cs b/SteamKit2/Base/GC/ClientMsgGC.cs index 08884d95e..d5c9655c3 100644 --- a/SteamKit2/Base/GC/ClientMsgGC.cs +++ b/SteamKit2/Base/GC/ClientMsgGC.cs @@ -97,10 +97,7 @@ public ClientGCMsgProtobuf( uint eMsg, int payloadReserve = 64 ) public ClientGCMsgProtobuf( uint eMsg, GCMsgBase msg, int payloadReserve = 64 ) : this( eMsg, payloadReserve ) { - if ( msg == null ) - { - throw new ArgumentNullException( nameof(msg) ); - } + ArgumentNullException.ThrowIfNull( msg ); // our target is where the message came from Header.Proto.job_id_target = msg.Header.Proto.job_id_source; @@ -127,14 +124,12 @@ public ClientGCMsgProtobuf( IPacketGCMsg msg ) /// public override byte[] Serialize() { - using ( MemoryStream ms = new MemoryStream() ) - { - Header.Serialize( ms ); - Serializer.Serialize( ms, Body ); - Payload.WriteTo( ms ); - - return ms.ToArray(); - } + using MemoryStream ms = new MemoryStream(); + Header.Serialize( ms ); + Serializer.Serialize( ms, Body ); + Payload.WriteTo( ms ); + + return ms.ToArray(); } /// /// Initializes this gc message by deserializing the specified data. @@ -142,22 +137,17 @@ public override byte[] Serialize() /// The data representing a gc message. public override void Deserialize( byte[] data ) { - if ( data == null ) - { - throw new ArgumentNullException( nameof(data) ); - } - - using ( MemoryStream ms = new MemoryStream( data ) ) - { - Header.Deserialize( ms ); - Body = Serializer.Deserialize( ms ); - - // the rest of the data is the payload - int payloadOffset = ( int )ms.Position; - int payloadLen = ( int )( ms.Length - ms.Position ); - - Payload.Write( data, payloadOffset, payloadLen ); - } + ArgumentNullException.ThrowIfNull( data ); + + using MemoryStream ms = new MemoryStream( data ); + Header.Deserialize( ms ); + Body = Serializer.Deserialize( ms ); + + // the rest of the data is the payload + int payloadOffset = ( int )ms.Position; + int payloadLen = ( int )( ms.Length - ms.Position ); + + Payload.Write( data, payloadOffset, payloadLen ); } } @@ -238,10 +228,7 @@ public ClientGCMsg( int payloadReserve = 64 ) public ClientGCMsg( GCMsgBase msg, int payloadReserve = 64 ) : this( payloadReserve ) { - if ( msg == null ) - { - throw new ArgumentNullException( nameof(msg) ); - } + ArgumentNullException.ThrowIfNull( msg ); // our target is where the message came from Header.TargetJobID = msg.Header.SourceJobID; @@ -255,10 +242,7 @@ public ClientGCMsg( GCMsgBase msg, int payloadReserve = 64 ) public ClientGCMsg( IPacketGCMsg msg ) : this() { - if ( msg == null ) - { - throw new ArgumentNullException( nameof(msg) ); - } + ArgumentNullException.ThrowIfNull( msg ); DebugLog.Assert( !msg.IsProto, "ClientGCMsg", "ClientGCMsg used for proto message!" ); @@ -273,14 +257,12 @@ public ClientGCMsg( IPacketGCMsg msg ) /// public override byte[] Serialize() { - using ( MemoryStream ms = new MemoryStream() ) - { - Header.Serialize( ms ); - Body.Serialize( ms ); - Payload.WriteTo( ms ); - - return ms.ToArray(); - } + using MemoryStream ms = new MemoryStream(); + Header.Serialize( ms ); + Body.Serialize( ms ); + Payload.WriteTo( ms ); + + return ms.ToArray(); } /// /// Initializes this gc message by deserializing the specified data. @@ -288,22 +270,17 @@ public override byte[] Serialize() /// The data representing a client message. public override void Deserialize( byte[] data ) { - if ( data == null ) - { - throw new ArgumentNullException( nameof(data) ); - } - - using ( MemoryStream ms = new MemoryStream( data ) ) - { - Header.Deserialize( ms ); - Body.Deserialize( ms ); - - // the rest of the data is the payload - int payloadOffset = ( int )ms.Position; - int payloadLen = ( int )( ms.Length - ms.Position ); - - Payload.Write( data, payloadOffset, payloadLen ); - } + ArgumentNullException.ThrowIfNull( data ); + + using MemoryStream ms = new MemoryStream( data ); + Header.Deserialize( ms ); + Body.Deserialize( ms ); + + // the rest of the data is the payload + int payloadOffset = ( int )ms.Position; + int payloadLen = ( int )( ms.Length - ms.Position ); + + Payload.Write( data, payloadOffset, payloadLen ); } } } diff --git a/SteamKit2/Base/GC/PacketBaseGC.cs b/SteamKit2/Base/GC/PacketBaseGC.cs index 26d9619f3..2c66eadca 100644 --- a/SteamKit2/Base/GC/PacketBaseGC.cs +++ b/SteamKit2/Base/GC/PacketBaseGC.cs @@ -116,10 +116,7 @@ public sealed class PacketClientGCMsgProtobuf : IPacketGCMsg /// The data. public PacketClientGCMsgProtobuf( uint eMsg, byte[] data ) { - if ( data == null ) - { - throw new ArgumentNullException( nameof(data) ); - } + ArgumentNullException.ThrowIfNull( data ); MsgType = eMsg; payload = data; @@ -193,10 +190,7 @@ public sealed class PacketClientGCMsg : IPacketGCMsg /// The data. public PacketClientGCMsg( uint eMsg, byte[] data ) { - if ( data == null ) - { - throw new ArgumentNullException( nameof(data) ); - } + ArgumentNullException.ThrowIfNull( data ); MsgType = eMsg; payload = data; diff --git a/SteamKit2/Base/Generated/ClientObjects.cs b/SteamKit2/Base/Generated/ClientObjects.cs index 0604b4a5c..04a7ec567 100644 --- a/SteamKit2/Base/Generated/ClientObjects.cs +++ b/SteamKit2/Base/Generated/ClientObjects.cs @@ -538,7 +538,7 @@ public uint device_id [global::ProtoBuf.ProtoMember(2)] public KnownAP ap_known { - get => __pbn__ap_info.Is(2) ? ((KnownAP)__pbn__ap_info.Object) : default(KnownAP); + get => __pbn__ap_info.Is(2) ? ((KnownAP)__pbn__ap_info.Object) : default; set => __pbn__ap_info = new global::ProtoBuf.DiscriminatedUnionObject(2, value); } public bool ShouldSerializeap_known() => __pbn__ap_info.Is(2); @@ -549,7 +549,7 @@ public KnownAP ap_known [global::ProtoBuf.ProtoMember(3)] public CustomAP ap_custom { - get => __pbn__ap_info.Is(3) ? ((CustomAP)__pbn__ap_info.Object) : default(CustomAP); + get => __pbn__ap_info.Is(3) ? ((CustomAP)__pbn__ap_info.Object) : default; set => __pbn__ap_info = new global::ProtoBuf.DiscriminatedUnionObject(3, value); } public bool ShouldSerializeap_custom() => __pbn__ap_info.Is(3); @@ -1136,6 +1136,36 @@ public int strength_raw public void Resetstrength_raw() => __pbn__strength_raw = null; private int? __pbn__strength_raw; + [global::ProtoBuf.ProtoMember(9)] + public bool wake_allowed + { + get => __pbn__wake_allowed.GetValueOrDefault(); + set => __pbn__wake_allowed = value; + } + public bool ShouldSerializewake_allowed() => __pbn__wake_allowed != null; + public void Resetwake_allowed() => __pbn__wake_allowed = null; + private bool? __pbn__wake_allowed; + + [global::ProtoBuf.ProtoMember(10)] + public bool wake_allowed_supported + { + get => __pbn__wake_allowed_supported.GetValueOrDefault(); + set => __pbn__wake_allowed_supported = value; + } + public bool ShouldSerializewake_allowed_supported() => __pbn__wake_allowed_supported != null; + public void Resetwake_allowed_supported() => __pbn__wake_allowed_supported = null; + private bool? __pbn__wake_allowed_supported; + + [global::ProtoBuf.ProtoMember(11)] + public int battery_percent + { + get => __pbn__battery_percent.GetValueOrDefault(); + set => __pbn__battery_percent = value; + } + public bool ShouldSerializebattery_percent() => __pbn__battery_percent != null; + public void Resetbattery_percent() => __pbn__battery_percent = null; + private int? __pbn__battery_percent; + } [global::ProtoBuf.ProtoContract()] @@ -1481,16 +1511,6 @@ public int display_external_refresh_manual_hz_max [global::ProtoBuf.ProtoMember(21)] public global::System.Collections.Generic.List fps_limit_options_external { get; } = new global::System.Collections.Generic.List(); - [global::ProtoBuf.ProtoMember(22)] - public bool is_tearing_supported - { - get => __pbn__is_tearing_supported.GetValueOrDefault(); - set => __pbn__is_tearing_supported = value; - } - public bool ShouldSerializeis_tearing_supported() => __pbn__is_tearing_supported != null; - public void Resetis_tearing_supported() => __pbn__is_tearing_supported = null; - private bool? __pbn__is_tearing_supported; - [global::ProtoBuf.ProtoMember(23)] public bool is_vrr_supported { @@ -1537,6 +1557,26 @@ public bool is_hdr_supported public void Resetis_hdr_supported() => __pbn__is_hdr_supported = null; private bool? __pbn__is_hdr_supported; + [global::ProtoBuf.ProtoMember(29)] + public int display_refresh_manual_hz_oc_max + { + get => __pbn__display_refresh_manual_hz_oc_max.GetValueOrDefault(); + set => __pbn__display_refresh_manual_hz_oc_max = value; + } + public bool ShouldSerializedisplay_refresh_manual_hz_oc_max() => __pbn__display_refresh_manual_hz_oc_max != null; + public void Resetdisplay_refresh_manual_hz_oc_max() => __pbn__display_refresh_manual_hz_oc_max = null; + private int? __pbn__display_refresh_manual_hz_oc_max; + + [global::ProtoBuf.ProtoMember(30)] + public bool disable_refresh_rate_management + { + get => __pbn__disable_refresh_rate_management.GetValueOrDefault(); + set => __pbn__disable_refresh_rate_management = value; + } + public bool ShouldSerializedisable_refresh_rate_management() => __pbn__disable_refresh_rate_management != null; + public void Resetdisable_refresh_rate_management() => __pbn__disable_refresh_rate_management = null; + private bool? __pbn__disable_refresh_rate_management; + } [global::ProtoBuf.ProtoContract()] @@ -1640,16 +1680,6 @@ public bool is_hdr_enabled public void Resetis_hdr_enabled() => __pbn__is_hdr_enabled = null; private bool? __pbn__is_hdr_enabled; - [global::ProtoBuf.ProtoMember(11)] - public bool force_hdr_10pq_output_debug - { - get => __pbn__force_hdr_10pq_output_debug.GetValueOrDefault(); - set => __pbn__force_hdr_10pq_output_debug = value; - } - public bool ShouldSerializeforce_hdr_10pq_output_debug() => __pbn__force_hdr_10pq_output_debug != null; - public void Resetforce_hdr_10pq_output_debug() => __pbn__force_hdr_10pq_output_debug = null; - private bool? __pbn__force_hdr_10pq_output_debug; - [global::ProtoBuf.ProtoMember(12)] [global::System.ComponentModel.DefaultValue(EHDRToneMapOperator.k_EHDRToneMapOperator_Invalid)] public EHDRToneMapOperator hdr_on_sdr_tonemap_operator @@ -1671,16 +1701,6 @@ public bool is_hdr_debug_heatmap_enabled public void Resetis_hdr_debug_heatmap_enabled() => __pbn__is_hdr_debug_heatmap_enabled = null; private bool? __pbn__is_hdr_debug_heatmap_enabled; - [global::ProtoBuf.ProtoMember(14)] - public bool debug_force_hdr_support - { - get => __pbn__debug_force_hdr_support.GetValueOrDefault(); - set => __pbn__debug_force_hdr_support = value; - } - public bool ShouldSerializedebug_force_hdr_support() => __pbn__debug_force_hdr_support != null; - public void Resetdebug_force_hdr_support() => __pbn__debug_force_hdr_support = null; - private bool? __pbn__debug_force_hdr_support; - [global::ProtoBuf.ProtoMember(15)] [global::System.ComponentModel.DefaultValue(true)] public bool force_hdr_wide_gammut_for_sdr @@ -1702,7 +1722,7 @@ public bool allow_experimental_hdr public void Resetallow_experimental_hdr() => __pbn__allow_experimental_hdr = null; private bool? __pbn__allow_experimental_hdr; - [global::ProtoBuf.ProtoMember(17)] + [global::ProtoBuf.ProtoMember(22)] public float sdr_to_hdr_brightness { get => __pbn__sdr_to_hdr_brightness.GetValueOrDefault(); @@ -1712,6 +1732,46 @@ public float sdr_to_hdr_brightness public void Resetsdr_to_hdr_brightness() => __pbn__sdr_to_hdr_brightness = null; private float? __pbn__sdr_to_hdr_brightness; + [global::ProtoBuf.ProtoMember(18)] + public bool debug_force_hdr_support + { + get => __pbn__debug_force_hdr_support.GetValueOrDefault(); + set => __pbn__debug_force_hdr_support = value; + } + public bool ShouldSerializedebug_force_hdr_support() => __pbn__debug_force_hdr_support != null; + public void Resetdebug_force_hdr_support() => __pbn__debug_force_hdr_support = null; + private bool? __pbn__debug_force_hdr_support; + + [global::ProtoBuf.ProtoMember(19)] + public bool force_hdr_10pq_output_debug + { + get => __pbn__force_hdr_10pq_output_debug.GetValueOrDefault(); + set => __pbn__force_hdr_10pq_output_debug = value; + } + public bool ShouldSerializeforce_hdr_10pq_output_debug() => __pbn__force_hdr_10pq_output_debug != null; + public void Resetforce_hdr_10pq_output_debug() => __pbn__force_hdr_10pq_output_debug = null; + private bool? __pbn__force_hdr_10pq_output_debug; + + [global::ProtoBuf.ProtoMember(20)] + public bool is_display_oc_enabled + { + get => __pbn__is_display_oc_enabled.GetValueOrDefault(); + set => __pbn__is_display_oc_enabled = value; + } + public bool ShouldSerializeis_display_oc_enabled() => __pbn__is_display_oc_enabled != null; + public void Resetis_display_oc_enabled() => __pbn__is_display_oc_enabled = null; + private bool? __pbn__is_display_oc_enabled; + + [global::ProtoBuf.ProtoMember(21)] + public bool is_color_management_enabled + { + get => __pbn__is_color_management_enabled.GetValueOrDefault(); + set => __pbn__is_color_management_enabled = value; + } + public bool ShouldSerializeis_color_management_enabled() => __pbn__is_color_management_enabled != null; + public void Resetis_color_management_enabled() => __pbn__is_color_management_enabled = null; + private bool? __pbn__is_color_management_enabled; + } [global::ProtoBuf.ProtoContract()] @@ -2269,10 +2329,20 @@ public ulong gameid public void Resetgameid() => __pbn__gameid = null; private ulong? __pbn__gameid; + [global::ProtoBuf.ProtoMember(4)] + public bool skip_storage_update + { + get => __pbn__skip_storage_update.GetValueOrDefault(); + set => __pbn__skip_storage_update = value; + } + public bool ShouldSerializeskip_storage_update() => __pbn__skip_storage_update != null; + public void Resetskip_storage_update() => __pbn__skip_storage_update = null; + private bool? __pbn__skip_storage_update; + [global::ProtoBuf.ProtoMember(2)] public bool reset_to_default { - get => __pbn__update.Is(2) ? __pbn__update.Boolean : default(bool); + get => __pbn__update.Is(2) ? __pbn__update.Boolean : default; set => __pbn__update = new global::ProtoBuf.DiscriminatedUnion32Object(2, value); } public bool ShouldSerializereset_to_default() => __pbn__update.Is(2); @@ -2283,7 +2353,7 @@ public bool reset_to_default [global::ProtoBuf.ProtoMember(3)] public CMsgSystemPerfSettings settings_delta { - get => __pbn__update.Is(3) ? ((CMsgSystemPerfSettings)__pbn__update.Object) : default(CMsgSystemPerfSettings); + get => __pbn__update.Is(3) ? ((CMsgSystemPerfSettings)__pbn__update.Object) : default; set => __pbn__update = new global::ProtoBuf.DiscriminatedUnion32Object(3, value); } public bool ShouldSerializesettings_delta() => __pbn__update.Is(3); @@ -2291,6 +2361,43 @@ public CMsgSystemPerfSettings settings_delta } + [global::ProtoBuf.ProtoContract()] + public partial class CMsgSystemPerfLegacySettingEntry : 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 ulong profile_game_id + { + get => __pbn__profile_game_id.GetValueOrDefault(); + set => __pbn__profile_game_id = value; + } + public bool ShouldSerializeprofile_game_id() => __pbn__profile_game_id != null; + public void Resetprofile_game_id() => __pbn__profile_game_id = null; + private ulong? __pbn__profile_game_id; + + [global::ProtoBuf.ProtoMember(2)] + public CMsgSystemPerfSettingsPerApp settings { get; set; } + + } + + [global::ProtoBuf.ProtoContract()] + public partial class CMsgSystemPerfLegacySettings : 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 CMsgSystemPerfSettingsGlobal global { get; set; } + + [global::ProtoBuf.ProtoMember(2)] + public global::System.Collections.Generic.List per_app_settings { get; } = new global::System.Collections.Generic.List(); + + } + [global::ProtoBuf.ProtoContract()] public partial class CMsgSystemDockUpdateState : global::ProtoBuf.IExtensible { @@ -3061,6 +3168,9 @@ public bool is_hdr_enabled public void Resetis_hdr_enabled() => __pbn__is_hdr_enabled = null; private bool? __pbn__is_hdr_enabled; + [global::ProtoBuf.ProtoMember(18)] + public global::System.Collections.Generic.List supported_refresh_rates { get; } = new global::System.Collections.Generic.List(); + } [global::ProtoBuf.ProtoContract()] @@ -3202,27 +3312,6 @@ public bool display_adaptive_brightness_enabled public void Resetdisplay_adaptive_brightness_enabled() => __pbn__display_adaptive_brightness_enabled = null; private bool? __pbn__display_adaptive_brightness_enabled; - [global::ProtoBuf.ProtoMember(8)] - public bool is_display_colorprofile_available - { - get => __pbn__is_display_colorprofile_available.GetValueOrDefault(); - set => __pbn__is_display_colorprofile_available = value; - } - public bool ShouldSerializeis_display_colorprofile_available() => __pbn__is_display_colorprofile_available != null; - public void Resetis_display_colorprofile_available() => __pbn__is_display_colorprofile_available = null; - private bool? __pbn__is_display_colorprofile_available; - - [global::ProtoBuf.ProtoMember(9)] - [global::System.ComponentModel.DefaultValue(EColorProfile.k_EColorProfile_Invalid)] - public EColorProfile display_colorprofile - { - get => __pbn__display_colorprofile ?? EColorProfile.k_EColorProfile_Invalid; - set => __pbn__display_colorprofile = value; - } - public bool ShouldSerializedisplay_colorprofile() => __pbn__display_colorprofile != null; - public void Resetdisplay_colorprofile() => __pbn__display_colorprofile = null; - private EColorProfile? __pbn__display_colorprofile; - [global::ProtoBuf.ProtoMember(10)] public bool display_nightmode_enabled { @@ -3334,14 +3423,14 @@ public bool display_diagnostics_enabled private bool? __pbn__display_diagnostics_enabled; [global::ProtoBuf.ProtoMember(21)] - public float als_lux_latest + public float als_lux_primary { - get => __pbn__als_lux_latest.GetValueOrDefault(); - set => __pbn__als_lux_latest = value; + get => __pbn__als_lux_primary.GetValueOrDefault(); + set => __pbn__als_lux_primary = value; } - public bool ShouldSerializeals_lux_latest() => __pbn__als_lux_latest != null; - public void Resetals_lux_latest() => __pbn__als_lux_latest = null; - private float? __pbn__als_lux_latest; + public bool ShouldSerializeals_lux_primary() => __pbn__als_lux_primary != null; + public void Resetals_lux_primary() => __pbn__als_lux_primary = null; + private float? __pbn__als_lux_primary; [global::ProtoBuf.ProtoMember(22)] public float als_lux_median @@ -3354,14 +3443,14 @@ public float als_lux_median private float? __pbn__als_lux_median; [global::ProtoBuf.ProtoMember(23)] - public float display_brightness_linear + public float display_backlight_raw { - get => __pbn__display_brightness_linear.GetValueOrDefault(); - set => __pbn__display_brightness_linear = value; + get => __pbn__display_backlight_raw.GetValueOrDefault(); + set => __pbn__display_backlight_raw = value; } - public bool ShouldSerializedisplay_brightness_linear() => __pbn__display_brightness_linear != null; - public void Resetdisplay_brightness_linear() => __pbn__display_brightness_linear = null; - private float? __pbn__display_brightness_linear; + public bool ShouldSerializedisplay_backlight_raw() => __pbn__display_backlight_raw != null; + public void Resetdisplay_backlight_raw() => __pbn__display_backlight_raw = null; + private float? __pbn__display_backlight_raw; [global::ProtoBuf.ProtoMember(24)] public float display_brightness_adaptivemin @@ -3414,6 +3503,107 @@ public ESystemFanControlMode fan_control_mode public void Resetfan_control_mode() => __pbn__fan_control_mode = null; private ESystemFanControlMode? __pbn__fan_control_mode; + [global::ProtoBuf.ProtoMember(29)] + public bool is_display_brightness_available + { + get => __pbn__is_display_brightness_available.GetValueOrDefault(); + set => __pbn__is_display_brightness_available = value; + } + public bool ShouldSerializeis_display_brightness_available() => __pbn__is_display_brightness_available != null; + public void Resetis_display_brightness_available() => __pbn__is_display_brightness_available = null; + private bool? __pbn__is_display_brightness_available; + + [global::ProtoBuf.ProtoMember(31)] + public bool is_display_colormanagement_available + { + get => __pbn__is_display_colormanagement_available.GetValueOrDefault(); + set => __pbn__is_display_colormanagement_available = value; + } + public bool ShouldSerializeis_display_colormanagement_available() => __pbn__is_display_colormanagement_available != null; + public void Resetis_display_colormanagement_available() => __pbn__is_display_colormanagement_available = null; + private bool? __pbn__is_display_colormanagement_available; + + [global::ProtoBuf.ProtoMember(32)] + public float display_colorgamut + { + get => __pbn__display_colorgamut.GetValueOrDefault(); + set => __pbn__display_colorgamut = value; + } + public bool ShouldSerializedisplay_colorgamut() => __pbn__display_colorgamut != null; + public void Resetdisplay_colorgamut() => __pbn__display_colorgamut = null; + private float? __pbn__display_colorgamut; + + [global::ProtoBuf.ProtoMember(33)] + public float als_lux_alternate + { + get => __pbn__als_lux_alternate.GetValueOrDefault(); + set => __pbn__als_lux_alternate = value; + } + public bool ShouldSerializeals_lux_alternate() => __pbn__als_lux_alternate != null; + public void Resetals_lux_alternate() => __pbn__als_lux_alternate = null; + private float? __pbn__als_lux_alternate; + + [global::ProtoBuf.ProtoMember(34)] + public bool is_display_colortemp_available + { + get => __pbn__is_display_colortemp_available.GetValueOrDefault(); + set => __pbn__is_display_colortemp_available = value; + } + public bool ShouldSerializeis_display_colortemp_available() => __pbn__is_display_colortemp_available != null; + public void Resetis_display_colortemp_available() => __pbn__is_display_colortemp_available = null; + private bool? __pbn__is_display_colortemp_available; + + [global::ProtoBuf.ProtoMember(35)] + public float display_colortemp + { + get => __pbn__display_colortemp.GetValueOrDefault(); + set => __pbn__display_colortemp = value; + } + public bool ShouldSerializedisplay_colortemp() => __pbn__display_colortemp != null; + public void Resetdisplay_colortemp() => __pbn__display_colortemp = null; + private float? __pbn__display_colortemp; + + [global::ProtoBuf.ProtoMember(36)] + public float display_colortemp_default + { + get => __pbn__display_colortemp_default.GetValueOrDefault(); + set => __pbn__display_colortemp_default = value; + } + public bool ShouldSerializedisplay_colortemp_default() => __pbn__display_colortemp_default != null; + public void Resetdisplay_colortemp_default() => __pbn__display_colortemp_default = null; + private float? __pbn__display_colortemp_default; + + [global::ProtoBuf.ProtoMember(37)] + public bool display_colortemp_enabled + { + get => __pbn__display_colortemp_enabled.GetValueOrDefault(); + set => __pbn__display_colortemp_enabled = value; + } + public bool ShouldSerializedisplay_colortemp_enabled() => __pbn__display_colortemp_enabled != null; + public void Resetdisplay_colortemp_enabled() => __pbn__display_colortemp_enabled = null; + private bool? __pbn__display_colortemp_enabled; + + [global::ProtoBuf.ProtoMember(38)] + [global::System.ComponentModel.DefaultValue(EColorGamutLabelSet.k_ColorGamutLabelSet_Default)] + public EColorGamutLabelSet display_colorgamut_labelset + { + get => __pbn__display_colorgamut_labelset ?? EColorGamutLabelSet.k_ColorGamutLabelSet_Default; + set => __pbn__display_colorgamut_labelset = value; + } + public bool ShouldSerializedisplay_colorgamut_labelset() => __pbn__display_colorgamut_labelset != null; + public void Resetdisplay_colorgamut_labelset() => __pbn__display_colorgamut_labelset = null; + private EColorGamutLabelSet? __pbn__display_colorgamut_labelset; + + [global::ProtoBuf.ProtoMember(39)] + public float display_brightness_overdrive_hdr_split + { + get => __pbn__display_brightness_overdrive_hdr_split.GetValueOrDefault(); + set => __pbn__display_brightness_overdrive_hdr_split = value; + } + public bool ShouldSerializedisplay_brightness_overdrive_hdr_split() => __pbn__display_brightness_overdrive_hdr_split != null; + public void Resetdisplay_brightness_overdrive_hdr_split() => __pbn__display_brightness_overdrive_hdr_split = null; + private float? __pbn__display_brightness_overdrive_hdr_split; + } [global::ProtoBuf.ProtoContract()] @@ -3557,6 +3747,16 @@ public string auto_message public void Resetauto_message() => __pbn__auto_message = null; private string __pbn__auto_message; + [global::ProtoBuf.ProtoMember(7)] + public bool system_restart_pending + { + get => __pbn__system_restart_pending.GetValueOrDefault(); + set => __pbn__system_restart_pending = value; + } + public bool ShouldSerializesystem_restart_pending() => __pbn__system_restart_pending != null; + public void Resetsystem_restart_pending() => __pbn__system_restart_pending = null; + private bool? __pbn__system_restart_pending; + } [global::ProtoBuf.ProtoContract()] @@ -3966,6 +4166,126 @@ public partial class MonitorInfo : global::ProtoBuf.IExtensible } + [global::ProtoBuf.ProtoContract()] + public partial class CMsgGenerateSystemReportReply : 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)] + [global::System.ComponentModel.DefaultValue("")] + public string report_id + { + get => __pbn__report_id ?? ""; + set => __pbn__report_id = value; + } + public bool ShouldSerializereport_id() => __pbn__report_id != null; + public void Resetreport_id() => __pbn__report_id = null; + private string __pbn__report_id; + + } + + [global::ProtoBuf.ProtoContract()] + public partial class CMsgWebUITransportInfo : 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 port + { + get => __pbn__port.GetValueOrDefault(); + set => __pbn__port = value; + } + public bool ShouldSerializeport() => __pbn__port != null; + public void Resetport() => __pbn__port = null; + private uint? __pbn__port; + + [global::ProtoBuf.ProtoMember(2)] + [global::System.ComponentModel.DefaultValue("")] + public string auth_key + { + get => __pbn__auth_key ?? ""; + set => __pbn__auth_key = value; + } + public bool ShouldSerializeauth_key() => __pbn__auth_key != null; + public void Resetauth_key() => __pbn__auth_key = null; + private string __pbn__auth_key; + + } + + [global::ProtoBuf.ProtoContract()] + public partial class CMsgWebUITransportFailure : 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 connect_count + { + get => __pbn__connect_count.GetValueOrDefault(); + set => __pbn__connect_count = value; + } + public bool ShouldSerializeconnect_count() => __pbn__connect_count != null; + public void Resetconnect_count() => __pbn__connect_count = null; + private uint? __pbn__connect_count; + + } + + [global::ProtoBuf.ProtoContract()] + public partial class CMsgClientShaderHitCacheEntry : 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 byte[] key_sha + { + get => __pbn__key_sha; + set => __pbn__key_sha = value; + } + public bool ShouldSerializekey_sha() => __pbn__key_sha != null; + public void Resetkey_sha() => __pbn__key_sha = null; + private byte[] __pbn__key_sha; + + [global::ProtoBuf.ProtoMember(2)] + public byte[] code_sha + { + get => __pbn__code_sha; + set => __pbn__code_sha = value; + } + public bool ShouldSerializecode_sha() => __pbn__code_sha != null; + public void Resetcode_sha() => __pbn__code_sha = null; + private byte[] __pbn__code_sha; + + [global::ProtoBuf.ProtoMember(3)] + public ulong time_last_reported + { + get => __pbn__time_last_reported.GetValueOrDefault(); + set => __pbn__time_last_reported = value; + } + public bool ShouldSerializetime_last_reported() => __pbn__time_last_reported != null; + public void Resettime_last_reported() => __pbn__time_last_reported = null; + private ulong? __pbn__time_last_reported; + + } + + [global::ProtoBuf.ProtoContract()] + public partial class CMsgClientShaderHitCache : 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 global::System.Collections.Generic.List entries { get; } = new global::System.Collections.Generic.List(); + + } + [global::ProtoBuf.ProtoContract()] public enum ECloudPendingRemoteOperation { @@ -4014,6 +4334,7 @@ public enum ESteamDeckKeyboardLayout k_ESteamDeckKeyboardLayout_Chinese_Traditional_Cangjie = 32, k_ESteamDeckKeyboardLayout_Japanese_Kana = 33, k_ESteamDeckKeyboardLayout_Chinese_Traditional_Quick = 34, + k_ESteamDeckKeyboardLayout_Indonesian = 35, } } diff --git a/SteamKit2/Base/Generated/Enums.cs b/SteamKit2/Base/Generated/Enums.cs index 00e30ec83..ff330234a 100644 --- a/SteamKit2/Base/Generated/Enums.cs +++ b/SteamKit2/Base/Generated/Enums.cs @@ -74,9 +74,10 @@ public enum EPersonaStateFlag public enum EContentCheckProvider { k_EContentCheckProvider_Invalid = 0, - k_EContentCheckProvider_Google = 1, + k_EContentCheckProvider_Google_DEPRECATED = 1, k_EContentCheckProvider_Amazon = 2, k_EContentCheckProvider_Local = 3, + k_EContentCheckProvider_GoogleVertexAI = 4, } [global::ProtoBuf.ProtoContract()] @@ -137,6 +138,18 @@ public enum ESDCardFormatStage k_ESDCardFormatStage_Finalizing = 5, } + [global::ProtoBuf.ProtoContract()] + public enum EStorageFormatStage + { + k_EStorageFormatStage_Invalid = 0, + k_EStorageFormatStage_NotRunning = 1, + k_EStorageFormatStage_Starting = 2, + k_EStorageFormatStage_Testing = 3, + k_EStorageFormatStage_Rescuing = 4, + k_EStorageFormatStage_Formatting = 5, + k_EStorageFormatStage_Finalizing = 6, + } + [global::ProtoBuf.ProtoContract()] public enum ESystemFanControlMode { @@ -146,12 +159,27 @@ public enum ESystemFanControlMode } [global::ProtoBuf.ProtoContract()] - public enum EColorProfile + public enum EStartupMovieVariant + { + k_EStartupMovieVariant_Invalid = 0, + k_EStartupMovieVariant_Default = 1, + k_EStartupMovieVariant_Orange = 2, + } + + [global::ProtoBuf.ProtoContract()] + public enum EColorGamutLabelSet + { + k_ColorGamutLabelSet_Default = 0, + k_ColorGamutLabelSet_sRGB_Native = 1, + k_ColorGamutLabelSet_Native_sRGB_Boosted = 2, + } + + [global::ProtoBuf.ProtoContract()] + public enum EWindowStackingOrder { - k_EColorProfile_Invalid = 0, - k_EColorProfile_Native = 1, - k_EColorProfile_Standard = 2, - k_EColorProfile_Vivid = 3, + k_EWindowStackingOrder_Invalid = 0, + k_EWindowStackingOrder_Top = 1, + k_EWindowStackingOrder_Bottom = 2, } [global::ProtoBuf.ProtoContract()] @@ -273,6 +301,35 @@ public enum ESplitScalingScaler k_ESplitScalingScaler_Stretch = 5, } + [global::ProtoBuf.ProtoContract()] + public enum EGamescopeBlurMode + { + k_EGamescopeBlurMode_Disabled = 0, + k_EGamescopeBlurMode_IfOccluded = 1, + k_EGamescopeBlurMode_Always = 2, + } + + [global::ProtoBuf.ProtoContract()] + public enum ESLSHelper + { + k_ESLSHelper_Invalid = 0, + k_ESLSHelper_Minidump = 1, + k_ESLSHelper_Kdump = 2, + k_ESLSHelper_Journal = 3, + k_ESLSHelper_Gpu = 4, + k_ESLSHelper_SystemInfo = 5, + } + + [global::ProtoBuf.ProtoContract()] + public enum EHDRVisualization + { + k_EHDRVisualization_None = 0, + k_EHDRVisualization_Heatmap = 1, + k_EHDRVisualization_Analysis = 2, + k_EHDRVisualization_HeatmapExtended = 3, + k_EHDRVisualization_HeatmapClassic = 4, + } + [global::ProtoBuf.ProtoContract()] public enum EHDRToneMapOperator { @@ -371,6 +428,16 @@ public enum ESteamDeckCompatibilityResultDisplayType k_ESteamDeckCompatibilityResultDisplayType_Verified = 4, } + [global::ProtoBuf.ProtoContract()] + public enum ESteamDeckCompatibilityTestResult + { + k_ESteamDeckCompatibilityTestResult_Invalid = 0, + k_ESteamDeckCompatibilityTestResult_NotApplicable = 1, + k_ESteamDeckCompatibilityTestResult_Pass = 2, + k_ESteamDeckCompatibilityTestResult_Fail = 3, + k_ESteamDeckCompatibilityTestResult_FailMinor = 4, + } + [global::ProtoBuf.ProtoContract()] public enum EACState { @@ -397,8 +464,10 @@ public enum EOSBranch k_EOSBranch_ReleaseCandidate = 2, k_EOSBranch_Beta = 3, k_EOSBranch_BetaCandidate = 4, - k_EOSBranch_Main = 5, - k_EOSBranch_Staging = 6, + k_EOSBranch_Preview = 5, + k_EOSBranch_PreviewCandidate = 6, + k_EOSBranch_Main = 7, + k_EOSBranch_Staging = 8, } [global::ProtoBuf.ProtoContract()] @@ -477,6 +546,160 @@ public enum ENewSteamAnnouncementState k_ENewSteamAnnouncementState_FeaturedAnnouncement = 3, } + [global::ProtoBuf.ProtoContract()] + public enum EForumType + { + k_EForumType_Invalid = 0, + k_EForumType_General = 1, + k_EForumType_ReportedPosts = 2, + k_EForumType_Workshop = 3, + k_EForumType_PublishedFile = 4, + k_EForumType_Trading = 5, + k_EForumType_PlayTest = 6, + k_EForumType_Event = 7, + k_EForumType_Max = 8, + } + + [global::ProtoBuf.ProtoContract()] + public enum ECommentThreadType + { + k_ECommentThreadTypeInvalid = 0, + k_ECommentThreadTypeScreenshot_Deprecated = 1, + k_ECommentThreadTypeWorkshopAccount_Developer = 2, + k_ECommentThreadTypeWorkshopAccount_Public = 3, + k_ECommentThreadTypePublishedFile_Developer = 4, + k_ECommentThreadTypePublishedFile_Public = 5, + k_ECommentThreadTypeTest = 6, + k_ECommentThreadTypeForumTopic = 7, + k_ECommentThreadTypeRecommendation = 8, + k_ECommentThreadTypeVideo_Deprecated = 9, + k_ECommentThreadTypeProfile = 10, + k_ECommentThreadTypeNewsPost = 11, + k_ECommentThreadTypeClan = 12, + k_ECommentThreadTypeClanAnnouncement = 13, + k_ECommentThreadTypeClanEvent = 14, + k_ECommentThreadTypeUserStatusPublished = 15, + k_ECommentThreadTypeUserReceivedNewGame = 16, + k_ECommentThreadTypePublishedFile_Announcement = 17, + k_ECommentThreadTypeModeratorMessage = 18, + k_ECommentThreadTypeClanCuratedApp = 19, + k_ECommentThreadTypeQAndASession = 20, + k_ECommentThreadTypeMax = 21, + } + + [global::ProtoBuf.ProtoContract()] + public enum EBroadcastPermission + { + k_EBroadcastPermissionDisabled = 0, + k_EBroadcastPermissionFriendsApprove = 1, + k_EBroadcastPermissionFriendsAllowed = 2, + k_EBroadcastPermissionPublic = 3, + k_EBroadcastPermissionSubscribers = 4, + } + + [global::ProtoBuf.ProtoContract()] + public enum EBroadcastEncoderSetting + { + k_EBroadcastEncoderBestQuality = 0, + k_EBroadcastEncoderBestPerformance = 1, + } + + [global::ProtoBuf.ProtoContract()] + public enum ECloudGamingPlatform + { + k_ECloudGamingPlatformNone = 0, + k_ECloudGamingPlatformValve = 1, + k_ECloudGamingPlatformNVIDIA = 2, + } + + [global::ProtoBuf.ProtoContract()] + public enum ECompromiseDetectionType + { + k_ECompromiseDetectionType_None = 0, + k_ECompromiseDetectionType_TradeEvent = 1, + k_ECompromiseDetectionType_ApiCallRate = 2, + } + + [global::ProtoBuf.ProtoContract()] + public enum EAsyncGameSessionUserState + { + k_EAsyncGameSessionUserStateUnknown = -1, + k_EAsyncGameSessionUserStateWaitingForOthers = 0, + k_EAsyncGameSessionUserStateReadyForAction = 1, + k_EAsyncGameSessionUserStateDone = 2, + } + + [global::ProtoBuf.ProtoContract()] + public enum EAsyncGameSessionUserVisibility + { + k_EAsyncGameSessionUserVisibilityEnvelopeAndSessionList = 0, + k_EAsyncGameSessionUserVisibilitySessionListOnly = 1, + k_EAsyncGameSessionUserVisibilityDismissed = 2, + } + + [global::ProtoBuf.ProtoContract()] + public enum EGameRecordingType + { + k_EGameRecordingType_Unknown = 0, + k_EGameRecordingType_NotRecording = 1, + k_EGameRecordingType_ManualRecording = 2, + k_EGameRecordingType_BackgroundRecording = 3, + k_EGameRecordingType_Clip = 4, + } + + [global::ProtoBuf.ProtoContract()] + public enum EProtoAppType + { + k_EAppTypeInvalid = 0, + k_EAppTypeGame = 1, + k_EAppTypeApplication = 2, + k_EAppTypeTool = 4, + k_EAppTypeDemo = 8, + k_EAppTypeDeprected = 16, + k_EAppTypeDLC = 32, + k_EAppTypeGuide = 64, + k_EAppTypeDriver = 128, + k_EAppTypeConfig = 256, + k_EAppTypeHardware = 512, + k_EAppTypeFranchise = 1024, + k_EAppTypeVideo = 2048, + k_EAppTypePlugin = 4096, + k_EAppTypeMusicAlbum = 8192, + k_EAppTypeSeries = 16384, + k_EAppTypeComic = 32768, + k_EAppTypeBeta = 65536, + k_EAppTypeShortcut = 1073741824, + k_EAppTypeDepotOnly = -2147483648, + } + + [global::ProtoBuf.ProtoContract()] + public enum EWindowsUpdateInstallationImpact + { + k_EWindowsUpdateInstallationImpact_Unknown = -1, + k_EWindowsUpdateInstallationImpact_Normal = 0, + k_EWindowsUpdateInstallationImpact_Minor = 1, + k_EWindowsUpdateInstallationImpact_ExclusiveHandling = 2, + } + + [global::ProtoBuf.ProtoContract()] + public enum EWindowsUpdateRebootBehavior + { + k_EWindowsUpdateRebootBehavior_Unknown = -1, + k_EWindowsUpdateRebootBehavior_NeverNeedsReboot = 0, + k_EWindowsUpdateRebootBehavior_AlwaysNeedsReboot = 1, + k_EWindowsUpdateRebootBehavior_MightNeedReboot = 2, + } + + [global::ProtoBuf.ProtoContract()] + public enum EExternalSaleEventType + { + k_EExternalSaleEventType_Unknown = 0, + k_EExternalSaleEventType_Publisher = 1, + k_EExternalSaleEventType_Showcase = 2, + k_EExternalSaleEventType_Region = 3, + k_EExternalSaleEventType_Theme = 4, + } + } #pragma warning restore CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192 diff --git a/SteamKit2/Base/Generated/EnumsProductInfo.cs b/SteamKit2/Base/Generated/EnumsProductInfo.cs index fc6d11393..b3aa414bb 100644 --- a/SteamKit2/Base/Generated/EnumsProductInfo.cs +++ b/SteamKit2/Base/Generated/EnumsProductInfo.cs @@ -12,11 +12,12 @@ namespace SteamKit2.Internal [global::ProtoBuf.ProtoContract()] public enum EContentDescriptorID { - k_EContentDescriptor_FrequentNudityOrSexualContent = 1, + k_EContentDescriptor_NudityOrSexualContent = 1, k_EContentDescriptor_FrequentViolenceOrGore = 2, - k_EContentDescriptor_StrongSexualContent = 3, - k_EContentDescriptor_UNUSED_4 = 4, + k_EContentDescriptor_AdultOnlySexualContent = 3, + k_EContentDescriptor_GratuitousSexualContent = 4, k_EContentDescriptor_AnyMatureContent = 5, + k_EContentDescriptorMAX = 6, } } diff --git a/SteamKit2/Base/Generated/GC/Artifact/MsgGCClient.cs b/SteamKit2/Base/Generated/GC/Artifact/MsgGCClient.cs deleted file mode 100644 index 67f294b97..000000000 --- a/SteamKit2/Base/Generated/GC/Artifact/MsgGCClient.cs +++ /dev/null @@ -1,5709 +0,0 @@ -// -// This file was generated by a tool; you should avoid making direct changes. -// Consider using 'partial classes' to extend these types -// Input: dcg_gcmessages_client.proto -// - -#region Designer generated code -#pragma warning disable CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192 -namespace SteamKit2.GC.Artifact.Internal -{ - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCStartMatchmaking : 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(2)] - public CMsgStartFindingMatchInfo match_info { get; set; } - - [global::ProtoBuf.ProtoMember(3)] - public ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(4)] - public uint tourney_phase_id - { - get => __pbn__tourney_phase_id.GetValueOrDefault(); - set => __pbn__tourney_phase_id = value; - } - public bool ShouldSerializetourney_phase_id() => __pbn__tourney_phase_id != null; - public void Resettourney_phase_id() => __pbn__tourney_phase_id = null; - private uint? __pbn__tourney_phase_id; - - [global::ProtoBuf.ProtoMember(5)] - public uint tourney_series_id - { - get => __pbn__tourney_series_id.GetValueOrDefault(); - set => __pbn__tourney_series_id = value; - } - public bool ShouldSerializetourney_series_id() => __pbn__tourney_series_id != null; - public void Resettourney_series_id() => __pbn__tourney_series_id = null; - private uint? __pbn__tourney_series_id; - - [global::ProtoBuf.ProtoMember(6)] - public CMsgRegionPingTimesClient ping_times { get; set; } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCStartMatchmakingResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResultCode.k_EResult_OK)] - public EResultCode result - { - get => __pbn__result ?? EResultCode.k_EResult_OK; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResultCode? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public uint tournament_opponent_id - { - get => __pbn__tournament_opponent_id.GetValueOrDefault(); - set => __pbn__tournament_opponent_id = value; - } - public bool ShouldSerializetournament_opponent_id() => __pbn__tournament_opponent_id != null; - public void Resettournament_opponent_id() => __pbn__tournament_opponent_id = null; - private uint? __pbn__tournament_opponent_id; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue("")] - public string debug_message - { - get => __pbn__debug_message ?? ""; - set => __pbn__debug_message = value; - } - public bool ShouldSerializedebug_message() => __pbn__debug_message != null; - public void Resetdebug_message() => __pbn__debug_message = null; - private string __pbn__debug_message; - - [global::ProtoBuf.ProtoContract()] - public enum EResultCode - { - k_EResult_OK = 0, - k_EResult_AlreadyFindingMatch = 1, - k_EResult_PartyMemberInLobby = 2, - k_EResult_InvalidClientVersion = 3, - k_EResult_MatchmakingDisabled = 4, - k_EResult_MatchmakingTooBusy = 5, - k_EResult_GauntletClosed = 6, - k_EResult_InvalidGauntlet = 7, - k_EResult_InternalError = 8, - k_EResult_InvalidDeck = 9, - k_EResult_HasUnownedCards = 10, - k_EResult_TournamentNoMatches = 11, - k_EResult_TournamentNoDeck = 13, - k_EResult_NoRegionPings = 14, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCStopMatchmaking : 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.ProtoContract()] - public partial class CMsgClientToGCStopMatchmakingResponse : 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.ProtoContract()] - public partial class CMsgGCToClientMatchmakingStopped : 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)] - [global::System.ComponentModel.DefaultValue(EReason.k_EResult_Unspecified)] - public EReason reason - { - get => __pbn__reason ?? EReason.k_EResult_Unspecified; - set => __pbn__reason = value; - } - public bool ShouldSerializereason() => __pbn__reason != null; - public void Resetreason() => __pbn__reason = null; - private EReason? __pbn__reason; - - [global::ProtoBuf.ProtoContract()] - public enum EReason - { - k_EResult_Unspecified = 0, - k_EResult_VersionUpdated = 1, - k_EResult_FailedReadyUp = 2, - k_EResult_TourneySeriesClosed = 3, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCLeaveLobby : 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 ulong lobby_id - { - get => __pbn__lobby_id.GetValueOrDefault(); - set => __pbn__lobby_id = value; - } - public bool ShouldSerializelobby_id() => __pbn__lobby_id != null; - public void Resetlobby_id() => __pbn__lobby_id = null; - private ulong? __pbn__lobby_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCLeaveLobbyResponse : 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.ProtoContract()] - public partial class CMsgGCToClientDefaultValidator : 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 CMsgDeckValidator validator { get; set; } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientWelcomeDCG : 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 currency - { - get => __pbn__currency.GetValueOrDefault(); - set => __pbn__currency = value; - } - public bool ShouldSerializecurrency() => __pbn__currency != null; - public void Resetcurrency() => __pbn__currency = null; - private uint? __pbn__currency; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List extra_messages { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCJoinChatChannel : 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)] - [global::System.ComponentModel.DefaultValue(EChatRoomType.k_EChatRoomType_Invalid)] - public EChatRoomType room_type - { - get => __pbn__room_type ?? EChatRoomType.k_EChatRoomType_Invalid; - set => __pbn__room_type = value; - } - public bool ShouldSerializeroom_type() => __pbn__room_type != null; - public void Resetroom_type() => __pbn__room_type = null; - private EChatRoomType? __pbn__room_type; - - [global::ProtoBuf.ProtoMember(2)] - public ulong room_key - { - get => __pbn__room_key.GetValueOrDefault(); - set => __pbn__room_key = value; - } - public bool ShouldSerializeroom_key() => __pbn__room_key != null; - public void Resetroom_key() => __pbn__room_key = null; - private ulong? __pbn__room_key; - - [global::ProtoBuf.ProtoMember(3)] - public uint sub_room_index - { - get => __pbn__sub_room_index.GetValueOrDefault(); - set => __pbn__sub_room_index = value; - } - public bool ShouldSerializesub_room_index() => __pbn__sub_room_index != null; - public void Resetsub_room_index() => __pbn__sub_room_index = null; - private uint? __pbn__sub_room_index; - - [global::ProtoBuf.ProtoMember(4)] - public uint request_id - { - get => __pbn__request_id.GetValueOrDefault(); - set => __pbn__request_id = value; - } - public bool ShouldSerializerequest_id() => __pbn__request_id != null; - public void Resetrequest_id() => __pbn__request_id = null; - private uint? __pbn__request_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCJoinChatChannelResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResult.k_EResult_Success)] - public EResult result - { - get => __pbn__result ?? EResult.k_EResult_Success; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResult? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResult - { - k_EResult_Success = 0, - k_EResult_InvalidRoom = 1, - k_EResult_PermissionDenied = 2, - k_EResult_InternalError = 3, - k_EResult_RoomOffline = 4, - k_EResult_AlreadyJoined = 5, - k_EResult_RateLimited = 6, - k_EResult_TooManyRooms = 7, - k_EResult_ChatBanned = 8, - k_EResult_AccountNotLinked = 9, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToClientChatChannelJoined : 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)] - public uint request_id - { - get => __pbn__request_id.GetValueOrDefault(); - set => __pbn__request_id = value; - } - public bool ShouldSerializerequest_id() => __pbn__request_id != null; - public void Resetrequest_id() => __pbn__request_id = null; - private uint? __pbn__request_id; - - [global::ProtoBuf.ProtoMember(3, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong chat_room_id - { - get => __pbn__chat_room_id.GetValueOrDefault(); - set => __pbn__chat_room_id = value; - } - public bool ShouldSerializechat_room_id() => __pbn__chat_room_id != null; - public void Resetchat_room_id() => __pbn__chat_room_id = null; - private ulong? __pbn__chat_room_id; - - [global::ProtoBuf.ProtoMember(4)] - public uint sub_room_index - { - get => __pbn__sub_room_index.GetValueOrDefault(); - set => __pbn__sub_room_index = value; - } - public bool ShouldSerializesub_room_index() => __pbn__sub_room_index != null; - public void Resetsub_room_index() => __pbn__sub_room_index = null; - private uint? __pbn__sub_room_index; - - [global::ProtoBuf.ProtoMember(5)] - public bool aliased_user_ids - { - get => __pbn__aliased_user_ids.GetValueOrDefault(); - set => __pbn__aliased_user_ids = value; - } - public bool ShouldSerializealiased_user_ids() => __pbn__aliased_user_ids != null; - public void Resetaliased_user_ids() => __pbn__aliased_user_ids = null; - private bool? __pbn__aliased_user_ids; - - [global::ProtoBuf.ProtoMember(6)] - public uint local_aliased_id - { - get => __pbn__local_aliased_id.GetValueOrDefault(); - set => __pbn__local_aliased_id = value; - } - public bool ShouldSerializelocal_aliased_id() => __pbn__local_aliased_id != null; - public void Resetlocal_aliased_id() => __pbn__local_aliased_id = null; - private uint? __pbn__local_aliased_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCSendChatMessage : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong chat_room_id - { - get => __pbn__chat_room_id.GetValueOrDefault(); - set => __pbn__chat_room_id = value; - } - public bool ShouldSerializechat_room_id() => __pbn__chat_room_id != null; - public void Resetchat_room_id() => __pbn__chat_room_id = null; - private ulong? __pbn__chat_room_id; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string chat_msg - { - get => __pbn__chat_msg ?? ""; - set => __pbn__chat_msg = value; - } - public bool ShouldSerializechat_msg() => __pbn__chat_msg != null; - public void Resetchat_msg() => __pbn__chat_msg = null; - private string __pbn__chat_msg; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCSendChatMessageRoll : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong chat_room_id - { - get => __pbn__chat_room_id.GetValueOrDefault(); - set => __pbn__chat_room_id = value; - } - public bool ShouldSerializechat_room_id() => __pbn__chat_room_id != null; - public void Resetchat_room_id() => __pbn__chat_room_id = null; - private ulong? __pbn__chat_room_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint roll_min - { - get => __pbn__roll_min.GetValueOrDefault(); - set => __pbn__roll_min = value; - } - public bool ShouldSerializeroll_min() => __pbn__roll_min != null; - public void Resetroll_min() => __pbn__roll_min = null; - private uint? __pbn__roll_min; - - [global::ProtoBuf.ProtoMember(3)] - public uint roll_max - { - get => __pbn__roll_max.GetValueOrDefault(); - set => __pbn__roll_max = value; - } - public bool ShouldSerializeroll_max() => __pbn__roll_max != null; - public void Resetroll_max() => __pbn__roll_max = null; - private uint? __pbn__roll_max; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CChatMessageAdditionalData_DiceRoll : 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 roll_value - { - get => __pbn__roll_value.GetValueOrDefault(); - set => __pbn__roll_value = value; - } - public bool ShouldSerializeroll_value() => __pbn__roll_value != null; - public void Resetroll_value() => __pbn__roll_value = null; - private uint? __pbn__roll_value; - - [global::ProtoBuf.ProtoMember(2)] - public uint roll_min - { - get => __pbn__roll_min.GetValueOrDefault(); - set => __pbn__roll_min = value; - } - public bool ShouldSerializeroll_min() => __pbn__roll_min != null; - public void Resetroll_min() => __pbn__roll_min = null; - private uint? __pbn__roll_min; - - [global::ProtoBuf.ProtoMember(3)] - public uint roll_max - { - get => __pbn__roll_max.GetValueOrDefault(); - set => __pbn__roll_max = value; - } - public bool ShouldSerializeroll_max() => __pbn__roll_max != null; - public void Resetroll_max() => __pbn__roll_max = null; - private uint? __pbn__roll_max; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToClientChatMessage : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong chat_room_id - { - get => __pbn__chat_room_id.GetValueOrDefault(); - set => __pbn__chat_room_id = value; - } - public bool ShouldSerializechat_room_id() => __pbn__chat_room_id != null; - public void Resetchat_room_id() => __pbn__chat_room_id = null; - private ulong? __pbn__chat_room_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint user_id - { - get => __pbn__user_id.GetValueOrDefault(); - set => __pbn__user_id = value; - } - public bool ShouldSerializeuser_id() => __pbn__user_id != null; - public void Resetuser_id() => __pbn__user_id = null; - private uint? __pbn__user_id; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue("")] - public string chat_msg - { - get => __pbn__chat_msg ?? ""; - set => __pbn__chat_msg = value; - } - public bool ShouldSerializechat_msg() => __pbn__chat_msg != null; - public void Resetchat_msg() => __pbn__chat_msg = null; - private string __pbn__chat_msg; - - [global::ProtoBuf.ProtoMember(4)] - [global::System.ComponentModel.DefaultValue("")] - public string persona_name - { - get => __pbn__persona_name ?? ""; - set => __pbn__persona_name = value; - } - public bool ShouldSerializepersona_name() => __pbn__persona_name != null; - public void Resetpersona_name() => __pbn__persona_name = null; - private string __pbn__persona_name; - - [global::ProtoBuf.ProtoMember(5)] - public CExtraMsgBlock additional_data { get; set; } - - [global::ProtoBuf.ProtoMember(6)] - public uint time_stamp - { - get => __pbn__time_stamp.GetValueOrDefault(); - set => __pbn__time_stamp = value; - } - public bool ShouldSerializetime_stamp() => __pbn__time_stamp != null; - public void Resettime_stamp() => __pbn__time_stamp = null; - private uint? __pbn__time_stamp; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToClientUserJoinedChatChannel : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong chat_room_id - { - get => __pbn__chat_room_id.GetValueOrDefault(); - set => __pbn__chat_room_id = value; - } - public bool ShouldSerializechat_room_id() => __pbn__chat_room_id != null; - public void Resetchat_room_id() => __pbn__chat_room_id = null; - private ulong? __pbn__chat_room_id; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List joined_user_ids { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List joined_persona_names { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(4)] - public global::System.Collections.Generic.List left_user_ids { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCLeaveChatChannel : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong chat_room_id - { - get => __pbn__chat_room_id.GetValueOrDefault(); - set => __pbn__chat_room_id = value; - } - public bool ShouldSerializechat_room_id() => __pbn__chat_room_id != null; - public void Resetchat_room_id() => __pbn__chat_room_id = null; - private ulong? __pbn__chat_room_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCLeaveChatChannelByKey : 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)] - [global::System.ComponentModel.DefaultValue(EChatRoomType.k_EChatRoomType_Invalid)] - public EChatRoomType room_type - { - get => __pbn__room_type ?? EChatRoomType.k_EChatRoomType_Invalid; - set => __pbn__room_type = value; - } - public bool ShouldSerializeroom_type() => __pbn__room_type != null; - public void Resetroom_type() => __pbn__room_type = null; - private EChatRoomType? __pbn__room_type; - - [global::ProtoBuf.ProtoMember(2)] - public ulong room_key - { - get => __pbn__room_key.GetValueOrDefault(); - set => __pbn__room_key = value; - } - public bool ShouldSerializeroom_key() => __pbn__room_key != null; - public void Resetroom_key() => __pbn__room_key = null; - private ulong? __pbn__room_key; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCIsInMatchmaking : 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.ProtoContract()] - public partial class CMsgClientToGCIsInMatchmakingResponse : 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 in_matchmaking - { - get => __pbn__in_matchmaking.GetValueOrDefault(); - set => __pbn__in_matchmaking = value; - } - public bool ShouldSerializein_matchmaking() => __pbn__in_matchmaking != null; - public void Resetin_matchmaking() => __pbn__in_matchmaking = null; - private bool? __pbn__in_matchmaking; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCOpenPackItem : 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 ulong item_id - { - get => __pbn__item_id.GetValueOrDefault(); - set => __pbn__item_id = value; - } - public bool ShouldSerializeitem_id() => __pbn__item_id != null; - public void Resetitem_id() => __pbn__item_id = null; - private ulong? __pbn__item_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCOpenPackItemResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eSuccess)] - public EResponse response - { - get => __pbn__response ?? EResponse.k_eSuccess; - set => __pbn__response = value; - } - public bool ShouldSerializeresponse() => __pbn__response != null; - public void Resetresponse() => __pbn__response = null; - private EResponse? __pbn__response; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List items { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class OpenedItem : 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 def_index - { - get => __pbn__def_index.GetValueOrDefault(); - set => __pbn__def_index = value; - } - public bool ShouldSerializedef_index() => __pbn__def_index != null; - public void Resetdef_index() => __pbn__def_index = null; - private uint? __pbn__def_index; - - [global::ProtoBuf.ProtoMember(2)] - public ulong item_id - { - get => __pbn__item_id.GetValueOrDefault(); - set => __pbn__item_id = value; - } - public bool ShouldSerializeitem_id() => __pbn__item_id != null; - public void Resetitem_id() => __pbn__item_id = null; - private ulong? __pbn__item_id; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue(CMsgClientToGCOpenPackItemResponse.ESlotType.k_eSlot_Unspecified)] - public CMsgClientToGCOpenPackItemResponse.ESlotType slot_type - { - get => __pbn__slot_type ?? CMsgClientToGCOpenPackItemResponse.ESlotType.k_eSlot_Unspecified; - set => __pbn__slot_type = value; - } - public bool ShouldSerializeslot_type() => __pbn__slot_type != null; - public void Resetslot_type() => __pbn__slot_type = null; - private CMsgClientToGCOpenPackItemResponse.ESlotType? __pbn__slot_type; - - } - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eSuccess = 1, - k_eTooManyRequests = 2, - k_eInternalError = 3, - k_eInvalidItemID = 4, - k_eDisabled = 5, - k_eRegionLocked = 6, - } - - [global::ProtoBuf.ProtoContract()] - public enum ESlotType - { - k_eSlot_Unspecified = 0, - k_eSlot_Common = 1, - k_eSlot_Uncommon = 2, - k_eSlot_Rare = 3, - k_eSlot_UncommonFromCommon = 4, - k_eSlot_RareFromCommon = 5, - k_eSlot_RareFromUncommon = 6, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCSpectateUser : 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 spectate_account_id - { - get => __pbn__spectate_account_id.GetValueOrDefault(); - set => __pbn__spectate_account_id = value; - } - public bool ShouldSerializespectate_account_id() => __pbn__spectate_account_id != null; - public void Resetspectate_account_id() => __pbn__spectate_account_id = null; - private uint? __pbn__spectate_account_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCSpectateUserResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResult.eResult_OK)] - public EResult result - { - get => __pbn__result ?? EResult.eResult_OK; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResult? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - [global::ProtoBuf.ProtoMember(3, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong server_steam_id - { - get => __pbn__server_steam_id.GetValueOrDefault(); - set => __pbn__server_steam_id = value; - } - public bool ShouldSerializeserver_steam_id() => __pbn__server_steam_id != null; - public void Resetserver_steam_id() => __pbn__server_steam_id = null; - private ulong? __pbn__server_steam_id; - - [global::ProtoBuf.ProtoMember(4)] - public byte[] sdr_key - { - get => __pbn__sdr_key; - set => __pbn__sdr_key = value; - } - public bool ShouldSerializesdr_key() => __pbn__sdr_key != null; - public void Resetsdr_key() => __pbn__sdr_key = null; - private byte[] __pbn__sdr_key; - - [global::ProtoBuf.ProtoMember(5)] - public uint udp_connect_ip - { - get => __pbn__udp_connect_ip.GetValueOrDefault(); - set => __pbn__udp_connect_ip = value; - } - public bool ShouldSerializeudp_connect_ip() => __pbn__udp_connect_ip != null; - public void Resetudp_connect_ip() => __pbn__udp_connect_ip = null; - private uint? __pbn__udp_connect_ip; - - [global::ProtoBuf.ProtoMember(6)] - public uint udp_connect_port - { - get => __pbn__udp_connect_port.GetValueOrDefault(); - set => __pbn__udp_connect_port = value; - } - public bool ShouldSerializeudp_connect_port() => __pbn__udp_connect_port != null; - public void Resetudp_connect_port() => __pbn__udp_connect_port = null; - private uint? __pbn__udp_connect_port; - - [global::ProtoBuf.ProtoContract()] - public enum EResult - { - eResult_OK = 1, - eResult_NotInGame = 2, - eResult_InternalError = 3, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCGetMatchHistory : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCGetMatchHistoryResponse : 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 global::System.Collections.Generic.List match_details { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class MatchDetails : 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 player1 - { - get => __pbn__player1.GetValueOrDefault(); - set => __pbn__player1 = value; - } - public bool ShouldSerializeplayer1() => __pbn__player1 != null; - public void Resetplayer1() => __pbn__player1 = null; - private uint? __pbn__player1; - - [global::ProtoBuf.ProtoMember(2)] - public uint player2 - { - get => __pbn__player2.GetValueOrDefault(); - set => __pbn__player2 = value; - } - public bool ShouldSerializeplayer2() => __pbn__player2 != null; - public void Resetplayer2() => __pbn__player2 = null; - private uint? __pbn__player2; - - [global::ProtoBuf.ProtoMember(3)] - public uint start_time - { - get => __pbn__start_time.GetValueOrDefault(); - set => __pbn__start_time = value; - } - public bool ShouldSerializestart_time() => __pbn__start_time != null; - public void Resetstart_time() => __pbn__start_time = null; - private uint? __pbn__start_time; - - [global::ProtoBuf.ProtoMember(4)] - public uint duration - { - get => __pbn__duration.GetValueOrDefault(); - set => __pbn__duration = value; - } - public bool ShouldSerializeduration() => __pbn__duration != null; - public void Resetduration() => __pbn__duration = null; - private uint? __pbn__duration; - - [global::ProtoBuf.ProtoMember(5)] - public uint turns - { - get => __pbn__turns.GetValueOrDefault(); - set => __pbn__turns = value; - } - public bool ShouldSerializeturns() => __pbn__turns != null; - public void Resetturns() => __pbn__turns = null; - private uint? __pbn__turns; - - [global::ProtoBuf.ProtoMember(6)] - public ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - [global::ProtoBuf.ProtoMember(7)] - public uint outcome - { - get => __pbn__outcome.GetValueOrDefault(); - set => __pbn__outcome = value; - } - public bool ShouldSerializeoutcome() => __pbn__outcome != null; - public void Resetoutcome() => __pbn__outcome = null; - private uint? __pbn__outcome; - - [global::ProtoBuf.ProtoMember(8)] - [global::System.ComponentModel.DefaultValue(EDCGMatchMode.k_EDCGMatchMode_Unranked)] - public EDCGMatchMode match_mode - { - get => __pbn__match_mode ?? EDCGMatchMode.k_EDCGMatchMode_Unranked; - set => __pbn__match_mode = value; - } - public bool ShouldSerializematch_mode() => __pbn__match_mode != null; - public void Resetmatch_mode() => __pbn__match_mode = null; - private EDCGMatchMode? __pbn__match_mode; - - [global::ProtoBuf.ProtoMember(9)] - public global::System.Collections.Generic.List tower_health { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(10)] - public global::System.Collections.Generic.List heroes { get; } = new global::System.Collections.Generic.List(); - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCGetMatchDetails : 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 ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCGetMatchDetailsResponse : 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 player1 - { - get => __pbn__player1.GetValueOrDefault(); - set => __pbn__player1 = value; - } - public bool ShouldSerializeplayer1() => __pbn__player1 != null; - public void Resetplayer1() => __pbn__player1 = null; - private uint? __pbn__player1; - - [global::ProtoBuf.ProtoMember(2)] - public uint player2 - { - get => __pbn__player2.GetValueOrDefault(); - set => __pbn__player2 = value; - } - public bool ShouldSerializeplayer2() => __pbn__player2 != null; - public void Resetplayer2() => __pbn__player2 = null; - private uint? __pbn__player2; - - [global::ProtoBuf.ProtoMember(3)] - public uint start_time - { - get => __pbn__start_time.GetValueOrDefault(); - set => __pbn__start_time = value; - } - public bool ShouldSerializestart_time() => __pbn__start_time != null; - public void Resetstart_time() => __pbn__start_time = null; - private uint? __pbn__start_time; - - [global::ProtoBuf.ProtoMember(4)] - public uint duration - { - get => __pbn__duration.GetValueOrDefault(); - set => __pbn__duration = value; - } - public bool ShouldSerializeduration() => __pbn__duration != null; - public void Resetduration() => __pbn__duration = null; - private uint? __pbn__duration; - - [global::ProtoBuf.ProtoMember(5)] - public uint turns - { - get => __pbn__turns.GetValueOrDefault(); - set => __pbn__turns = value; - } - public bool ShouldSerializeturns() => __pbn__turns != null; - public void Resetturns() => __pbn__turns = null; - private uint? __pbn__turns; - - [global::ProtoBuf.ProtoMember(6)] - public ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - [global::ProtoBuf.ProtoMember(7)] - public uint outcome - { - get => __pbn__outcome.GetValueOrDefault(); - set => __pbn__outcome = value; - } - public bool ShouldSerializeoutcome() => __pbn__outcome != null; - public void Resetoutcome() => __pbn__outcome = null; - private uint? __pbn__outcome; - - [global::ProtoBuf.ProtoMember(8)] - [global::System.ComponentModel.DefaultValue(EDCGMatchMode.k_EDCGMatchMode_Unranked)] - public EDCGMatchMode match_mode - { - get => __pbn__match_mode ?? EDCGMatchMode.k_EDCGMatchMode_Unranked; - set => __pbn__match_mode = value; - } - public bool ShouldSerializematch_mode() => __pbn__match_mode != null; - public void Resetmatch_mode() => __pbn__match_mode = null; - private EDCGMatchMode? __pbn__match_mode; - - [global::ProtoBuf.ProtoMember(9)] - public global::System.Collections.Generic.List tower_health1 { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(10)] - public global::System.Collections.Generic.List tower_health2 { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(11)] - public global::System.Collections.Generic.List heroes1 { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(12)] - public global::System.Collections.Generic.List heroes2 { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(13)] - [global::System.ComponentModel.DefaultValue(EResult.eResult_Success)] - public EResult result - { - get => __pbn__result ?? EResult.eResult_Success; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResult? __pbn__result; - - [global::ProtoBuf.ProtoMember(14)] - public uint cluster_id - { - get => __pbn__cluster_id.GetValueOrDefault(); - set => __pbn__cluster_id = value; - } - public bool ShouldSerializecluster_id() => __pbn__cluster_id != null; - public void Resetcluster_id() => __pbn__cluster_id = null; - private uint? __pbn__cluster_id; - - [global::ProtoBuf.ProtoMember(15)] - public uint replay_salt - { - get => __pbn__replay_salt.GetValueOrDefault(); - set => __pbn__replay_salt = value; - } - public bool ShouldSerializereplay_salt() => __pbn__replay_salt != null; - public void Resetreplay_salt() => __pbn__replay_salt = null; - private uint? __pbn__replay_salt; - - [global::ProtoBuf.ProtoContract()] - public enum EResult - { - eResult_Success = 0, - eResult_InvalidMatch = 1, - eResult_NotAuthorized = 2, - eResult_InternalError = 3, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCGetAIVsAIMatchConfig : 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.ProtoContract()] - public partial class CMsgClientToGCGetAIVsAIMatchConfigResponse : 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)] - public uint ai_match_id - { - get => __pbn__ai_match_id.GetValueOrDefault(); - set => __pbn__ai_match_id = value; - } - public bool ShouldSerializeai_match_id() => __pbn__ai_match_id != null; - public void Resetai_match_id() => __pbn__ai_match_id = null; - private uint? __pbn__ai_match_id; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue("")] - public string ai_0_deck_code - { - get => __pbn__ai_0_deck_code ?? ""; - set => __pbn__ai_0_deck_code = value; - } - public bool ShouldSerializeai_0_deck_code() => __pbn__ai_0_deck_code != null; - public void Resetai_0_deck_code() => __pbn__ai_0_deck_code = null; - private string __pbn__ai_0_deck_code; - - [global::ProtoBuf.ProtoMember(4)] - [global::System.ComponentModel.DefaultValue("")] - public string ai_1_deck_code - { - get => __pbn__ai_1_deck_code ?? ""; - set => __pbn__ai_1_deck_code = value; - } - public bool ShouldSerializeai_1_deck_code() => __pbn__ai_1_deck_code != null; - public void Resetai_1_deck_code() => __pbn__ai_1_deck_code = null; - private string __pbn__ai_1_deck_code; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCGetAIVsAIMatchComplete : 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 ai_match_id - { - get => __pbn__ai_match_id.GetValueOrDefault(); - set => __pbn__ai_match_id = value; - } - public bool ShouldSerializeai_match_id() => __pbn__ai_match_id != null; - public void Resetai_match_id() => __pbn__ai_match_id = null; - private uint? __pbn__ai_match_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint winning_player - { - get => __pbn__winning_player.GetValueOrDefault(); - set => __pbn__winning_player = value; - } - public bool ShouldSerializewinning_player() => __pbn__winning_player != null; - public void Resetwinning_player() => __pbn__winning_player = null; - private uint? __pbn__winning_player; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToClientGlobalPhantomLeagues : 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(3)] - public byte[] global_deck_bytes - { - get => __pbn__global_deck_bytes; - set => __pbn__global_deck_bytes = value; - } - public bool ShouldSerializeglobal_deck_bytes() => __pbn__global_deck_bytes != null; - public void Resetglobal_deck_bytes() => __pbn__global_deck_bytes = null; - private byte[] __pbn__global_deck_bytes; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCJoinGauntlet : 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 gauntlet_id - { - get => __pbn__gauntlet_id.GetValueOrDefault(); - set => __pbn__gauntlet_id = value; - } - public bool ShouldSerializegauntlet_id() => __pbn__gauntlet_id != null; - public void Resetgauntlet_id() => __pbn__gauntlet_id = null; - private uint? __pbn__gauntlet_id; - - [global::ProtoBuf.ProtoMember(2)] - public byte[] deck_bytes - { - get => __pbn__deck_bytes; - set => __pbn__deck_bytes = value; - } - public bool ShouldSerializedeck_bytes() => __pbn__deck_bytes != null; - public void Resetdeck_bytes() => __pbn__deck_bytes = null; - private byte[] __pbn__deck_bytes; - - [global::ProtoBuf.ProtoMember(3)] - public uint entry_id - { - get => __pbn__entry_id.GetValueOrDefault(); - set => __pbn__entry_id = value; - } - public bool ShouldSerializeentry_id() => __pbn__entry_id != null; - public void Resetentry_id() => __pbn__entry_id = null; - private uint? __pbn__entry_id; - - [global::ProtoBuf.ProtoMember(4)] - public global::System.Collections.Generic.List entry_costs { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(5)] - public bool select_random_deck - { - get => __pbn__select_random_deck.GetValueOrDefault(); - set => __pbn__select_random_deck = value; - } - public bool ShouldSerializeselect_random_deck() => __pbn__select_random_deck != null; - public void Resetselect_random_deck() => __pbn__select_random_deck = null; - private bool? __pbn__select_random_deck; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCJoinGauntletResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public uint available_after - { - get => __pbn__available_after.GetValueOrDefault(); - set => __pbn__available_after = value; - } - public bool ShouldSerializeavailable_after() => __pbn__available_after != null; - public void Resetavailable_after() => __pbn__available_after = null; - private uint? __pbn__available_after; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eInvalidGauntlet = 2, - k_eTooBusy = 3, - k_eAlreadyInGauntlet = 4, - k_eInvalidDeck = 5, - k_eMissingItem = 6, - k_eInvalidEntryCost = 7, - k_eDisabled = 8, - k_eHasUnownedCards = 9, - k_eRateLimited = 10, - k_eRandomDeckNotAllowed = 11, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCAbandonGauntlet : 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 gauntlet_id - { - get => __pbn__gauntlet_id.GetValueOrDefault(); - set => __pbn__gauntlet_id = value; - } - public bool ShouldSerializegauntlet_id() => __pbn__gauntlet_id != null; - public void Resetgauntlet_id() => __pbn__gauntlet_id = null; - private uint? __pbn__gauntlet_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCAbandonGauntletResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List reward_items { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class RewardItem : 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 def_index - { - get => __pbn__def_index.GetValueOrDefault(); - set => __pbn__def_index = value; - } - public bool ShouldSerializedef_index() => __pbn__def_index != null; - public void Resetdef_index() => __pbn__def_index = null; - private uint? __pbn__def_index; - - } - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eInvalidGauntlet = 2, - k_eTooBusy = 3, - k_eDisabled = 4, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCAIGauntletResult : 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 gauntlet_id - { - get => __pbn__gauntlet_id.GetValueOrDefault(); - set => __pbn__gauntlet_id = value; - } - public bool ShouldSerializegauntlet_id() => __pbn__gauntlet_id != null; - public void Resetgauntlet_id() => __pbn__gauntlet_id = null; - private uint? __pbn__gauntlet_id; - - [global::ProtoBuf.ProtoMember(2)] - public bool is_win - { - get => __pbn__is_win.GetValueOrDefault(); - set => __pbn__is_win = value; - } - public bool ShouldSerializeis_win() => __pbn__is_win != null; - public void Resetis_win() => __pbn__is_win = null; - private bool? __pbn__is_win; - - [global::ProtoBuf.ProtoMember(3, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong secret_key - { - get => __pbn__secret_key.GetValueOrDefault(); - set => __pbn__secret_key = value; - } - public bool ShouldSerializesecret_key() => __pbn__secret_key != null; - public void Resetsecret_key() => __pbn__secret_key = null; - private ulong? __pbn__secret_key; - - [global::ProtoBuf.ProtoMember(4)] - public uint expected_wins - { - get => __pbn__expected_wins.GetValueOrDefault(); - set => __pbn__expected_wins = value; - } - public bool ShouldSerializeexpected_wins() => __pbn__expected_wins != null; - public void Resetexpected_wins() => __pbn__expected_wins = null; - private uint? __pbn__expected_wins; - - [global::ProtoBuf.ProtoMember(5)] - public uint expected_losses - { - get => __pbn__expected_losses.GetValueOrDefault(); - set => __pbn__expected_losses = value; - } - public bool ShouldSerializeexpected_losses() => __pbn__expected_losses != null; - public void Resetexpected_losses() => __pbn__expected_losses = null; - private uint? __pbn__expected_losses; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCAIGauntletResultResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eFailed = 2, - k_eDisabled = 3, - k_eBusy = 4, - k_eInvalidKey = 5, - k_eMismatchedGames = 6, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToClientAvailableGauntlets : 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 global::System.Collections.Generic.List available_gauntlets { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCGetGauntletMatches : 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 ulong gauntlet_instance_id - { - get => __pbn__gauntlet_instance_id.GetValueOrDefault(); - set => __pbn__gauntlet_instance_id = value; - } - public bool ShouldSerializegauntlet_instance_id() => __pbn__gauntlet_instance_id != null; - public void Resetgauntlet_instance_id() => __pbn__gauntlet_instance_id = null; - private ulong? __pbn__gauntlet_instance_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCGetGauntletMatchesResponse : 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 global::System.Collections.Generic.List matches { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class Match : 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 ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - [global::ProtoBuf.ProtoMember(2)] - public bool win - { - get => __pbn__win.GetValueOrDefault(); - set => __pbn__win = value; - } - public bool ShouldSerializewin() => __pbn__win != null; - public void Resetwin() => __pbn__win = null; - private bool? __pbn__win; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCRegisterGauntletDeck : 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 gauntlet_id - { - get => __pbn__gauntlet_id.GetValueOrDefault(); - set => __pbn__gauntlet_id = value; - } - public bool ShouldSerializegauntlet_id() => __pbn__gauntlet_id != null; - public void Resetgauntlet_id() => __pbn__gauntlet_id = null; - private uint? __pbn__gauntlet_id; - - [global::ProtoBuf.ProtoMember(2)] - public byte[] deck_bytes - { - get => __pbn__deck_bytes; - set => __pbn__deck_bytes = value; - } - public bool ShouldSerializedeck_bytes() => __pbn__deck_bytes != null; - public void Resetdeck_bytes() => __pbn__deck_bytes = null; - private byte[] __pbn__deck_bytes; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCRegisterGauntletDeckResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eInvalidGauntlet = 2, - k_eDeckAlreadyRegistered = 3, - k_eInvalidDeck = 4, - k_eHasUnownedCards = 5, - k_eDisabled = 6, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCLimitedGrant : 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 ulong limited_instance_id - { - get => __pbn__limited_instance_id.GetValueOrDefault(); - set => __pbn__limited_instance_id = value; - } - public bool ShouldSerializelimited_instance_id() => __pbn__limited_instance_id != null; - public void Resetlimited_instance_id() => __pbn__limited_instance_id = null; - private ulong? __pbn__limited_instance_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint grant_id - { - get => __pbn__grant_id.GetValueOrDefault(); - set => __pbn__grant_id = value; - } - public bool ShouldSerializegrant_id() => __pbn__grant_id != null; - public void Resetgrant_id() => __pbn__grant_id = null; - private uint? __pbn__grant_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCLimitedGrantResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public uint choice_count - { - get => __pbn__choice_count.GetValueOrDefault(); - set => __pbn__choice_count = value; - } - public bool ShouldSerializechoice_count() => __pbn__choice_count != null; - public void Resetchoice_count() => __pbn__choice_count = null; - private uint? __pbn__choice_count; - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List def_index { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eInvalidFormat = 2, - k_eAlreadyGranted = 3, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCLimitedGrantChoice : 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 ulong limited_instance_id - { - get => __pbn__limited_instance_id.GetValueOrDefault(); - set => __pbn__limited_instance_id = value; - } - public bool ShouldSerializelimited_instance_id() => __pbn__limited_instance_id != null; - public void Resetlimited_instance_id() => __pbn__limited_instance_id = null; - private ulong? __pbn__limited_instance_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint grant_id - { - get => __pbn__grant_id.GetValueOrDefault(); - set => __pbn__grant_id = value; - } - public bool ShouldSerializegrant_id() => __pbn__grant_id != null; - public void Resetgrant_id() => __pbn__grant_id = null; - private uint? __pbn__grant_id; - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List choice_def_index { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCLimitedGrantChoiceResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eInvalidFormat = 2, - k_eInvalidChoices = 3, - k_eAlreadyGranted = 4, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCLimitedGetFormat : 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 limited_format - { - get => __pbn__limited_format.GetValueOrDefault(); - set => __pbn__limited_format = value; - } - public bool ShouldSerializelimited_format() => __pbn__limited_format != null; - public void Resetlimited_format() => __pbn__limited_format = null; - private uint? __pbn__limited_format; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCLimitedGetFormatResponse : 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)] - public CMsgLimitedFormat format_config { get; set; } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyCreate : 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 client_version - { - get => __pbn__client_version.GetValueOrDefault(); - set => __pbn__client_version = value; - } - public bool ShouldSerializeclient_version() => __pbn__client_version != null; - public void Resetclient_version() => __pbn__client_version = null; - private uint? __pbn__client_version; - - [global::ProtoBuf.ProtoMember(2)] - public CMsgRegionPingTimesClient ping_times { get; set; } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyCreateResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong private_lobby_id - { - get => __pbn__private_lobby_id.GetValueOrDefault(); - set => __pbn__private_lobby_id = value; - } - public bool ShouldSerializeprivate_lobby_id() => __pbn__private_lobby_id != null; - public void Resetprivate_lobby_id() => __pbn__private_lobby_id = null; - private ulong? __pbn__private_lobby_id; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eAlreadyInLobby = 2, - k_eDisabled = 3, - k_eInvalidVersion = 4, - k_eNoRegionPings = 5, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyLeave : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong private_lobby_id - { - get => __pbn__private_lobby_id.GetValueOrDefault(); - set => __pbn__private_lobby_id = value; - } - public bool ShouldSerializeprivate_lobby_id() => __pbn__private_lobby_id != null; - public void Resetprivate_lobby_id() => __pbn__private_lobby_id = null; - private ulong? __pbn__private_lobby_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyLeaveResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eNotInLobby = 2, - k_eInMatchMaking = 3, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyJoin : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong private_lobby_id - { - get => __pbn__private_lobby_id.GetValueOrDefault(); - set => __pbn__private_lobby_id = value; - } - public bool ShouldSerializeprivate_lobby_id() => __pbn__private_lobby_id != null; - public void Resetprivate_lobby_id() => __pbn__private_lobby_id = null; - private ulong? __pbn__private_lobby_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint client_version - { - get => __pbn__client_version.GetValueOrDefault(); - set => __pbn__client_version = value; - } - public bool ShouldSerializeclient_version() => __pbn__client_version != null; - public void Resetclient_version() => __pbn__client_version = null; - private uint? __pbn__client_version; - - [global::ProtoBuf.ProtoMember(3)] - public CMsgRegionPingTimesClient ping_times { get; set; } - - [global::ProtoBuf.ProtoMember(4, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong lobby_salt - { - get => __pbn__lobby_salt.GetValueOrDefault(); - set => __pbn__lobby_salt = value; - } - public bool ShouldSerializelobby_salt() => __pbn__lobby_salt != null; - public void Resetlobby_salt() => __pbn__lobby_salt = null; - private ulong? __pbn__lobby_salt; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyJoinResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eAlreadyInLobby = 2, - k_eDisabled = 3, - k_eInvalidLobbyID = 4, - k_eInvalidPermissions = 5, - k_eInvalidVersion = 6, - k_eNoRegionPings = 7, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyAction : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong private_lobby_id - { - get => __pbn__private_lobby_id.GetValueOrDefault(); - set => __pbn__private_lobby_id = value; - } - public bool ShouldSerializeprivate_lobby_id() => __pbn__private_lobby_id != null; - public void Resetprivate_lobby_id() => __pbn__private_lobby_id = null; - private ulong? __pbn__private_lobby_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint target_account_id - { - get => __pbn__target_account_id.GetValueOrDefault(); - set => __pbn__target_account_id = value; - } - public bool ShouldSerializetarget_account_id() => __pbn__target_account_id != null; - public void Resettarget_account_id() => __pbn__target_account_id = null; - private uint? __pbn__target_account_id; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue(EAction.k_eSetTeam)] - public EAction action_id - { - get => __pbn__action_id ?? EAction.k_eSetTeam; - set => __pbn__action_id = value; - } - public bool ShouldSerializeaction_id() => __pbn__action_id != null; - public void Resetaction_id() => __pbn__action_id = null; - private EAction? __pbn__action_id; - - [global::ProtoBuf.ProtoMember(4)] - public ulong uint_value - { - get => __pbn__uint_value.GetValueOrDefault(); - set => __pbn__uint_value = value; - } - public bool ShouldSerializeuint_value() => __pbn__uint_value != null; - public void Resetuint_value() => __pbn__uint_value = null; - private ulong? __pbn__uint_value; - - [global::ProtoBuf.ProtoMember(5)] - public byte[] bytes_value - { - get => __pbn__bytes_value; - set => __pbn__bytes_value = value; - } - public bool ShouldSerializebytes_value() => __pbn__bytes_value != null; - public void Resetbytes_value() => __pbn__bytes_value = null; - private byte[] __pbn__bytes_value; - - [global::ProtoBuf.ProtoMember(6)] - public bool bool_value - { - get => __pbn__bool_value.GetValueOrDefault(); - set => __pbn__bool_value = value; - } - public bool ShouldSerializebool_value() => __pbn__bool_value != null; - public void Resetbool_value() => __pbn__bool_value = null; - private bool? __pbn__bool_value; - - [global::ProtoBuf.ProtoMember(7, DataFormat = global::ProtoBuf.DataFormat.ZigZag)] - public long sint_value - { - get => __pbn__sint_value.GetValueOrDefault(); - set => __pbn__sint_value = value; - } - public bool ShouldSerializesint_value() => __pbn__sint_value != null; - public void Resetsint_value() => __pbn__sint_value = null; - private long? __pbn__sint_value; - - [global::ProtoBuf.ProtoMember(8)] - [global::System.ComponentModel.DefaultValue("")] - public string str_value - { - get => __pbn__str_value ?? ""; - set => __pbn__str_value = value; - } - public bool ShouldSerializestr_value() => __pbn__str_value != null; - public void Resetstr_value() => __pbn__str_value = null; - private string __pbn__str_value; - - [global::ProtoBuf.ProtoContract()] - public enum EAction - { - k_eSetTeam = 0, - k_eSetDeck = 1, - k_eKickUser = 3, - k_eCancelInvite = 4, - k_eCancelFindMatch = 5, - k_eSetDecksVisible = 6, - k_eSetTimerMode = 7, - k_eShareDeck = 8, - k_eSetGameMode = 9, - k_eSetReady = 10, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyActionResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eInvalidLobbyID = 2, - k_eInvalidPermissions = 3, - k_eInvalidTarget = 4, - k_eInvalidValue = 5, - k_eInMatchMaking = 6, - k_eInMatch = 7, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyStartMatch : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong private_lobby_id - { - get => __pbn__private_lobby_id.GetValueOrDefault(); - set => __pbn__private_lobby_id = value; - } - public bool ShouldSerializeprivate_lobby_id() => __pbn__private_lobby_id != null; - public void Resetprivate_lobby_id() => __pbn__private_lobby_id = null; - private ulong? __pbn__private_lobby_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyStartMatchResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public uint account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eInvalidLobbyID = 3, - k_eInvalidPermissions = 4, - k_ePlayersMissingDeck = 5, - k_eInMatchmaking = 6, - k_eInMatch = 7, - k_eMissingPlayer = 8, - k_eUnownedCards = 9, - k_eInvalidVersion = 10, - k_ePlayersNotReady = 11, - k_eCannotSelectRegion = 12, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyInviteUser : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong private_lobby_id - { - get => __pbn__private_lobby_id.GetValueOrDefault(); - set => __pbn__private_lobby_id = value; - } - public bool ShouldSerializeprivate_lobby_id() => __pbn__private_lobby_id != null; - public void Resetprivate_lobby_id() => __pbn__private_lobby_id = null; - private ulong? __pbn__private_lobby_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint invite_account_id - { - get => __pbn__invite_account_id.GetValueOrDefault(); - set => __pbn__invite_account_id = value; - } - public bool ShouldSerializeinvite_account_id() => __pbn__invite_account_id != null; - public void Resetinvite_account_id() => __pbn__invite_account_id = null; - private uint? __pbn__invite_account_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyInviteUserResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public bool user_online - { - get => __pbn__user_online.GetValueOrDefault(); - set => __pbn__user_online = value; - } - public bool ShouldSerializeuser_online() => __pbn__user_online != null; - public void Resetuser_online() => __pbn__user_online = null; - private bool? __pbn__user_online; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eAlreadyInvited = 2, - k_eInvalidPermissions = 3, - k_eInvalidLobbyID = 4, - k_eDisabled = 5, - k_eTooManyInvites = 6, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyChallenge : 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 challenge_account_id - { - get => __pbn__challenge_account_id.GetValueOrDefault(); - set => __pbn__challenge_account_id = value; - } - public bool ShouldSerializechallenge_account_id() => __pbn__challenge_account_id != null; - public void Resetchallenge_account_id() => __pbn__challenge_account_id = null; - private uint? __pbn__challenge_account_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint client_version - { - get => __pbn__client_version.GetValueOrDefault(); - set => __pbn__client_version = value; - } - public bool ShouldSerializeclient_version() => __pbn__client_version != null; - public void Resetclient_version() => __pbn__client_version = null; - private uint? __pbn__client_version; - - [global::ProtoBuf.ProtoMember(3)] - public CMsgRegionPingTimesClient ping_times { get; set; } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyChallengeResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eSuccess)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eSuccess; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong private_lobby_id - { - get => __pbn__private_lobby_id.GetValueOrDefault(); - set => __pbn__private_lobby_id = value; - } - public bool ShouldSerializeprivate_lobby_id() => __pbn__private_lobby_id != null; - public void Resetprivate_lobby_id() => __pbn__private_lobby_id = null; - private ulong? __pbn__private_lobby_id; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eSuccess = 0, - k_eTargetNotFriends = 1, - k_eTargetInMatch = 2, - k_eTargetOffline = 3, - k_eInternalError = 4, - k_eCannotMatchmake = 5, - k_eInvalidVersion = 6, - k_eNoRegionPings = 7, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToClientPrivateLobbyEvent : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong private_lobby_id - { - get => __pbn__private_lobby_id.GetValueOrDefault(); - set => __pbn__private_lobby_id = value; - } - public bool ShouldSerializeprivate_lobby_id() => __pbn__private_lobby_id != null; - public void Resetprivate_lobby_id() => __pbn__private_lobby_id = null; - private ulong? __pbn__private_lobby_id; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue(EEvent.k_ePlayerKicked)] - public EEvent @event - { - get => __pbn__event ?? EEvent.k_ePlayerKicked; - set => __pbn__event = value; - } - public bool ShouldSerializeevent() => __pbn__event != null; - public void Resetevent() => __pbn__event = null; - private EEvent? __pbn__event; - - [global::ProtoBuf.ProtoMember(3)] - public uint initiator_account_id - { - get => __pbn__initiator_account_id.GetValueOrDefault(); - set => __pbn__initiator_account_id = value; - } - public bool ShouldSerializeinitiator_account_id() => __pbn__initiator_account_id != null; - public void Resetinitiator_account_id() => __pbn__initiator_account_id = null; - private uint? __pbn__initiator_account_id; - - [global::ProtoBuf.ProtoMember(4)] - public uint target_account_id - { - get => __pbn__target_account_id.GetValueOrDefault(); - set => __pbn__target_account_id = value; - } - public bool ShouldSerializetarget_account_id() => __pbn__target_account_id != null; - public void Resettarget_account_id() => __pbn__target_account_id = null; - private uint? __pbn__target_account_id; - - [global::ProtoBuf.ProtoMember(5)] - public byte[] bytes_data - { - get => __pbn__bytes_data; - set => __pbn__bytes_data = value; - } - public bool ShouldSerializebytes_data() => __pbn__bytes_data != null; - public void Resetbytes_data() => __pbn__bytes_data = null; - private byte[] __pbn__bytes_data; - - [global::ProtoBuf.ProtoMember(6)] - [global::System.ComponentModel.DefaultValue("")] - public string str_data - { - get => __pbn__str_data ?? ""; - set => __pbn__str_data = value; - } - public bool ShouldSerializestr_data() => __pbn__str_data != null; - public void Resetstr_data() => __pbn__str_data = null; - private string __pbn__str_data; - - [global::ProtoBuf.ProtoMember(7)] - public ulong uint_data - { - get => __pbn__uint_data.GetValueOrDefault(); - set => __pbn__uint_data = value; - } - public bool ShouldSerializeuint_data() => __pbn__uint_data != null; - public void Resetuint_data() => __pbn__uint_data = null; - private ulong? __pbn__uint_data; - - [global::ProtoBuf.ProtoContract()] - public enum EEvent - { - k_ePlayerKicked = 1, - k_eDeckShared = 2, - k_eJoinedLobby = 3, - k_eMatchCompleted = 4, - k_eMatchMakingStopped_User = 5, - k_eMatchMakingStopped_Version = 6, - k_eMatchMakingStopped_NoServerRegion = 7, - k_eLeftLobby = 8, - k_eDeclinedInvite = 9, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyClientVersion : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong private_lobby_id - { - get => __pbn__private_lobby_id.GetValueOrDefault(); - set => __pbn__private_lobby_id = value; - } - public bool ShouldSerializeprivate_lobby_id() => __pbn__private_lobby_id != null; - public void Resetprivate_lobby_id() => __pbn__private_lobby_id = null; - private ulong? __pbn__private_lobby_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint client_version - { - get => __pbn__client_version.GetValueOrDefault(); - set => __pbn__client_version = value; - } - public bool ShouldSerializeclient_version() => __pbn__client_version != null; - public void Resetclient_version() => __pbn__client_version = null; - private uint? __pbn__client_version; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyJoinChatRoom : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong private_lobby_id - { - get => __pbn__private_lobby_id.GetValueOrDefault(); - set => __pbn__private_lobby_id = value; - } - public bool ShouldSerializeprivate_lobby_id() => __pbn__private_lobby_id != null; - public void Resetprivate_lobby_id() => __pbn__private_lobby_id = null; - private ulong? __pbn__private_lobby_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCPrivateLobbyJoinChatRoomResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eSuccess)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eSuccess; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eSuccess = 0, - k_eInternalError = 1, - k_eDisabled = 2, - k_eNoChatRoomAvailable = 3, - k_eInvalidLobbyID = 4, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCMatchSignout : 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 start_time - { - get => __pbn__start_time.GetValueOrDefault(); - set => __pbn__start_time = value; - } - public bool ShouldSerializestart_time() => __pbn__start_time != null; - public void Resetstart_time() => __pbn__start_time = null; - private uint? __pbn__start_time; - - [global::ProtoBuf.ProtoMember(2)] - public uint version - { - get => __pbn__version.GetValueOrDefault(); - set => __pbn__version = value; - } - public bool ShouldSerializeversion() => __pbn__version != null; - public void Resetversion() => __pbn__version = null; - private uint? __pbn__version; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue(EDCGMatchMode.k_EDCGMatchMode_Unranked)] - public EDCGMatchMode match_mode - { - get => __pbn__match_mode ?? EDCGMatchMode.k_EDCGMatchMode_Unranked; - set => __pbn__match_mode = value; - } - public bool ShouldSerializematch_mode() => __pbn__match_mode != null; - public void Resetmatch_mode() => __pbn__match_mode = null; - private EDCGMatchMode? __pbn__match_mode; - - [global::ProtoBuf.ProtoMember(4)] - public CMsgMatchData match_data { get; set; } - - [global::ProtoBuf.ProtoMember(5)] - public global::System.Collections.Generic.List additional_data { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToClientSDRTicket : 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)] - [global::System.ComponentModel.DefaultValue("")] - public string ticket - { - get => __pbn__ticket ?? ""; - set => __pbn__ticket = value; - } - public bool ShouldSerializeticket() => __pbn__ticket != null; - public void Resetticket() => __pbn__ticket = null; - private string __pbn__ticket; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCReplacementSDRTicket : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong lobby_id - { - get => __pbn__lobby_id.GetValueOrDefault(); - set => __pbn__lobby_id = value; - } - public bool ShouldSerializelobby_id() => __pbn__lobby_id != null; - public void Resetlobby_id() => __pbn__lobby_id = null; - private ulong? __pbn__lobby_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCInitialGrantAck : 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 expected_def_index - { - get => __pbn__expected_def_index.GetValueOrDefault(); - set => __pbn__expected_def_index = value; - } - public bool ShouldSerializeexpected_def_index() => __pbn__expected_def_index != null; - public void Resetexpected_def_index() => __pbn__expected_def_index = null; - private uint? __pbn__expected_def_index; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCRecycleCards : 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 global::System.Collections.Generic.List item_ids { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(2)] - public uint recycle_offer_version - { - get => __pbn__recycle_offer_version.GetValueOrDefault(); - set => __pbn__recycle_offer_version = value; - } - public bool ShouldSerializerecycle_offer_version() => __pbn__recycle_offer_version != null; - public void Resetrecycle_offer_version() => __pbn__recycle_offer_version = null; - private uint? __pbn__recycle_offer_version; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCRecycleCardsResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List granted_items { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3)] - public uint resulting_points - { - get => __pbn__resulting_points.GetValueOrDefault(); - set => __pbn__resulting_points = value; - } - public bool ShouldSerializeresulting_points() => __pbn__resulting_points != null; - public void Resetresulting_points() => __pbn__resulting_points = null; - private uint? __pbn__resulting_points; - - [global::ProtoBuf.ProtoContract()] - public partial class GrantedItem : 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 def_index - { - get => __pbn__def_index.GetValueOrDefault(); - set => __pbn__def_index = value; - } - public bool ShouldSerializedef_index() => __pbn__def_index != null; - public void Resetdef_index() => __pbn__def_index = null; - private uint? __pbn__def_index; - - [global::ProtoBuf.ProtoMember(2)] - public ulong item_id - { - get => __pbn__item_id.GetValueOrDefault(); - set => __pbn__item_id = value; - } - public bool ShouldSerializeitem_id() => __pbn__item_id != null; - public void Resetitem_id() => __pbn__item_id = null; - private ulong? __pbn__item_id; - - } - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eMissingItems = 2, - k_eIncorrectVersion = 3, - k_eDisabled = 4, - k_eInvalidItem = 5, - k_eTooManyItems = 6, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCSetPlayerBadge : 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 player_badge - { - get => __pbn__player_badge.GetValueOrDefault(); - set => __pbn__player_badge = value; - } - public bool ShouldSerializeplayer_badge() => __pbn__player_badge != null; - public void Resetplayer_badge() => __pbn__player_badge = null; - private uint? __pbn__player_badge; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCReplacementSDRTicketResponse : 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)] - [global::System.ComponentModel.DefaultValue("")] - public string ticket - { - get => __pbn__ticket ?? ""; - set => __pbn__ticket = value; - } - public bool ShouldSerializeticket() => __pbn__ticket != null; - public void Resetticket() => __pbn__ticket = null; - private string __pbn__ticket; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string error_message - { - get => __pbn__error_message ?? ""; - set => __pbn__error_message = value; - } - public bool ShouldSerializeerror_message() => __pbn__error_message != null; - public void Reseterror_message() => __pbn__error_message = null; - private string __pbn__error_message; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyGetInfo : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public bool subscribe - { - get => __pbn__subscribe.GetValueOrDefault(); - set => __pbn__subscribe = value; - } - public bool ShouldSerializesubscribe() => __pbn__subscribe != null; - public void Resetsubscribe() => __pbn__subscribe = null; - private bool? __pbn__subscribe; - - [global::ProtoBuf.ProtoMember(3)] - public uint tourney_salt - { - get => __pbn__tourney_salt.GetValueOrDefault(); - set => __pbn__tourney_salt = value; - } - public bool ShouldSerializetourney_salt() => __pbn__tourney_salt != null; - public void Resettourney_salt() => __pbn__tourney_salt = null; - private uint? __pbn__tourney_salt; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyGetInfoResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public CDCGTourney tourney { get; set; } - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eInvalidID = 1, - k_eMissingPermission = 2, - k_eSuccess = 3, - k_eTooBusy = 4, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyUnsubscribe : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToClientTourneyUpdated : 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 CDCGTourney tourney { get; set; } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToClientTourneySeriesMatchReady : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint series_id - { - get => __pbn__series_id.GetValueOrDefault(); - set => __pbn__series_id = value; - } - public bool ShouldSerializeseries_id() => __pbn__series_id != null; - public void Resetseries_id() => __pbn__series_id = null; - private uint? __pbn__series_id; - - [global::ProtoBuf.ProtoMember(4)] - public global::System.Collections.Generic.List accounts_in_mm { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(5)] - public global::System.Collections.Generic.List accounts_not_in_mm { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToClientTourneySeriesMatchNotReady : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint series_id - { - get => __pbn__series_id.GetValueOrDefault(); - set => __pbn__series_id = value; - } - public bool ShouldSerializeseries_id() => __pbn__series_id != null; - public void Resetseries_id() => __pbn__series_id = null; - private uint? __pbn__series_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgCreateTourneyPhase : 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)] - [global::System.ComponentModel.DefaultValue(CDCGTourney.EFormat.k_eFormat_Invalid)] - public CDCGTourney.EFormat format - { - get => __pbn__format ?? CDCGTourney.EFormat.k_eFormat_Invalid; - set => __pbn__format = value; - } - public bool ShouldSerializeformat() => __pbn__format != null; - public void Resetformat() => __pbn__format = null; - private CDCGTourney.EFormat? __pbn__format; - - [global::ProtoBuf.ProtoMember(2)] - public DeckSettings deck_settings { get; set; } - - [global::ProtoBuf.ProtoMember(3)] - public uint max_players - { - get => __pbn__max_players.GetValueOrDefault(); - set => __pbn__max_players = value; - } - public bool ShouldSerializemax_players() => __pbn__max_players != null; - public void Resetmax_players() => __pbn__max_players = null; - private uint? __pbn__max_players; - - [global::ProtoBuf.ProtoMember(5)] - public bool edit_stage - { - get => __pbn__edit_stage.GetValueOrDefault(); - set => __pbn__edit_stage = value; - } - public bool ShouldSerializeedit_stage() => __pbn__edit_stage != null; - public void Resetedit_stage() => __pbn__edit_stage = null; - private bool? __pbn__edit_stage; - - [global::ProtoBuf.ProtoMember(20)] - public Bracket bracket { get; set; } - - [global::ProtoBuf.ProtoMember(21)] - public Swiss swiss { get; set; } - - [global::ProtoBuf.ProtoMember(22)] - public FreeForAll free_for_all { get; set; } - - [global::ProtoBuf.ProtoContract()] - public partial class DeckSettings : 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)] - [global::System.ComponentModel.DefaultValue(CMsgCreateTourneyPhase.EDeckMode.k_eUsePreviousPhase)] - public CMsgCreateTourneyPhase.EDeckMode deck_mode - { - get => __pbn__deck_mode ?? CMsgCreateTourneyPhase.EDeckMode.k_eUsePreviousPhase; - set => __pbn__deck_mode = value; - } - public bool ShouldSerializedeck_mode() => __pbn__deck_mode != null; - public void Resetdeck_mode() => __pbn__deck_mode = null; - private CMsgCreateTourneyPhase.EDeckMode? __pbn__deck_mode; - - [global::ProtoBuf.ProtoMember(2)] - public uint random_colors - { - get => __pbn__random_colors.GetValueOrDefault(); - set => __pbn__random_colors = value; - } - public bool ShouldSerializerandom_colors() => __pbn__random_colors != null; - public void Resetrandom_colors() => __pbn__random_colors = null; - private uint? __pbn__random_colors; - - [global::ProtoBuf.ProtoMember(3)] - public uint limited_format - { - get => __pbn__limited_format.GetValueOrDefault(); - set => __pbn__limited_format = value; - } - public bool ShouldSerializelimited_format() => __pbn__limited_format != null; - public void Resetlimited_format() => __pbn__limited_format = null; - private uint? __pbn__limited_format; - - [global::ProtoBuf.ProtoMember(4)] - public bool register_decks - { - get => __pbn__register_decks.GetValueOrDefault(); - set => __pbn__register_decks = value; - } - public bool ShouldSerializeregister_decks() => __pbn__register_decks != null; - public void Resetregister_decks() => __pbn__register_decks = null; - private bool? __pbn__register_decks; - - [global::ProtoBuf.ProtoMember(5)] - public uint validator_id - { - get => __pbn__validator_id.GetValueOrDefault(); - set => __pbn__validator_id = value; - } - public bool ShouldSerializevalidator_id() => __pbn__validator_id != null; - public void Resetvalidator_id() => __pbn__validator_id = null; - private uint? __pbn__validator_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class Swiss : 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)] - [global::System.ComponentModel.DefaultValue(CMsgCreateTourneyPhase.ESwissMatches.k_eBestOfOne)] - public CMsgCreateTourneyPhase.ESwissMatches swiss_matches - { - get => __pbn__swiss_matches ?? CMsgCreateTourneyPhase.ESwissMatches.k_eBestOfOne; - set => __pbn__swiss_matches = value; - } - public bool ShouldSerializeswiss_matches() => __pbn__swiss_matches != null; - public void Resetswiss_matches() => __pbn__swiss_matches = null; - private CMsgCreateTourneyPhase.ESwissMatches? __pbn__swiss_matches; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue(CMsgCreateTourneyPhase.ESwissScoring.k_eWinsThreePoints)] - public CMsgCreateTourneyPhase.ESwissScoring swiss_scoring - { - get => __pbn__swiss_scoring ?? CMsgCreateTourneyPhase.ESwissScoring.k_eWinsThreePoints; - set => __pbn__swiss_scoring = value; - } - public bool ShouldSerializeswiss_scoring() => __pbn__swiss_scoring != null; - public void Resetswiss_scoring() => __pbn__swiss_scoring = null; - private CMsgCreateTourneyPhase.ESwissScoring? __pbn__swiss_scoring; - - [global::ProtoBuf.ProtoMember(3)] - public uint num_rounds - { - get => __pbn__num_rounds.GetValueOrDefault(); - set => __pbn__num_rounds = value; - } - public bool ShouldSerializenum_rounds() => __pbn__num_rounds != null; - public void Resetnum_rounds() => __pbn__num_rounds = null; - private uint? __pbn__num_rounds; - - [global::ProtoBuf.ProtoMember(4)] - public bool continue_prior_phase - { - get => __pbn__continue_prior_phase.GetValueOrDefault(); - set => __pbn__continue_prior_phase = value; - } - public bool ShouldSerializecontinue_prior_phase() => __pbn__continue_prior_phase != null; - public void Resetcontinue_prior_phase() => __pbn__continue_prior_phase = null; - private bool? __pbn__continue_prior_phase; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class Bracket : 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 best_of - { - get => __pbn__best_of.GetValueOrDefault(); - set => __pbn__best_of = value; - } - public bool ShouldSerializebest_of() => __pbn__best_of != null; - public void Resetbest_of() => __pbn__best_of = null; - private uint? __pbn__best_of; - - [global::ProtoBuf.ProtoMember(2)] - public uint finals_best_of - { - get => __pbn__finals_best_of.GetValueOrDefault(); - set => __pbn__finals_best_of = value; - } - public bool ShouldSerializefinals_best_of() => __pbn__finals_best_of != null; - public void Resetfinals_best_of() => __pbn__finals_best_of = null; - private uint? __pbn__finals_best_of; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class FreeForAll : 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 max_games_per_player - { - get => __pbn__max_games_per_player.GetValueOrDefault(); - set => __pbn__max_games_per_player = value; - } - public bool ShouldSerializemax_games_per_player() => __pbn__max_games_per_player != null; - public void Resetmax_games_per_player() => __pbn__max_games_per_player = null; - private uint? __pbn__max_games_per_player; - - [global::ProtoBuf.ProtoMember(2)] - public uint auto_advance_after_s - { - get => __pbn__auto_advance_after_s.GetValueOrDefault(); - set => __pbn__auto_advance_after_s = value; - } - public bool ShouldSerializeauto_advance_after_s() => __pbn__auto_advance_after_s != null; - public void Resetauto_advance_after_s() => __pbn__auto_advance_after_s = null; - private uint? __pbn__auto_advance_after_s; - - } - - [global::ProtoBuf.ProtoContract()] - public enum ESwissMatches - { - k_eBestOfOne = 0, - k_eOneMatch = 1, - k_eTwoMatches = 2, - k_eBestOfThree = 3, - k_eBestOfThree_Ties = 4, - k_eBestOfFive = 5, - k_eBestOfFive_Ties = 6, - } - - [global::ProtoBuf.ProtoContract()] - public enum ESwissScoring - { - k_eWinsThreePoints = 0, - k_eWinsTwoPoints = 1, - } - - [global::ProtoBuf.ProtoContract()] - public enum EDeckMode - { - k_eUsePreviousPhase = 0, - k_eLimited = 1, - k_eAdditionalLimited = 2, - k_eConstructed = 3, - k_eRandom = 4, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCCreateTourney : 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)] - [global::System.ComponentModel.DefaultValue("")] - public string tourney_name - { - get => __pbn__tourney_name ?? ""; - set => __pbn__tourney_name = value; - } - public bool ShouldSerializetourney_name() => __pbn__tourney_name != null; - public void Resettourney_name() => __pbn__tourney_name = null; - private string __pbn__tourney_name; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string tourney_msg - { - get => __pbn__tourney_msg ?? ""; - set => __pbn__tourney_msg = value; - } - public bool ShouldSerializetourney_msg() => __pbn__tourney_msg != null; - public void Resettourney_msg() => __pbn__tourney_msg = null; - private string __pbn__tourney_msg; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue("")] - public string tourney_status - { - get => __pbn__tourney_status ?? ""; - set => __pbn__tourney_status = value; - } - public bool ShouldSerializetourney_status() => __pbn__tourney_status != null; - public void Resettourney_status() => __pbn__tourney_status = null; - private string __pbn__tourney_status; - - [global::ProtoBuf.ProtoMember(4)] - public global::System.Collections.Generic.List phases { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(5)] - public bool seed_stage - { - get => __pbn__seed_stage.GetValueOrDefault(); - set => __pbn__seed_stage = value; - } - public bool ShouldSerializeseed_stage() => __pbn__seed_stage != null; - public void Resetseed_stage() => __pbn__seed_stage = null; - private bool? __pbn__seed_stage; - - [global::ProtoBuf.ProtoMember(6)] - public bool advanced_mode - { - get => __pbn__advanced_mode.GetValueOrDefault(); - set => __pbn__advanced_mode = value; - } - public bool ShouldSerializeadvanced_mode() => __pbn__advanced_mode != null; - public void Resetadvanced_mode() => __pbn__advanced_mode = null; - private bool? __pbn__advanced_mode; - - [global::ProtoBuf.ProtoMember(7)] - [global::System.ComponentModel.DefaultValue(EPrivacy.k_ePrivacy_Default)] - public EPrivacy privacy_mode - { - get => __pbn__privacy_mode ?? EPrivacy.k_ePrivacy_Default; - set => __pbn__privacy_mode = value; - } - public bool ShouldSerializeprivacy_mode() => __pbn__privacy_mode != null; - public void Resetprivacy_mode() => __pbn__privacy_mode = null; - private EPrivacy? __pbn__privacy_mode; - - [global::ProtoBuf.ProtoMember(8)] - public bool open_spectating - { - get => __pbn__open_spectating.GetValueOrDefault(); - set => __pbn__open_spectating = value; - } - public bool ShouldSerializeopen_spectating() => __pbn__open_spectating != null; - public void Resetopen_spectating() => __pbn__open_spectating = null; - private bool? __pbn__open_spectating; - - [global::ProtoBuf.ProtoMember(9)] - public uint timer_mode - { - get => __pbn__timer_mode.GetValueOrDefault(); - set => __pbn__timer_mode = value; - } - public bool ShouldSerializetimer_mode() => __pbn__timer_mode != null; - public void Resettimer_mode() => __pbn__timer_mode = null; - private uint? __pbn__timer_mode; - - [global::ProtoBuf.ProtoContract()] - public enum EPrivacy - { - k_ePrivacy_Default = 0, - k_ePrivacy_Public = 1, - k_ePrivacy_MembersOnly = 2, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCCreateTourneyResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eRateLimited = 2, - k_eInvalidParams = 3, - k_eDisabled = 4, - k_eInTooManyTourneys = 5, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAcceptInvite : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAcceptInviteResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eTourneyJoinClosed = 3, - k_eMissingPermissions = 4, - k_eTourneyFull = 5, - k_eInTooManyTourneys = 6, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyRejectInvite : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyRejectInviteResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyRevokeInvite : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyRevokeInviteResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eMissingInvite = 4, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAdminSwitchStage : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue(CDCGTourney.EStage.k_eStage_Configure)] - public CDCGTourney.EStage transition_from - { - get => __pbn__transition_from ?? CDCGTourney.EStage.k_eStage_Configure; - set => __pbn__transition_from = value; - } - public bool ShouldSerializetransition_from() => __pbn__transition_from != null; - public void Resettransition_from() => __pbn__transition_from = null; - private CDCGTourney.EStage? __pbn__transition_from; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue(CDCGTourney.EStage.k_eStage_Configure)] - public CDCGTourney.EStage transition_to - { - get => __pbn__transition_to ?? CDCGTourney.EStage.k_eStage_Configure; - set => __pbn__transition_to = value; - } - public bool ShouldSerializetransition_to() => __pbn__transition_to != null; - public void Resettransition_to() => __pbn__transition_to = null; - private CDCGTourney.EStage? __pbn__transition_to; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAdminSwitchStageResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eInsufficientPlayers = 4, - k_eIncorrectStage = 5, - k_eInvalidTransition = 6, - k_eUnregisteredDecks = 7, - k_eMissingEntryFees = 8, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAdminKick : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAdminKickResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eInvalidTarget = 4, - k_eTourneyClosed = 5, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAdminGrantWin : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint series_id - { - get => __pbn__series_id.GetValueOrDefault(); - set => __pbn__series_id = value; - } - public bool ShouldSerializeseries_id() => __pbn__series_id != null; - public void Resetseries_id() => __pbn__series_id = null; - private uint? __pbn__series_id; - - [global::ProtoBuf.ProtoMember(4)] - public bool grant_bye - { - get => __pbn__grant_bye.GetValueOrDefault(); - set => __pbn__grant_bye = value; - } - public bool ShouldSerializegrant_bye() => __pbn__grant_bye != null; - public void Resetgrant_bye() => __pbn__grant_bye = null; - private bool? __pbn__grant_bye; - - [global::ProtoBuf.ProtoMember(5)] - public uint winner_id - { - get => __pbn__winner_id.GetValueOrDefault(); - set => __pbn__winner_id = value; - } - public bool ShouldSerializewinner_id() => __pbn__winner_id != null; - public void Resetwinner_id() => __pbn__winner_id = null; - private uint? __pbn__winner_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAdminGrantWinResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eInvalidAccount = 4, - k_eSeriesCompleted = 5, - k_eSeriesNotReady = 6, - k_eInvalidSeries = 7, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAdminChangeRights : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint rights_flags - { - get => __pbn__rights_flags.GetValueOrDefault(); - set => __pbn__rights_flags = value; - } - public bool ShouldSerializerights_flags() => __pbn__rights_flags != null; - public void Resetrights_flags() => __pbn__rights_flags = null; - private uint? __pbn__rights_flags; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAdminChangeRightsResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eInvalidAccount = 3, - k_eInvalidRights = 4, - k_eTourneyClosed = 5, - k_ePlayerPoolIsFull = 6, - k_eCannotChangePlayer = 7, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyRegisterDeck : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public byte[] deck_bytes - { - get => __pbn__deck_bytes; - set => __pbn__deck_bytes = value; - } - public bool ShouldSerializedeck_bytes() => __pbn__deck_bytes != null; - public void Resetdeck_bytes() => __pbn__deck_bytes = null; - private byte[] __pbn__deck_bytes; - - [global::ProtoBuf.ProtoMember(3)] - public uint phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - [global::ProtoBuf.ProtoMember(4)] - public uint deck_index - { - get => __pbn__deck_index.GetValueOrDefault(); - set => __pbn__deck_index = value; - } - public bool ShouldSerializedeck_index() => __pbn__deck_index != null; - public void Resetdeck_index() => __pbn__deck_index = null; - private uint? __pbn__deck_index; - - [global::ProtoBuf.ProtoMember(5)] - public uint shared_by - { - get => __pbn__shared_by.GetValueOrDefault(); - set => __pbn__shared_by = value; - } - public bool ShouldSerializeshared_by() => __pbn__shared_by != null; - public void Resetshared_by() => __pbn__shared_by = null; - private uint? __pbn__shared_by; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyRegisterDeckResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eUnownedCards = 4, - k_eRegistrationClosed = 5, - k_eRegistrationNotRequired = 6, - k_eInvalidDeck = 7, - k_eInvalidDeckIndex = 8, - k_eCannotRegisterForPhase = 9, - k_ePhaseNotReady = 10, - k_eInvalidSharedDeck = 11, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyUserLeave : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyUserLeaveResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eLeaveNotAllowed = 7, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyRegisterSharedDeck : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public byte[] deck_bytes - { - get => __pbn__deck_bytes; - set => __pbn__deck_bytes = value; - } - public bool ShouldSerializedeck_bytes() => __pbn__deck_bytes != null; - public void Resetdeck_bytes() => __pbn__deck_bytes = null; - private byte[] __pbn__deck_bytes; - - [global::ProtoBuf.ProtoMember(3)] - public uint shared_slot - { - get => __pbn__shared_slot.GetValueOrDefault(); - set => __pbn__shared_slot = value; - } - public bool ShouldSerializeshared_slot() => __pbn__shared_slot != null; - public void Resetshared_slot() => __pbn__shared_slot = null; - private uint? __pbn__shared_slot; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyRegisterSharedDeckResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eInvalidSlot = 4, - k_eSlotInUse = 5, - k_eUnownedCards = 6, - k_eSharingClosed = 7, - k_eInvalidDeck = 8, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyGetRegisteredDecks : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyGetRegisteredDecksResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List decks { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyCreateOpenInvite : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint max_uses - { - get => __pbn__max_uses.GetValueOrDefault(); - set => __pbn__max_uses = value; - } - public bool ShouldSerializemax_uses() => __pbn__max_uses != null; - public void Resetmax_uses() => __pbn__max_uses = null; - private uint? __pbn__max_uses; - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List rights { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyCreateOpenInviteResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong invite_key - { - get => __pbn__invite_key.GetValueOrDefault(); - set => __pbn__invite_key = value; - } - public bool ShouldSerializeinvite_key() => __pbn__invite_key != null; - public void Resetinvite_key() => __pbn__invite_key = null; - private ulong? __pbn__invite_key; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eInvalidUses = 4, - k_eInvalidStage = 5, - k_eInvalidRights = 6, - k_eTooManyOutstandingKeys = 7, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyRevokeOpenInvite : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong invite_key - { - get => __pbn__invite_key.GetValueOrDefault(); - set => __pbn__invite_key = value; - } - public bool ShouldSerializeinvite_key() => __pbn__invite_key != null; - public void Resetinvite_key() => __pbn__invite_key = null; - private ulong? __pbn__invite_key; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyRevokeOpenInviteResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eInvalidKey = 4, - k_eInvalidStage = 5, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyGetOpenInvites : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyGetOpenInvitesResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List open_invites { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class OpenInvite : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong invite_key - { - get => __pbn__invite_key.GetValueOrDefault(); - set => __pbn__invite_key = value; - } - public bool ShouldSerializeinvite_key() => __pbn__invite_key != null; - public void Resetinvite_key() => __pbn__invite_key = null; - private ulong? __pbn__invite_key; - - [global::ProtoBuf.ProtoMember(2)] - public uint created_by - { - get => __pbn__created_by.GetValueOrDefault(); - set => __pbn__created_by = value; - } - public bool ShouldSerializecreated_by() => __pbn__created_by != null; - public void Resetcreated_by() => __pbn__created_by = null; - private uint? __pbn__created_by; - - [global::ProtoBuf.ProtoMember(3)] - public uint max_uses - { - get => __pbn__max_uses.GetValueOrDefault(); - set => __pbn__max_uses = value; - } - public bool ShouldSerializemax_uses() => __pbn__max_uses != null; - public void Resetmax_uses() => __pbn__max_uses = null; - private uint? __pbn__max_uses; - - [global::ProtoBuf.ProtoMember(4)] - public uint times_used - { - get => __pbn__times_used.GetValueOrDefault(); - set => __pbn__times_used = value; - } - public bool ShouldSerializetimes_used() => __pbn__times_used != null; - public void Resettimes_used() => __pbn__times_used = null; - private uint? __pbn__times_used; - - [global::ProtoBuf.ProtoMember(5)] - public uint invite_rights - { - get => __pbn__invite_rights.GetValueOrDefault(); - set => __pbn__invite_rights = value; - } - public bool ShouldSerializeinvite_rights() => __pbn__invite_rights != null; - public void Resetinvite_rights() => __pbn__invite_rights = null; - private uint? __pbn__invite_rights; - - } - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eInvalidStage = 4, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAdminSwitchPhaseStage : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue(CDCGTourney.EPhaseStage.k_ePhaseStage_Pending)] - public CDCGTourney.EPhaseStage transition_from - { - get => __pbn__transition_from ?? CDCGTourney.EPhaseStage.k_ePhaseStage_Pending; - set => __pbn__transition_from = value; - } - public bool ShouldSerializetransition_from() => __pbn__transition_from != null; - public void Resettransition_from() => __pbn__transition_from = null; - private CDCGTourney.EPhaseStage? __pbn__transition_from; - - [global::ProtoBuf.ProtoMember(4)] - [global::System.ComponentModel.DefaultValue(CDCGTourney.EPhaseStage.k_ePhaseStage_Pending)] - public CDCGTourney.EPhaseStage transition_to - { - get => __pbn__transition_to ?? CDCGTourney.EPhaseStage.k_ePhaseStage_Pending; - set => __pbn__transition_to = value; - } - public bool ShouldSerializetransition_to() => __pbn__transition_to != null; - public void Resettransition_to() => __pbn__transition_to = null; - private CDCGTourney.EPhaseStage? __pbn__transition_to; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAdminSwitchPhaseStageResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eInsufficientPlayers = 4, - k_eIncorrectStage = 5, - k_eInvalidTransition = 6, - k_eUnregisteredDecks = 7, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyGetOverview : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyGetOverviewResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string tourney_name - { - get => __pbn__tourney_name ?? ""; - set => __pbn__tourney_name = value; - } - public bool ShouldSerializetourney_name() => __pbn__tourney_name != null; - public void Resettourney_name() => __pbn__tourney_name = null; - private string __pbn__tourney_name; - - [global::ProtoBuf.ProtoMember(3)] - public uint created_by - { - get => __pbn__created_by.GetValueOrDefault(); - set => __pbn__created_by = value; - } - public bool ShouldSerializecreated_by() => __pbn__created_by != null; - public void Resetcreated_by() => __pbn__created_by = null; - private uint? __pbn__created_by; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eTooBusy = 4, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneySetStatus : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string tourney_status - { - get => __pbn__tourney_status ?? ""; - set => __pbn__tourney_status = value; - } - public bool ShouldSerializetourney_status() => __pbn__tourney_status != null; - public void Resettourney_status() => __pbn__tourney_status = null; - private string __pbn__tourney_status; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneySetStatusResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAddPhase : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public CMsgCreateTourneyPhase phase { get; set; } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAddPhaseResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eTooManyPhases = 4, - k_eInvalidParams = 5, - k_eNotInConfigure = 6, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyRemovePhase : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyRemovePhaseResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eNotLastPhase = 4, - k_eNotInConfigure = 5, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneySpectateMatch : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint series_id - { - get => __pbn__series_id.GetValueOrDefault(); - set => __pbn__series_id = value; - } - public bool ShouldSerializeseries_id() => __pbn__series_id != null; - public void Resetseries_id() => __pbn__series_id = null; - private uint? __pbn__series_id; - - [global::ProtoBuf.ProtoMember(4)] - public bool player_1_perspective - { - get => __pbn__player_1_perspective.GetValueOrDefault(); - set => __pbn__player_1_perspective = value; - } - public bool ShouldSerializeplayer_1_perspective() => __pbn__player_1_perspective != null; - public void Resetplayer_1_perspective() => __pbn__player_1_perspective = null; - private bool? __pbn__player_1_perspective; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneySpectateMatchResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eSuccess)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eSuccess; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - [global::ProtoBuf.ProtoMember(3, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong server_steam_id - { - get => __pbn__server_steam_id.GetValueOrDefault(); - set => __pbn__server_steam_id = value; - } - public bool ShouldSerializeserver_steam_id() => __pbn__server_steam_id != null; - public void Resetserver_steam_id() => __pbn__server_steam_id = null; - private ulong? __pbn__server_steam_id; - - [global::ProtoBuf.ProtoMember(4)] - public byte[] sdr_key - { - get => __pbn__sdr_key; - set => __pbn__sdr_key = value; - } - public bool ShouldSerializesdr_key() => __pbn__sdr_key != null; - public void Resetsdr_key() => __pbn__sdr_key = null; - private byte[] __pbn__sdr_key; - - [global::ProtoBuf.ProtoMember(5)] - public uint udp_connect_ip - { - get => __pbn__udp_connect_ip.GetValueOrDefault(); - set => __pbn__udp_connect_ip = value; - } - public bool ShouldSerializeudp_connect_ip() => __pbn__udp_connect_ip != null; - public void Resetudp_connect_ip() => __pbn__udp_connect_ip = null; - private uint? __pbn__udp_connect_ip; - - [global::ProtoBuf.ProtoMember(6)] - public uint udp_connect_port - { - get => __pbn__udp_connect_port.GetValueOrDefault(); - set => __pbn__udp_connect_port = value; - } - public bool ShouldSerializeudp_connect_port() => __pbn__udp_connect_port != null; - public void Resetudp_connect_port() => __pbn__udp_connect_port = null; - private uint? __pbn__udp_connect_port; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eSuccess = 1, - k_eInternalError = 2, - k_eInvalidSeries = 3, - k_eMissingPermissions = 4, - k_eNotInMatch = 5, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyInviteList : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List account_ids { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List rights { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public enum ELimit - { - k_eLimit_MaxAccounts = 32, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyInviteListResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List invited_id { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List already_invited_id { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eTooManyInvites = 2, - k_eRateLimited = 3, - k_eDisabled = 4, - k_eTooManyAccounts = 5, - k_eTourneyJoinClosed = 6, - k_eMissingPermissions = 7, - k_eTourneyFull = 8, - k_eInvalidRights = 9, - k_eNotFriends = 10, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAdminSetSeedValues : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List player_seeds { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class PlayerSeed : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint initial_seed - { - get => __pbn__initial_seed.GetValueOrDefault(); - set => __pbn__initial_seed = value; - } - public bool ShouldSerializeinitial_seed() => __pbn__initial_seed != null; - public void Resetinitial_seed() => __pbn__initial_seed = null; - private uint? __pbn__initial_seed; - - [global::ProtoBuf.ProtoMember(3)] - public uint initial_group - { - get => __pbn__initial_group.GetValueOrDefault(); - set => __pbn__initial_group = value; - } - public bool ShouldSerializeinitial_group() => __pbn__initial_group != null; - public void Resetinitial_group() => __pbn__initial_group = null; - private uint? __pbn__initial_group; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyAdminSetSeedValuesResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eInvalidStage = 5, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyEditStageSwapPlayers : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint account_to_swap - { - get => __pbn__account_to_swap.GetValueOrDefault(); - set => __pbn__account_to_swap = value; - } - public bool ShouldSerializeaccount_to_swap() => __pbn__account_to_swap != null; - public void Resetaccount_to_swap() => __pbn__account_to_swap = null; - private uint? __pbn__account_to_swap; - - [global::ProtoBuf.ProtoMember(4)] - public uint swap_with - { - get => __pbn__swap_with.GetValueOrDefault(); - set => __pbn__swap_with = value; - } - public bool ShouldSerializeswap_with() => __pbn__swap_with != null; - public void Resetswap_with() => __pbn__swap_with = null; - private uint? __pbn__swap_with; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyEditStageSwapPlayersResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_ePhaseNotInEdit = 4, - k_eInvalidAccountID = 5, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyGetLimitedReplay : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyGetLimitedReplayResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List stages { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3)] - public CMsgLimitedFormat format { get; set; } - - [global::ProtoBuf.ProtoContract()] - public partial class LimitedStage : 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 stage_id - { - get => __pbn__stage_id.GetValueOrDefault(); - set => __pbn__stage_id = value; - } - public bool ShouldSerializestage_id() => __pbn__stage_id != null; - public void Resetstage_id() => __pbn__stage_id = null; - private uint? __pbn__stage_id; - - [global::ProtoBuf.ProtoMember(2)] - public byte[] choice_set - { - get => __pbn__choice_set; - set => __pbn__choice_set = value; - } - public bool ShouldSerializechoice_set() => __pbn__choice_set != null; - public void Resetchoice_set() => __pbn__choice_set = null; - private byte[] __pbn__choice_set; - - [global::ProtoBuf.ProtoMember(3)] - public byte[] choices - { - get => __pbn__choices; - set => __pbn__choices = value; - } - public bool ShouldSerializechoices() => __pbn__choices != null; - public void Resetchoices() => __pbn__choices = null; - private byte[] __pbn__choices; - - } - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eInvalidPlayer = 4, - k_ePhaseNotReady = 5, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyRejoinChatRoom : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyRejoinChatRoomResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eNoChatRoom = 4, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToClientTourneyMembersMatchmaking : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2, IsPacked = true)] - public global::System.Collections.Generic.List accounts_in_mm { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyPayEntryFee : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint target_account_id - { - get => __pbn__target_account_id.GetValueOrDefault(); - set => __pbn__target_account_id = value; - } - public bool ShouldSerializetarget_account_id() => __pbn__target_account_id != null; - public void Resettarget_account_id() => __pbn__target_account_id = null; - private uint? __pbn__target_account_id; - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List item_ids { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyPayEntryFeeResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eInvalidItem = 4, - k_eInvalidItemType = 5, - k_eItemAlreadyFilled = 6, - k_eInvalidTarget = 7, - k_eInvalidStage = 8, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyPlayerAbandon : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyPlayerAbandonResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eMissingPermissions = 3, - k_eUnableToAbandon = 4, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyChangeValue : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue(EValueType.k_eGlobal_SeedStage)] - public EValueType value_type - { - get => __pbn__value_type ?? EValueType.k_eGlobal_SeedStage; - set => __pbn__value_type = value; - } - public bool ShouldSerializevalue_type() => __pbn__value_type != null; - public void Resetvalue_type() => __pbn__value_type = null; - private EValueType? __pbn__value_type; - - [global::ProtoBuf.ProtoMember(4)] - public uint int_value - { - get => __pbn__int_value.GetValueOrDefault(); - set => __pbn__int_value = value; - } - public bool ShouldSerializeint_value() => __pbn__int_value != null; - public void Resetint_value() => __pbn__int_value = null; - private uint? __pbn__int_value; - - [global::ProtoBuf.ProtoContract()] - public enum EValueType - { - k_eGlobal_SeedStage = 1, - k_eGlobal_OpenSpectating = 2, - k_eGlobal_TimerMode = 3, - k_ePhase_MaxPlayers = 50, - k_ePhase_EditStage = 51, - k_eSwiss_NumRounds = 100, - k_eSwiss_Matches = 101, - k_eBracket_BestOf = 150, - k_eBracket_FinalsBestOf = 151, - k_eFreeForAll_MaxGames = 200, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyChangeValueResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eInvalidPhase = 3, - k_eInvalidValueType = 4, - k_eValueIsLocked = 5, - k_eInvalidValue = 6, - k_ePlayerMismatch = 8, - k_eMissingPermissions = 9, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyJoinOpenTourney : 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 language - { - get => __pbn__language.GetValueOrDefault(); - set => __pbn__language = value; - } - public bool ShouldSerializelanguage() => __pbn__language != null; - public void Resetlanguage() => __pbn__language = null; - private uint? __pbn__language; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string community_key - { - get => __pbn__community_key ?? ""; - set => __pbn__community_key = value; - } - public bool ShouldSerializecommunity_key() => __pbn__community_key != null; - public void Resetcommunity_key() => __pbn__community_key = null; - private string __pbn__community_key; - - [global::ProtoBuf.ProtoMember(3)] - public uint open_tourney_mode - { - get => __pbn__open_tourney_mode.GetValueOrDefault(); - set => __pbn__open_tourney_mode = value; - } - public bool ShouldSerializeopen_tourney_mode() => __pbn__open_tourney_mode != null; - public void Resetopen_tourney_mode() => __pbn__open_tourney_mode = null; - private uint? __pbn__open_tourney_mode; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgClientToGCTourneyJoinOpenTourneyResponse : 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)] - [global::System.ComponentModel.DefaultValue(EResponse.k_eInternalError)] - public EResponse result - { - get => __pbn__result ?? EResponse.k_eInternalError; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private EResponse? __pbn__result; - - [global::ProtoBuf.ProtoMember(2)] - public ulong joined_tourney_id - { - get => __pbn__joined_tourney_id.GetValueOrDefault(); - set => __pbn__joined_tourney_id = value; - } - public bool ShouldSerializejoined_tourney_id() => __pbn__joined_tourney_id != null; - public void Resetjoined_tourney_id() => __pbn__joined_tourney_id = null; - private ulong? __pbn__joined_tourney_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint cooldown_time_after - { - get => __pbn__cooldown_time_after.GetValueOrDefault(); - set => __pbn__cooldown_time_after = value; - } - public bool ShouldSerializecooldown_time_after() => __pbn__cooldown_time_after != null; - public void Resetcooldown_time_after() => __pbn__cooldown_time_after = null; - private uint? __pbn__cooldown_time_after; - - [global::ProtoBuf.ProtoContract()] - public enum EResponse - { - k_eInternalError = 0, - k_eSuccess = 1, - k_eDisabled = 2, - k_eInvalidMode = 3, - k_eInvalidRequest = 4, - k_eTooBusy = 5, - k_eRateLimited = 6, - k_eInTooManyOpenAlready = 7, - k_eInTooManyTotal = 8, - } - - } - - [global::ProtoBuf.ProtoContract()] - public enum EGCDCGClientMessages - { - k_EMsgClientToGCStartMatchmaking = 9010, - k_EMsgClientToGCStartMatchmakingResponse = 9011, - k_EMsgClientToGCStopMatchmaking = 9012, - k_EMsgClientToGCStopMatchmakingResponse = 9013, - k_EMsgGCToClientMatchmakingStopped = 9014, - k_EMsgClientToGCLeaveLobby = 9015, - k_EMsgClientToGCLeaveLobbyResponse = 9016, - k_EMsgGCToClientDefaultValidator = 9019, - k_EMsgClientToGCJoinChatChannel = 9023, - k_EMsgClientToGCJoinChatChannelResponse = 9024, - k_EMsgClientToGCSendChatMessage = 9025, - k_EMsgGCToClientChatMessage = 9026, - k_EMsgGCToClientUserJoinedChatChannel = 9027, - k_EMsgClientToGCLeaveChatChannel = 9028, - k_EMsgGCToClientChatChannelJoined = 9029, - k_EMsgClientToGCIsInMatchmaking = 9030, - k_EMsgClientToGCIsInMatchmakingResponse = 9031, - k_EMsgClientToGCOpenPackItem = 9036, - k_EMsgClientToGCOpenPackItemResponse = 9037, - k_EMsgClientToGCLeaveChatChannelByKey = 9040, - k_EMsgClientToGCSendChatMessageRoll = 9041, - k_EMsgClientToGCGetMatchHistory = 9044, - k_EMsgClientToGCGetMatchHistoryResponse = 9045, - k_EMsgClientToGCGetMatchDetails = 9046, - k_EMsgClientToGCGetMatchDetailsResponse = 9047, - k_EMsgClientToGCLimitedGrant = 9048, - k_EMsgClientToGCLimitedGrantResponse = 9049, - k_EMsgClientToGCLimitedGrantChoice = 9050, - k_EMsgClientToGCLimitedGrantChoiceResponse = 9051, - k_EMsgClientToGCLimitedGetFormat = 9052, - k_EMsgClientToGCLimitedGetFormatResponse = 9053, - k_EMsgClientToGCGetAIVsAIMatchConfig = 9076, - k_EMsgClientToGCGetAIVsAIMatchConfigResponse = 9077, - k_EMsgClientToGCGetAIVsAIMatchComplete = 9078, - k_EMsgGCToClientGlobalPhantomLeagues = 9081, - k_EMsgGCToClientMatchmakingStatus = 9096, - k_EMsgClientToGCJoinGauntlet = 9097, - k_EMsgClientToGCJoinGauntletResponse = 9098, - k_EMsgClientToGCAbandonGauntlet = 9099, - k_EMsgClientToGCAbandonGauntletResponse = 9100, - k_EMsgGCToClientAvailableGauntlets = 9101, - k_EMsgClientToGCGetGauntletMatches = 9102, - k_EMsgClientToGCGetGauntletMatchesResponse = 9103, - k_EMsgClientToGCRegisterGauntletDeck = 9104, - k_EMsgClientToGCRegisterGauntletDeckResponse = 9105, - k_EMsgClientToGCAIGauntletResult = 9106, - k_EMsgClientToGCAIGauntletResultResponse = 9107, - k_EMsgClientToGCPrivateLobbyCreate = 9110, - k_EMsgClientToGCPrivateLobbyCreateResponse = 9111, - k_EMsgClientToGCPrivateLobbyLeave = 9112, - k_EMsgClientToGCPrivateLobbyLeaveResponse = 9113, - k_EMsgClientToGCPrivateLobbyJoin = 9114, - k_EMsgClientToGCPrivateLobbyJoinResponse = 9115, - k_EMsgClientToGCPrivateLobbyAction = 9116, - k_EMsgClientToGCPrivateLobbyActionResponse = 9117, - k_EMsgClientToGCPrivateLobbyStartMatch = 9118, - k_EMsgClientToGCPrivateLobbyStartMatchResponse = 9119, - k_EMsgClientToGCPrivateLobbyInviteUser = 9120, - k_EMsgClientToGCPrivateLobbyInviteUserResponse = 9121, - k_EMsgClientToGCPrivateLobbyChallenge = 9122, - k_EMsgClientToGCPrivateLobbyChallengeResponse = 9123, - k_EMsgGCToClientPrivateLobbyEvent = 9124, - k_EMsgClientToGCPrivateLobbyClientVersion = 9125, - k_EMsgGCToClientSDRTicket = 9126, - k_EMsgClientToGCReplacementSDRTicket = 9127, - k_EMsgClientToGCReplacementSDRTicketResponse = 9128, - k_EMsgClientToGCPrivateLobbyJoinChatRoom = 9129, - k_EMsgClientToGCPrivateLobbyJoinChatRoomResponse = 9130, - k_EMsgClientToGCMatchSignout = 9133, - k_EMsgClientToGCInitialGrantAck = 9134, - k_EMsgClientToGCRecycleCards = 9135, - k_EMsgClientToGCRecycleCardsResponse = 9136, - k_EMsgClientToGCSetPlayerBadge = 9137, - k_EMsgClientToGCTourneyGetInfo = 9500, - k_EMsgClientToGCTourneyGetInfoResponse = 9501, - k_EMsgClientToGCTourneyUnsubscribe = 9502, - k_EMsgGCToClientTourneyUpdated = 9503, - k_EMsgGCToClientTourneySeriesMatchReady = 9506, - k_EMsgGCToClientTourneySeriesMatchNotReady = 9507, - k_EMsgClientToGCCreateTourney = 9508, - k_EMsgClientToGCCreateTourneyResponse = 9509, - k_EMsgClientToGCTourneyAcceptInvite = 9512, - k_EMsgClientToGCTourneyAcceptInviteResponse = 9513, - k_EMsgClientToGCTourneyRejectInvite = 9514, - k_EMsgClientToGCTourneyRejectInviteResponse = 9515, - k_EMsgClientToGCTourneyRevokeInvite = 9516, - k_EMsgClientToGCTourneyRevokeInviteResponse = 9517, - k_EMsgClientToGCTourneyAdminSwitchStage = 9518, - k_EMsgClientToGCTourneyAdminSwitchStageResponse = 9519, - k_EMsgClientToGCTourneyAdminKick = 9520, - k_EMsgClientToGCTourneyAdminKickResponse = 9521, - k_EMsgClientToGCTourneyAdminGrantWin = 9522, - k_EMsgClientToGCTourneyAdminGrantWinResponse = 9523, - k_EMsgClientToGCTourneyAdminChangeRights = 9524, - k_EMsgClientToGCTourneyAdminChangeRightsResponse = 9525, - k_EMsgClientToGCTourneyRegisterDeck = 9526, - k_EMsgClientToGCTourneyRegisterDeckResponse = 9527, - k_EMsgClientToGCTourneyUserLeave = 9528, - k_EMsgClientToGCTourneyUserLeaveResponse = 9529, - k_EMsgClientToGCTourneyRegisterSharedDeck = 9530, - k_EMsgClientToGCTourneyRegisterSharedDeckResponse = 9531, - k_EMsgClientToGCTourneyGetRegisteredDecks = 9532, - k_EMsgClientToGCTourneyGetRegisteredDecksResponse = 9533, - k_EMsgClientToGCTourneyCreateOpenInvite = 9536, - k_EMsgClientToGCTourneyCreateOpenInviteResponse = 9537, - k_EMsgClientToGCTourneyRevokeOpenInvite = 9538, - k_EMsgClientToGCTourneyRevokeOpenInviteResponse = 9539, - k_EMsgClientToGCTourneyGetOpenInvites = 9540, - k_EMsgClientToGCTourneyGetOpenInvitesResponse = 9541, - k_EMsgClientToGCTourneyAdminSwitchPhaseStage = 9542, - k_EMsgClientToGCTourneyAdminSwitchPhaseStageResponse = 9543, - k_EMsgClientToGCTourneyGetOverview = 9544, - k_EMsgClientToGCTourneyGetOverviewResponse = 9545, - k_EMsgClientToGCTourneySetStatus = 9546, - k_EMsgClientToGCTourneySetStatusResponse = 9547, - k_EMsgClientToGCTourneyAddPhase = 9548, - k_EMsgClientToGCTourneyAddPhaseResponse = 9549, - k_EMsgClientToGCTourneyRemovePhase = 9550, - k_EMsgClientToGCTourneyRemovePhaseResponse = 9551, - k_EMsgClientToGCTourneySpectateMatch = 9552, - k_EMsgClientToGCTourneySpectateMatchResponse = 9553, - k_EMsgClientToGCTourneyInviteList = 9554, - k_EMsgClientToGCTourneyInviteListResponse = 9555, - k_EMsgClientToGCTourneyAdminSetSeedValues = 9556, - k_EMsgClientToGCTourneyAdminSetSeedValuesResponse = 9557, - k_EMsgClientToGCTourneyEditStageSwapPlayers = 9558, - k_EMsgClientToGCTourneyEditStageSwapPlayersResponse = 9559, - k_EMsgClientToGCTourneyGetLimitedReplay = 9560, - k_EMsgClientToGCTourneyGetLimitedReplayResponse = 9561, - k_EMsgClientToGCTourneyRejoinChatRoom = 9562, - k_EMsgClientToGCTourneyRejoinChatRoomResponse = 9563, - k_EMsgGCToClientTourneyMembersMatchmaking = 9564, - k_EMsgClientToGCTourneyPayEntryFee = 9565, - k_EMsgClientToGCTourneyPayEntryFeeResponse = 9566, - k_EMsgClientToGCTourneyPlayerAbandon = 9567, - k_EMsgClientToGCTourneyPlayerAbandonResponse = 9568, - k_EMsgClientToGCTourneyChangeValue = 9569, - k_EMsgClientToGCTourneyChangeValueResponse = 9570, - k_EMsgClientToGCTourneyJoinOpenTourney = 9571, - k_EMsgClientToGCTourneyJoinOpenTourneyResponse = 9572, - } - - [global::ProtoBuf.ProtoContract()] - public enum EChatRoomType - { - k_EChatRoomType_Invalid = 0, - k_EChatRoomType_Match = 1, - k_EChatRoomType_PublicRegion = 2, - k_EChatRoomType_Developer = 3, - k_EChatRoomType_Custom = 4, - k_EChatRoomType_PrivateLobby = 5, - k_EChatRoomType_Client_Tab = 20, - k_EChatRoomType_Client_Whisper = 21, - } - - [global::ProtoBuf.ProtoContract()] - public enum EChatMessageAdditionalData - { - k_EChatMessageAdditionalData_None = 0, - k_EChatMessageAdditionalData_DiceRoll = 1, - } - -} - -#pragma warning restore CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192 -#endregion diff --git a/SteamKit2/Base/Generated/GC/Artifact/MsgGCCommon.cs b/SteamKit2/Base/Generated/GC/Artifact/MsgGCCommon.cs deleted file mode 100644 index 01e5e24f1..000000000 --- a/SteamKit2/Base/Generated/GC/Artifact/MsgGCCommon.cs +++ /dev/null @@ -1,3506 +0,0 @@ -// -// This file was generated by a tool; you should avoid making direct changes. -// Consider using 'partial classes' to extend these types -// Input: dcg_gcmessages_common.proto -// - -#region Designer generated code -#pragma warning disable CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192 -namespace SteamKit2.GC.Artifact.Internal -{ - - [global::ProtoBuf.ProtoContract()] - public partial class CExtraMsgBlock : 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 msg_type - { - get => __pbn__msg_type.GetValueOrDefault(); - set => __pbn__msg_type = value; - } - public bool ShouldSerializemsg_type() => __pbn__msg_type != null; - public void Resetmsg_type() => __pbn__msg_type = null; - private uint? __pbn__msg_type; - - [global::ProtoBuf.ProtoMember(2)] - public byte[] contents - { - get => __pbn__contents; - set => __pbn__contents = value; - } - public bool ShouldSerializecontents() => __pbn__contents != null; - public void Resetcontents() => __pbn__contents = null; - private byte[] __pbn__contents; - - [global::ProtoBuf.ProtoMember(3)] - public ulong msg_key - { - get => __pbn__msg_key.GetValueOrDefault(); - set => __pbn__msg_key = value; - } - public bool ShouldSerializemsg_key() => __pbn__msg_key != null; - public void Resetmsg_key() => __pbn__msg_key = null; - private ulong? __pbn__msg_key; - - [global::ProtoBuf.ProtoMember(4)] - public bool is_compressed - { - get => __pbn__is_compressed.GetValueOrDefault(); - set => __pbn__is_compressed = value; - } - public bool ShouldSerializeis_compressed() => __pbn__is_compressed != null; - public void Resetis_compressed() => __pbn__is_compressed = null; - private bool? __pbn__is_compressed; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CSODCGLobby : 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 global::System.Collections.Generic.List members { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List extra_messages { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong server_steam_id - { - get => __pbn__server_steam_id.GetValueOrDefault(); - set => __pbn__server_steam_id = value; - } - public bool ShouldSerializeserver_steam_id() => __pbn__server_steam_id != null; - public void Resetserver_steam_id() => __pbn__server_steam_id = null; - private ulong? __pbn__server_steam_id; - - [global::ProtoBuf.ProtoMember(5)] - public ulong lobby_id - { - get => __pbn__lobby_id.GetValueOrDefault(); - set => __pbn__lobby_id = value; - } - public bool ShouldSerializelobby_id() => __pbn__lobby_id != null; - public void Resetlobby_id() => __pbn__lobby_id = null; - private ulong? __pbn__lobby_id; - - [global::ProtoBuf.ProtoMember(6)] - public ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - [global::ProtoBuf.ProtoMember(7)] - public uint gauntlet_id - { - get => __pbn__gauntlet_id.GetValueOrDefault(); - set => __pbn__gauntlet_id = value; - } - public bool ShouldSerializegauntlet_id() => __pbn__gauntlet_id != null; - public void Resetgauntlet_id() => __pbn__gauntlet_id = null; - private uint? __pbn__gauntlet_id; - - [global::ProtoBuf.ProtoMember(8)] - [global::System.ComponentModel.DefaultValue(ELobbyServerState.k_eLobbyServerState_Assign)] - public ELobbyServerState server_state - { - get => __pbn__server_state ?? ELobbyServerState.k_eLobbyServerState_Assign; - set => __pbn__server_state = value; - } - public bool ShouldSerializeserver_state() => __pbn__server_state != null; - public void Resetserver_state() => __pbn__server_state = null; - private ELobbyServerState? __pbn__server_state; - - [global::ProtoBuf.ProtoMember(9, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public uint replay_salt - { - get => __pbn__replay_salt.GetValueOrDefault(); - set => __pbn__replay_salt = value; - } - public bool ShouldSerializereplay_salt() => __pbn__replay_salt != null; - public void Resetreplay_salt() => __pbn__replay_salt = null; - private uint? __pbn__replay_salt; - - [global::ProtoBuf.ProtoMember(10)] - [global::System.ComponentModel.DefaultValue(EDCGMatchMode.k_EDCGMatchMode_Unranked)] - public EDCGMatchMode match_mode - { - get => __pbn__match_mode ?? EDCGMatchMode.k_EDCGMatchMode_Unranked; - set => __pbn__match_mode = value; - } - public bool ShouldSerializematch_mode() => __pbn__match_mode != null; - public void Resetmatch_mode() => __pbn__match_mode = null; - private EDCGMatchMode? __pbn__match_mode; - - [global::ProtoBuf.ProtoMember(11)] - public uint udp_connect_ip - { - get => __pbn__udp_connect_ip.GetValueOrDefault(); - set => __pbn__udp_connect_ip = value; - } - public bool ShouldSerializeudp_connect_ip() => __pbn__udp_connect_ip != null; - public void Resetudp_connect_ip() => __pbn__udp_connect_ip = null; - private uint? __pbn__udp_connect_ip; - - [global::ProtoBuf.ProtoMember(12)] - public uint udp_connect_port - { - get => __pbn__udp_connect_port.GetValueOrDefault(); - set => __pbn__udp_connect_port = value; - } - public bool ShouldSerializeudp_connect_port() => __pbn__udp_connect_port != null; - public void Resetudp_connect_port() => __pbn__udp_connect_port = null; - private uint? __pbn__udp_connect_port; - - [global::ProtoBuf.ProtoMember(13)] - public ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(14)] - public uint tourney_phase_id - { - get => __pbn__tourney_phase_id.GetValueOrDefault(); - set => __pbn__tourney_phase_id = value; - } - public bool ShouldSerializetourney_phase_id() => __pbn__tourney_phase_id != null; - public void Resettourney_phase_id() => __pbn__tourney_phase_id = null; - private uint? __pbn__tourney_phase_id; - - [global::ProtoBuf.ProtoMember(15)] - public uint tourney_series_id - { - get => __pbn__tourney_series_id.GetValueOrDefault(); - set => __pbn__tourney_series_id = value; - } - public bool ShouldSerializetourney_series_id() => __pbn__tourney_series_id != null; - public void Resettourney_series_id() => __pbn__tourney_series_id = null; - private uint? __pbn__tourney_series_id; - - [global::ProtoBuf.ProtoContract()] - public partial class GauntletInfo : 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 wins - { - get => __pbn__wins.GetValueOrDefault(); - set => __pbn__wins = value; - } - public bool ShouldSerializewins() => __pbn__wins != null; - public void Resetwins() => __pbn__wins = null; - private uint? __pbn__wins; - - [global::ProtoBuf.ProtoMember(2)] - public uint losses - { - get => __pbn__losses.GetValueOrDefault(); - set => __pbn__losses = value; - } - public bool ShouldSerializelosses() => __pbn__losses != null; - public void Resetlosses() => __pbn__losses = null; - private uint? __pbn__losses; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class Member : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string persona_name - { - get => __pbn__persona_name ?? ""; - set => __pbn__persona_name = value; - } - public bool ShouldSerializepersona_name() => __pbn__persona_name != null; - public void Resetpersona_name() => __pbn__persona_name = null; - private string __pbn__persona_name; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue(EDCGLobbyTeam.k_EDCGLobbyTeam_Team0)] - public EDCGLobbyTeam team - { - get => __pbn__team ?? EDCGLobbyTeam.k_EDCGLobbyTeam_Team0; - set => __pbn__team = value; - } - public bool ShouldSerializeteam() => __pbn__team != null; - public void Resetteam() => __pbn__team = null; - private EDCGLobbyTeam? __pbn__team; - - [global::ProtoBuf.ProtoMember(4)] - public bool has_left - { - get => __pbn__has_left.GetValueOrDefault(); - set => __pbn__has_left = value; - } - public bool ShouldSerializehas_left() => __pbn__has_left != null; - public void Resethas_left() => __pbn__has_left = null; - private bool? __pbn__has_left; - - [global::ProtoBuf.ProtoMember(5)] - public bool is_anonymous - { - get => __pbn__is_anonymous.GetValueOrDefault(); - set => __pbn__is_anonymous = value; - } - public bool ShouldSerializeis_anonymous() => __pbn__is_anonymous != null; - public void Resetis_anonymous() => __pbn__is_anonymous = null; - private bool? __pbn__is_anonymous; - - [global::ProtoBuf.ProtoMember(6)] - public CSODCGLobby.GauntletInfo gauntlet_info { get; set; } - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CLobbyData_PostMatchSurvey : 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 global::System.Collections.Generic.List surveys { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class PlayerSurvey : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint question_id - { - get => __pbn__question_id.GetValueOrDefault(); - set => __pbn__question_id = value; - } - public bool ShouldSerializequestion_id() => __pbn__question_id != null; - public void Resetquestion_id() => __pbn__question_id = null; - private uint? __pbn__question_id; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CSOGameAccountClient : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint flags - { - get => __pbn__flags.GetValueOrDefault(); - set => __pbn__flags = value; - } - public bool ShouldSerializeflags() => __pbn__flags != null; - public void Resetflags() => __pbn__flags = null; - private uint? __pbn__flags; - - [global::ProtoBuf.ProtoMember(5)] - public uint initial_grant_ack_def - { - get => __pbn__initial_grant_ack_def.GetValueOrDefault(); - set => __pbn__initial_grant_ack_def = value; - } - public bool ShouldSerializeinitial_grant_ack_def() => __pbn__initial_grant_ack_def != null; - public void Resetinitial_grant_ack_def() => __pbn__initial_grant_ack_def = null; - private uint? __pbn__initial_grant_ack_def; - - [global::ProtoBuf.ProtoMember(6)] - public uint recycling_progress - { - get => __pbn__recycling_progress.GetValueOrDefault(); - set => __pbn__recycling_progress = value; - } - public bool ShouldSerializerecycling_progress() => __pbn__recycling_progress != null; - public void Resetrecycling_progress() => __pbn__recycling_progress = null; - private uint? __pbn__recycling_progress; - - [global::ProtoBuf.ProtoMember(7)] - public uint progress_level - { - get => __pbn__progress_level.GetValueOrDefault(); - set => __pbn__progress_level = value; - } - public bool ShouldSerializeprogress_level() => __pbn__progress_level != null; - public void Resetprogress_level() => __pbn__progress_level = null; - private uint? __pbn__progress_level; - - [global::ProtoBuf.ProtoMember(8)] - public uint progress_xp - { - get => __pbn__progress_xp.GetValueOrDefault(); - set => __pbn__progress_xp = value; - } - public bool ShouldSerializeprogress_xp() => __pbn__progress_xp != null; - public void Resetprogress_xp() => __pbn__progress_xp = null; - private uint? __pbn__progress_xp; - - [global::ProtoBuf.ProtoMember(9)] - public uint constructed_mmr_level - { - get => __pbn__constructed_mmr_level.GetValueOrDefault(); - set => __pbn__constructed_mmr_level = value; - } - public bool ShouldSerializeconstructed_mmr_level() => __pbn__constructed_mmr_level != null; - public void Resetconstructed_mmr_level() => __pbn__constructed_mmr_level = null; - private uint? __pbn__constructed_mmr_level; - - [global::ProtoBuf.ProtoMember(10)] - public uint last_win_bounus_time - { - get => __pbn__last_win_bounus_time.GetValueOrDefault(); - set => __pbn__last_win_bounus_time = value; - } - public bool ShouldSerializelast_win_bounus_time() => __pbn__last_win_bounus_time != null; - public void Resetlast_win_bounus_time() => __pbn__last_win_bounus_time = null; - private uint? __pbn__last_win_bounus_time; - - [global::ProtoBuf.ProtoMember(11)] - public uint match_win_streak - { - get => __pbn__match_win_streak.GetValueOrDefault(); - set => __pbn__match_win_streak = value; - } - public bool ShouldSerializematch_win_streak() => __pbn__match_win_streak != null; - public void Resetmatch_win_streak() => __pbn__match_win_streak = null; - private uint? __pbn__match_win_streak; - - [global::ProtoBuf.ProtoMember(12)] - public uint bonus_period_wins - { - get => __pbn__bonus_period_wins.GetValueOrDefault(); - set => __pbn__bonus_period_wins = value; - } - public bool ShouldSerializebonus_period_wins() => __pbn__bonus_period_wins != null; - public void Resetbonus_period_wins() => __pbn__bonus_period_wins = null; - private uint? __pbn__bonus_period_wins; - - [global::ProtoBuf.ProtoMember(13)] - public uint player_badge - { - get => __pbn__player_badge.GetValueOrDefault(); - set => __pbn__player_badge = value; - } - public bool ShouldSerializeplayer_badge() => __pbn__player_badge != null; - public void Resetplayer_badge() => __pbn__player_badge = null; - private uint? __pbn__player_badge; - - [global::ProtoBuf.ProtoMember(14)] - public uint draft_mmr_level - { - get => __pbn__draft_mmr_level.GetValueOrDefault(); - set => __pbn__draft_mmr_level = value; - } - public bool ShouldSerializedraft_mmr_level() => __pbn__draft_mmr_level != null; - public void Resetdraft_mmr_level() => __pbn__draft_mmr_level = null; - private uint? __pbn__draft_mmr_level; - - [global::ProtoBuf.ProtoContract()] - public enum EFlags - { - k_eDeveloper = 1, - k_eFreePlayer = 2, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CSOGauntlet : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint gauntlet_id - { - get => __pbn__gauntlet_id.GetValueOrDefault(); - set => __pbn__gauntlet_id = value; - } - public bool ShouldSerializegauntlet_id() => __pbn__gauntlet_id != null; - public void Resetgauntlet_id() => __pbn__gauntlet_id = null; - private uint? __pbn__gauntlet_id; - - [global::ProtoBuf.ProtoMember(3)] - public ulong active_lobby_id - { - get => __pbn__active_lobby_id.GetValueOrDefault(); - set => __pbn__active_lobby_id = value; - } - public bool ShouldSerializeactive_lobby_id() => __pbn__active_lobby_id != null; - public void Resetactive_lobby_id() => __pbn__active_lobby_id = null; - private ulong? __pbn__active_lobby_id; - - [global::ProtoBuf.ProtoMember(4)] - public uint abandoned_time - { - get => __pbn__abandoned_time.GetValueOrDefault(); - set => __pbn__abandoned_time = value; - } - public bool ShouldSerializeabandoned_time() => __pbn__abandoned_time != null; - public void Resetabandoned_time() => __pbn__abandoned_time = null; - private uint? __pbn__abandoned_time; - - [global::ProtoBuf.ProtoMember(5)] - public byte[] deck_bytes - { - get => __pbn__deck_bytes; - set => __pbn__deck_bytes = value; - } - public bool ShouldSerializedeck_bytes() => __pbn__deck_bytes != null; - public void Resetdeck_bytes() => __pbn__deck_bytes = null; - private byte[] __pbn__deck_bytes; - - [global::ProtoBuf.ProtoMember(9)] - public ulong gauntlet_instance - { - get => __pbn__gauntlet_instance.GetValueOrDefault(); - set => __pbn__gauntlet_instance = value; - } - public bool ShouldSerializegauntlet_instance() => __pbn__gauntlet_instance != null; - public void Resetgauntlet_instance() => __pbn__gauntlet_instance = null; - private ulong? __pbn__gauntlet_instance; - - [global::ProtoBuf.ProtoMember(10)] - public uint entry_type - { - get => __pbn__entry_type.GetValueOrDefault(); - set => __pbn__entry_type = value; - } - public bool ShouldSerializeentry_type() => __pbn__entry_type != null; - public void Resetentry_type() => __pbn__entry_type = null; - private uint? __pbn__entry_type; - - [global::ProtoBuf.ProtoMember(11)] - public ulong limited_instance - { - get => __pbn__limited_instance.GetValueOrDefault(); - set => __pbn__limited_instance = value; - } - public bool ShouldSerializelimited_instance() => __pbn__limited_instance != null; - public void Resetlimited_instance() => __pbn__limited_instance = null; - private ulong? __pbn__limited_instance; - - [global::ProtoBuf.ProtoMember(12)] - public uint wins - { - get => __pbn__wins.GetValueOrDefault(); - set => __pbn__wins = value; - } - public bool ShouldSerializewins() => __pbn__wins != null; - public void Resetwins() => __pbn__wins = null; - private uint? __pbn__wins; - - [global::ProtoBuf.ProtoMember(13)] - public uint losses - { - get => __pbn__losses.GetValueOrDefault(); - set => __pbn__losses = value; - } - public bool ShouldSerializelosses() => __pbn__losses != null; - public void Resetlosses() => __pbn__losses = null; - private uint? __pbn__losses; - - [global::ProtoBuf.ProtoMember(14)] - public ulong wins_mask - { - get => __pbn__wins_mask.GetValueOrDefault(); - set => __pbn__wins_mask = value; - } - public bool ShouldSerializewins_mask() => __pbn__wins_mask != null; - public void Resetwins_mask() => __pbn__wins_mask = null; - private ulong? __pbn__wins_mask; - - [global::ProtoBuf.ProtoMember(15)] - public bool select_random_deck - { - get => __pbn__select_random_deck.GetValueOrDefault(); - set => __pbn__select_random_deck = value; - } - public bool ShouldSerializeselect_random_deck() => __pbn__select_random_deck != null; - public void Resetselect_random_deck() => __pbn__select_random_deck = null; - private bool? __pbn__select_random_deck; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CSOPhantomItem : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public ulong limited_pool - { - get => __pbn__limited_pool.GetValueOrDefault(); - set => __pbn__limited_pool = value; - } - public bool ShouldSerializelimited_pool() => __pbn__limited_pool != null; - public void Resetlimited_pool() => __pbn__limited_pool = null; - private ulong? __pbn__limited_pool; - - [global::ProtoBuf.ProtoMember(3)] - public uint def_index - { - get => __pbn__def_index.GetValueOrDefault(); - set => __pbn__def_index = value; - } - public bool ShouldSerializedef_index() => __pbn__def_index != null; - public void Resetdef_index() => __pbn__def_index = null; - private uint? __pbn__def_index; - - [global::ProtoBuf.ProtoMember(4)] - public ulong phantom_id - { - get => __pbn__phantom_id.GetValueOrDefault(); - set => __pbn__phantom_id = value; - } - public bool ShouldSerializephantom_id() => __pbn__phantom_id != null; - public void Resetphantom_id() => __pbn__phantom_id = null; - private ulong? __pbn__phantom_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CSOCardAchievement : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint achievement_id - { - get => __pbn__achievement_id.GetValueOrDefault(); - set => __pbn__achievement_id = value; - } - public bool ShouldSerializeachievement_id() => __pbn__achievement_id != null; - public void Resetachievement_id() => __pbn__achievement_id = null; - private uint? __pbn__achievement_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint progress - { - get => __pbn__progress.GetValueOrDefault(); - set => __pbn__progress = value; - } - public bool ShouldSerializeprogress() => __pbn__progress != null; - public void Resetprogress() => __pbn__progress = null; - private uint? __pbn__progress; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CSOPlayerLimitedProgress : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public ulong limited_instance_id - { - get => __pbn__limited_instance_id.GetValueOrDefault(); - set => __pbn__limited_instance_id = value; - } - public bool ShouldSerializelimited_instance_id() => __pbn__limited_instance_id != null; - public void Resetlimited_instance_id() => __pbn__limited_instance_id = null; - private ulong? __pbn__limited_instance_id; - - [global::ProtoBuf.ProtoMember(3)] - public ulong limited_pool_id - { - get => __pbn__limited_pool_id.GetValueOrDefault(); - set => __pbn__limited_pool_id = value; - } - public bool ShouldSerializelimited_pool_id() => __pbn__limited_pool_id != null; - public void Resetlimited_pool_id() => __pbn__limited_pool_id = null; - private ulong? __pbn__limited_pool_id; - - [global::ProtoBuf.ProtoMember(4)] - public uint limited_format - { - get => __pbn__limited_format.GetValueOrDefault(); - set => __pbn__limited_format = value; - } - public bool ShouldSerializelimited_format() => __pbn__limited_format != null; - public void Resetlimited_format() => __pbn__limited_format = null; - private uint? __pbn__limited_format; - - [global::ProtoBuf.ProtoMember(5)] - public uint progress - { - get => __pbn__progress.GetValueOrDefault(); - set => __pbn__progress = value; - } - public bool ShouldSerializeprogress() => __pbn__progress != null; - public void Resetprogress() => __pbn__progress = null; - private uint? __pbn__progress; - - [global::ProtoBuf.ProtoMember(6)] - public uint flags - { - get => __pbn__flags.GetValueOrDefault(); - set => __pbn__flags = value; - } - public bool ShouldSerializeflags() => __pbn__flags != null; - public void Resetflags() => __pbn__flags = null; - private uint? __pbn__flags; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CSOTourneyMembership : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint player_status - { - get => __pbn__player_status.GetValueOrDefault(); - set => __pbn__player_status = value; - } - public bool ShouldSerializeplayer_status() => __pbn__player_status != null; - public void Resetplayer_status() => __pbn__player_status = null; - private uint? __pbn__player_status; - - [global::ProtoBuf.ProtoMember(4)] - [global::System.ComponentModel.DefaultValue(EStatus.k_eConfigure)] - public EStatus tourney_status - { - get => __pbn__tourney_status ?? EStatus.k_eConfigure; - set => __pbn__tourney_status = value; - } - public bool ShouldSerializetourney_status() => __pbn__tourney_status != null; - public void Resettourney_status() => __pbn__tourney_status = null; - private EStatus? __pbn__tourney_status; - - [global::ProtoBuf.ProtoMember(5)] - public uint joined_time - { - get => __pbn__joined_time.GetValueOrDefault(); - set => __pbn__joined_time = value; - } - public bool ShouldSerializejoined_time() => __pbn__joined_time != null; - public void Resetjoined_time() => __pbn__joined_time = null; - private uint? __pbn__joined_time; - - [global::ProtoBuf.ProtoMember(6)] - public uint open_tourney - { - get => __pbn__open_tourney.GetValueOrDefault(); - set => __pbn__open_tourney = value; - } - public bool ShouldSerializeopen_tourney() => __pbn__open_tourney != null; - public void Resetopen_tourney() => __pbn__open_tourney = null; - private uint? __pbn__open_tourney; - - [global::ProtoBuf.ProtoContract()] - public enum EStatus - { - k_eConfigure = 1, - k_eInvites = 2, - k_eSeeding = 3, - k_eLimited = 4, - k_eEditPhase = 5, - k_ePlaying = 6, - k_eWaiting = 7, - k_eClosed = 8, - k_eInvites_Registered = 9, - k_eLimited_Registered = 10, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CSOTourneyInvite : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(3)] - public bool is_full - { - get => __pbn__is_full.GetValueOrDefault(); - set => __pbn__is_full = value; - } - public bool ShouldSerializeis_full() => __pbn__is_full != null; - public void Resetis_full() => __pbn__is_full = null; - private bool? __pbn__is_full; - - [global::ProtoBuf.ProtoMember(4)] - public uint invited_by - { - get => __pbn__invited_by.GetValueOrDefault(); - set => __pbn__invited_by = value; - } - public bool ShouldSerializeinvited_by() => __pbn__invited_by != null; - public void Resetinvited_by() => __pbn__invited_by = null; - private uint? __pbn__invited_by; - - [global::ProtoBuf.ProtoMember(5)] - public uint rights_flags - { - get => __pbn__rights_flags.GetValueOrDefault(); - set => __pbn__rights_flags = value; - } - public bool ShouldSerializerights_flags() => __pbn__rights_flags != null; - public void Resetrights_flags() => __pbn__rights_flags = null; - private uint? __pbn__rights_flags; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgStartFindingMatchInfo : 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 gauntlet_id - { - get => __pbn__gauntlet_id.GetValueOrDefault(); - set => __pbn__gauntlet_id = value; - } - public bool ShouldSerializegauntlet_id() => __pbn__gauntlet_id != null; - public void Resetgauntlet_id() => __pbn__gauntlet_id = null; - private uint? __pbn__gauntlet_id; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string server_search_key - { - get => __pbn__server_search_key ?? ""; - set => __pbn__server_search_key = value; - } - public bool ShouldSerializeserver_search_key() => __pbn__server_search_key != null; - public void Resetserver_search_key() => __pbn__server_search_key = null; - private string __pbn__server_search_key; - - [global::ProtoBuf.ProtoMember(3)] - public uint client_version - { - get => __pbn__client_version.GetValueOrDefault(); - set => __pbn__client_version = value; - } - public bool ShouldSerializeclient_version() => __pbn__client_version != null; - public void Resetclient_version() => __pbn__client_version = null; - private uint? __pbn__client_version; - - [global::ProtoBuf.ProtoMember(4)] - [global::System.ComponentModel.DefaultValue(EDCGMatchMode.k_EDCGMatchMode_Unranked)] - public EDCGMatchMode match_mode - { - get => __pbn__match_mode ?? EDCGMatchMode.k_EDCGMatchMode_Unranked; - set => __pbn__match_mode = value; - } - public bool ShouldSerializematch_mode() => __pbn__match_mode != null; - public void Resetmatch_mode() => __pbn__match_mode = null; - private EDCGMatchMode? __pbn__match_mode; - - [global::ProtoBuf.ProtoMember(5)] - public byte[] deck_code - { - get => __pbn__deck_code; - set => __pbn__deck_code = value; - } - public bool ShouldSerializedeck_code() => __pbn__deck_code != null; - public void Resetdeck_code() => __pbn__deck_code = null; - private byte[] __pbn__deck_code; - - [global::ProtoBuf.ProtoMember(7)] - public bool is_anonymous - { - get => __pbn__is_anonymous.GetValueOrDefault(); - set => __pbn__is_anonymous = value; - } - public bool ShouldSerializeis_anonymous() => __pbn__is_anonymous != null; - public void Resetis_anonymous() => __pbn__is_anonymous = null; - private bool? __pbn__is_anonymous; - - [global::ProtoBuf.ProtoMember(8)] - public byte[] collection_code - { - get => __pbn__collection_code; - set => __pbn__collection_code = value; - } - public bool ShouldSerializecollection_code() => __pbn__collection_code != null; - public void Resetcollection_code() => __pbn__collection_code = null; - private byte[] __pbn__collection_code; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgDCGCombatLogEntry : 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)] - [global::System.ComponentModel.DefaultValue(DCG_COMBATLOG_TYPES.DCG_COMBATLOG_INVALID)] - public DCG_COMBATLOG_TYPES type - { - get => __pbn__type ?? DCG_COMBATLOG_TYPES.DCG_COMBATLOG_INVALID; - set => __pbn__type = value; - } - public bool ShouldSerializetype() => __pbn__type != null; - public void Resettype() => __pbn__type = null; - private DCG_COMBATLOG_TYPES? __pbn__type; - - [global::ProtoBuf.ProtoMember(2)] - public uint target_card_id - { - get => __pbn__target_card_id.GetValueOrDefault(); - set => __pbn__target_card_id = value; - } - public bool ShouldSerializetarget_card_id() => __pbn__target_card_id != null; - public void Resettarget_card_id() => __pbn__target_card_id = null; - private uint? __pbn__target_card_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint target_object_id - { - get => __pbn__target_object_id.GetValueOrDefault(); - set => __pbn__target_object_id = value; - } - public bool ShouldSerializetarget_object_id() => __pbn__target_object_id != null; - public void Resettarget_object_id() => __pbn__target_object_id = null; - private uint? __pbn__target_object_id; - - [global::ProtoBuf.ProtoMember(4)] - public uint target_owner - { - get => __pbn__target_owner.GetValueOrDefault(); - set => __pbn__target_owner = value; - } - public bool ShouldSerializetarget_owner() => __pbn__target_owner != null; - public void Resettarget_owner() => __pbn__target_owner = null; - private uint? __pbn__target_owner; - - [global::ProtoBuf.ProtoMember(5)] - public uint source_card_id - { - get => __pbn__source_card_id.GetValueOrDefault(); - set => __pbn__source_card_id = value; - } - public bool ShouldSerializesource_card_id() => __pbn__source_card_id != null; - public void Resetsource_card_id() => __pbn__source_card_id = null; - private uint? __pbn__source_card_id; - - [global::ProtoBuf.ProtoMember(6)] - public uint source_object_id - { - get => __pbn__source_object_id.GetValueOrDefault(); - set => __pbn__source_object_id = value; - } - public bool ShouldSerializesource_object_id() => __pbn__source_object_id != null; - public void Resetsource_object_id() => __pbn__source_object_id = null; - private uint? __pbn__source_object_id; - - [global::ProtoBuf.ProtoMember(7)] - public uint source_owner - { - get => __pbn__source_owner.GetValueOrDefault(); - set => __pbn__source_owner = value; - } - public bool ShouldSerializesource_owner() => __pbn__source_owner != null; - public void Resetsource_owner() => __pbn__source_owner = null; - private uint? __pbn__source_owner; - - [global::ProtoBuf.ProtoMember(8)] - public uint value - { - get => __pbn__value.GetValueOrDefault(); - set => __pbn__value = value; - } - public bool ShouldSerializevalue() => __pbn__value != null; - public void Resetvalue() => __pbn__value = null; - private uint? __pbn__value; - - [global::ProtoBuf.ProtoMember(9)] - public int target_attack - { - get => __pbn__target_attack.GetValueOrDefault(); - set => __pbn__target_attack = value; - } - public bool ShouldSerializetarget_attack() => __pbn__target_attack != null; - public void Resettarget_attack() => __pbn__target_attack = null; - private int? __pbn__target_attack; - - [global::ProtoBuf.ProtoMember(10)] - public int target_armor - { - get => __pbn__target_armor.GetValueOrDefault(); - set => __pbn__target_armor = value; - } - public bool ShouldSerializetarget_armor() => __pbn__target_armor != null; - public void Resettarget_armor() => __pbn__target_armor = null; - private int? __pbn__target_armor; - - [global::ProtoBuf.ProtoMember(11)] - public int target_health - { - get => __pbn__target_health.GetValueOrDefault(); - set => __pbn__target_health = value; - } - public bool ShouldSerializetarget_health() => __pbn__target_health != null; - public void Resettarget_health() => __pbn__target_health = null; - private int? __pbn__target_health; - - [global::ProtoBuf.ProtoMember(12)] - public int source_attack - { - get => __pbn__source_attack.GetValueOrDefault(); - set => __pbn__source_attack = value; - } - public bool ShouldSerializesource_attack() => __pbn__source_attack != null; - public void Resetsource_attack() => __pbn__source_attack = null; - private int? __pbn__source_attack; - - [global::ProtoBuf.ProtoMember(13)] - public int source_armor - { - get => __pbn__source_armor.GetValueOrDefault(); - set => __pbn__source_armor = value; - } - public bool ShouldSerializesource_armor() => __pbn__source_armor != null; - public void Resetsource_armor() => __pbn__source_armor = null; - private int? __pbn__source_armor; - - [global::ProtoBuf.ProtoMember(14)] - public int source_health - { - get => __pbn__source_health.GetValueOrDefault(); - set => __pbn__source_health = value; - } - public bool ShouldSerializesource_health() => __pbn__source_health != null; - public void Resetsource_health() => __pbn__source_health = null; - private int? __pbn__source_health; - - [global::ProtoBuf.ProtoMember(15)] - public uint turnstamp - { - get => __pbn__turnstamp.GetValueOrDefault(); - set => __pbn__turnstamp = value; - } - public bool ShouldSerializeturnstamp() => __pbn__turnstamp != null; - public void Resetturnstamp() => __pbn__turnstamp = null; - private uint? __pbn__turnstamp; - - [global::ProtoBuf.ProtoMember(16)] - public uint source_lane - { - get => __pbn__source_lane.GetValueOrDefault(); - set => __pbn__source_lane = value; - } - public bool ShouldSerializesource_lane() => __pbn__source_lane != null; - public void Resetsource_lane() => __pbn__source_lane = null; - private uint? __pbn__source_lane; - - [global::ProtoBuf.ProtoMember(17)] - public uint target_lane - { - get => __pbn__target_lane.GetValueOrDefault(); - set => __pbn__target_lane = value; - } - public bool ShouldSerializetarget_lane() => __pbn__target_lane != null; - public void Resettarget_lane() => __pbn__target_lane = null; - private uint? __pbn__target_lane; - - [global::ProtoBuf.ProtoMember(18)] - public uint source_parent_card_id - { - get => __pbn__source_parent_card_id.GetValueOrDefault(); - set => __pbn__source_parent_card_id = value; - } - public bool ShouldSerializesource_parent_card_id() => __pbn__source_parent_card_id != null; - public void Resetsource_parent_card_id() => __pbn__source_parent_card_id = null; - private uint? __pbn__source_parent_card_id; - - [global::ProtoBuf.ProtoMember(19)] - public uint source_parent_object_id - { - get => __pbn__source_parent_object_id.GetValueOrDefault(); - set => __pbn__source_parent_object_id = value; - } - public bool ShouldSerializesource_parent_object_id() => __pbn__source_parent_object_id != null; - public void Resetsource_parent_object_id() => __pbn__source_parent_object_id = null; - private uint? __pbn__source_parent_object_id; - - [global::ProtoBuf.ProtoMember(20)] - public uint modifier_type - { - get => __pbn__modifier_type.GetValueOrDefault(); - set => __pbn__modifier_type = value; - } - public bool ShouldSerializemodifier_type() => __pbn__modifier_type != null; - public void Resetmodifier_type() => __pbn__modifier_type = null; - private uint? __pbn__modifier_type; - - [global::ProtoBuf.ProtoMember(21)] - public bool piercing - { - get => __pbn__piercing.GetValueOrDefault(); - set => __pbn__piercing = value; - } - public bool ShouldSerializepiercing() => __pbn__piercing != null; - public void Resetpiercing() => __pbn__piercing = null; - private bool? __pbn__piercing; - - [global::ProtoBuf.ProtoMember(22)] - [global::System.ComponentModel.DefaultValue("")] - public string effect_name - { - get => __pbn__effect_name ?? ""; - set => __pbn__effect_name = value; - } - public bool ShouldSerializeeffect_name() => __pbn__effect_name != null; - public void Reseteffect_name() => __pbn__effect_name = null; - private string __pbn__effect_name; - - [global::ProtoBuf.ProtoMember(23)] - public uint target_combat_position - { - get => __pbn__target_combat_position.GetValueOrDefault(); - set => __pbn__target_combat_position = value; - } - public bool ShouldSerializetarget_combat_position() => __pbn__target_combat_position != null; - public void Resettarget_combat_position() => __pbn__target_combat_position = null; - private uint? __pbn__target_combat_position; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgDeckValidator : 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 version - { - get => __pbn__version.GetValueOrDefault(); - set => __pbn__version = value; - } - public bool ShouldSerializeversion() => __pbn__version != null; - public void Resetversion() => __pbn__version = null; - private uint? __pbn__version; - - [global::ProtoBuf.ProtoMember(2)] - public bool must_own_cards - { - get => __pbn__must_own_cards.GetValueOrDefault(); - set => __pbn__must_own_cards = value; - } - public bool ShouldSerializemust_own_cards() => __pbn__must_own_cards != null; - public void Resetmust_own_cards() => __pbn__must_own_cards = null; - private bool? __pbn__must_own_cards; - - [global::ProtoBuf.ProtoMember(4)] - public global::System.Collections.Generic.List set_ids { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(5)] - public uint main_min - { - get => __pbn__main_min.GetValueOrDefault(); - set => __pbn__main_min = value; - } - public bool ShouldSerializemain_min() => __pbn__main_min != null; - public void Resetmain_min() => __pbn__main_min = null; - private uint? __pbn__main_min; - - [global::ProtoBuf.ProtoMember(6)] - public uint main_max - { - get => __pbn__main_max.GetValueOrDefault(); - set => __pbn__main_max = value; - } - public bool ShouldSerializemain_max() => __pbn__main_max != null; - public void Resetmain_max() => __pbn__main_max = null; - private uint? __pbn__main_max; - - [global::ProtoBuf.ProtoMember(7)] - public uint items_min - { - get => __pbn__items_min.GetValueOrDefault(); - set => __pbn__items_min = value; - } - public bool ShouldSerializeitems_min() => __pbn__items_min != null; - public void Resetitems_min() => __pbn__items_min = null; - private uint? __pbn__items_min; - - [global::ProtoBuf.ProtoMember(8)] - public uint items_max - { - get => __pbn__items_max.GetValueOrDefault(); - set => __pbn__items_max = value; - } - public bool ShouldSerializeitems_max() => __pbn__items_max != null; - public void Resetitems_max() => __pbn__items_max = null; - private uint? __pbn__items_max; - - [global::ProtoBuf.ProtoMember(9)] - public uint main_max_instances - { - get => __pbn__main_max_instances.GetValueOrDefault(); - set => __pbn__main_max_instances = value; - } - public bool ShouldSerializemain_max_instances() => __pbn__main_max_instances != null; - public void Resetmain_max_instances() => __pbn__main_max_instances = null; - private uint? __pbn__main_max_instances; - - [global::ProtoBuf.ProtoMember(10)] - public uint items_max_instances - { - get => __pbn__items_max_instances.GetValueOrDefault(); - set => __pbn__items_max_instances = value; - } - public bool ShouldSerializeitems_max_instances() => __pbn__items_max_instances != null; - public void Resetitems_max_instances() => __pbn__items_max_instances = null; - private uint? __pbn__items_max_instances; - - [global::ProtoBuf.ProtoMember(11)] - public uint hero_max_instances - { - get => __pbn__hero_max_instances.GetValueOrDefault(); - set => __pbn__hero_max_instances = value; - } - public bool ShouldSerializehero_max_instances() => __pbn__hero_max_instances != null; - public void Resethero_max_instances() => __pbn__hero_max_instances = null; - private uint? __pbn__hero_max_instances; - - [global::ProtoBuf.ProtoMember(12)] - public global::System.Collections.Generic.List card_limits { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(13)] - public global::System.Collections.Generic.List required_cards { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(14)] - public bool include_active_sets - { - get => __pbn__include_active_sets.GetValueOrDefault(); - set => __pbn__include_active_sets = value; - } - public bool ShouldSerializeinclude_active_sets() => __pbn__include_active_sets != null; - public void Resetinclude_active_sets() => __pbn__include_active_sets = null; - private bool? __pbn__include_active_sets; - - [global::ProtoBuf.ProtoMember(15)] - public global::System.Collections.Generic.List blocked_rarities { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(16)] - public uint min_deck_colors - { - get => __pbn__min_deck_colors.GetValueOrDefault(); - set => __pbn__min_deck_colors = value; - } - public bool ShouldSerializemin_deck_colors() => __pbn__min_deck_colors != null; - public void Resetmin_deck_colors() => __pbn__min_deck_colors = null; - private uint? __pbn__min_deck_colors; - - [global::ProtoBuf.ProtoMember(17)] - public uint max_deck_colors - { - get => __pbn__max_deck_colors.GetValueOrDefault(); - set => __pbn__max_deck_colors = value; - } - public bool ShouldSerializemax_deck_colors() => __pbn__max_deck_colors != null; - public void Resetmax_deck_colors() => __pbn__max_deck_colors = null; - private uint? __pbn__max_deck_colors; - - [global::ProtoBuf.ProtoMember(18)] - public global::System.Collections.Generic.List blocked_colors { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(19)] - public bool random_decks - { - get => __pbn__random_decks.GetValueOrDefault(); - set => __pbn__random_decks = value; - } - public bool ShouldSerializerandom_decks() => __pbn__random_decks != null; - public void Resetrandom_decks() => __pbn__random_decks = null; - private bool? __pbn__random_decks; - - [global::ProtoBuf.ProtoMember(20)] - public global::System.Collections.Generic.List deck_choices { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class Deck : 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 byte[] deck_bytes - { - get => __pbn__deck_bytes; - set => __pbn__deck_bytes = value; - } - public bool ShouldSerializedeck_bytes() => __pbn__deck_bytes != null; - public void Resetdeck_bytes() => __pbn__deck_bytes = null; - private byte[] __pbn__deck_bytes; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string deck_name - { - get => __pbn__deck_name ?? ""; - set => __pbn__deck_name = value; - } - public bool ShouldSerializedeck_name() => __pbn__deck_name != null; - public void Resetdeck_name() => __pbn__deck_name = null; - private string __pbn__deck_name; - - [global::ProtoBuf.ProtoMember(3)] - public uint deck_id - { - get => __pbn__deck_id.GetValueOrDefault(); - set => __pbn__deck_id = value; - } - public bool ShouldSerializedeck_id() => __pbn__deck_id != null; - public void Resetdeck_id() => __pbn__deck_id = null; - private uint? __pbn__deck_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CardLimit : 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 card_id - { - get => __pbn__card_id.GetValueOrDefault(); - set => __pbn__card_id = value; - } - public bool ShouldSerializecard_id() => __pbn__card_id != null; - public void Resetcard_id() => __pbn__card_id = null; - private uint? __pbn__card_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint card_count - { - get => __pbn__card_count.GetValueOrDefault(); - set => __pbn__card_count = value; - } - public bool ShouldSerializecard_count() => __pbn__card_count != null; - public void Resetcard_count() => __pbn__card_count = null; - private uint? __pbn__card_count; - - } - - [global::ProtoBuf.ProtoContract()] - public enum ERarity - { - eRarity_Common = 1, - eRarity_Uncommon = 2, - eRarity_Rare = 3, - } - - [global::ProtoBuf.ProtoContract()] - public enum EColor - { - eColor_Red = 0, - eColor_Blue = 1, - eColor_Green = 2, - eColor_Black = 3, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgAnyToGCReportAsserts : 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 version - { - get => __pbn__version.GetValueOrDefault(); - set => __pbn__version = value; - } - public bool ShouldSerializeversion() => __pbn__version != null; - public void Resetversion() => __pbn__version = null; - private uint? __pbn__version; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List asserts { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class TrackedAssert : 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)] - [global::System.ComponentModel.DefaultValue("")] - public string filename - { - get => __pbn__filename ?? ""; - set => __pbn__filename = value; - } - public bool ShouldSerializefilename() => __pbn__filename != null; - public void Resetfilename() => __pbn__filename = null; - private string __pbn__filename; - - [global::ProtoBuf.ProtoMember(2)] - public uint line_number - { - get => __pbn__line_number.GetValueOrDefault(); - set => __pbn__line_number = value; - } - public bool ShouldSerializeline_number() => __pbn__line_number != null; - public void Resetline_number() => __pbn__line_number = null; - private uint? __pbn__line_number; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue("")] - public string sample_msg - { - get => __pbn__sample_msg ?? ""; - set => __pbn__sample_msg = value; - } - public bool ShouldSerializesample_msg() => __pbn__sample_msg != null; - public void Resetsample_msg() => __pbn__sample_msg = null; - private string __pbn__sample_msg; - - [global::ProtoBuf.ProtoMember(4)] - [global::System.ComponentModel.DefaultValue("")] - public string sample_stack - { - get => __pbn__sample_stack ?? ""; - set => __pbn__sample_stack = value; - } - public bool ShouldSerializesample_stack() => __pbn__sample_stack != null; - public void Resetsample_stack() => __pbn__sample_stack = null; - private string __pbn__sample_stack; - - [global::ProtoBuf.ProtoMember(5)] - public uint times_fired - { - get => __pbn__times_fired.GetValueOrDefault(); - set => __pbn__times_fired = value; - } - public bool ShouldSerializetimes_fired() => __pbn__times_fired != null; - public void Resettimes_fired() => __pbn__times_fired = null; - private uint? __pbn__times_fired; - - [global::ProtoBuf.ProtoMember(6)] - [global::System.ComponentModel.DefaultValue("")] - public string function_name - { - get => __pbn__function_name ?? ""; - set => __pbn__function_name = value; - } - public bool ShouldSerializefunction_name() => __pbn__function_name != null; - public void Resetfunction_name() => __pbn__function_name = null; - private string __pbn__function_name; - - [global::ProtoBuf.ProtoMember(7)] - [global::System.ComponentModel.DefaultValue("")] - public string condition - { - get => __pbn__condition ?? ""; - set => __pbn__condition = value; - } - public bool ShouldSerializecondition() => __pbn__condition != null; - public void Resetcondition() => __pbn__condition = null; - private string __pbn__condition; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgAnyToGCReportAssertsResponse : 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.ProtoContract()] - public partial class CMsgGauntletConfig : 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 gauntlet_id - { - get => __pbn__gauntlet_id.GetValueOrDefault(); - set => __pbn__gauntlet_id = value; - } - public bool ShouldSerializegauntlet_id() => __pbn__gauntlet_id != null; - public void Resetgauntlet_id() => __pbn__gauntlet_id = null; - private uint? __pbn__gauntlet_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint activate_time - { - get => __pbn__activate_time.GetValueOrDefault(); - set => __pbn__activate_time = value; - } - public bool ShouldSerializeactivate_time() => __pbn__activate_time != null; - public void Resetactivate_time() => __pbn__activate_time = null; - private uint? __pbn__activate_time; - - [global::ProtoBuf.ProtoMember(3)] - public uint max_wins - { - get => __pbn__max_wins.GetValueOrDefault(); - set => __pbn__max_wins = value; - } - public bool ShouldSerializemax_wins() => __pbn__max_wins != null; - public void Resetmax_wins() => __pbn__max_wins = null; - private uint? __pbn__max_wins; - - [global::ProtoBuf.ProtoMember(4)] - public uint max_losses - { - get => __pbn__max_losses.GetValueOrDefault(); - set => __pbn__max_losses = value; - } - public bool ShouldSerializemax_losses() => __pbn__max_losses != null; - public void Resetmax_losses() => __pbn__max_losses = null; - private uint? __pbn__max_losses; - - [global::ProtoBuf.ProtoMember(5)] - public uint max_games - { - get => __pbn__max_games.GetValueOrDefault(); - set => __pbn__max_games = value; - } - public bool ShouldSerializemax_games() => __pbn__max_games != null; - public void Resetmax_games() => __pbn__max_games = null; - private uint? __pbn__max_games; - - [global::ProtoBuf.ProtoMember(7)] - public global::System.Collections.Generic.List rewards { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(8)] - public CMsgDeckValidator validator { get; set; } - - [global::ProtoBuf.ProtoMember(10)] - public bool register_deck - { - get => __pbn__register_deck.GetValueOrDefault(); - set => __pbn__register_deck = value; - } - public bool ShouldSerializeregister_deck() => __pbn__register_deck != null; - public void Resetregister_deck() => __pbn__register_deck = null; - private bool? __pbn__register_deck; - - [global::ProtoBuf.ProtoMember(12)] - public bool auto_populate_deck - { - get => __pbn__auto_populate_deck.GetValueOrDefault(); - set => __pbn__auto_populate_deck = value; - } - public bool ShouldSerializeauto_populate_deck() => __pbn__auto_populate_deck != null; - public void Resetauto_populate_deck() => __pbn__auto_populate_deck = null; - private bool? __pbn__auto_populate_deck; - - [global::ProtoBuf.ProtoMember(14)] - public bool can_modify_deck - { - get => __pbn__can_modify_deck.GetValueOrDefault(); - set => __pbn__can_modify_deck = value; - } - public bool ShouldSerializecan_modify_deck() => __pbn__can_modify_deck != null; - public void Resetcan_modify_deck() => __pbn__can_modify_deck = null; - private bool? __pbn__can_modify_deck; - - [global::ProtoBuf.ProtoMember(15)] - public bool is_active - { - get => __pbn__is_active.GetValueOrDefault(); - set => __pbn__is_active = value; - } - public bool ShouldSerializeis_active() => __pbn__is_active != null; - public void Resetis_active() => __pbn__is_active = null; - private bool? __pbn__is_active; - - [global::ProtoBuf.ProtoMember(16)] - public bool is_featured - { - get => __pbn__is_featured.GetValueOrDefault(); - set => __pbn__is_featured = value; - } - public bool ShouldSerializeis_featured() => __pbn__is_featured != null; - public void Resetis_featured() => __pbn__is_featured = null; - private bool? __pbn__is_featured; - - [global::ProtoBuf.ProtoMember(17)] - public global::System.Collections.Generic.List entry_types { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(18)] - public uint limited_format - { - get => __pbn__limited_format.GetValueOrDefault(); - set => __pbn__limited_format = value; - } - public bool ShouldSerializelimited_format() => __pbn__limited_format != null; - public void Resetlimited_format() => __pbn__limited_format = null; - private uint? __pbn__limited_format; - - [global::ProtoBuf.ProtoMember(19)] - public uint expiration_time - { - get => __pbn__expiration_time.GetValueOrDefault(); - set => __pbn__expiration_time = value; - } - public bool ShouldSerializeexpiration_time() => __pbn__expiration_time != null; - public void Resetexpiration_time() => __pbn__expiration_time = null; - private uint? __pbn__expiration_time; - - [global::ProtoBuf.ProtoMember(20)] - public uint close_join_time - { - get => __pbn__close_join_time.GetValueOrDefault(); - set => __pbn__close_join_time = value; - } - public bool ShouldSerializeclose_join_time() => __pbn__close_join_time != null; - public void Resetclose_join_time() => __pbn__close_join_time = null; - private uint? __pbn__close_join_time; - - [global::ProtoBuf.ProtoMember(21)] - public uint close_mm_time - { - get => __pbn__close_mm_time.GetValueOrDefault(); - set => __pbn__close_mm_time = value; - } - public bool ShouldSerializeclose_mm_time() => __pbn__close_mm_time != null; - public void Resetclose_mm_time() => __pbn__close_mm_time = null; - private uint? __pbn__close_mm_time; - - [global::ProtoBuf.ProtoMember(22)] - public uint max_wins_trophy_id - { - get => __pbn__max_wins_trophy_id.GetValueOrDefault(); - set => __pbn__max_wins_trophy_id = value; - } - public bool ShouldSerializemax_wins_trophy_id() => __pbn__max_wins_trophy_id != null; - public void Resetmax_wins_trophy_id() => __pbn__max_wins_trophy_id = null; - private uint? __pbn__max_wins_trophy_id; - - [global::ProtoBuf.ProtoMember(23)] - public uint cooldown_time - { - get => __pbn__cooldown_time.GetValueOrDefault(); - set => __pbn__cooldown_time = value; - } - public bool ShouldSerializecooldown_time() => __pbn__cooldown_time != null; - public void Resetcooldown_time() => __pbn__cooldown_time = null; - private uint? __pbn__cooldown_time; - - [global::ProtoBuf.ProtoMember(24)] - public uint max_wins_per_deck_trophy_id - { - get => __pbn__max_wins_per_deck_trophy_id.GetValueOrDefault(); - set => __pbn__max_wins_per_deck_trophy_id = value; - } - public bool ShouldSerializemax_wins_per_deck_trophy_id() => __pbn__max_wins_per_deck_trophy_id != null; - public void Resetmax_wins_per_deck_trophy_id() => __pbn__max_wins_per_deck_trophy_id = null; - private uint? __pbn__max_wins_per_deck_trophy_id; - - [global::ProtoBuf.ProtoMember(25)] - public uint max_wins_random_mode_trophy_id - { - get => __pbn__max_wins_random_mode_trophy_id.GetValueOrDefault(); - set => __pbn__max_wins_random_mode_trophy_id = value; - } - public bool ShouldSerializemax_wins_random_mode_trophy_id() => __pbn__max_wins_random_mode_trophy_id != null; - public void Resetmax_wins_random_mode_trophy_id() => __pbn__max_wins_random_mode_trophy_id = null; - private uint? __pbn__max_wins_random_mode_trophy_id; - - [global::ProtoBuf.ProtoMember(26)] - public uint is_ai_gauntlet - { - get => __pbn__is_ai_gauntlet.GetValueOrDefault(); - set => __pbn__is_ai_gauntlet = value; - } - public bool ShouldSerializeis_ai_gauntlet() => __pbn__is_ai_gauntlet != null; - public void Resetis_ai_gauntlet() => __pbn__is_ai_gauntlet = null; - private uint? __pbn__is_ai_gauntlet; - - [global::ProtoBuf.ProtoMember(27)] - public global::System.Collections.Generic.List ai_validators { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(29)] - public global::System.Collections.Generic.List gauntlet_points_leaderboards { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(30)] - [global::System.ComponentModel.DefaultValue("")] - public string timer - { - get => __pbn__timer ?? ""; - set => __pbn__timer = value; - } - public bool ShouldSerializetimer() => __pbn__timer != null; - public void Resettimer() => __pbn__timer = null; - private string __pbn__timer; - - [global::ProtoBuf.ProtoContract()] - public partial class RewardTier : 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 global::System.Collections.Generic.List trophy_grant { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List item_grant { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3)] - public uint min_wins - { - get => __pbn__min_wins.GetValueOrDefault(); - set => __pbn__min_wins = value; - } - public bool ShouldSerializemin_wins() => __pbn__min_wins != null; - public void Resetmin_wins() => __pbn__min_wins = null; - private uint? __pbn__min_wins; - - [global::ProtoBuf.ProtoMember(4)] - public global::System.Collections.Generic.List loot_list_rolls { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class Grant : 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 grant_id - { - get => __pbn__grant_id.GetValueOrDefault(); - set => __pbn__grant_id = value; - } - public bool ShouldSerializegrant_id() => __pbn__grant_id != null; - public void Resetgrant_id() => __pbn__grant_id = null; - private uint? __pbn__grant_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint quantity - { - get => __pbn__quantity.GetValueOrDefault(); - set => __pbn__quantity = value; - } - public bool ShouldSerializequantity() => __pbn__quantity != null; - public void Resetquantity() => __pbn__quantity = null; - private uint? __pbn__quantity; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class EntryType : 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 entry_id - { - get => __pbn__entry_id.GetValueOrDefault(); - set => __pbn__entry_id = value; - } - public bool ShouldSerializeentry_id() => __pbn__entry_id != null; - public void Resetentry_id() => __pbn__entry_id = null; - private uint? __pbn__entry_id; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List item_costs { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3)] - public uint limited_format_overide - { - get => __pbn__limited_format_overide.GetValueOrDefault(); - set => __pbn__limited_format_overide = value; - } - public bool ShouldSerializelimited_format_overide() => __pbn__limited_format_overide != null; - public void Resetlimited_format_overide() => __pbn__limited_format_overide = null; - private uint? __pbn__limited_format_overide; - - [global::ProtoBuf.ProtoContract()] - public partial class ItemCost : 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 def_index - { - get => __pbn__def_index.GetValueOrDefault(); - set => __pbn__def_index = value; - } - public bool ShouldSerializedef_index() => __pbn__def_index != null; - public void Resetdef_index() => __pbn__def_index = null; - private uint? __pbn__def_index; - - [global::ProtoBuf.ProtoMember(2)] - public uint quantity - { - get => __pbn__quantity.GetValueOrDefault(); - set => __pbn__quantity = value; - } - public bool ShouldSerializequantity() => __pbn__quantity != null; - public void Resetquantity() => __pbn__quantity = null; - private uint? __pbn__quantity; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class GauntletPointsLeaderboard : 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 expiration_time - { - get => __pbn__expiration_time.GetValueOrDefault(); - set => __pbn__expiration_time = value; - } - public bool ShouldSerializeexpiration_time() => __pbn__expiration_time != null; - public void Resetexpiration_time() => __pbn__expiration_time = null; - private uint? __pbn__expiration_time; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgLimitedFormat : 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 limited_format_id - { - get => __pbn__limited_format_id.GetValueOrDefault(); - set => __pbn__limited_format_id = value; - } - public bool ShouldSerializelimited_format_id() => __pbn__limited_format_id != null; - public void Resetlimited_format_id() => __pbn__limited_format_id = null; - private uint? __pbn__limited_format_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint grant_stages - { - get => __pbn__grant_stages.GetValueOrDefault(); - set => __pbn__grant_stages = value; - } - public bool ShouldSerializegrant_stages() => __pbn__grant_stages != null; - public void Resetgrant_stages() => __pbn__grant_stages = null; - private uint? __pbn__grant_stages; - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List grant_stage_info { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(4)] - public bool create_real_copies - { - get => __pbn__create_real_copies.GetValueOrDefault(); - set => __pbn__create_real_copies = value; - } - public bool ShouldSerializecreate_real_copies() => __pbn__create_real_copies != null; - public void Resetcreate_real_copies() => __pbn__create_real_copies = null; - private bool? __pbn__create_real_copies; - - [global::ProtoBuf.ProtoContract()] - public partial class LimitedStage : 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)] - [global::System.ComponentModel.DefaultValue(CMsgLimitedFormat.EGrantType.kGrant_Unknown)] - public CMsgLimitedFormat.EGrantType grant_type - { - get => __pbn__grant_type ?? CMsgLimitedFormat.EGrantType.kGrant_Unknown; - set => __pbn__grant_type = value; - } - public bool ShouldSerializegrant_type() => __pbn__grant_type != null; - public void Resetgrant_type() => __pbn__grant_type = null; - private CMsgLimitedFormat.EGrantType? __pbn__grant_type; - - [global::ProtoBuf.ProtoMember(2)] - public uint grant_count - { - get => __pbn__grant_count.GetValueOrDefault(); - set => __pbn__grant_count = value; - } - public bool ShouldSerializegrant_count() => __pbn__grant_count != null; - public void Resetgrant_count() => __pbn__grant_count = null; - private uint? __pbn__grant_count; - - [global::ProtoBuf.ProtoMember(3)] - public uint repeat_count - { - get => __pbn__repeat_count.GetValueOrDefault(); - set => __pbn__repeat_count = value; - } - public bool ShouldSerializerepeat_count() => __pbn__repeat_count != null; - public void Resetrepeat_count() => __pbn__repeat_count = null; - private uint? __pbn__repeat_count; - - [global::ProtoBuf.ProtoMember(4)] - [global::System.ComponentModel.DefaultValue("")] - public string display_msg - { - get => __pbn__display_msg ?? ""; - set => __pbn__display_msg = value; - } - public bool ShouldSerializedisplay_msg() => __pbn__display_msg != null; - public void Resetdisplay_msg() => __pbn__display_msg = null; - private string __pbn__display_msg; - - } - - [global::ProtoBuf.ProtoContract()] - public enum EGrantType - { - kGrant_Unknown = 0, - kGrant_Hero = 1, - kGrant_Card = 2, - kGrant_Item = 3, - kGrant_Pack = 4, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CSODCGPrivateLobby : 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 ulong private_lobby_id - { - get => __pbn__private_lobby_id.GetValueOrDefault(); - set => __pbn__private_lobby_id = value; - } - public bool ShouldSerializeprivate_lobby_id() => __pbn__private_lobby_id != null; - public void Resetprivate_lobby_id() => __pbn__private_lobby_id = null; - private ulong? __pbn__private_lobby_id; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List members { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List invites { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(4)] - public global::System.Collections.Generic.List extra_messages { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(5)] - public bool in_match_making - { - get => __pbn__in_match_making.GetValueOrDefault(); - set => __pbn__in_match_making = value; - } - public bool ShouldSerializein_match_making() => __pbn__in_match_making != null; - public void Resetin_match_making() => __pbn__in_match_making = null; - private bool? __pbn__in_match_making; - - [global::ProtoBuf.ProtoMember(6)] - [global::System.ComponentModel.DefaultValue("")] - public string server_search_key - { - get => __pbn__server_search_key ?? ""; - set => __pbn__server_search_key = value; - } - public bool ShouldSerializeserver_search_key() => __pbn__server_search_key != null; - public void Resetserver_search_key() => __pbn__server_search_key = null; - private string __pbn__server_search_key; - - [global::ProtoBuf.ProtoMember(7)] - public bool are_decks_visible - { - get => __pbn__are_decks_visible.GetValueOrDefault(); - set => __pbn__are_decks_visible = value; - } - public bool ShouldSerializeare_decks_visible() => __pbn__are_decks_visible != null; - public void Resetare_decks_visible() => __pbn__are_decks_visible = null; - private bool? __pbn__are_decks_visible; - - [global::ProtoBuf.ProtoMember(8)] - public global::System.Collections.Generic.List match_list { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(9)] - [global::System.ComponentModel.DefaultValue(EDCGLobbyTimer.k_eDCGLobbyTimer_Unspecified)] - public EDCGLobbyTimer timer_mode - { - get => __pbn__timer_mode ?? EDCGLobbyTimer.k_eDCGLobbyTimer_Unspecified; - set => __pbn__timer_mode = value; - } - public bool ShouldSerializetimer_mode() => __pbn__timer_mode != null; - public void Resettimer_mode() => __pbn__timer_mode = null; - private EDCGLobbyTimer? __pbn__timer_mode; - - [global::ProtoBuf.ProtoMember(10, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong match_lobby_id - { - get => __pbn__match_lobby_id.GetValueOrDefault(); - set => __pbn__match_lobby_id = value; - } - public bool ShouldSerializematch_lobby_id() => __pbn__match_lobby_id != null; - public void Resetmatch_lobby_id() => __pbn__match_lobby_id = null; - private ulong? __pbn__match_lobby_id; - - [global::ProtoBuf.ProtoMember(11)] - public global::System.Collections.Generic.List shared_decks { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(12)] - public CMsgDeckValidator deck_validator { get; set; } - - [global::ProtoBuf.ProtoMember(15)] - public uint min_client_version - { - get => __pbn__min_client_version.GetValueOrDefault(); - set => __pbn__min_client_version = value; - } - public bool ShouldSerializemin_client_version() => __pbn__min_client_version != null; - public void Resetmin_client_version() => __pbn__min_client_version = null; - private uint? __pbn__min_client_version; - - [global::ProtoBuf.ProtoMember(16)] - public uint max_client_version - { - get => __pbn__max_client_version.GetValueOrDefault(); - set => __pbn__max_client_version = value; - } - public bool ShouldSerializemax_client_version() => __pbn__max_client_version != null; - public void Resetmax_client_version() => __pbn__max_client_version = null; - private uint? __pbn__max_client_version; - - [global::ProtoBuf.ProtoMember(17)] - public ulong steam_chat_group_id - { - get => __pbn__steam_chat_group_id.GetValueOrDefault(); - set => __pbn__steam_chat_group_id = value; - } - public bool ShouldSerializesteam_chat_group_id() => __pbn__steam_chat_group_id != null; - public void Resetsteam_chat_group_id() => __pbn__steam_chat_group_id = null; - private ulong? __pbn__steam_chat_group_id; - - [global::ProtoBuf.ProtoMember(18, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong lobby_salt - { - get => __pbn__lobby_salt.GetValueOrDefault(); - set => __pbn__lobby_salt = value; - } - public bool ShouldSerializelobby_salt() => __pbn__lobby_salt != null; - public void Resetlobby_salt() => __pbn__lobby_salt = null; - private ulong? __pbn__lobby_salt; - - [global::ProtoBuf.ProtoMember(19)] - public uint validator_id - { - get => __pbn__validator_id.GetValueOrDefault(); - set => __pbn__validator_id = value; - } - public bool ShouldSerializevalidator_id() => __pbn__validator_id != null; - public void Resetvalidator_id() => __pbn__validator_id = null; - private uint? __pbn__validator_id; - - [global::ProtoBuf.ProtoContract()] - public partial class Member : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string persona_name - { - get => __pbn__persona_name ?? ""; - set => __pbn__persona_name = value; - } - public bool ShouldSerializepersona_name() => __pbn__persona_name != null; - public void Resetpersona_name() => __pbn__persona_name = null; - private string __pbn__persona_name; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue(EDCGLobbyTeam.k_EDCGLobbyTeam_Team0)] - public EDCGLobbyTeam team - { - get => __pbn__team ?? EDCGLobbyTeam.k_EDCGLobbyTeam_Team0; - set => __pbn__team = value; - } - public bool ShouldSerializeteam() => __pbn__team != null; - public void Resetteam() => __pbn__team = null; - private EDCGLobbyTeam? __pbn__team; - - [global::ProtoBuf.ProtoMember(4)] - public bool is_ready - { - get => __pbn__is_ready.GetValueOrDefault(); - set => __pbn__is_ready = value; - } - public bool ShouldSerializeis_ready() => __pbn__is_ready != null; - public void Resetis_ready() => __pbn__is_ready = null; - private bool? __pbn__is_ready; - - [global::ProtoBuf.ProtoMember(5)] - public byte[] deck_bytes - { - get => __pbn__deck_bytes; - set => __pbn__deck_bytes = value; - } - public bool ShouldSerializedeck_bytes() => __pbn__deck_bytes != null; - public void Resetdeck_bytes() => __pbn__deck_bytes = null; - private byte[] __pbn__deck_bytes; - - [global::ProtoBuf.ProtoMember(7)] - public bool has_deck - { - get => __pbn__has_deck.GetValueOrDefault(); - set => __pbn__has_deck = value; - } - public bool ShouldSerializehas_deck() => __pbn__has_deck != null; - public void Resethas_deck() => __pbn__has_deck = null; - private bool? __pbn__has_deck; - - [global::ProtoBuf.ProtoMember(8)] - public uint client_version - { - get => __pbn__client_version.GetValueOrDefault(); - set => __pbn__client_version = value; - } - public bool ShouldSerializeclient_version() => __pbn__client_version != null; - public void Resetclient_version() => __pbn__client_version = null; - private uint? __pbn__client_version; - - [global::ProtoBuf.ProtoMember(9)] - public CMsgRegionPingTimesClient ping_times { get; set; } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class Invite : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string persona_name - { - get => __pbn__persona_name ?? ""; - set => __pbn__persona_name = value; - } - public bool ShouldSerializepersona_name() => __pbn__persona_name != null; - public void Resetpersona_name() => __pbn__persona_name = null; - private string __pbn__persona_name; - - [global::ProtoBuf.ProtoMember(3)] - public uint invited_by - { - get => __pbn__invited_by.GetValueOrDefault(); - set => __pbn__invited_by = value; - } - public bool ShouldSerializeinvited_by() => __pbn__invited_by != null; - public void Resetinvited_by() => __pbn__invited_by = null; - private uint? __pbn__invited_by; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class SharedDeck : 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 shared_by_account_id - { - get => __pbn__shared_by_account_id.GetValueOrDefault(); - set => __pbn__shared_by_account_id = value; - } - public bool ShouldSerializeshared_by_account_id() => __pbn__shared_by_account_id != null; - public void Resetshared_by_account_id() => __pbn__shared_by_account_id = null; - private uint? __pbn__shared_by_account_id; - - [global::ProtoBuf.ProtoMember(2)] - public byte[] deck_bytes - { - get => __pbn__deck_bytes; - set => __pbn__deck_bytes = value; - } - public bool ShouldSerializedeck_bytes() => __pbn__deck_bytes != null; - public void Resetdeck_bytes() => __pbn__deck_bytes = null; - private byte[] __pbn__deck_bytes; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue("")] - public string deck_name - { - get => __pbn__deck_name ?? ""; - set => __pbn__deck_name = value; - } - public bool ShouldSerializedeck_name() => __pbn__deck_name != null; - public void Resetdeck_name() => __pbn__deck_name = null; - private string __pbn__deck_name; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class Match : 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 ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint winning_account_id - { - get => __pbn__winning_account_id.GetValueOrDefault(); - set => __pbn__winning_account_id = value; - } - public bool ShouldSerializewinning_account_id() => __pbn__winning_account_id != null; - public void Resetwinning_account_id() => __pbn__winning_account_id = null; - private uint? __pbn__winning_account_id; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CSODCGTourneyInvite : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(3)] - public bool is_full - { - get => __pbn__is_full.GetValueOrDefault(); - set => __pbn__is_full = value; - } - public bool ShouldSerializeis_full() => __pbn__is_full != null; - public void Resetis_full() => __pbn__is_full = null; - private bool? __pbn__is_full; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CSODCGTourneyNextMatch : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - [global::ProtoBuf.ProtoMember(4)] - public uint series_id - { - get => __pbn__series_id.GetValueOrDefault(); - set => __pbn__series_id = value; - } - public bool ShouldSerializeseries_id() => __pbn__series_id != null; - public void Resetseries_id() => __pbn__series_id = null; - private uint? __pbn__series_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CDCGTourney : 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 ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue(EStage.k_eStage_Configure)] - public EStage stage - { - get => __pbn__stage ?? EStage.k_eStage_Configure; - set => __pbn__stage = value; - } - public bool ShouldSerializestage() => __pbn__stage != null; - public void Resetstage() => __pbn__stage = null; - private EStage? __pbn__stage; - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List validators { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(4)] - public uint stage_time - { - get => __pbn__stage_time.GetValueOrDefault(); - set => __pbn__stage_time = value; - } - public bool ShouldSerializestage_time() => __pbn__stage_time != null; - public void Resetstage_time() => __pbn__stage_time = null; - private uint? __pbn__stage_time; - - [global::ProtoBuf.ProtoMember(5)] - public uint stats_salt - { - get => __pbn__stats_salt.GetValueOrDefault(); - set => __pbn__stats_salt = value; - } - public bool ShouldSerializestats_salt() => __pbn__stats_salt != null; - public void Resetstats_salt() => __pbn__stats_salt = null; - private uint? __pbn__stats_salt; - - [global::ProtoBuf.ProtoMember(6)] - [global::System.ComponentModel.DefaultValue("")] - public string tourney_msg - { - get => __pbn__tourney_msg ?? ""; - set => __pbn__tourney_msg = value; - } - public bool ShouldSerializetourney_msg() => __pbn__tourney_msg != null; - public void Resettourney_msg() => __pbn__tourney_msg = null; - private string __pbn__tourney_msg; - - [global::ProtoBuf.ProtoMember(7)] - [global::System.ComponentModel.DefaultValue("")] - public string tourney_status - { - get => __pbn__tourney_status ?? ""; - set => __pbn__tourney_status = value; - } - public bool ShouldSerializetourney_status() => __pbn__tourney_status != null; - public void Resettourney_status() => __pbn__tourney_status = null; - private string __pbn__tourney_status; - - [global::ProtoBuf.ProtoMember(8)] - public global::System.Collections.Generic.List phases { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(9)] - public global::System.Collections.Generic.List config_vals { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(10)] - public global::System.Collections.Generic.List invites { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(11)] - public global::System.Collections.Generic.List members { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(12)] - [global::System.ComponentModel.DefaultValue("")] - public string tourney_name - { - get => __pbn__tourney_name ?? ""; - set => __pbn__tourney_name = value; - } - public bool ShouldSerializetourney_name() => __pbn__tourney_name != null; - public void Resettourney_name() => __pbn__tourney_name = null; - private string __pbn__tourney_name; - - [global::ProtoBuf.ProtoMember(13)] - public global::System.Collections.Generic.List shared_decks { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(14)] - public uint created_by - { - get => __pbn__created_by.GetValueOrDefault(); - set => __pbn__created_by = value; - } - public bool ShouldSerializecreated_by() => __pbn__created_by != null; - public void Resetcreated_by() => __pbn__created_by = null; - private uint? __pbn__created_by; - - [global::ProtoBuf.ProtoMember(15)] - public uint auto_close_time - { - get => __pbn__auto_close_time.GetValueOrDefault(); - set => __pbn__auto_close_time = value; - } - public bool ShouldSerializeauto_close_time() => __pbn__auto_close_time != null; - public void Resetauto_close_time() => __pbn__auto_close_time = null; - private uint? __pbn__auto_close_time; - - [global::ProtoBuf.ProtoMember(16)] - public ulong steam_chat_room_id - { - get => __pbn__steam_chat_room_id.GetValueOrDefault(); - set => __pbn__steam_chat_room_id = value; - } - public bool ShouldSerializesteam_chat_room_id() => __pbn__steam_chat_room_id != null; - public void Resetsteam_chat_room_id() => __pbn__steam_chat_room_id = null; - private ulong? __pbn__steam_chat_room_id; - - [global::ProtoBuf.ProtoMember(17)] - public global::System.Collections.Generic.List paid_entry_items { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(18)] - public global::System.Collections.Generic.List entry_items { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(19)] - public uint created_time - { - get => __pbn__created_time.GetValueOrDefault(); - set => __pbn__created_time = value; - } - public bool ShouldSerializecreated_time() => __pbn__created_time != null; - public void Resetcreated_time() => __pbn__created_time = null; - private uint? __pbn__created_time; - - [global::ProtoBuf.ProtoContract()] - public partial class Match : 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 ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class Series : 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 series_id - { - get => __pbn__series_id.GetValueOrDefault(); - set => __pbn__series_id = value; - } - public bool ShouldSerializeseries_id() => __pbn__series_id != null; - public void Resetseries_id() => __pbn__series_id = null; - private uint? __pbn__series_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint account_1 - { - get => __pbn__account_1.GetValueOrDefault(); - set => __pbn__account_1 = value; - } - public bool ShouldSerializeaccount_1() => __pbn__account_1 != null; - public void Resetaccount_1() => __pbn__account_1 = null; - private uint? __pbn__account_1; - - [global::ProtoBuf.ProtoMember(3)] - public uint wins_1 - { - get => __pbn__wins_1.GetValueOrDefault(); - set => __pbn__wins_1 = value; - } - public bool ShouldSerializewins_1() => __pbn__wins_1 != null; - public void Resetwins_1() => __pbn__wins_1 = null; - private uint? __pbn__wins_1; - - [global::ProtoBuf.ProtoMember(4)] - public uint account_2 - { - get => __pbn__account_2.GetValueOrDefault(); - set => __pbn__account_2 = value; - } - public bool ShouldSerializeaccount_2() => __pbn__account_2 != null; - public void Resetaccount_2() => __pbn__account_2 = null; - private uint? __pbn__account_2; - - [global::ProtoBuf.ProtoMember(5)] - public uint wins_2 - { - get => __pbn__wins_2.GetValueOrDefault(); - set => __pbn__wins_2 = value; - } - public bool ShouldSerializewins_2() => __pbn__wins_2 != null; - public void Resetwins_2() => __pbn__wins_2 = null; - private uint? __pbn__wins_2; - - [global::ProtoBuf.ProtoMember(6)] - public uint ties - { - get => __pbn__ties.GetValueOrDefault(); - set => __pbn__ties = value; - } - public bool ShouldSerializeties() => __pbn__ties != null; - public void Resetties() => __pbn__ties = null; - private uint? __pbn__ties; - - [global::ProtoBuf.ProtoMember(7)] - public uint status - { - get => __pbn__status.GetValueOrDefault(); - set => __pbn__status = value; - } - public bool ShouldSerializestatus() => __pbn__status != null; - public void Resetstatus() => __pbn__status = null; - private uint? __pbn__status; - - [global::ProtoBuf.ProtoMember(8)] - public global::System.Collections.Generic.List matches { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(9, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong lobby_id - { - get => __pbn__lobby_id.GetValueOrDefault(); - set => __pbn__lobby_id = value; - } - public bool ShouldSerializelobby_id() => __pbn__lobby_id != null; - public void Resetlobby_id() => __pbn__lobby_id = null; - private ulong? __pbn__lobby_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class Phase : 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 phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue(CDCGTourney.EFormat.k_eFormat_Invalid)] - public CDCGTourney.EFormat format - { - get => __pbn__format ?? CDCGTourney.EFormat.k_eFormat_Invalid; - set => __pbn__format = value; - } - public bool ShouldSerializeformat() => __pbn__format != null; - public void Resetformat() => __pbn__format = null; - private CDCGTourney.EFormat? __pbn__format; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue(CDCGTourney.EPhaseStage.k_ePhaseStage_Pending)] - public CDCGTourney.EPhaseStage stage - { - get => __pbn__stage ?? CDCGTourney.EPhaseStage.k_ePhaseStage_Pending; - set => __pbn__stage = value; - } - public bool ShouldSerializestage() => __pbn__stage != null; - public void Resetstage() => __pbn__stage = null; - private CDCGTourney.EPhaseStage? __pbn__stage; - - [global::ProtoBuf.ProtoMember(4)] - public global::System.Collections.Generic.List series { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(5)] - public uint limited_format - { - get => __pbn__limited_format.GetValueOrDefault(); - set => __pbn__limited_format = value; - } - public bool ShouldSerializelimited_format() => __pbn__limited_format != null; - public void Resetlimited_format() => __pbn__limited_format = null; - private uint? __pbn__limited_format; - - [global::ProtoBuf.ProtoMember(6)] - public ulong limited_instance_id - { - get => __pbn__limited_instance_id.GetValueOrDefault(); - set => __pbn__limited_instance_id = value; - } - public bool ShouldSerializelimited_instance_id() => __pbn__limited_instance_id != null; - public void Resetlimited_instance_id() => __pbn__limited_instance_id = null; - private ulong? __pbn__limited_instance_id; - - [global::ProtoBuf.ProtoMember(7)] - public ulong limited_pool_id - { - get => __pbn__limited_pool_id.GetValueOrDefault(); - set => __pbn__limited_pool_id = value; - } - public bool ShouldSerializelimited_pool_id() => __pbn__limited_pool_id != null; - public void Resetlimited_pool_id() => __pbn__limited_pool_id = null; - private ulong? __pbn__limited_pool_id; - - [global::ProtoBuf.ProtoMember(9)] - public uint auto_advance_time - { - get => __pbn__auto_advance_time.GetValueOrDefault(); - set => __pbn__auto_advance_time = value; - } - public bool ShouldSerializeauto_advance_time() => __pbn__auto_advance_time != null; - public void Resetauto_advance_time() => __pbn__auto_advance_time = null; - private uint? __pbn__auto_advance_time; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class PlayerDeck : 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 deck_index - { - get => __pbn__deck_index.GetValueOrDefault(); - set => __pbn__deck_index = value; - } - public bool ShouldSerializedeck_index() => __pbn__deck_index != null; - public void Resetdeck_index() => __pbn__deck_index = null; - private uint? __pbn__deck_index; - - [global::ProtoBuf.ProtoMember(2)] - public byte[] deck_bytes - { - get => __pbn__deck_bytes; - set => __pbn__deck_bytes = value; - } - public bool ShouldSerializedeck_bytes() => __pbn__deck_bytes != null; - public void Resetdeck_bytes() => __pbn__deck_bytes = null; - private byte[] __pbn__deck_bytes; - - [global::ProtoBuf.ProtoMember(3)] - public uint phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - [global::ProtoBuf.ProtoMember(4)] - public uint shared_by - { - get => __pbn__shared_by.GetValueOrDefault(); - set => __pbn__shared_by = value; - } - public bool ShouldSerializeshared_by() => __pbn__shared_by != null; - public void Resetshared_by() => __pbn__shared_by = null; - private uint? __pbn__shared_by; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class Member : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint rights_flags - { - get => __pbn__rights_flags.GetValueOrDefault(); - set => __pbn__rights_flags = value; - } - public bool ShouldSerializerights_flags() => __pbn__rights_flags != null; - public void Resetrights_flags() => __pbn__rights_flags = null; - private uint? __pbn__rights_flags; - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List public_registered_decks { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(4)] - public uint initial_seed - { - get => __pbn__initial_seed.GetValueOrDefault(); - set => __pbn__initial_seed = value; - } - public bool ShouldSerializeinitial_seed() => __pbn__initial_seed != null; - public void Resetinitial_seed() => __pbn__initial_seed = null; - private uint? __pbn__initial_seed; - - [global::ProtoBuf.ProtoMember(5)] - public uint initial_group - { - get => __pbn__initial_group.GetValueOrDefault(); - set => __pbn__initial_group = value; - } - public bool ShouldSerializeinitial_group() => __pbn__initial_group != null; - public void Resetinitial_group() => __pbn__initial_group = null; - private uint? __pbn__initial_group; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class Invite : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint invited_by - { - get => __pbn__invited_by.GetValueOrDefault(); - set => __pbn__invited_by = value; - } - public bool ShouldSerializeinvited_by() => __pbn__invited_by != null; - public void Resetinvited_by() => __pbn__invited_by = null; - private uint? __pbn__invited_by; - - [global::ProtoBuf.ProtoMember(3)] - public uint invite_time - { - get => __pbn__invite_time.GetValueOrDefault(); - set => __pbn__invite_time = value; - } - public bool ShouldSerializeinvite_time() => __pbn__invite_time != null; - public void Resetinvite_time() => __pbn__invite_time = null; - private uint? __pbn__invite_time; - - [global::ProtoBuf.ProtoMember(4)] - public uint rights_flags - { - get => __pbn__rights_flags.GetValueOrDefault(); - set => __pbn__rights_flags = value; - } - public bool ShouldSerializerights_flags() => __pbn__rights_flags != null; - public void Resetrights_flags() => __pbn__rights_flags = null; - private uint? __pbn__rights_flags; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class ConfigVals : 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 val_id - { - get => __pbn__val_id.GetValueOrDefault(); - set => __pbn__val_id = value; - } - public bool ShouldSerializeval_id() => __pbn__val_id != null; - public void Resetval_id() => __pbn__val_id = null; - private uint? __pbn__val_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint value - { - get => __pbn__value.GetValueOrDefault(); - set => __pbn__value = value; - } - public bool ShouldSerializevalue() => __pbn__value != null; - public void Resetvalue() => __pbn__value = null; - private uint? __pbn__value; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class SharedDeck : 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 shared_by - { - get => __pbn__shared_by.GetValueOrDefault(); - set => __pbn__shared_by = value; - } - public bool ShouldSerializeshared_by() => __pbn__shared_by != null; - public void Resetshared_by() => __pbn__shared_by = null; - private uint? __pbn__shared_by; - - [global::ProtoBuf.ProtoMember(2)] - public byte[] deck_bytes - { - get => __pbn__deck_bytes; - set => __pbn__deck_bytes = value; - } - public bool ShouldSerializedeck_bytes() => __pbn__deck_bytes != null; - public void Resetdeck_bytes() => __pbn__deck_bytes = null; - private byte[] __pbn__deck_bytes; - - [global::ProtoBuf.ProtoMember(3)] - public uint shared_slot - { - get => __pbn__shared_slot.GetValueOrDefault(); - set => __pbn__shared_slot = value; - } - public bool ShouldSerializeshared_slot() => __pbn__shared_slot != null; - public void Resetshared_slot() => __pbn__shared_slot = null; - private uint? __pbn__shared_slot; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class EntryItem : 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 def_index - { - get => __pbn__def_index.GetValueOrDefault(); - set => __pbn__def_index = value; - } - public bool ShouldSerializedef_index() => __pbn__def_index != null; - public void Resetdef_index() => __pbn__def_index = null; - private uint? __pbn__def_index; - - [global::ProtoBuf.ProtoMember(2)] - public uint quantity - { - get => __pbn__quantity.GetValueOrDefault(); - set => __pbn__quantity = value; - } - public bool ShouldSerializequantity() => __pbn__quantity != null; - public void Resetquantity() => __pbn__quantity = null; - private uint? __pbn__quantity; - - [global::ProtoBuf.ProtoMember(3)] - public bool per_member - { - get => __pbn__per_member.GetValueOrDefault(); - set => __pbn__per_member = value; - } - public bool ShouldSerializeper_member() => __pbn__per_member != null; - public void Resetper_member() => __pbn__per_member = null; - private bool? __pbn__per_member; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class PaidEntryItem : 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 def_index - { - get => __pbn__def_index.GetValueOrDefault(); - set => __pbn__def_index = value; - } - public bool ShouldSerializedef_index() => __pbn__def_index != null; - public void Resetdef_index() => __pbn__def_index = null; - private uint? __pbn__def_index; - - [global::ProtoBuf.ProtoMember(2)] - public uint target_account_id - { - get => __pbn__target_account_id.GetValueOrDefault(); - set => __pbn__target_account_id = value; - } - public bool ShouldSerializetarget_account_id() => __pbn__target_account_id != null; - public void Resettarget_account_id() => __pbn__target_account_id = null; - private uint? __pbn__target_account_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint owner_account_id - { - get => __pbn__owner_account_id.GetValueOrDefault(); - set => __pbn__owner_account_id = value; - } - public bool ShouldSerializeowner_account_id() => __pbn__owner_account_id != null; - public void Resetowner_account_id() => __pbn__owner_account_id = null; - private uint? __pbn__owner_account_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class Validator : 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 phase_id - { - get => __pbn__phase_id.GetValueOrDefault(); - set => __pbn__phase_id = value; - } - public bool ShouldSerializephase_id() => __pbn__phase_id != null; - public void Resetphase_id() => __pbn__phase_id = null; - private uint? __pbn__phase_id; - - [global::ProtoBuf.ProtoMember(2)] - public CMsgDeckValidator deck_validator { get; set; } - - } - - [global::ProtoBuf.ProtoContract()] - public enum EStage - { - k_eStage_Configure = 10, - k_eStage_Invites = 20, - k_eStage_Seeding = 30, - k_eStage_PlayPhases = 40, - k_eStage_Closed = 50, - } - - [global::ProtoBuf.ProtoContract()] - public enum EPhaseStage - { - k_ePhaseStage_Pending = 10, - k_ePhaseStage_Limited = 20, - k_ePhaseStage_Edit = 30, - k_ePhaseStage_Playing = 40, - k_ePhaseStage_Complete = 50, - } - - [global::ProtoBuf.ProtoContract()] - public enum EFormat - { - k_eFormat_Invalid = 0, - k_eFormat_Bracket_SingleElim = 1, - k_eFormat_Swiss = 2, - k_eFormat_FreeForAll = 3, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgRegionPingTimesClient : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize, IsPacked = true)] - public global::System.Collections.Generic.List data_center_codes { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(2, IsPacked = true)] - public global::System.Collections.Generic.List ping_times { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgMarketPrices : 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 time_stamp - { - get => __pbn__time_stamp.GetValueOrDefault(); - set => __pbn__time_stamp = value; - } - public bool ShouldSerializetime_stamp() => __pbn__time_stamp != null; - public void Resettime_stamp() => __pbn__time_stamp = null; - private uint? __pbn__time_stamp; - - [global::ProtoBuf.ProtoMember(2)] - public uint currency_id - { - get => __pbn__currency_id.GetValueOrDefault(); - set => __pbn__currency_id = value; - } - public bool ShouldSerializecurrency_id() => __pbn__currency_id != null; - public void Resetcurrency_id() => __pbn__currency_id = null; - private uint? __pbn__currency_id; - - [global::ProtoBuf.ProtoMember(3, IsPacked = true)] - public global::System.Collections.Generic.List def_indices { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(4, IsPacked = true)] - public global::System.Collections.Generic.List purchase_price { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(5, IsPacked = true)] - public global::System.Collections.Generic.List sell_price { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(6)] - public bool request_up_to_date - { - get => __pbn__request_up_to_date.GetValueOrDefault(); - set => __pbn__request_up_to_date = value; - } - public bool ShouldSerializerequest_up_to_date() => __pbn__request_up_to_date != null; - public void Resetrequest_up_to_date() => __pbn__request_up_to_date = null; - private bool? __pbn__request_up_to_date; - - [global::ProtoBuf.ProtoMember(7)] - public uint valid_through - { - get => __pbn__valid_through.GetValueOrDefault(); - set => __pbn__valid_through = value; - } - public bool ShouldSerializevalid_through() => __pbn__valid_through != null; - public void Resetvalid_through() => __pbn__valid_through = null; - private uint? __pbn__valid_through; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgMatchData : 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(4)] - public uint match_duration_s - { - get => __pbn__match_duration_s.GetValueOrDefault(); - set => __pbn__match_duration_s = value; - } - public bool ShouldSerializematch_duration_s() => __pbn__match_duration_s != null; - public void Resetmatch_duration_s() => __pbn__match_duration_s = null; - private uint? __pbn__match_duration_s; - - [global::ProtoBuf.ProtoMember(5)] - public uint game_turns - { - get => __pbn__game_turns.GetValueOrDefault(); - set => __pbn__game_turns = value; - } - public bool ShouldSerializegame_turns() => __pbn__game_turns != null; - public void Resetgame_turns() => __pbn__game_turns = null; - private uint? __pbn__game_turns; - - [global::ProtoBuf.ProtoMember(6)] - [global::System.ComponentModel.DefaultValue(EEndReason.k_EEndReason_TeamWin)] - public EEndReason end_reason - { - get => __pbn__end_reason ?? EEndReason.k_EEndReason_TeamWin; - set => __pbn__end_reason = value; - } - public bool ShouldSerializeend_reason() => __pbn__end_reason != null; - public void Resetend_reason() => __pbn__end_reason = null; - private EEndReason? __pbn__end_reason; - - [global::ProtoBuf.ProtoMember(7)] - [global::System.ComponentModel.DefaultValue(EDCGLobbyTeam.k_EDCGLobbyTeam_Team0)] - public EDCGLobbyTeam winning_team - { - get => __pbn__winning_team ?? EDCGLobbyTeam.k_EDCGLobbyTeam_Team0; - set => __pbn__winning_team = value; - } - public bool ShouldSerializewinning_team() => __pbn__winning_team != null; - public void Resetwinning_team() => __pbn__winning_team = null; - private EDCGLobbyTeam? __pbn__winning_team; - - [global::ProtoBuf.ProtoMember(8)] - public global::System.Collections.Generic.List players { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class PlayerInfo : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue(EDCGLobbyTeam.k_EDCGLobbyTeam_Team0)] - public EDCGLobbyTeam team - { - get => __pbn__team ?? EDCGLobbyTeam.k_EDCGLobbyTeam_Team0; - set => __pbn__team = value; - } - public bool ShouldSerializeteam() => __pbn__team != null; - public void Resetteam() => __pbn__team = null; - private EDCGLobbyTeam? __pbn__team; - - [global::ProtoBuf.ProtoMember(3)] - public uint player_slot - { - get => __pbn__player_slot.GetValueOrDefault(); - set => __pbn__player_slot = value; - } - public bool ShouldSerializeplayer_slot() => __pbn__player_slot != null; - public void Resetplayer_slot() => __pbn__player_slot = null; - private uint? __pbn__player_slot; - - [global::ProtoBuf.ProtoMember(4)] - public global::System.Collections.Generic.List hero_lineup { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(5)] - public global::System.Collections.Generic.List tower_health { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(6)] - public uint ancient_health - { - get => __pbn__ancient_health.GetValueOrDefault(); - set => __pbn__ancient_health = value; - } - public bool ShouldSerializeancient_health() => __pbn__ancient_health != null; - public void Resetancient_health() => __pbn__ancient_health = null; - private uint? __pbn__ancient_health; - - [global::ProtoBuf.ProtoMember(8)] - public bool conceded - { - get => __pbn__conceded.GetValueOrDefault(); - set => __pbn__conceded = value; - } - public bool ShouldSerializeconceded() => __pbn__conceded != null; - public void Resetconceded() => __pbn__conceded = null; - private bool? __pbn__conceded; - - [global::ProtoBuf.ProtoMember(9)] - public uint game_clock - { - get => __pbn__game_clock.GetValueOrDefault(); - set => __pbn__game_clock = value; - } - public bool ShouldSerializegame_clock() => __pbn__game_clock != null; - public void Resetgame_clock() => __pbn__game_clock = null; - private uint? __pbn__game_clock; - - [global::ProtoBuf.ProtoMember(10)] - public global::System.Collections.Generic.List hero_ids { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(11)] - public uint mmr - { - get => __pbn__mmr.GetValueOrDefault(); - set => __pbn__mmr = value; - } - public bool ShouldSerializemmr() => __pbn__mmr != null; - public void Resetmmr() => __pbn__mmr = null; - private uint? __pbn__mmr; - - [global::ProtoBuf.ProtoMember(12)] - public uint mmr_uncertainty - { - get => __pbn__mmr_uncertainty.GetValueOrDefault(); - set => __pbn__mmr_uncertainty = value; - } - public bool ShouldSerializemmr_uncertainty() => __pbn__mmr_uncertainty != null; - public void Resetmmr_uncertainty() => __pbn__mmr_uncertainty = null; - private uint? __pbn__mmr_uncertainty; - - [global::ProtoBuf.ProtoMember(13)] - public byte[] deck_bytes - { - get => __pbn__deck_bytes; - set => __pbn__deck_bytes = value; - } - public bool ShouldSerializedeck_bytes() => __pbn__deck_bytes != null; - public void Resetdeck_bytes() => __pbn__deck_bytes = null; - private byte[] __pbn__deck_bytes; - - } - - [global::ProtoBuf.ProtoContract()] - public enum EEndReason - { - k_EEndReason_TeamWin = 0, - k_EEndReason_Tie = 1, - k_EEndReason_AllAbandoned = 2, - k_EEndReason_NetworkIssues = 3, - k_EEndReason_MatchLength = 4, - k_EEndReason_PlayerNeverConnected = 5, - } - - } - - [global::ProtoBuf.ProtoContract()] - public enum EGCDCGCommonMessages - { - k_EMsgAnyToGCReportAsserts = 7000, - k_EMsgAnyToGCReportAssertsResponse = 7001, - } - - [global::ProtoBuf.ProtoContract()] - public enum EDCGMatchMode - { - k_EDCGMatchMode_Unranked = 2, - k_EDCGMatchMode_Gauntlet = 3, - k_EDCGMatchMode_PrivateLobby = 6, - k_EDCGMatchMode_Puzzle = 7, - k_EDCGMatchMode_AI = 8, - k_EDCGMatchMode_Tournament = 9, - } - - [global::ProtoBuf.ProtoContract()] - public enum EDCGLobbyTeam - { - k_EDCGLobbyTeam_Team0 = 0, - k_EDCGLobbyTeam_Team1 = 1, - k_EDCGLobbyTeam_Spectator = 16, - } - - [global::ProtoBuf.ProtoContract()] - public enum EDCGLobbyTimer - { - k_eDCGLobbyTimer_Unspecified = 0, - k_eDCGLobbyTimer_Disabled = 1, - k_eDCGLobbyTimer_Default = 2, - k_eDCGLobbyTimer_Tournament = 3, - k_eDCGLobbyTimer_TimeAttack = 4, - k_eDCGLobbyTimer_ShotClockOnly = 5, - } - - [global::ProtoBuf.ProtoContract()] - public enum ELobbyServerState - { - k_eLobbyServerState_Assign = 0, - k_eLobbyServerState_InGame = 1, - k_eLobbyServerState_PostMatch = 2, - k_eLobbyServerState_SignedOut = 3, - k_eLobbyServerState_Abandoned = 4, - } - - [global::ProtoBuf.ProtoContract()] - public enum EGCLobbyData - { - k_ELobbyData_PostMatchSurvey = 1, - } - - [global::ProtoBuf.ProtoContract()] - public enum DCG_COMBATLOG_TYPES - { - DCG_COMBATLOG_INVALID = -1, - DCG_COMBATLOG_DAMAGE = 0, - DCG_COMBATLOG_HEAL = 1, - DCG_COMBATLOG_DRAW = 2, - DCG_COMBATLOG_PASS = 3, - DCG_COMBATLOG_COMBAT = 4, - DCG_COMBATLOG_PLAY_CREEP = 5, - DCG_COMBATLOG_PLAY_IMPROVEMENT = 6, - DCG_COMBATLOG_PLAY_SPELL = 7, - DCG_COMBATLOG_PLAY_EQUIPMENT = 8, - DCG_COMBATLOG_PLAY_ABILITY = 9, - DCG_COMBATLOG_GAIN_GOLD = 10, - DCG_COMBATLOG_BUY_ITEM = 11, - DCG_COMBATLOG_DISCARD = 12, - DCG_COMBATLOG_ADD_MODIFIER = 13, - DCG_COMBATLOG_REMOVE_MODIFIER = 14, - DCG_COMBATLOG_KILL = 15, - DCG_COMBATLOG_CARD_MOVE = 16, - DCG_COMBATLOG_CREEP_SPAWN = 17, - DCG_COMBATLOG_DEATH = 18, - DCG_COMBATLOG_COMBAT_OVER = 19, - DCG_COMBATLOG_BEGGINING_OF_SPELLCASTING = 20, - DCG_COMBATLOG_BEGGINING_OF_SPELLCASTING_END = 21, - DCG_COMBATLOG_UNIT_ENTERING_COMBAT = 22, - DCG_COMBATLOG_UNIT_LEAVING_COMBAT = 23, - DCG_COMBATLOG_TRIGGER_TRIGGERED = 24, - } - -} - -#pragma warning restore CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192 -#endregion diff --git a/SteamKit2/Base/Generated/GC/Artifact/MsgGCServer.cs b/SteamKit2/Base/Generated/GC/Artifact/MsgGCServer.cs deleted file mode 100644 index 98c92ccfa..000000000 --- a/SteamKit2/Base/Generated/GC/Artifact/MsgGCServer.cs +++ /dev/null @@ -1,2056 +0,0 @@ -// -// This file was generated by a tool; you should avoid making direct changes. -// Consider using 'partial classes' to extend these types -// Input: dcg_gcmessages_server.proto -// - -#region Designer generated code -#pragma warning disable CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192 -namespace SteamKit2.GC.Artifact.Internal -{ - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerCrashSentinelFile : 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 version - { - get => __pbn__version.GetValueOrDefault(); - set => __pbn__version = value; - } - public bool ShouldSerializeversion() => __pbn__version != null; - public void Resetversion() => __pbn__version = null; - private uint? __pbn__version; - - [global::ProtoBuf.ProtoMember(2, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong server_steam_id - { - get => __pbn__server_steam_id.GetValueOrDefault(); - set => __pbn__server_steam_id = value; - } - public bool ShouldSerializeserver_steam_id() => __pbn__server_steam_id != null; - public void Resetserver_steam_id() => __pbn__server_steam_id = null; - private ulong? __pbn__server_steam_id; - - [global::ProtoBuf.ProtoMember(3, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public uint server_public_ip_addr - { - get => __pbn__server_public_ip_addr.GetValueOrDefault(); - set => __pbn__server_public_ip_addr = value; - } - public bool ShouldSerializeserver_public_ip_addr() => __pbn__server_public_ip_addr != null; - public void Resetserver_public_ip_addr() => __pbn__server_public_ip_addr = null; - private uint? __pbn__server_public_ip_addr; - - [global::ProtoBuf.ProtoMember(4)] - public uint server_port - { - get => __pbn__server_port.GetValueOrDefault(); - set => __pbn__server_port = value; - } - public bool ShouldSerializeserver_port() => __pbn__server_port != null; - public void Resetserver_port() => __pbn__server_port = null; - private uint? __pbn__server_port; - - [global::ProtoBuf.ProtoMember(5)] - public uint server_cluster - { - get => __pbn__server_cluster.GetValueOrDefault(); - set => __pbn__server_cluster = value; - } - public bool ShouldSerializeserver_cluster() => __pbn__server_cluster != null; - public void Resetserver_cluster() => __pbn__server_cluster = null; - private uint? __pbn__server_cluster; - - [global::ProtoBuf.ProtoMember(6)] - public uint pid - { - get => __pbn__pid.GetValueOrDefault(); - set => __pbn__pid = value; - } - public bool ShouldSerializepid() => __pbn__pid != null; - public void Resetpid() => __pbn__pid = null; - private uint? __pbn__pid; - - [global::ProtoBuf.ProtoMember(7)] - public uint saved_time - { - get => __pbn__saved_time.GetValueOrDefault(); - set => __pbn__saved_time = value; - } - public bool ShouldSerializesaved_time() => __pbn__saved_time != null; - public void Resetsaved_time() => __pbn__saved_time = null; - private uint? __pbn__saved_time; - - [global::ProtoBuf.ProtoMember(8)] - public uint server_version - { - get => __pbn__server_version.GetValueOrDefault(); - set => __pbn__server_version = value; - } - public bool ShouldSerializeserver_version() => __pbn__server_version != null; - public void Resetserver_version() => __pbn__server_version = null; - private uint? __pbn__server_version; - - [global::ProtoBuf.ProtoMember(9)] - public DCGGameInfo dcg_info { get; set; } - - [global::ProtoBuf.ProtoMember(10)] - public uint server_private_ip_addr - { - get => __pbn__server_private_ip_addr.GetValueOrDefault(); - set => __pbn__server_private_ip_addr = value; - } - public bool ShouldSerializeserver_private_ip_addr() => __pbn__server_private_ip_addr != null; - public void Resetserver_private_ip_addr() => __pbn__server_private_ip_addr = null; - private uint? __pbn__server_private_ip_addr; - - [global::ProtoBuf.ProtoMember(11)] - public uint instance_id - { - get => __pbn__instance_id.GetValueOrDefault(); - set => __pbn__instance_id = value; - } - public bool ShouldSerializeinstance_id() => __pbn__instance_id != null; - public void Resetinstance_id() => __pbn__instance_id = null; - private uint? __pbn__instance_id; - - [global::ProtoBuf.ProtoContract()] - public partial class DCGGameInfo : 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 ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - [global::ProtoBuf.ProtoMember(2, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong lobby_id - { - get => __pbn__lobby_id.GetValueOrDefault(); - set => __pbn__lobby_id = value; - } - public bool ShouldSerializelobby_id() => __pbn__lobby_id != null; - public void Resetlobby_id() => __pbn__lobby_id = null; - private ulong? __pbn__lobby_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint gauntlet_id - { - get => __pbn__gauntlet_id.GetValueOrDefault(); - set => __pbn__gauntlet_id = value; - } - public bool ShouldSerializegauntlet_id() => __pbn__gauntlet_id != null; - public void Resetgauntlet_id() => __pbn__gauntlet_id = null; - private uint? __pbn__gauntlet_id; - - [global::ProtoBuf.ProtoMember(4)] - public uint server_state - { - get => __pbn__server_state.GetValueOrDefault(); - set => __pbn__server_state = value; - } - public bool ShouldSerializeserver_state() => __pbn__server_state != null; - public void Resetserver_state() => __pbn__server_state = null; - private uint? __pbn__server_state; - - [global::ProtoBuf.ProtoMember(5)] - public global::System.Collections.Generic.List client_account_ids { get; } = new global::System.Collections.Generic.List(); - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CServerLobbyData_CardAchievements : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2, IsPacked = true)] - public global::System.Collections.Generic.List achievement_ids { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3, IsPacked = true)] - public global::System.Collections.Generic.List progress { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CServerDraftCard : 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 def_index - { - get => __pbn__def_index.GetValueOrDefault(); - set => __pbn__def_index = value; - } - public bool ShouldSerializedef_index() => __pbn__def_index != null; - public void Resetdef_index() => __pbn__def_index = null; - private uint? __pbn__def_index; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CServerLobbyData_DraftCards : 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 global::System.Collections.Generic.List players { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class Pack : 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 ulong pack_item_id - { - get => __pbn__pack_item_id.GetValueOrDefault(); - set => __pbn__pack_item_id = value; - } - public bool ShouldSerializepack_item_id() => __pbn__pack_item_id != null; - public void Resetpack_item_id() => __pbn__pack_item_id = null; - private ulong? __pbn__pack_item_id; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List pack_cards { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class Player : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List packs { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3)] - public bool cannot_trade - { - get => __pbn__cannot_trade.GetValueOrDefault(); - set => __pbn__cannot_trade = value; - } - public bool ShouldSerializecannot_trade() => __pbn__cannot_trade != null; - public void Resetcannot_trade() => __pbn__cannot_trade = null; - private bool? __pbn__cannot_trade; - - [global::ProtoBuf.ProtoMember(4)] - public uint trade_restriction_time - { - get => __pbn__trade_restriction_time.GetValueOrDefault(); - set => __pbn__trade_restriction_time = value; - } - public bool ShouldSerializetrade_restriction_time() => __pbn__trade_restriction_time != null; - public void Resettrade_restriction_time() => __pbn__trade_restriction_time = null; - private uint? __pbn__trade_restriction_time; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CServerLobbyData_PlayerDeck : 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 byte[] deck_code - { - get => __pbn__deck_code; - set => __pbn__deck_code = value; - } - public bool ShouldSerializedeck_code() => __pbn__deck_code != null; - public void Resetdeck_code() => __pbn__deck_code = null; - private byte[] __pbn__deck_code; - - [global::ProtoBuf.ProtoMember(2)] - public byte[] collection_code - { - get => __pbn__collection_code; - set => __pbn__collection_code = value; - } - public bool ShouldSerializecollection_code() => __pbn__collection_code != null; - public void Resetcollection_code() => __pbn__collection_code = null; - private byte[] __pbn__collection_code; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CServerLobbyData_PlayerMMR : 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 global::System.Collections.Generic.List players { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class Player : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint mmr - { - get => __pbn__mmr.GetValueOrDefault(); - set => __pbn__mmr = value; - } - public bool ShouldSerializemmr() => __pbn__mmr != null; - public void Resetmmr() => __pbn__mmr = null; - private uint? __pbn__mmr; - - [global::ProtoBuf.ProtoMember(3)] - public uint uncertainty - { - get => __pbn__uncertainty.GetValueOrDefault(); - set => __pbn__uncertainty = value; - } - public bool ShouldSerializeuncertainty() => __pbn__uncertainty != null; - public void Resetuncertainty() => __pbn__uncertainty = null; - private uint? __pbn__uncertainty; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CServerLobbyData_GauntletInfo : 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 CMsgGauntletConfig gauntlet_config { get; set; } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CServerLobbyData_DeckValidator : 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 CMsgDeckValidator deck_validator { get; set; } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CServerLobbyData_PlayerInfo : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint progress_level - { - get => __pbn__progress_level.GetValueOrDefault(); - set => __pbn__progress_level = value; - } - public bool ShouldSerializeprogress_level() => __pbn__progress_level != null; - public void Resetprogress_level() => __pbn__progress_level = null; - private uint? __pbn__progress_level; - - [global::ProtoBuf.ProtoMember(3)] - public uint progress_xp - { - get => __pbn__progress_xp.GetValueOrDefault(); - set => __pbn__progress_xp = value; - } - public bool ShouldSerializeprogress_xp() => __pbn__progress_xp != null; - public void Resetprogress_xp() => __pbn__progress_xp = null; - private uint? __pbn__progress_xp; - - [global::ProtoBuf.ProtoMember(4)] - public uint mmr_level - { - get => __pbn__mmr_level.GetValueOrDefault(); - set => __pbn__mmr_level = value; - } - public bool ShouldSerializemmr_level() => __pbn__mmr_level != null; - public void Resetmmr_level() => __pbn__mmr_level = null; - private uint? __pbn__mmr_level; - - [global::ProtoBuf.ProtoMember(5)] - public uint last_win_bonus_time - { - get => __pbn__last_win_bonus_time.GetValueOrDefault(); - set => __pbn__last_win_bonus_time = value; - } - public bool ShouldSerializelast_win_bonus_time() => __pbn__last_win_bonus_time != null; - public void Resetlast_win_bonus_time() => __pbn__last_win_bonus_time = null; - private uint? __pbn__last_win_bonus_time; - - [global::ProtoBuf.ProtoMember(6)] - public uint win_streak - { - get => __pbn__win_streak.GetValueOrDefault(); - set => __pbn__win_streak = value; - } - public bool ShouldSerializewin_streak() => __pbn__win_streak != null; - public void Resetwin_streak() => __pbn__win_streak = null; - private uint? __pbn__win_streak; - - [global::ProtoBuf.ProtoMember(7)] - public uint bonus_period_wins - { - get => __pbn__bonus_period_wins.GetValueOrDefault(); - set => __pbn__bonus_period_wins = value; - } - public bool ShouldSerializebonus_period_wins() => __pbn__bonus_period_wins != null; - public void Resetbonus_period_wins() => __pbn__bonus_period_wins = null; - private uint? __pbn__bonus_period_wins; - - [global::ProtoBuf.ProtoMember(8)] - public uint player_badge - { - get => __pbn__player_badge.GetValueOrDefault(); - set => __pbn__player_badge = value; - } - public bool ShouldSerializeplayer_badge() => __pbn__player_badge != null; - public void Resetplayer_badge() => __pbn__player_badge = null; - private uint? __pbn__player_badge; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CSODCGServerLobby : 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 global::System.Collections.Generic.List extra_messages { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(2, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong server_steam_id - { - get => __pbn__server_steam_id.GetValueOrDefault(); - set => __pbn__server_steam_id = value; - } - public bool ShouldSerializeserver_steam_id() => __pbn__server_steam_id != null; - public void Resetserver_steam_id() => __pbn__server_steam_id = null; - private ulong? __pbn__server_steam_id; - - [global::ProtoBuf.ProtoMember(3)] - public ulong lobby_id - { - get => __pbn__lobby_id.GetValueOrDefault(); - set => __pbn__lobby_id = value; - } - public bool ShouldSerializelobby_id() => __pbn__lobby_id != null; - public void Resetlobby_id() => __pbn__lobby_id = null; - private ulong? __pbn__lobby_id; - - [global::ProtoBuf.ProtoMember(4, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public uint replay_salt - { - get => __pbn__replay_salt.GetValueOrDefault(); - set => __pbn__replay_salt = value; - } - public bool ShouldSerializereplay_salt() => __pbn__replay_salt != null; - public void Resetreplay_salt() => __pbn__replay_salt = null; - private uint? __pbn__replay_salt; - - [global::ProtoBuf.ProtoMember(5, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong private_lobby_id - { - get => __pbn__private_lobby_id.GetValueOrDefault(); - set => __pbn__private_lobby_id = value; - } - public bool ShouldSerializeprivate_lobby_id() => __pbn__private_lobby_id != null; - public void Resetprivate_lobby_id() => __pbn__private_lobby_id = null; - private ulong? __pbn__private_lobby_id; - - [global::ProtoBuf.ProtoMember(6)] - [global::System.ComponentModel.DefaultValue(EDCGLobbyTimer.k_eDCGLobbyTimer_Unspecified)] - public EDCGLobbyTimer timer_mode - { - get => __pbn__timer_mode ?? EDCGLobbyTimer.k_eDCGLobbyTimer_Unspecified; - set => __pbn__timer_mode = value; - } - public bool ShouldSerializetimer_mode() => __pbn__timer_mode != null; - public void Resettimer_mode() => __pbn__timer_mode = null; - private EDCGLobbyTimer? __pbn__timer_mode; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerSignoutData_MatchChatStats : 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 global::System.Collections.Generic.List chat_stats { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class ChatStats : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint total_messages - { - get => __pbn__total_messages.GetValueOrDefault(); - set => __pbn__total_messages = value; - } - public bool ShouldSerializetotal_messages() => __pbn__total_messages != null; - public void Resettotal_messages() => __pbn__total_messages = null; - private uint? __pbn__total_messages; - - [global::ProtoBuf.ProtoMember(3)] - public uint total_custom_messages - { - get => __pbn__total_custom_messages.GetValueOrDefault(); - set => __pbn__total_custom_messages = value; - } - public bool ShouldSerializetotal_custom_messages() => __pbn__total_custom_messages != null; - public void Resettotal_custom_messages() => __pbn__total_custom_messages = null; - private uint? __pbn__total_custom_messages; - - [global::ProtoBuf.ProtoMember(4)] - public bool user_sent_custom_message_before_mute - { - get => __pbn__user_sent_custom_message_before_mute.GetValueOrDefault(); - set => __pbn__user_sent_custom_message_before_mute = value; - } - public bool ShouldSerializeuser_sent_custom_message_before_mute() => __pbn__user_sent_custom_message_before_mute != null; - public void Resetuser_sent_custom_message_before_mute() => __pbn__user_sent_custom_message_before_mute = null; - private bool? __pbn__user_sent_custom_message_before_mute; - - [global::ProtoBuf.ProtoMember(5)] - public uint total_messages_sent_while_muted - { - get => __pbn__total_messages_sent_while_muted.GetValueOrDefault(); - set => __pbn__total_messages_sent_while_muted = value; - } - public bool ShouldSerializetotal_messages_sent_while_muted() => __pbn__total_messages_sent_while_muted != null; - public void Resettotal_messages_sent_while_muted() => __pbn__total_messages_sent_while_muted = null; - private uint? __pbn__total_messages_sent_while_muted; - - [global::ProtoBuf.ProtoMember(6)] - public uint num_times_squelched - { - get => __pbn__num_times_squelched.GetValueOrDefault(); - set => __pbn__num_times_squelched = value; - } - public bool ShouldSerializenum_times_squelched() => __pbn__num_times_squelched != null; - public void Resetnum_times_squelched() => __pbn__num_times_squelched = null; - private uint? __pbn__num_times_squelched; - - [global::ProtoBuf.ProtoMember(7)] - public bool user_muted_opponent_before_receiving_message - { - get => __pbn__user_muted_opponent_before_receiving_message.GetValueOrDefault(); - set => __pbn__user_muted_opponent_before_receiving_message = value; - } - public bool ShouldSerializeuser_muted_opponent_before_receiving_message() => __pbn__user_muted_opponent_before_receiving_message != null; - public void Resetuser_muted_opponent_before_receiving_message() => __pbn__user_muted_opponent_before_receiving_message = null; - private bool? __pbn__user_muted_opponent_before_receiving_message; - - [global::ProtoBuf.ProtoMember(8)] - public bool user_was_muted_then_was_unmuted - { - get => __pbn__user_was_muted_then_was_unmuted.GetValueOrDefault(); - set => __pbn__user_was_muted_then_was_unmuted = value; - } - public bool ShouldSerializeuser_was_muted_then_was_unmuted() => __pbn__user_was_muted_then_was_unmuted != null; - public void Resetuser_was_muted_then_was_unmuted() => __pbn__user_was_muted_then_was_unmuted = null; - private bool? __pbn__user_was_muted_then_was_unmuted; - - [global::ProtoBuf.ProtoMember(9)] - public bool user_was_muted_at_match_end - { - get => __pbn__user_was_muted_at_match_end.GetValueOrDefault(); - set => __pbn__user_was_muted_at_match_end = value; - } - public bool ShouldSerializeuser_was_muted_at_match_end() => __pbn__user_was_muted_at_match_end != null; - public void Resetuser_was_muted_at_match_end() => __pbn__user_was_muted_at_match_end = null; - private bool? __pbn__user_was_muted_at_match_end; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerSignoutData_LobbyInfo : 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 ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint start_time - { - get => __pbn__start_time.GetValueOrDefault(); - set => __pbn__start_time = value; - } - public bool ShouldSerializestart_time() => __pbn__start_time != null; - public void Resetstart_time() => __pbn__start_time = null; - private uint? __pbn__start_time; - - [global::ProtoBuf.ProtoMember(3)] - public uint gauntlet_id - { - get => __pbn__gauntlet_id.GetValueOrDefault(); - set => __pbn__gauntlet_id = value; - } - public bool ShouldSerializegauntlet_id() => __pbn__gauntlet_id != null; - public void Resetgauntlet_id() => __pbn__gauntlet_id = null; - private uint? __pbn__gauntlet_id; - - [global::ProtoBuf.ProtoMember(4)] - public uint server_version - { - get => __pbn__server_version.GetValueOrDefault(); - set => __pbn__server_version = value; - } - public bool ShouldSerializeserver_version() => __pbn__server_version != null; - public void Resetserver_version() => __pbn__server_version = null; - private uint? __pbn__server_version; - - [global::ProtoBuf.ProtoMember(5)] - public uint replay_salt - { - get => __pbn__replay_salt.GetValueOrDefault(); - set => __pbn__replay_salt = value; - } - public bool ShouldSerializereplay_salt() => __pbn__replay_salt != null; - public void Resetreplay_salt() => __pbn__replay_salt = null; - private uint? __pbn__replay_salt; - - [global::ProtoBuf.ProtoMember(6)] - [global::System.ComponentModel.DefaultValue(EDCGMatchMode.k_EDCGMatchMode_Unranked)] - public EDCGMatchMode match_mode - { - get => __pbn__match_mode ?? EDCGMatchMode.k_EDCGMatchMode_Unranked; - set => __pbn__match_mode = value; - } - public bool ShouldSerializematch_mode() => __pbn__match_mode != null; - public void Resetmatch_mode() => __pbn__match_mode = null; - private EDCGMatchMode? __pbn__match_mode; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerSignoutData_PlayerDecks : 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 global::System.Collections.Generic.List players { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(2)] - public uint stats_version - { - get => __pbn__stats_version.GetValueOrDefault(); - set => __pbn__stats_version = value; - } - public bool ShouldSerializestats_version() => __pbn__stats_version != null; - public void Resetstats_version() => __pbn__stats_version = null; - private uint? __pbn__stats_version; - - [global::ProtoBuf.ProtoContract()] - public partial class Player : 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 player_id - { - get => __pbn__player_id.GetValueOrDefault(); - set => __pbn__player_id = value; - } - public bool ShouldSerializeplayer_id() => __pbn__player_id != null; - public void Resetplayer_id() => __pbn__player_id = null; - private uint? __pbn__player_id; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List cards { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List heroes { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(6)] - public uint critical_life - { - get => __pbn__critical_life.GetValueOrDefault(); - set => __pbn__critical_life = value; - } - public bool ShouldSerializecritical_life() => __pbn__critical_life != null; - public void Resetcritical_life() => __pbn__critical_life = null; - private uint? __pbn__critical_life; - - [global::ProtoBuf.ProtoMember(7)] - public uint total_gold - { - get => __pbn__total_gold.GetValueOrDefault(); - set => __pbn__total_gold = value; - } - public bool ShouldSerializetotal_gold() => __pbn__total_gold != null; - public void Resettotal_gold() => __pbn__total_gold = null; - private uint? __pbn__total_gold; - - [global::ProtoBuf.ProtoContract()] - public partial class Hero : 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 card_id - { - get => __pbn__card_id.GetValueOrDefault(); - set => __pbn__card_id = value; - } - public bool ShouldSerializecard_id() => __pbn__card_id != null; - public void Resetcard_id() => __pbn__card_id = null; - private uint? __pbn__card_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint hero_slot - { - get => __pbn__hero_slot.GetValueOrDefault(); - set => __pbn__hero_slot = value; - } - public bool ShouldSerializehero_slot() => __pbn__hero_slot != null; - public void Resethero_slot() => __pbn__hero_slot = null; - private uint? __pbn__hero_slot; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class Card : 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 card_id - { - get => __pbn__card_id.GetValueOrDefault(); - set => __pbn__card_id = value; - } - public bool ShouldSerializecard_id() => __pbn__card_id != null; - public void Resetcard_id() => __pbn__card_id = null; - private uint? __pbn__card_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint num_in_deck - { - get => __pbn__num_in_deck.GetValueOrDefault(); - set => __pbn__num_in_deck = value; - } - public bool ShouldSerializenum_in_deck() => __pbn__num_in_deck != null; - public void Resetnum_in_deck() => __pbn__num_in_deck = null; - private uint? __pbn__num_in_deck; - - [global::ProtoBuf.ProtoMember(3)] - public uint num_in_hand - { - get => __pbn__num_in_hand.GetValueOrDefault(); - set => __pbn__num_in_hand = value; - } - public bool ShouldSerializenum_in_hand() => __pbn__num_in_hand != null; - public void Resetnum_in_hand() => __pbn__num_in_hand = null; - private uint? __pbn__num_in_hand; - - [global::ProtoBuf.ProtoMember(4)] - public uint num_played - { - get => __pbn__num_played.GetValueOrDefault(); - set => __pbn__num_played = value; - } - public bool ShouldSerializenum_played() => __pbn__num_played != null; - public void Resetnum_played() => __pbn__num_played = null; - private uint? __pbn__num_played; - - } - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerSignoutData_PlayerProgress : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint xp_to_grant - { - get => __pbn__xp_to_grant.GetValueOrDefault(); - set => __pbn__xp_to_grant = value; - } - public bool ShouldSerializexp_to_grant() => __pbn__xp_to_grant != null; - public void Resetxp_to_grant() => __pbn__xp_to_grant = null; - private uint? __pbn__xp_to_grant; - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List bonuses { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(5)] - public uint weekly_bonus_reset_time - { - get => __pbn__weekly_bonus_reset_time.GetValueOrDefault(); - set => __pbn__weekly_bonus_reset_time = value; - } - public bool ShouldSerializeweekly_bonus_reset_time() => __pbn__weekly_bonus_reset_time != null; - public void Resetweekly_bonus_reset_time() => __pbn__weekly_bonus_reset_time = null; - private uint? __pbn__weekly_bonus_reset_time; - - [global::ProtoBuf.ProtoContract()] - public partial class PointBonus : 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 bonus_id - { - get => __pbn__bonus_id.GetValueOrDefault(); - set => __pbn__bonus_id = value; - } - public bool ShouldSerializebonus_id() => __pbn__bonus_id != null; - public void Resetbonus_id() => __pbn__bonus_id = null; - private uint? __pbn__bonus_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint bonus_points - { - get => __pbn__bonus_points.GetValueOrDefault(); - set => __pbn__bonus_points = value; - } - public bool ShouldSerializebonus_points() => __pbn__bonus_points != null; - public void Resetbonus_points() => __pbn__bonus_points = null; - private uint? __pbn__bonus_points; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerToGCMatchSignoutPermission : 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 signout_start - { - get => __pbn__signout_start.GetValueOrDefault(); - set => __pbn__signout_start = value; - } - public bool ShouldSerializesignout_start() => __pbn__signout_start != null; - public void Resetsignout_start() => __pbn__signout_start = null; - private uint? __pbn__signout_start; - - [global::ProtoBuf.ProtoMember(3)] - public ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - [global::ProtoBuf.ProtoMember(4)] - [global::System.ComponentModel.DefaultValue(EDCGMatchMode.k_EDCGMatchMode_Unranked)] - public EDCGMatchMode match_mode - { - get => __pbn__match_mode ?? EDCGMatchMode.k_EDCGMatchMode_Unranked; - set => __pbn__match_mode = value; - } - public bool ShouldSerializematch_mode() => __pbn__match_mode != null; - public void Resetmatch_mode() => __pbn__match_mode = null; - private EDCGMatchMode? __pbn__match_mode; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerToGCMatchSignoutPermissionResponse : 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 can_sign_out - { - get => __pbn__can_sign_out.GetValueOrDefault(); - set => __pbn__can_sign_out = value; - } - public bool ShouldSerializecan_sign_out() => __pbn__can_sign_out != null; - public void Resetcan_sign_out() => __pbn__can_sign_out = null; - private bool? __pbn__can_sign_out; - - [global::ProtoBuf.ProtoMember(2)] - public uint retry_time_s - { - get => __pbn__retry_time_s.GetValueOrDefault(); - set => __pbn__retry_time_s = value; - } - public bool ShouldSerializeretry_time_s() => __pbn__retry_time_s != null; - public void Resetretry_time_s() => __pbn__retry_time_s = null; - private uint? __pbn__retry_time_s; - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List requested_data { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerSignoutData_CardAchievements : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2, IsPacked = true)] - public global::System.Collections.Generic.List achievement_ids { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3, IsPacked = true)] - public global::System.Collections.Generic.List grant_amounts { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(4, IsPacked = true)] - public global::System.Collections.Generic.List grant_types { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public enum EAchievementGrantType - { - k_EAchievementGrant_Add = 0, - k_EAchievementGrant_Max = 1, - k_EAchievementGrant_Set = 2, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerSignoutData_PerformanceStats : 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 start_memory_bytes - { - get => __pbn__start_memory_bytes.GetValueOrDefault(); - set => __pbn__start_memory_bytes = value; - } - public bool ShouldSerializestart_memory_bytes() => __pbn__start_memory_bytes != null; - public void Resetstart_memory_bytes() => __pbn__start_memory_bytes = null; - private uint? __pbn__start_memory_bytes; - - [global::ProtoBuf.ProtoMember(2)] - public uint peak_memory_bytes - { - get => __pbn__peak_memory_bytes.GetValueOrDefault(); - set => __pbn__peak_memory_bytes = value; - } - public bool ShouldSerializepeak_memory_bytes() => __pbn__peak_memory_bytes != null; - public void Resetpeak_memory_bytes() => __pbn__peak_memory_bytes = null; - private uint? __pbn__peak_memory_bytes; - - [global::ProtoBuf.ProtoMember(3)] - public uint end_memory_bytes - { - get => __pbn__end_memory_bytes.GetValueOrDefault(); - set => __pbn__end_memory_bytes = value; - } - public bool ShouldSerializeend_memory_bytes() => __pbn__end_memory_bytes != null; - public void Resetend_memory_bytes() => __pbn__end_memory_bytes = null; - private uint? __pbn__end_memory_bytes; - - [global::ProtoBuf.ProtoMember(4)] - public uint total_update_time_ms - { - get => __pbn__total_update_time_ms.GetValueOrDefault(); - set => __pbn__total_update_time_ms = value; - } - public bool ShouldSerializetotal_update_time_ms() => __pbn__total_update_time_ms != null; - public void Resettotal_update_time_ms() => __pbn__total_update_time_ms = null; - private uint? __pbn__total_update_time_ms; - - [global::ProtoBuf.ProtoMember(5)] - public uint total_match_time_ms - { - get => __pbn__total_match_time_ms.GetValueOrDefault(); - set => __pbn__total_match_time_ms = value; - } - public bool ShouldSerializetotal_match_time_ms() => __pbn__total_match_time_ms != null; - public void Resettotal_match_time_ms() => __pbn__total_match_time_ms = null; - private uint? __pbn__total_match_time_ms; - - [global::ProtoBuf.ProtoMember(6)] - public uint sent_messages - { - get => __pbn__sent_messages.GetValueOrDefault(); - set => __pbn__sent_messages = value; - } - public bool ShouldSerializesent_messages() => __pbn__sent_messages != null; - public void Resetsent_messages() => __pbn__sent_messages = null; - private uint? __pbn__sent_messages; - - [global::ProtoBuf.ProtoMember(7)] - public uint received_messages - { - get => __pbn__received_messages.GetValueOrDefault(); - set => __pbn__received_messages = value; - } - public bool ShouldSerializereceived_messages() => __pbn__received_messages != null; - public void Resetreceived_messages() => __pbn__received_messages = null; - private uint? __pbn__received_messages; - - [global::ProtoBuf.ProtoMember(8)] - public uint sent_bytes - { - get => __pbn__sent_bytes.GetValueOrDefault(); - set => __pbn__sent_bytes = value; - } - public bool ShouldSerializesent_bytes() => __pbn__sent_bytes != null; - public void Resetsent_bytes() => __pbn__sent_bytes = null; - private uint? __pbn__sent_bytes; - - [global::ProtoBuf.ProtoMember(9)] - public uint received_bytes - { - get => __pbn__received_bytes.GetValueOrDefault(); - set => __pbn__received_bytes = value; - } - public bool ShouldSerializereceived_bytes() => __pbn__received_bytes != null; - public void Resetreceived_bytes() => __pbn__received_bytes = null; - private uint? __pbn__received_bytes; - - [global::ProtoBuf.ProtoMember(10)] - public uint max_update_time_micros - { - get => __pbn__max_update_time_micros.GetValueOrDefault(); - set => __pbn__max_update_time_micros = value; - } - public bool ShouldSerializemax_update_time_micros() => __pbn__max_update_time_micros != null; - public void Resetmax_update_time_micros() => __pbn__max_update_time_micros = null; - private uint? __pbn__max_update_time_micros; - - [global::ProtoBuf.ProtoMember(11)] - public uint num_updates - { - get => __pbn__num_updates.GetValueOrDefault(); - set => __pbn__num_updates = value; - } - public bool ShouldSerializenum_updates() => __pbn__num_updates != null; - public void Resetnum_updates() => __pbn__num_updates = null; - private uint? __pbn__num_updates; - - [global::ProtoBuf.ProtoMember(12)] - public uint replay_size_bytes - { - get => __pbn__replay_size_bytes.GetValueOrDefault(); - set => __pbn__replay_size_bytes = value; - } - public bool ShouldSerializereplay_size_bytes() => __pbn__replay_size_bytes != null; - public void Resetreplay_size_bytes() => __pbn__replay_size_bytes = null; - private uint? __pbn__replay_size_bytes; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerSignoutData_GameOptions : 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 global::System.Collections.Generic.List game_options { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class GameOption : 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)] - [global::System.ComponentModel.DefaultValue("")] - public string key - { - get => __pbn__key ?? ""; - set => __pbn__key = value; - } - public bool ShouldSerializekey() => __pbn__key != null; - public void Resetkey() => __pbn__key = null; - private string __pbn__key; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string value - { - get => __pbn__value ?? ""; - set => __pbn__value = value; - } - public bool ShouldSerializevalue() => __pbn__value != null; - public void Resetvalue() => __pbn__value = null; - private string __pbn__value; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgMatchDisconnection : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint disconnect_time - { - get => __pbn__disconnect_time.GetValueOrDefault(); - set => __pbn__disconnect_time = value; - } - public bool ShouldSerializedisconnect_time() => __pbn__disconnect_time != null; - public void Resetdisconnect_time() => __pbn__disconnect_time = null; - private uint? __pbn__disconnect_time; - - [global::ProtoBuf.ProtoMember(3)] - public uint connection_state - { - get => __pbn__connection_state.GetValueOrDefault(); - set => __pbn__connection_state = value; - } - public bool ShouldSerializeconnection_state() => __pbn__connection_state != null; - public void Resetconnection_state() => __pbn__connection_state = null; - private uint? __pbn__connection_state; - - [global::ProtoBuf.ProtoMember(4)] - public uint reason_code - { - get => __pbn__reason_code.GetValueOrDefault(); - set => __pbn__reason_code = value; - } - public bool ShouldSerializereason_code() => __pbn__reason_code != null; - public void Resetreason_code() => __pbn__reason_code = null; - private uint? __pbn__reason_code; - - [global::ProtoBuf.ProtoMember(5)] - public uint reconnect_delay - { - get => __pbn__reconnect_delay.GetValueOrDefault(); - set => __pbn__reconnect_delay = value; - } - public bool ShouldSerializereconnect_delay() => __pbn__reconnect_delay != null; - public void Resetreconnect_delay() => __pbn__reconnect_delay = null; - private uint? __pbn__reconnect_delay; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerSignoutData_Disconnections : 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 global::System.Collections.Generic.List disconnections { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerToGCMatchSignout : 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 global::System.Collections.Generic.List additional_data { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(2)] - public uint signout_attempt - { - get => __pbn__signout_attempt.GetValueOrDefault(); - set => __pbn__signout_attempt = value; - } - public bool ShouldSerializesignout_attempt() => __pbn__signout_attempt != null; - public void Resetsignout_attempt() => __pbn__signout_attempt = null; - private uint? __pbn__signout_attempt; - - [global::ProtoBuf.ProtoMember(3)] - public ulong lobby_id - { - get => __pbn__lobby_id.GetValueOrDefault(); - set => __pbn__lobby_id = value; - } - public bool ShouldSerializelobby_id() => __pbn__lobby_id != null; - public void Resetlobby_id() => __pbn__lobby_id = null; - private ulong? __pbn__lobby_id; - - [global::ProtoBuf.ProtoMember(9)] - public uint cluster_id - { - get => __pbn__cluster_id.GetValueOrDefault(); - set => __pbn__cluster_id = value; - } - public bool ShouldSerializecluster_id() => __pbn__cluster_id != null; - public void Resetcluster_id() => __pbn__cluster_id = null; - private uint? __pbn__cluster_id; - - [global::ProtoBuf.ProtoMember(10)] - public CMsgMatchData match_data { get; set; } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerToGCMatchSignoutResponse : 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)] - [global::System.ComponentModel.DefaultValue(ESignoutResult.k_ESignout_Failed_Retry)] - public ESignoutResult result - { - get => __pbn__result ?? ESignoutResult.k_ESignout_Failed_Retry; - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private ESignoutResult? __pbn__result; - - [global::ProtoBuf.ProtoContract()] - public enum ESignoutResult - { - k_ESignout_Failed_Retry = 1, - k_ESignout_Failed_NoRetry = 2, - k_ESignout_Failed_InFlight = 3, - k_ESignout_Success = 4, - k_ESignout_Success_AlreadySignedOut = 5, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerWelcomeDCG : 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.ProtoContract()] - public partial class CMsgServerToGCIdlePing : 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 server_version - { - get => __pbn__server_version.GetValueOrDefault(); - set => __pbn__server_version = value; - } - public bool ShouldSerializeserver_version() => __pbn__server_version != null; - public void Resetserver_version() => __pbn__server_version = null; - private uint? __pbn__server_version; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToServerRequestPing : 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.ProtoContract()] - public partial class CMsgGCToServerAllocateForMatch : 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 ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToServerAllocateForMatchResponse : 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.ProtoContract()] - public partial class CMsgServerToGCEnterMatchmaking : 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 server_version - { - get => __pbn__server_version.GetValueOrDefault(); - set => __pbn__server_version = value; - } - public bool ShouldSerializeserver_version() => __pbn__server_version != null; - public void Resetserver_version() => __pbn__server_version = null; - private uint? __pbn__server_version; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string search_key - { - get => __pbn__search_key ?? ""; - set => __pbn__search_key = value; - } - public bool ShouldSerializesearch_key() => __pbn__search_key != null; - public void Resetsearch_key() => __pbn__search_key = null; - private string __pbn__search_key; - - [global::ProtoBuf.ProtoMember(3)] - public uint region_id - { - get => __pbn__region_id.GetValueOrDefault(); - set => __pbn__region_id = value; - } - public bool ShouldSerializeregion_id() => __pbn__region_id != null; - public void Resetregion_id() => __pbn__region_id = null; - private uint? __pbn__region_id; - - [global::ProtoBuf.ProtoMember(4)] - public uint cluster_id - { - get => __pbn__cluster_id.GetValueOrDefault(); - set => __pbn__cluster_id = value; - } - public bool ShouldSerializecluster_id() => __pbn__cluster_id != null; - public void Resetcluster_id() => __pbn__cluster_id = null; - private uint? __pbn__cluster_id; - - [global::ProtoBuf.ProtoMember(5)] - public uint server_public_ip - { - get => __pbn__server_public_ip.GetValueOrDefault(); - set => __pbn__server_public_ip = value; - } - public bool ShouldSerializeserver_public_ip() => __pbn__server_public_ip != null; - public void Resetserver_public_ip() => __pbn__server_public_ip = null; - private uint? __pbn__server_public_ip; - - [global::ProtoBuf.ProtoMember(6)] - public uint server_private_ip - { - get => __pbn__server_private_ip.GetValueOrDefault(); - set => __pbn__server_private_ip = value; - } - public bool ShouldSerializeserver_private_ip() => __pbn__server_private_ip != null; - public void Resetserver_private_ip() => __pbn__server_private_ip = null; - private uint? __pbn__server_private_ip; - - [global::ProtoBuf.ProtoMember(7)] - public uint server_port - { - get => __pbn__server_port.GetValueOrDefault(); - set => __pbn__server_port = value; - } - public bool ShouldSerializeserver_port() => __pbn__server_port != null; - public void Resetserver_port() => __pbn__server_port = null; - private uint? __pbn__server_port; - - [global::ProtoBuf.ProtoMember(9)] - public byte[] sdr_address - { - get => __pbn__sdr_address; - set => __pbn__sdr_address = value; - } - public bool ShouldSerializesdr_address() => __pbn__sdr_address != null; - public void Resetsdr_address() => __pbn__sdr_address = null; - private byte[] __pbn__sdr_address; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToServerCancelAllocateForMatch : 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 ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerToGCUpdateLobbyServerState : 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 ulong lobby_id - { - get => __pbn__lobby_id.GetValueOrDefault(); - set => __pbn__lobby_id = value; - } - public bool ShouldSerializelobby_id() => __pbn__lobby_id != null; - public void Resetlobby_id() => __pbn__lobby_id = null; - private ulong? __pbn__lobby_id; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue(ELobbyServerState.k_eLobbyServerState_Assign)] - public ELobbyServerState server_state - { - get => __pbn__server_state ?? ELobbyServerState.k_eLobbyServerState_Assign; - set => __pbn__server_state = value; - } - public bool ShouldSerializeserver_state() => __pbn__server_state != null; - public void Resetserver_state() => __pbn__server_state = null; - private ELobbyServerState? __pbn__server_state; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerToGCAbandonMatch : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong server_steam_id - { - get => __pbn__server_steam_id.GetValueOrDefault(); - set => __pbn__server_steam_id = value; - } - public bool ShouldSerializeserver_steam_id() => __pbn__server_steam_id != null; - public void Resetserver_steam_id() => __pbn__server_steam_id = null; - private ulong? __pbn__server_steam_id; - - [global::ProtoBuf.ProtoMember(2, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong lobby_id - { - get => __pbn__lobby_id.GetValueOrDefault(); - set => __pbn__lobby_id = value; - } - public bool ShouldSerializelobby_id() => __pbn__lobby_id != null; - public void Resetlobby_id() => __pbn__lobby_id = null; - private ulong? __pbn__lobby_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint cluster_id - { - get => __pbn__cluster_id.GetValueOrDefault(); - set => __pbn__cluster_id = value; - } - public bool ShouldSerializecluster_id() => __pbn__cluster_id != null; - public void Resetcluster_id() => __pbn__cluster_id = null; - private uint? __pbn__cluster_id; - - [global::ProtoBuf.ProtoMember(4)] - [global::System.ComponentModel.DefaultValue(EReason.eReason_ServerCrash)] - public EReason reason_code - { - get => __pbn__reason_code ?? EReason.eReason_ServerCrash; - set => __pbn__reason_code = value; - } - public bool ShouldSerializereason_code() => __pbn__reason_code != null; - public void Resetreason_code() => __pbn__reason_code = null; - private EReason? __pbn__reason_code; - - [global::ProtoBuf.ProtoMember(5)] - public ulong additional_data - { - get => __pbn__additional_data.GetValueOrDefault(); - set => __pbn__additional_data = value; - } - public bool ShouldSerializeadditional_data() => __pbn__additional_data != null; - public void Resetadditional_data() => __pbn__additional_data = null; - private ulong? __pbn__additional_data; - - [global::ProtoBuf.ProtoMember(6)] - public ulong match_id - { - get => __pbn__match_id.GetValueOrDefault(); - set => __pbn__match_id = value; - } - public bool ShouldSerializematch_id() => __pbn__match_id != null; - public void Resetmatch_id() => __pbn__match_id = null; - private ulong? __pbn__match_id; - - [global::ProtoBuf.ProtoMember(7)] - public uint gauntlet_id - { - get => __pbn__gauntlet_id.GetValueOrDefault(); - set => __pbn__gauntlet_id = value; - } - public bool ShouldSerializegauntlet_id() => __pbn__gauntlet_id != null; - public void Resetgauntlet_id() => __pbn__gauntlet_id = null; - private uint? __pbn__gauntlet_id; - - [global::ProtoBuf.ProtoMember(8)] - public global::System.Collections.Generic.List players { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(9, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public uint public_ip_address - { - get => __pbn__public_ip_address.GetValueOrDefault(); - set => __pbn__public_ip_address = value; - } - public bool ShouldSerializepublic_ip_address() => __pbn__public_ip_address != null; - public void Resetpublic_ip_address() => __pbn__public_ip_address = null; - private uint? __pbn__public_ip_address; - - [global::ProtoBuf.ProtoMember(10)] - public uint port - { - get => __pbn__port.GetValueOrDefault(); - set => __pbn__port = value; - } - public bool ShouldSerializeport() => __pbn__port != null; - public void Resetport() => __pbn__port = null; - private uint? __pbn__port; - - [global::ProtoBuf.ProtoMember(11)] - public uint server_version - { - get => __pbn__server_version.GetValueOrDefault(); - set => __pbn__server_version = value; - } - public bool ShouldSerializeserver_version() => __pbn__server_version != null; - public void Resetserver_version() => __pbn__server_version = null; - private uint? __pbn__server_version; - - [global::ProtoBuf.ProtoMember(12)] - public uint pid - { - get => __pbn__pid.GetValueOrDefault(); - set => __pbn__pid = value; - } - public bool ShouldSerializepid() => __pbn__pid != null; - public void Resetpid() => __pbn__pid = null; - private uint? __pbn__pid; - - [global::ProtoBuf.ProtoMember(13)] - public uint instance_id - { - get => __pbn__instance_id.GetValueOrDefault(); - set => __pbn__instance_id = value; - } - public bool ShouldSerializeinstance_id() => __pbn__instance_id != null; - public void Resetinstance_id() => __pbn__instance_id = null; - private uint? __pbn__instance_id; - - [global::ProtoBuf.ProtoMember(14)] - public uint private_ip_address - { - get => __pbn__private_ip_address.GetValueOrDefault(); - set => __pbn__private_ip_address = value; - } - public bool ShouldSerializeprivate_ip_address() => __pbn__private_ip_address != null; - public void Resetprivate_ip_address() => __pbn__private_ip_address = null; - private uint? __pbn__private_ip_address; - - [global::ProtoBuf.ProtoContract()] - public partial class Player : 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 account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(2)] - public ulong additional_data - { - get => __pbn__additional_data.GetValueOrDefault(); - set => __pbn__additional_data = value; - } - public bool ShouldSerializeadditional_data() => __pbn__additional_data != null; - public void Resetadditional_data() => __pbn__additional_data = null; - private ulong? __pbn__additional_data; - - } - - [global::ProtoBuf.ProtoContract()] - public enum EReason - { - eReason_ServerCrash = 1, - eReason_ClientsFailedToConnect = 2, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerToGCAbandonMatchResponse : 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.ProtoContract()] - public partial class CMsgServerToGCTestConnection : 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.ProtoContract()] - public partial class CMsgServerToGCTestConnectionResponse : 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 state - { - get => __pbn__state.GetValueOrDefault(); - set => __pbn__state = value; - } - public bool ShouldSerializestate() => __pbn__state != null; - public void Resetstate() => __pbn__state = null; - private uint? __pbn__state; - - [global::ProtoBuf.ProtoMember(2)] - public ulong lobby_id - { - get => __pbn__lobby_id.GetValueOrDefault(); - set => __pbn__lobby_id = value; - } - public bool ShouldSerializelobby_id() => __pbn__lobby_id != null; - public void Resetlobby_id() => __pbn__lobby_id = null; - private ulong? __pbn__lobby_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToServerAddTourneySpectator : 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 ulong lobby_id - { - get => __pbn__lobby_id.GetValueOrDefault(); - set => __pbn__lobby_id = value; - } - public bool ShouldSerializelobby_id() => __pbn__lobby_id != null; - public void Resetlobby_id() => __pbn__lobby_id = null; - private ulong? __pbn__lobby_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint account_id - { - get => __pbn__account_id.GetValueOrDefault(); - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint account_to_spectate_id - { - get => __pbn__account_to_spectate_id.GetValueOrDefault(); - set => __pbn__account_to_spectate_id = value; - } - public bool ShouldSerializeaccount_to_spectate_id() => __pbn__account_to_spectate_id != null; - public void Resetaccount_to_spectate_id() => __pbn__account_to_spectate_id = null; - private uint? __pbn__account_to_spectate_id; - - [global::ProtoBuf.ProtoMember(4)] - public ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToServerAddTourneySpectatorResponse : 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)] - public ulong tourney_id - { - get => __pbn__tourney_id.GetValueOrDefault(); - set => __pbn__tourney_id = value; - } - public bool ShouldSerializetourney_id() => __pbn__tourney_id != null; - public void Resettourney_id() => __pbn__tourney_id = null; - private ulong? __pbn__tourney_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToServerRunTests : 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 expected_version - { - get => __pbn__expected_version.GetValueOrDefault(); - set => __pbn__expected_version = value; - } - public bool ShouldSerializeexpected_version() => __pbn__expected_version != null; - public void Resetexpected_version() => __pbn__expected_version = null; - private uint? __pbn__expected_version; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCToServerRunTestsResponse : 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 running_tests - { - get => __pbn__running_tests.GetValueOrDefault(); - set => __pbn__running_tests = value; - } - public bool ShouldSerializerunning_tests() => __pbn__running_tests != null; - public void Resetrunning_tests() => __pbn__running_tests = null; - private bool? __pbn__running_tests; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgServerToGCTestResults : 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 global::System.Collections.Generic.List results { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(2)] - public uint server_version - { - get => __pbn__server_version.GetValueOrDefault(); - set => __pbn__server_version = value; - } - public bool ShouldSerializeserver_version() => __pbn__server_version != null; - public void Resetserver_version() => __pbn__server_version = null; - private uint? __pbn__server_version; - - [global::ProtoBuf.ProtoContract()] - public partial class TestResult : 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)] - [global::System.ComponentModel.DefaultValue("")] - public string test_name - { - get => __pbn__test_name ?? ""; - set => __pbn__test_name = value; - } - public bool ShouldSerializetest_name() => __pbn__test_name != null; - public void Resettest_name() => __pbn__test_name = null; - private string __pbn__test_name; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string test_group - { - get => __pbn__test_group ?? ""; - set => __pbn__test_group = value; - } - public bool ShouldSerializetest_group() => __pbn__test_group != null; - public void Resettest_group() => __pbn__test_group = null; - private string __pbn__test_group; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue(CMsgServerToGCTestResults.ETestResult.eResult_Failure)] - public CMsgServerToGCTestResults.ETestResult test_result - { - get => __pbn__test_result ?? CMsgServerToGCTestResults.ETestResult.eResult_Failure; - set => __pbn__test_result = value; - } - public bool ShouldSerializetest_result() => __pbn__test_result != null; - public void Resettest_result() => __pbn__test_result = null; - private CMsgServerToGCTestResults.ETestResult? __pbn__test_result; - - } - - [global::ProtoBuf.ProtoContract()] - public enum ETestResult - { - eResult_Failure = 0, - eResult_Success = 1, - eResult_Disabled = 2, - } - - } - - [global::ProtoBuf.ProtoContract()] - public enum EGCDCGServerMessages - { - k_EMsgServerToGCMatchSignoutPermission = 10012, - k_EMsgServerToGCMatchSignoutPermissionResponse = 10013, - k_EMsgServerToGCMatchSignout = 10014, - k_EMsgServerToGCMatchSignoutResponse = 10015, - k_EMsgServerToGCIdlePing = 10018, - k_EMsgGCToServerRequestPing = 10019, - k_EMsgGCToServerAllocateForMatch = 10021, - k_EMsgGCToServerAllocateForMatchResponse = 10022, - k_EMsgServerToGCEnterMatchmaking = 10023, - k_EMsgGCToServerCancelAllocateForMatch = 10024, - k_EMsgServerToGCUpdateLobbyServerState = 10025, - k_EMsgServerToGCAbandonMatch = 10026, - k_EMsgServerToGCAbandonMatchResponse = 10027, - k_EMsgServerToGCTestConnection = 10028, - k_EMsgServerToGCTestConnectionResponse = 10029, - k_EMsgGCToServerRunTests = 10031, - k_EMsgGCToServerRunTestsResponse = 10032, - k_EMsgServerToGCTestResults = 10033, - k_EMsgGCToServerAddTourneySpectator = 10034, - k_EMsgGCToServerAddTourneySpectatorResponse = 10035, - } - - [global::ProtoBuf.ProtoContract()] - public enum EGCServerLobbyData - { - k_EServerLobbyData_DeckValidator = 1, - k_EServerLobbyData_DraftCards = 3, - k_EServerLobbyData_PlayerDeck = 4, - k_EServerLobbyData_PlayerMMR = 5, - k_EServerLobbyData_CardAchievements = 6, - k_EServerLobbyData_GauntletInfo = 7, - k_EServerLobbyData_PlayerInfo = 8, - } - - [global::ProtoBuf.ProtoContract()] - public enum EGCServerSignoutData - { - k_EServerSignoutData_PlayerProgress = 1, - k_EServerSignoutData_PlayerDecks = 2, - k_EServerSignoutData_LobbyInfo = 4, - k_EServerSignoutData_GameOptions = 9, - k_EServerSignoutData_CardAchievements = 11, - k_EServerSignoutData_PerformanceStats = 12, - k_EServerSignoutData_Disconnections = 13, - k_EServerSignoutData_MatchChatStats = 14, - } - -} - -#pragma warning restore CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192 -#endregion diff --git a/SteamKit2/Base/Generated/GC/Artifact/SteamMsgBase.cs b/SteamKit2/Base/Generated/GC/Artifact/SteamMsgBase.cs deleted file mode 100644 index 919f133d6..000000000 --- a/SteamKit2/Base/Generated/GC/Artifact/SteamMsgBase.cs +++ /dev/null @@ -1,3707 +0,0 @@ -// -// This file was generated by a tool; you should avoid making direct changes. -// Consider using 'partial classes' to extend these types -// Input: steammessages.proto -// - -#region Designer generated code -#pragma warning disable CS0612, CS0618, CS1591, CS3021, IDE0079, IDE1006, RCS1036, RCS1057, RCS1085, RCS1192 -namespace SteamKit2.GC.Artifact.Internal -{ - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgProtoBufHeader : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong client_steam_id - { - get => __pbn__client_steam_id.GetValueOrDefault(); - set => __pbn__client_steam_id = value; - } - public bool ShouldSerializeclient_steam_id() => __pbn__client_steam_id != null; - public void Resetclient_steam_id() => __pbn__client_steam_id = null; - private ulong? __pbn__client_steam_id; - - [global::ProtoBuf.ProtoMember(2)] - public int client_session_id - { - get => __pbn__client_session_id.GetValueOrDefault(); - set => __pbn__client_session_id = value; - } - public bool ShouldSerializeclient_session_id() => __pbn__client_session_id != null; - public void Resetclient_session_id() => __pbn__client_session_id = null; - private int? __pbn__client_session_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint source_app_id - { - get => __pbn__source_app_id.GetValueOrDefault(); - set => __pbn__source_app_id = value; - } - public bool ShouldSerializesource_app_id() => __pbn__source_app_id != null; - public void Resetsource_app_id() => __pbn__source_app_id = null; - private uint? __pbn__source_app_id; - - [global::ProtoBuf.ProtoMember(10, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - [global::System.ComponentModel.DefaultValue(typeof(ulong), "18446744073709551615")] - public ulong job_id_source - { - get => __pbn__job_id_source ?? 18446744073709551615ul; - set => __pbn__job_id_source = value; - } - public bool ShouldSerializejob_id_source() => __pbn__job_id_source != null; - public void Resetjob_id_source() => __pbn__job_id_source = null; - private ulong? __pbn__job_id_source; - - [global::ProtoBuf.ProtoMember(11, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - [global::System.ComponentModel.DefaultValue(typeof(ulong), "18446744073709551615")] - public ulong job_id_target - { - get => __pbn__job_id_target ?? 18446744073709551615ul; - set => __pbn__job_id_target = value; - } - public bool ShouldSerializejob_id_target() => __pbn__job_id_target != null; - public void Resetjob_id_target() => __pbn__job_id_target = null; - private ulong? __pbn__job_id_target; - - [global::ProtoBuf.ProtoMember(12)] - [global::System.ComponentModel.DefaultValue("")] - public string target_job_name - { - get => __pbn__target_job_name ?? ""; - set => __pbn__target_job_name = value; - } - public bool ShouldSerializetarget_job_name() => __pbn__target_job_name != null; - public void Resettarget_job_name() => __pbn__target_job_name = null; - private string __pbn__target_job_name; - - [global::ProtoBuf.ProtoMember(13)] - [global::System.ComponentModel.DefaultValue(2)] - public int eresult - { - get => __pbn__eresult ?? 2; - set => __pbn__eresult = value; - } - public bool ShouldSerializeeresult() => __pbn__eresult != null; - public void Reseteresult() => __pbn__eresult = null; - private int? __pbn__eresult; - - [global::ProtoBuf.ProtoMember(14)] - [global::System.ComponentModel.DefaultValue("")] - public string error_message - { - get => __pbn__error_message ?? ""; - set => __pbn__error_message = value; - } - public bool ShouldSerializeerror_message() => __pbn__error_message != null; - public void Reseterror_message() => __pbn__error_message = null; - private string __pbn__error_message; - - [global::ProtoBuf.ProtoMember(200)] - [global::System.ComponentModel.DefaultValue(GCProtoBufMsgSrc.GCProtoBufMsgSrc_Unspecified)] - public GCProtoBufMsgSrc gc_msg_src - { - get => __pbn__gc_msg_src ?? GCProtoBufMsgSrc.GCProtoBufMsgSrc_Unspecified; - set => __pbn__gc_msg_src = value; - } - public bool ShouldSerializegc_msg_src() => __pbn__gc_msg_src != null; - public void Resetgc_msg_src() => __pbn__gc_msg_src = null; - private GCProtoBufMsgSrc? __pbn__gc_msg_src; - - [global::ProtoBuf.ProtoMember(201)] - public uint gc_dir_index_source - { - get => __pbn__gc_dir_index_source.GetValueOrDefault(); - set => __pbn__gc_dir_index_source = value; - } - public bool ShouldSerializegc_dir_index_source() => __pbn__gc_dir_index_source != null; - public void Resetgc_dir_index_source() => __pbn__gc_dir_index_source = null; - private uint? __pbn__gc_dir_index_source; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgWebAPIKey : 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)] - [global::System.ComponentModel.DefaultValue(255u)] - public uint status - { - get => __pbn__status ?? 255u; - set => __pbn__status = value; - } - public bool ShouldSerializestatus() => __pbn__status != null; - public void Resetstatus() => __pbn__status = null; - private uint? __pbn__status; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue(0u)] - public uint account_id - { - get => __pbn__account_id ?? 0u; - set => __pbn__account_id = value; - } - public bool ShouldSerializeaccount_id() => __pbn__account_id != null; - public void Resetaccount_id() => __pbn__account_id = null; - private uint? __pbn__account_id; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue(0u)] - public uint publisher_group_id - { - get => __pbn__publisher_group_id ?? 0u; - set => __pbn__publisher_group_id = value; - } - public bool ShouldSerializepublisher_group_id() => __pbn__publisher_group_id != null; - public void Resetpublisher_group_id() => __pbn__publisher_group_id = null; - private uint? __pbn__publisher_group_id; - - [global::ProtoBuf.ProtoMember(4)] - public uint key_id - { - get => __pbn__key_id.GetValueOrDefault(); - set => __pbn__key_id = value; - } - public bool ShouldSerializekey_id() => __pbn__key_id != null; - public void Resetkey_id() => __pbn__key_id = null; - private uint? __pbn__key_id; - - [global::ProtoBuf.ProtoMember(5)] - [global::System.ComponentModel.DefaultValue("")] - public string domain - { - get => __pbn__domain ?? ""; - set => __pbn__domain = value; - } - public bool ShouldSerializedomain() => __pbn__domain != null; - public void Resetdomain() => __pbn__domain = null; - private string __pbn__domain; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgHttpRequest : 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 request_method - { - get => __pbn__request_method.GetValueOrDefault(); - set => __pbn__request_method = value; - } - public bool ShouldSerializerequest_method() => __pbn__request_method != null; - public void Resetrequest_method() => __pbn__request_method = null; - private uint? __pbn__request_method; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string hostname - { - get => __pbn__hostname ?? ""; - set => __pbn__hostname = value; - } - public bool ShouldSerializehostname() => __pbn__hostname != null; - public void Resethostname() => __pbn__hostname = null; - private string __pbn__hostname; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue("")] - public string url - { - get => __pbn__url ?? ""; - set => __pbn__url = value; - } - public bool ShouldSerializeurl() => __pbn__url != null; - public void Reseturl() => __pbn__url = null; - private string __pbn__url; - - [global::ProtoBuf.ProtoMember(4)] - public global::System.Collections.Generic.List headers { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(5)] - public global::System.Collections.Generic.List get_params { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(6)] - public global::System.Collections.Generic.List post_params { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(7)] - public byte[] body - { - get => __pbn__body; - set => __pbn__body = value; - } - public bool ShouldSerializebody() => __pbn__body != null; - public void Resetbody() => __pbn__body = null; - private byte[] __pbn__body; - - [global::ProtoBuf.ProtoMember(8)] - public uint absolute_timeout - { - get => __pbn__absolute_timeout.GetValueOrDefault(); - set => __pbn__absolute_timeout = value; - } - public bool ShouldSerializeabsolute_timeout() => __pbn__absolute_timeout != null; - public void Resetabsolute_timeout() => __pbn__absolute_timeout = null; - private uint? __pbn__absolute_timeout; - - [global::ProtoBuf.ProtoContract()] - public partial class RequestHeader : 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)] - [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(2)] - [global::System.ComponentModel.DefaultValue("")] - public string value - { - get => __pbn__value ?? ""; - set => __pbn__value = value; - } - public bool ShouldSerializevalue() => __pbn__value != null; - public void Resetvalue() => __pbn__value = null; - private string __pbn__value; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class QueryParam : 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)] - [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(2)] - public byte[] value - { - get => __pbn__value; - set => __pbn__value = value; - } - public bool ShouldSerializevalue() => __pbn__value != null; - public void Resetvalue() => __pbn__value = null; - private byte[] __pbn__value; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgWebAPIRequest : 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)] - [global::System.ComponentModel.DefaultValue("")] - public string UNUSED_job_name - { - get => __pbn__UNUSED_job_name ?? ""; - set => __pbn__UNUSED_job_name = value; - } - public bool ShouldSerializeUNUSED_job_name() => __pbn__UNUSED_job_name != null; - public void ResetUNUSED_job_name() => __pbn__UNUSED_job_name = null; - private string __pbn__UNUSED_job_name; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string interface_name - { - get => __pbn__interface_name ?? ""; - set => __pbn__interface_name = value; - } - public bool ShouldSerializeinterface_name() => __pbn__interface_name != null; - public void Resetinterface_name() => __pbn__interface_name = null; - private string __pbn__interface_name; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue("")] - public string method_name - { - get => __pbn__method_name ?? ""; - set => __pbn__method_name = value; - } - public bool ShouldSerializemethod_name() => __pbn__method_name != null; - public void Resetmethod_name() => __pbn__method_name = null; - private string __pbn__method_name; - - [global::ProtoBuf.ProtoMember(4)] - public uint version - { - get => __pbn__version.GetValueOrDefault(); - set => __pbn__version = value; - } - public bool ShouldSerializeversion() => __pbn__version != null; - public void Resetversion() => __pbn__version = null; - private uint? __pbn__version; - - [global::ProtoBuf.ProtoMember(5)] - public CMsgWebAPIKey api_key { get; set; } - - [global::ProtoBuf.ProtoMember(6)] - public CMsgHttpRequest request { get; set; } - - [global::ProtoBuf.ProtoMember(7)] - public uint routing_app_id - { - get => __pbn__routing_app_id.GetValueOrDefault(); - set => __pbn__routing_app_id = value; - } - public bool ShouldSerializerouting_app_id() => __pbn__routing_app_id != null; - public void Resetrouting_app_id() => __pbn__routing_app_id = null; - private uint? __pbn__routing_app_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgHttpResponse : 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 status_code - { - get => __pbn__status_code.GetValueOrDefault(); - set => __pbn__status_code = value; - } - public bool ShouldSerializestatus_code() => __pbn__status_code != null; - public void Resetstatus_code() => __pbn__status_code = null; - private uint? __pbn__status_code; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List headers { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3)] - public byte[] body - { - get => __pbn__body; - set => __pbn__body = value; - } - public bool ShouldSerializebody() => __pbn__body != null; - public void Resetbody() => __pbn__body = null; - private byte[] __pbn__body; - - [global::ProtoBuf.ProtoContract()] - public partial class ResponseHeader : 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)] - [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(2)] - [global::System.ComponentModel.DefaultValue("")] - public string value - { - get => __pbn__value ?? ""; - set => __pbn__value = value; - } - public bool ShouldSerializevalue() => __pbn__value != null; - public void Resetvalue() => __pbn__value = null; - private string __pbn__value; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgAMFindAccounts : 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 search_type - { - get => __pbn__search_type.GetValueOrDefault(); - set => __pbn__search_type = value; - } - public bool ShouldSerializesearch_type() => __pbn__search_type != null; - public void Resetsearch_type() => __pbn__search_type = null; - private uint? __pbn__search_type; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string search_string - { - get => __pbn__search_string ?? ""; - set => __pbn__search_string = value; - } - public bool ShouldSerializesearch_string() => __pbn__search_string != null; - public void Resetsearch_string() => __pbn__search_string = null; - private string __pbn__search_string; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgAMFindAccountsResponse : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public global::System.Collections.Generic.List steam_id { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgNotifyWatchdog : 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 source - { - get => __pbn__source.GetValueOrDefault(); - set => __pbn__source = value; - } - public bool ShouldSerializesource() => __pbn__source != null; - public void Resetsource() => __pbn__source = null; - private uint? __pbn__source; - - [global::ProtoBuf.ProtoMember(2)] - public uint alert_type - { - get => __pbn__alert_type.GetValueOrDefault(); - set => __pbn__alert_type = value; - } - public bool ShouldSerializealert_type() => __pbn__alert_type != null; - public void Resetalert_type() => __pbn__alert_type = null; - private uint? __pbn__alert_type; - - [global::ProtoBuf.ProtoMember(4)] - public bool critical - { - get => __pbn__critical.GetValueOrDefault(); - set => __pbn__critical = value; - } - public bool ShouldSerializecritical() => __pbn__critical != null; - public void Resetcritical() => __pbn__critical = null; - private bool? __pbn__critical; - - [global::ProtoBuf.ProtoMember(5)] - public uint time - { - get => __pbn__time.GetValueOrDefault(); - set => __pbn__time = value; - } - public bool ShouldSerializetime() => __pbn__time != null; - public void Resettime() => __pbn__time = null; - private uint? __pbn__time; - - [global::ProtoBuf.ProtoMember(6)] - public uint appid - { - get => __pbn__appid.GetValueOrDefault(); - set => __pbn__appid = value; - } - public bool ShouldSerializeappid() => __pbn__appid != null; - public void Resetappid() => __pbn__appid = null; - private uint? __pbn__appid; - - [global::ProtoBuf.ProtoMember(7)] - [global::System.ComponentModel.DefaultValue("")] - public string text - { - get => __pbn__text ?? ""; - set => __pbn__text = value; - } - public bool ShouldSerializetext() => __pbn__text != null; - public void Resettext() => __pbn__text = null; - private string __pbn__text; - - [global::ProtoBuf.ProtoMember(12)] - [global::System.ComponentModel.DefaultValue("")] - public string recipient - { - get => __pbn__recipient ?? ""; - set => __pbn__recipient = value; - } - public bool ShouldSerializerecipient() => __pbn__recipient != null; - public void Resetrecipient() => __pbn__recipient = null; - private string __pbn__recipient; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgAMGetLicenses : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steamid - { - get => __pbn__steamid.GetValueOrDefault(); - set => __pbn__steamid = value; - } - public bool ShouldSerializesteamid() => __pbn__steamid != null; - public void Resetsteamid() => __pbn__steamid = null; - private ulong? __pbn__steamid; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgPackageLicense : 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 package_id - { - get => __pbn__package_id.GetValueOrDefault(); - set => __pbn__package_id = value; - } - public bool ShouldSerializepackage_id() => __pbn__package_id != null; - public void Resetpackage_id() => __pbn__package_id = null; - private uint? __pbn__package_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint time_created - { - get => __pbn__time_created.GetValueOrDefault(); - set => __pbn__time_created = value; - } - public bool ShouldSerializetime_created() => __pbn__time_created != null; - public void Resettime_created() => __pbn__time_created = null; - private uint? __pbn__time_created; - - [global::ProtoBuf.ProtoMember(3)] - public uint owner_id - { - get => __pbn__owner_id.GetValueOrDefault(); - set => __pbn__owner_id = value; - } - public bool ShouldSerializeowner_id() => __pbn__owner_id != null; - public void Resetowner_id() => __pbn__owner_id = null; - private uint? __pbn__owner_id; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgAMGetLicensesResponse : 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 global::System.Collections.Generic.List license { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(2)] - public uint result - { - get => __pbn__result.GetValueOrDefault(); - set => __pbn__result = value; - } - public bool ShouldSerializeresult() => __pbn__result != null; - public void Resetresult() => __pbn__result = null; - private uint? __pbn__result; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgAMGetUserGameStats : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steam_id - { - get => __pbn__steam_id.GetValueOrDefault(); - set => __pbn__steam_id = value; - } - public bool ShouldSerializesteam_id() => __pbn__steam_id != null; - public void Resetsteam_id() => __pbn__steam_id = null; - private ulong? __pbn__steam_id; - - [global::ProtoBuf.ProtoMember(2, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong game_id - { - get => __pbn__game_id.GetValueOrDefault(); - set => __pbn__game_id = value; - } - public bool ShouldSerializegame_id() => __pbn__game_id != null; - public void Resetgame_id() => __pbn__game_id = null; - private ulong? __pbn__game_id; - - [global::ProtoBuf.ProtoMember(3)] - public global::System.Collections.Generic.List stats { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgAMGetUserGameStatsResponse : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steam_id - { - get => __pbn__steam_id.GetValueOrDefault(); - set => __pbn__steam_id = value; - } - public bool ShouldSerializesteam_id() => __pbn__steam_id != null; - public void Resetsteam_id() => __pbn__steam_id = null; - private ulong? __pbn__steam_id; - - [global::ProtoBuf.ProtoMember(2, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong game_id - { - get => __pbn__game_id.GetValueOrDefault(); - set => __pbn__game_id = value; - } - public bool ShouldSerializegame_id() => __pbn__game_id != null; - public void Resetgame_id() => __pbn__game_id = null; - private ulong? __pbn__game_id; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue(2)] - public int eresult - { - get => __pbn__eresult ?? 2; - set => __pbn__eresult = value; - } - public bool ShouldSerializeeresult() => __pbn__eresult != null; - public void Reseteresult() => __pbn__eresult = null; - private int? __pbn__eresult; - - [global::ProtoBuf.ProtoMember(4)] - public global::System.Collections.Generic.List stats { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(5)] - public global::System.Collections.Generic.List achievement_blocks { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class Stats : 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 stat_id - { - get => __pbn__stat_id.GetValueOrDefault(); - set => __pbn__stat_id = value; - } - public bool ShouldSerializestat_id() => __pbn__stat_id != null; - public void Resetstat_id() => __pbn__stat_id = null; - private uint? __pbn__stat_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint stat_value - { - get => __pbn__stat_value.GetValueOrDefault(); - set => __pbn__stat_value = value; - } - public bool ShouldSerializestat_value() => __pbn__stat_value != null; - public void Resetstat_value() => __pbn__stat_value = null; - private uint? __pbn__stat_value; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class Achievement_Blocks : 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 achievement_id - { - get => __pbn__achievement_id.GetValueOrDefault(); - set => __pbn__achievement_id = value; - } - public bool ShouldSerializeachievement_id() => __pbn__achievement_id != null; - public void Resetachievement_id() => __pbn__achievement_id = null; - private uint? __pbn__achievement_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint achievement_bit_id - { - get => __pbn__achievement_bit_id.GetValueOrDefault(); - set => __pbn__achievement_bit_id = value; - } - public bool ShouldSerializeachievement_bit_id() => __pbn__achievement_bit_id != null; - public void Resetachievement_bit_id() => __pbn__achievement_bit_id = null; - private uint? __pbn__achievement_bit_id; - - [global::ProtoBuf.ProtoMember(3, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public uint unlock_time - { - get => __pbn__unlock_time.GetValueOrDefault(); - set => __pbn__unlock_time = value; - } - public bool ShouldSerializeunlock_time() => __pbn__unlock_time != null; - public void Resetunlock_time() => __pbn__unlock_time = null; - private uint? __pbn__unlock_time; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCGetCommandList : 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 app_id - { - get => __pbn__app_id.GetValueOrDefault(); - set => __pbn__app_id = value; - } - public bool ShouldSerializeapp_id() => __pbn__app_id != null; - public void Resetapp_id() => __pbn__app_id = null; - private uint? __pbn__app_id; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string command_prefix - { - get => __pbn__command_prefix ?? ""; - set => __pbn__command_prefix = value; - } - public bool ShouldSerializecommand_prefix() => __pbn__command_prefix != null; - public void Resetcommand_prefix() => __pbn__command_prefix = null; - private string __pbn__command_prefix; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCGetCommandListResponse : 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 global::System.Collections.Generic.List command_name { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCMsgMemCachedGet : 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 global::System.Collections.Generic.List keys { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCMsgMemCachedGetResponse : 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 global::System.Collections.Generic.List values { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class ValueTag : 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 found - { - get => __pbn__found.GetValueOrDefault(); - set => __pbn__found = value; - } - public bool ShouldSerializefound() => __pbn__found != null; - public void Resetfound() => __pbn__found = null; - private bool? __pbn__found; - - [global::ProtoBuf.ProtoMember(2)] - public byte[] value - { - get => __pbn__value; - set => __pbn__value = value; - } - public bool ShouldSerializevalue() => __pbn__value != null; - public void Resetvalue() => __pbn__value = null; - private byte[] __pbn__value; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCMsgMemCachedSet : 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 global::System.Collections.Generic.List keys { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class KeyPair : 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)] - [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(2)] - public byte[] value - { - get => __pbn__value; - set => __pbn__value = value; - } - public bool ShouldSerializevalue() => __pbn__value != null; - public void Resetvalue() => __pbn__value = null; - private byte[] __pbn__value; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCMsgMemCachedDelete : 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 global::System.Collections.Generic.List keys { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCMsgMemCachedStats : 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.ProtoContract()] - public partial class CGCMsgMemCachedStatsResponse : 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 ulong curr_connections - { - get => __pbn__curr_connections.GetValueOrDefault(); - set => __pbn__curr_connections = value; - } - public bool ShouldSerializecurr_connections() => __pbn__curr_connections != null; - public void Resetcurr_connections() => __pbn__curr_connections = null; - private ulong? __pbn__curr_connections; - - [global::ProtoBuf.ProtoMember(2)] - public ulong cmd_get - { - get => __pbn__cmd_get.GetValueOrDefault(); - set => __pbn__cmd_get = value; - } - public bool ShouldSerializecmd_get() => __pbn__cmd_get != null; - public void Resetcmd_get() => __pbn__cmd_get = null; - private ulong? __pbn__cmd_get; - - [global::ProtoBuf.ProtoMember(3)] - public ulong cmd_set - { - get => __pbn__cmd_set.GetValueOrDefault(); - set => __pbn__cmd_set = value; - } - public bool ShouldSerializecmd_set() => __pbn__cmd_set != null; - public void Resetcmd_set() => __pbn__cmd_set = null; - private ulong? __pbn__cmd_set; - - [global::ProtoBuf.ProtoMember(4)] - public ulong cmd_flush - { - get => __pbn__cmd_flush.GetValueOrDefault(); - set => __pbn__cmd_flush = value; - } - public bool ShouldSerializecmd_flush() => __pbn__cmd_flush != null; - public void Resetcmd_flush() => __pbn__cmd_flush = null; - private ulong? __pbn__cmd_flush; - - [global::ProtoBuf.ProtoMember(5)] - public ulong get_hits - { - get => __pbn__get_hits.GetValueOrDefault(); - set => __pbn__get_hits = value; - } - public bool ShouldSerializeget_hits() => __pbn__get_hits != null; - public void Resetget_hits() => __pbn__get_hits = null; - private ulong? __pbn__get_hits; - - [global::ProtoBuf.ProtoMember(6)] - public ulong get_misses - { - get => __pbn__get_misses.GetValueOrDefault(); - set => __pbn__get_misses = value; - } - public bool ShouldSerializeget_misses() => __pbn__get_misses != null; - public void Resetget_misses() => __pbn__get_misses = null; - private ulong? __pbn__get_misses; - - [global::ProtoBuf.ProtoMember(7)] - public ulong delete_hits - { - get => __pbn__delete_hits.GetValueOrDefault(); - set => __pbn__delete_hits = value; - } - public bool ShouldSerializedelete_hits() => __pbn__delete_hits != null; - public void Resetdelete_hits() => __pbn__delete_hits = null; - private ulong? __pbn__delete_hits; - - [global::ProtoBuf.ProtoMember(8)] - public ulong delete_misses - { - get => __pbn__delete_misses.GetValueOrDefault(); - set => __pbn__delete_misses = value; - } - public bool ShouldSerializedelete_misses() => __pbn__delete_misses != null; - public void Resetdelete_misses() => __pbn__delete_misses = null; - private ulong? __pbn__delete_misses; - - [global::ProtoBuf.ProtoMember(9)] - public ulong bytes_read - { - get => __pbn__bytes_read.GetValueOrDefault(); - set => __pbn__bytes_read = value; - } - public bool ShouldSerializebytes_read() => __pbn__bytes_read != null; - public void Resetbytes_read() => __pbn__bytes_read = null; - private ulong? __pbn__bytes_read; - - [global::ProtoBuf.ProtoMember(10)] - public ulong bytes_written - { - get => __pbn__bytes_written.GetValueOrDefault(); - set => __pbn__bytes_written = value; - } - public bool ShouldSerializebytes_written() => __pbn__bytes_written != null; - public void Resetbytes_written() => __pbn__bytes_written = null; - private ulong? __pbn__bytes_written; - - [global::ProtoBuf.ProtoMember(11)] - public ulong limit_maxbytes - { - get => __pbn__limit_maxbytes.GetValueOrDefault(); - set => __pbn__limit_maxbytes = value; - } - public bool ShouldSerializelimit_maxbytes() => __pbn__limit_maxbytes != null; - public void Resetlimit_maxbytes() => __pbn__limit_maxbytes = null; - private ulong? __pbn__limit_maxbytes; - - [global::ProtoBuf.ProtoMember(12)] - public ulong curr_items - { - get => __pbn__curr_items.GetValueOrDefault(); - set => __pbn__curr_items = value; - } - public bool ShouldSerializecurr_items() => __pbn__curr_items != null; - public void Resetcurr_items() => __pbn__curr_items = null; - private ulong? __pbn__curr_items; - - [global::ProtoBuf.ProtoMember(13)] - public ulong evictions - { - get => __pbn__evictions.GetValueOrDefault(); - set => __pbn__evictions = value; - } - public bool ShouldSerializeevictions() => __pbn__evictions != null; - public void Resetevictions() => __pbn__evictions = null; - private ulong? __pbn__evictions; - - [global::ProtoBuf.ProtoMember(14)] - public ulong bytes - { - get => __pbn__bytes.GetValueOrDefault(); - set => __pbn__bytes = value; - } - public bool ShouldSerializebytes() => __pbn__bytes != null; - public void Resetbytes() => __pbn__bytes = null; - private ulong? __pbn__bytes; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCMsgSQLStats : 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 schema_catalog - { - get => __pbn__schema_catalog.GetValueOrDefault(); - set => __pbn__schema_catalog = value; - } - public bool ShouldSerializeschema_catalog() => __pbn__schema_catalog != null; - public void Resetschema_catalog() => __pbn__schema_catalog = null; - private uint? __pbn__schema_catalog; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCMsgSQLStatsResponse : 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 threads - { - get => __pbn__threads.GetValueOrDefault(); - set => __pbn__threads = value; - } - public bool ShouldSerializethreads() => __pbn__threads != null; - public void Resetthreads() => __pbn__threads = null; - private uint? __pbn__threads; - - [global::ProtoBuf.ProtoMember(2)] - public uint threads_connected - { - get => __pbn__threads_connected.GetValueOrDefault(); - set => __pbn__threads_connected = value; - } - public bool ShouldSerializethreads_connected() => __pbn__threads_connected != null; - public void Resetthreads_connected() => __pbn__threads_connected = null; - private uint? __pbn__threads_connected; - - [global::ProtoBuf.ProtoMember(3)] - public uint threads_active - { - get => __pbn__threads_active.GetValueOrDefault(); - set => __pbn__threads_active = value; - } - public bool ShouldSerializethreads_active() => __pbn__threads_active != null; - public void Resetthreads_active() => __pbn__threads_active = null; - private uint? __pbn__threads_active; - - [global::ProtoBuf.ProtoMember(4)] - public uint operations_submitted - { - get => __pbn__operations_submitted.GetValueOrDefault(); - set => __pbn__operations_submitted = value; - } - public bool ShouldSerializeoperations_submitted() => __pbn__operations_submitted != null; - public void Resetoperations_submitted() => __pbn__operations_submitted = null; - private uint? __pbn__operations_submitted; - - [global::ProtoBuf.ProtoMember(5)] - public uint prepared_statements_executed - { - get => __pbn__prepared_statements_executed.GetValueOrDefault(); - set => __pbn__prepared_statements_executed = value; - } - public bool ShouldSerializeprepared_statements_executed() => __pbn__prepared_statements_executed != null; - public void Resetprepared_statements_executed() => __pbn__prepared_statements_executed = null; - private uint? __pbn__prepared_statements_executed; - - [global::ProtoBuf.ProtoMember(6)] - public uint non_prepared_statements_executed - { - get => __pbn__non_prepared_statements_executed.GetValueOrDefault(); - set => __pbn__non_prepared_statements_executed = value; - } - public bool ShouldSerializenon_prepared_statements_executed() => __pbn__non_prepared_statements_executed != null; - public void Resetnon_prepared_statements_executed() => __pbn__non_prepared_statements_executed = null; - private uint? __pbn__non_prepared_statements_executed; - - [global::ProtoBuf.ProtoMember(7)] - public uint deadlock_retries - { - get => __pbn__deadlock_retries.GetValueOrDefault(); - set => __pbn__deadlock_retries = value; - } - public bool ShouldSerializedeadlock_retries() => __pbn__deadlock_retries != null; - public void Resetdeadlock_retries() => __pbn__deadlock_retries = null; - private uint? __pbn__deadlock_retries; - - [global::ProtoBuf.ProtoMember(8)] - public uint operations_timed_out_in_queue - { - get => __pbn__operations_timed_out_in_queue.GetValueOrDefault(); - set => __pbn__operations_timed_out_in_queue = value; - } - public bool ShouldSerializeoperations_timed_out_in_queue() => __pbn__operations_timed_out_in_queue != null; - public void Resetoperations_timed_out_in_queue() => __pbn__operations_timed_out_in_queue = null; - private uint? __pbn__operations_timed_out_in_queue; - - [global::ProtoBuf.ProtoMember(9)] - public uint errors - { - get => __pbn__errors.GetValueOrDefault(); - set => __pbn__errors = value; - } - public bool ShouldSerializeerrors() => __pbn__errors != null; - public void Reseterrors() => __pbn__errors = null; - private uint? __pbn__errors; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgAMAddFreeLicense : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steamid - { - get => __pbn__steamid.GetValueOrDefault(); - set => __pbn__steamid = value; - } - public bool ShouldSerializesteamid() => __pbn__steamid != null; - public void Resetsteamid() => __pbn__steamid = null; - private ulong? __pbn__steamid; - - [global::ProtoBuf.ProtoMember(2)] - public uint ip_public - { - get => __pbn__ip_public.GetValueOrDefault(); - set => __pbn__ip_public = value; - } - public bool ShouldSerializeip_public() => __pbn__ip_public != null; - public void Resetip_public() => __pbn__ip_public = null; - private uint? __pbn__ip_public; - - [global::ProtoBuf.ProtoMember(3)] - public uint packageid - { - get => __pbn__packageid.GetValueOrDefault(); - set => __pbn__packageid = value; - } - public bool ShouldSerializepackageid() => __pbn__packageid != null; - public void Resetpackageid() => __pbn__packageid = null; - private uint? __pbn__packageid; - - [global::ProtoBuf.ProtoMember(4)] - [global::System.ComponentModel.DefaultValue("")] - public string store_country_code - { - get => __pbn__store_country_code ?? ""; - set => __pbn__store_country_code = value; - } - public bool ShouldSerializestore_country_code() => __pbn__store_country_code != null; - public void Resetstore_country_code() => __pbn__store_country_code = null; - private string __pbn__store_country_code; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgAMAddFreeLicenseResponse : 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)] - [global::System.ComponentModel.DefaultValue(2)] - public int eresult - { - get => __pbn__eresult ?? 2; - set => __pbn__eresult = value; - } - public bool ShouldSerializeeresult() => __pbn__eresult != null; - public void Reseteresult() => __pbn__eresult = null; - private int? __pbn__eresult; - - [global::ProtoBuf.ProtoMember(2)] - public int purchase_result_detail - { - get => __pbn__purchase_result_detail.GetValueOrDefault(); - set => __pbn__purchase_result_detail = value; - } - public bool ShouldSerializepurchase_result_detail() => __pbn__purchase_result_detail != null; - public void Resetpurchase_result_detail() => __pbn__purchase_result_detail = null; - private int? __pbn__purchase_result_detail; - - [global::ProtoBuf.ProtoMember(3, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong transid - { - get => __pbn__transid.GetValueOrDefault(); - set => __pbn__transid = value; - } - public bool ShouldSerializetransid() => __pbn__transid != null; - public void Resettransid() => __pbn__transid = null; - private ulong? __pbn__transid; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCMsgGetIPLocation : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public global::System.Collections.Generic.List ips { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CIPLocationInfo : 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 ip - { - get => __pbn__ip.GetValueOrDefault(); - set => __pbn__ip = value; - } - public bool ShouldSerializeip() => __pbn__ip != null; - public void Resetip() => __pbn__ip = null; - private uint? __pbn__ip; - - [global::ProtoBuf.ProtoMember(2)] - public float latitude - { - get => __pbn__latitude.GetValueOrDefault(); - set => __pbn__latitude = value; - } - public bool ShouldSerializelatitude() => __pbn__latitude != null; - public void Resetlatitude() => __pbn__latitude = null; - private float? __pbn__latitude; - - [global::ProtoBuf.ProtoMember(3)] - public float longitude - { - get => __pbn__longitude.GetValueOrDefault(); - set => __pbn__longitude = value; - } - public bool ShouldSerializelongitude() => __pbn__longitude != null; - public void Resetlongitude() => __pbn__longitude = null; - private float? __pbn__longitude; - - [global::ProtoBuf.ProtoMember(4)] - [global::System.ComponentModel.DefaultValue("")] - public string country - { - get => __pbn__country ?? ""; - set => __pbn__country = value; - } - public bool ShouldSerializecountry() => __pbn__country != null; - public void Resetcountry() => __pbn__country = null; - private string __pbn__country; - - [global::ProtoBuf.ProtoMember(5)] - [global::System.ComponentModel.DefaultValue("")] - public string state - { - get => __pbn__state ?? ""; - set => __pbn__state = value; - } - public bool ShouldSerializestate() => __pbn__state != null; - public void Resetstate() => __pbn__state = null; - private string __pbn__state; - - [global::ProtoBuf.ProtoMember(6)] - [global::System.ComponentModel.DefaultValue("")] - public string city - { - get => __pbn__city ?? ""; - set => __pbn__city = value; - } - public bool ShouldSerializecity() => __pbn__city != null; - public void Resetcity() => __pbn__city = null; - private string __pbn__city; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCMsgGetIPLocationResponse : 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 global::System.Collections.Generic.List infos { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCMsgGetIPASN : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public global::System.Collections.Generic.List ips { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CIPASNInfo : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public uint ip - { - get => __pbn__ip.GetValueOrDefault(); - set => __pbn__ip = value; - } - public bool ShouldSerializeip() => __pbn__ip != null; - public void Resetip() => __pbn__ip = null; - private uint? __pbn__ip; - - [global::ProtoBuf.ProtoMember(2)] - public uint asn - { - get => __pbn__asn.GetValueOrDefault(); - set => __pbn__asn = value; - } - public bool ShouldSerializeasn() => __pbn__asn != null; - public void Resetasn() => __pbn__asn = null; - private uint? __pbn__asn; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCMsgGetIPASNResponse : 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 global::System.Collections.Generic.List infos { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCMsgSystemStatsSchema : 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 gc_app_id - { - get => __pbn__gc_app_id.GetValueOrDefault(); - set => __pbn__gc_app_id = value; - } - public bool ShouldSerializegc_app_id() => __pbn__gc_app_id != null; - public void Resetgc_app_id() => __pbn__gc_app_id = null; - private uint? __pbn__gc_app_id; - - [global::ProtoBuf.ProtoMember(2)] - public byte[] schema_kv - { - get => __pbn__schema_kv; - set => __pbn__schema_kv = value; - } - public bool ShouldSerializeschema_kv() => __pbn__schema_kv != null; - public void Resetschema_kv() => __pbn__schema_kv = null; - private byte[] __pbn__schema_kv; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCMsgGetSystemStats : 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.ProtoContract()] - public partial class CGCMsgGetSystemStatsResponse : 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 gc_app_id - { - get => __pbn__gc_app_id.GetValueOrDefault(); - set => __pbn__gc_app_id = value; - } - public bool ShouldSerializegc_app_id() => __pbn__gc_app_id != null; - public void Resetgc_app_id() => __pbn__gc_app_id = null; - private uint? __pbn__gc_app_id; - - [global::ProtoBuf.ProtoMember(2)] - public byte[] stats_kv - { - get => __pbn__stats_kv; - set => __pbn__stats_kv = value; - } - public bool ShouldSerializestats_kv() => __pbn__stats_kv != null; - public void Resetstats_kv() => __pbn__stats_kv = null; - private byte[] __pbn__stats_kv; - - [global::ProtoBuf.ProtoMember(3)] - public uint active_jobs - { - get => __pbn__active_jobs.GetValueOrDefault(); - set => __pbn__active_jobs = value; - } - public bool ShouldSerializeactive_jobs() => __pbn__active_jobs != null; - public void Resetactive_jobs() => __pbn__active_jobs = null; - private uint? __pbn__active_jobs; - - [global::ProtoBuf.ProtoMember(4)] - public uint yielding_jobs - { - get => __pbn__yielding_jobs.GetValueOrDefault(); - set => __pbn__yielding_jobs = value; - } - public bool ShouldSerializeyielding_jobs() => __pbn__yielding_jobs != null; - public void Resetyielding_jobs() => __pbn__yielding_jobs = null; - private uint? __pbn__yielding_jobs; - - [global::ProtoBuf.ProtoMember(5)] - public uint user_sessions - { - get => __pbn__user_sessions.GetValueOrDefault(); - set => __pbn__user_sessions = value; - } - public bool ShouldSerializeuser_sessions() => __pbn__user_sessions != null; - public void Resetuser_sessions() => __pbn__user_sessions = null; - private uint? __pbn__user_sessions; - - [global::ProtoBuf.ProtoMember(6)] - public uint game_server_sessions - { - get => __pbn__game_server_sessions.GetValueOrDefault(); - set => __pbn__game_server_sessions = value; - } - public bool ShouldSerializegame_server_sessions() => __pbn__game_server_sessions != null; - public void Resetgame_server_sessions() => __pbn__game_server_sessions = null; - private uint? __pbn__game_server_sessions; - - [global::ProtoBuf.ProtoMember(7)] - public uint socaches - { - get => __pbn__socaches.GetValueOrDefault(); - set => __pbn__socaches = value; - } - public bool ShouldSerializesocaches() => __pbn__socaches != null; - public void Resetsocaches() => __pbn__socaches = null; - private uint? __pbn__socaches; - - [global::ProtoBuf.ProtoMember(8)] - public uint socaches_to_unload - { - get => __pbn__socaches_to_unload.GetValueOrDefault(); - set => __pbn__socaches_to_unload = value; - } - public bool ShouldSerializesocaches_to_unload() => __pbn__socaches_to_unload != null; - public void Resetsocaches_to_unload() => __pbn__socaches_to_unload = null; - private uint? __pbn__socaches_to_unload; - - [global::ProtoBuf.ProtoMember(9)] - public uint socaches_loading - { - get => __pbn__socaches_loading.GetValueOrDefault(); - set => __pbn__socaches_loading = value; - } - public bool ShouldSerializesocaches_loading() => __pbn__socaches_loading != null; - public void Resetsocaches_loading() => __pbn__socaches_loading = null; - private uint? __pbn__socaches_loading; - - [global::ProtoBuf.ProtoMember(10)] - public uint writeback_queue - { - get => __pbn__writeback_queue.GetValueOrDefault(); - set => __pbn__writeback_queue = value; - } - public bool ShouldSerializewriteback_queue() => __pbn__writeback_queue != null; - public void Resetwriteback_queue() => __pbn__writeback_queue = null; - private uint? __pbn__writeback_queue; - - [global::ProtoBuf.ProtoMember(11)] - public uint steamid_locks - { - get => __pbn__steamid_locks.GetValueOrDefault(); - set => __pbn__steamid_locks = value; - } - public bool ShouldSerializesteamid_locks() => __pbn__steamid_locks != null; - public void Resetsteamid_locks() => __pbn__steamid_locks = null; - private uint? __pbn__steamid_locks; - - [global::ProtoBuf.ProtoMember(12)] - public uint logon_queue - { - get => __pbn__logon_queue.GetValueOrDefault(); - set => __pbn__logon_queue = value; - } - public bool ShouldSerializelogon_queue() => __pbn__logon_queue != null; - public void Resetlogon_queue() => __pbn__logon_queue = null; - private uint? __pbn__logon_queue; - - [global::ProtoBuf.ProtoMember(13)] - public uint logon_jobs - { - get => __pbn__logon_jobs.GetValueOrDefault(); - set => __pbn__logon_jobs = value; - } - public bool ShouldSerializelogon_jobs() => __pbn__logon_jobs != null; - public void Resetlogon_jobs() => __pbn__logon_jobs = null; - private uint? __pbn__logon_jobs; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgAMSendEmail : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steamid - { - get => __pbn__steamid.GetValueOrDefault(); - set => __pbn__steamid = value; - } - public bool ShouldSerializesteamid() => __pbn__steamid != null; - public void Resetsteamid() => __pbn__steamid = null; - private ulong? __pbn__steamid; - - [global::ProtoBuf.ProtoMember(2)] - public uint email_msg_type - { - get => __pbn__email_msg_type.GetValueOrDefault(); - set => __pbn__email_msg_type = value; - } - public bool ShouldSerializeemail_msg_type() => __pbn__email_msg_type != null; - public void Resetemail_msg_type() => __pbn__email_msg_type = null; - private uint? __pbn__email_msg_type; - - [global::ProtoBuf.ProtoMember(3)] - public uint email_format - { - get => __pbn__email_format.GetValueOrDefault(); - set => __pbn__email_format = value; - } - public bool ShouldSerializeemail_format() => __pbn__email_format != null; - public void Resetemail_format() => __pbn__email_format = null; - private uint? __pbn__email_format; - - [global::ProtoBuf.ProtoMember(5)] - public global::System.Collections.Generic.List persona_name_tokens { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(6)] - public uint source_gc - { - get => __pbn__source_gc.GetValueOrDefault(); - set => __pbn__source_gc = value; - } - public bool ShouldSerializesource_gc() => __pbn__source_gc != null; - public void Resetsource_gc() => __pbn__source_gc = null; - private uint? __pbn__source_gc; - - [global::ProtoBuf.ProtoMember(7)] - public global::System.Collections.Generic.List tokens { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class ReplacementToken : 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)] - [global::System.ComponentModel.DefaultValue("")] - public string token_name - { - get => __pbn__token_name ?? ""; - set => __pbn__token_name = value; - } - public bool ShouldSerializetoken_name() => __pbn__token_name != null; - public void Resettoken_name() => __pbn__token_name = null; - private string __pbn__token_name; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string token_value - { - get => __pbn__token_value ?? ""; - set => __pbn__token_value = value; - } - public bool ShouldSerializetoken_value() => __pbn__token_value != null; - public void Resettoken_value() => __pbn__token_value = null; - private string __pbn__token_value; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class PersonaNameReplacementToken : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steamid - { - get => __pbn__steamid.GetValueOrDefault(); - set => __pbn__steamid = value; - } - public bool ShouldSerializesteamid() => __pbn__steamid != null; - public void Resetsteamid() => __pbn__steamid = null; - private ulong? __pbn__steamid; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string token_name - { - get => __pbn__token_name ?? ""; - set => __pbn__token_name = value; - } - public bool ShouldSerializetoken_name() => __pbn__token_name != null; - public void Resettoken_name() => __pbn__token_name = null; - private string __pbn__token_name; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgAMSendEmailResponse : 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)] - [global::System.ComponentModel.DefaultValue(2u)] - public uint eresult - { - get => __pbn__eresult ?? 2u; - set => __pbn__eresult = value; - } - public bool ShouldSerializeeresult() => __pbn__eresult != null; - public void Reseteresult() => __pbn__eresult = null; - private uint? __pbn__eresult; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCGetEmailTemplate : 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 app_id - { - get => __pbn__app_id.GetValueOrDefault(); - set => __pbn__app_id = value; - } - public bool ShouldSerializeapp_id() => __pbn__app_id != null; - public void Resetapp_id() => __pbn__app_id = null; - private uint? __pbn__app_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint email_msg_type - { - get => __pbn__email_msg_type.GetValueOrDefault(); - set => __pbn__email_msg_type = value; - } - public bool ShouldSerializeemail_msg_type() => __pbn__email_msg_type != null; - public void Resetemail_msg_type() => __pbn__email_msg_type = null; - private uint? __pbn__email_msg_type; - - [global::ProtoBuf.ProtoMember(3)] - public int email_lang - { - get => __pbn__email_lang.GetValueOrDefault(); - set => __pbn__email_lang = value; - } - public bool ShouldSerializeemail_lang() => __pbn__email_lang != null; - public void Resetemail_lang() => __pbn__email_lang = null; - private int? __pbn__email_lang; - - [global::ProtoBuf.ProtoMember(4)] - public int email_format - { - get => __pbn__email_format.GetValueOrDefault(); - set => __pbn__email_format = value; - } - public bool ShouldSerializeemail_format() => __pbn__email_format != null; - public void Resetemail_format() => __pbn__email_format = null; - private int? __pbn__email_format; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCGetEmailTemplateResponse : 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)] - [global::System.ComponentModel.DefaultValue(2u)] - public uint eresult - { - get => __pbn__eresult ?? 2u; - set => __pbn__eresult = value; - } - public bool ShouldSerializeeresult() => __pbn__eresult != null; - public void Reseteresult() => __pbn__eresult = null; - private uint? __pbn__eresult; - - [global::ProtoBuf.ProtoMember(2)] - public bool template_exists - { - get => __pbn__template_exists.GetValueOrDefault(); - set => __pbn__template_exists = value; - } - public bool ShouldSerializetemplate_exists() => __pbn__template_exists != null; - public void Resettemplate_exists() => __pbn__template_exists = null; - private bool? __pbn__template_exists; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue("")] - public string template - { - get => __pbn__template ?? ""; - set => __pbn__template = value; - } - public bool ShouldSerializetemplate() => __pbn__template != null; - public void Resettemplate() => __pbn__template = null; - private string __pbn__template; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgAMGrantGuestPasses2 : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steam_id - { - get => __pbn__steam_id.GetValueOrDefault(); - set => __pbn__steam_id = value; - } - public bool ShouldSerializesteam_id() => __pbn__steam_id != null; - public void Resetsteam_id() => __pbn__steam_id = null; - private ulong? __pbn__steam_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint package_id - { - get => __pbn__package_id.GetValueOrDefault(); - set => __pbn__package_id = value; - } - public bool ShouldSerializepackage_id() => __pbn__package_id != null; - public void Resetpackage_id() => __pbn__package_id = null; - private uint? __pbn__package_id; - - [global::ProtoBuf.ProtoMember(3)] - public int passes_to_grant - { - get => __pbn__passes_to_grant.GetValueOrDefault(); - set => __pbn__passes_to_grant = value; - } - public bool ShouldSerializepasses_to_grant() => __pbn__passes_to_grant != null; - public void Resetpasses_to_grant() => __pbn__passes_to_grant = null; - private int? __pbn__passes_to_grant; - - [global::ProtoBuf.ProtoMember(4)] - public int days_to_expiration - { - get => __pbn__days_to_expiration.GetValueOrDefault(); - set => __pbn__days_to_expiration = value; - } - public bool ShouldSerializedays_to_expiration() => __pbn__days_to_expiration != null; - public void Resetdays_to_expiration() => __pbn__days_to_expiration = null; - private int? __pbn__days_to_expiration; - - [global::ProtoBuf.ProtoMember(5)] - public int action - { - get => __pbn__action.GetValueOrDefault(); - set => __pbn__action = value; - } - public bool ShouldSerializeaction() => __pbn__action != null; - public void Resetaction() => __pbn__action = null; - private int? __pbn__action; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgAMGrantGuestPasses2Response : 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)] - [global::System.ComponentModel.DefaultValue(2)] - public int eresult - { - get => __pbn__eresult ?? 2; - set => __pbn__eresult = value; - } - public bool ShouldSerializeeresult() => __pbn__eresult != null; - public void Reseteresult() => __pbn__eresult = null; - private int? __pbn__eresult; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue(0)] - public int passes_granted - { - get => __pbn__passes_granted ?? 0; - set => __pbn__passes_granted = value; - } - public bool ShouldSerializepasses_granted() => __pbn__passes_granted != null; - public void Resetpasses_granted() => __pbn__passes_granted = null; - private int? __pbn__passes_granted; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCSystemMsg_GetAccountDetails : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steamid - { - get => __pbn__steamid.GetValueOrDefault(); - set => __pbn__steamid = value; - } - public bool ShouldSerializesteamid() => __pbn__steamid != null; - public void Resetsteamid() => __pbn__steamid = null; - private ulong? __pbn__steamid; - - [global::ProtoBuf.ProtoMember(2)] - public uint appid - { - get => __pbn__appid.GetValueOrDefault(); - set => __pbn__appid = value; - } - public bool ShouldSerializeappid() => __pbn__appid != null; - public void Resetappid() => __pbn__appid = null; - private uint? __pbn__appid; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCSystemMsg_GetAccountDetails_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)] - [global::System.ComponentModel.DefaultValue(2u)] - public uint eresult_deprecated - { - get => __pbn__eresult_deprecated ?? 2u; - set => __pbn__eresult_deprecated = value; - } - public bool ShouldSerializeeresult_deprecated() => __pbn__eresult_deprecated != null; - public void Reseteresult_deprecated() => __pbn__eresult_deprecated = null; - private uint? __pbn__eresult_deprecated; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string account_name - { - get => __pbn__account_name ?? ""; - set => __pbn__account_name = value; - } - public bool ShouldSerializeaccount_name() => __pbn__account_name != null; - public void Resetaccount_name() => __pbn__account_name = null; - private string __pbn__account_name; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue("")] - public string persona_name - { - get => __pbn__persona_name ?? ""; - set => __pbn__persona_name = value; - } - public bool ShouldSerializepersona_name() => __pbn__persona_name != null; - public void Resetpersona_name() => __pbn__persona_name = null; - private string __pbn__persona_name; - - [global::ProtoBuf.ProtoMember(26)] - public bool is_profile_created - { - get => __pbn__is_profile_created.GetValueOrDefault(); - set => __pbn__is_profile_created = value; - } - public bool ShouldSerializeis_profile_created() => __pbn__is_profile_created != null; - public void Resetis_profile_created() => __pbn__is_profile_created = null; - private bool? __pbn__is_profile_created; - - [global::ProtoBuf.ProtoMember(4)] - public bool is_profile_public - { - get => __pbn__is_profile_public.GetValueOrDefault(); - set => __pbn__is_profile_public = value; - } - public bool ShouldSerializeis_profile_public() => __pbn__is_profile_public != null; - public void Resetis_profile_public() => __pbn__is_profile_public = null; - private bool? __pbn__is_profile_public; - - [global::ProtoBuf.ProtoMember(5)] - public bool is_inventory_public - { - get => __pbn__is_inventory_public.GetValueOrDefault(); - set => __pbn__is_inventory_public = value; - } - public bool ShouldSerializeis_inventory_public() => __pbn__is_inventory_public != null; - public void Resetis_inventory_public() => __pbn__is_inventory_public = null; - private bool? __pbn__is_inventory_public; - - [global::ProtoBuf.ProtoMember(7)] - public bool is_vac_banned - { - get => __pbn__is_vac_banned.GetValueOrDefault(); - set => __pbn__is_vac_banned = value; - } - public bool ShouldSerializeis_vac_banned() => __pbn__is_vac_banned != null; - public void Resetis_vac_banned() => __pbn__is_vac_banned = null; - private bool? __pbn__is_vac_banned; - - [global::ProtoBuf.ProtoMember(8)] - public bool is_cyber_cafe - { - get => __pbn__is_cyber_cafe.GetValueOrDefault(); - set => __pbn__is_cyber_cafe = value; - } - public bool ShouldSerializeis_cyber_cafe() => __pbn__is_cyber_cafe != null; - public void Resetis_cyber_cafe() => __pbn__is_cyber_cafe = null; - private bool? __pbn__is_cyber_cafe; - - [global::ProtoBuf.ProtoMember(9)] - public bool is_school_account - { - get => __pbn__is_school_account.GetValueOrDefault(); - set => __pbn__is_school_account = value; - } - public bool ShouldSerializeis_school_account() => __pbn__is_school_account != null; - public void Resetis_school_account() => __pbn__is_school_account = null; - private bool? __pbn__is_school_account; - - [global::ProtoBuf.ProtoMember(10)] - public bool is_limited - { - get => __pbn__is_limited.GetValueOrDefault(); - set => __pbn__is_limited = value; - } - public bool ShouldSerializeis_limited() => __pbn__is_limited != null; - public void Resetis_limited() => __pbn__is_limited = null; - private bool? __pbn__is_limited; - - [global::ProtoBuf.ProtoMember(11)] - public bool is_subscribed - { - get => __pbn__is_subscribed.GetValueOrDefault(); - set => __pbn__is_subscribed = value; - } - public bool ShouldSerializeis_subscribed() => __pbn__is_subscribed != null; - public void Resetis_subscribed() => __pbn__is_subscribed = null; - private bool? __pbn__is_subscribed; - - [global::ProtoBuf.ProtoMember(12)] - public uint package - { - get => __pbn__package.GetValueOrDefault(); - set => __pbn__package = value; - } - public bool ShouldSerializepackage() => __pbn__package != null; - public void Resetpackage() => __pbn__package = null; - private uint? __pbn__package; - - [global::ProtoBuf.ProtoMember(13)] - public bool is_free_trial_account - { - get => __pbn__is_free_trial_account.GetValueOrDefault(); - set => __pbn__is_free_trial_account = value; - } - public bool ShouldSerializeis_free_trial_account() => __pbn__is_free_trial_account != null; - public void Resetis_free_trial_account() => __pbn__is_free_trial_account = null; - private bool? __pbn__is_free_trial_account; - - [global::ProtoBuf.ProtoMember(14)] - public uint free_trial_expiration - { - get => __pbn__free_trial_expiration.GetValueOrDefault(); - set => __pbn__free_trial_expiration = value; - } - public bool ShouldSerializefree_trial_expiration() => __pbn__free_trial_expiration != null; - public void Resetfree_trial_expiration() => __pbn__free_trial_expiration = null; - private uint? __pbn__free_trial_expiration; - - [global::ProtoBuf.ProtoMember(15)] - public bool is_low_violence - { - get => __pbn__is_low_violence.GetValueOrDefault(); - set => __pbn__is_low_violence = value; - } - public bool ShouldSerializeis_low_violence() => __pbn__is_low_violence != null; - public void Resetis_low_violence() => __pbn__is_low_violence = null; - private bool? __pbn__is_low_violence; - - [global::ProtoBuf.ProtoMember(16)] - public bool is_account_locked_down - { - get => __pbn__is_account_locked_down.GetValueOrDefault(); - set => __pbn__is_account_locked_down = value; - } - public bool ShouldSerializeis_account_locked_down() => __pbn__is_account_locked_down != null; - public void Resetis_account_locked_down() => __pbn__is_account_locked_down = null; - private bool? __pbn__is_account_locked_down; - - [global::ProtoBuf.ProtoMember(17)] - public bool is_community_banned - { - get => __pbn__is_community_banned.GetValueOrDefault(); - set => __pbn__is_community_banned = value; - } - public bool ShouldSerializeis_community_banned() => __pbn__is_community_banned != null; - public void Resetis_community_banned() => __pbn__is_community_banned = null; - private bool? __pbn__is_community_banned; - - [global::ProtoBuf.ProtoMember(18)] - public bool is_trade_banned - { - get => __pbn__is_trade_banned.GetValueOrDefault(); - set => __pbn__is_trade_banned = value; - } - public bool ShouldSerializeis_trade_banned() => __pbn__is_trade_banned != null; - public void Resetis_trade_banned() => __pbn__is_trade_banned = null; - private bool? __pbn__is_trade_banned; - - [global::ProtoBuf.ProtoMember(19)] - public uint trade_ban_expiration - { - get => __pbn__trade_ban_expiration.GetValueOrDefault(); - set => __pbn__trade_ban_expiration = value; - } - public bool ShouldSerializetrade_ban_expiration() => __pbn__trade_ban_expiration != null; - public void Resettrade_ban_expiration() => __pbn__trade_ban_expiration = null; - private uint? __pbn__trade_ban_expiration; - - [global::ProtoBuf.ProtoMember(20)] - 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; - - [global::ProtoBuf.ProtoMember(21)] - public uint suspension_end_time - { - get => __pbn__suspension_end_time.GetValueOrDefault(); - set => __pbn__suspension_end_time = value; - } - public bool ShouldSerializesuspension_end_time() => __pbn__suspension_end_time != null; - public void Resetsuspension_end_time() => __pbn__suspension_end_time = null; - private uint? __pbn__suspension_end_time; - - [global::ProtoBuf.ProtoMember(22)] - [global::System.ComponentModel.DefaultValue("")] - public string currency - { - get => __pbn__currency ?? ""; - set => __pbn__currency = value; - } - public bool ShouldSerializecurrency() => __pbn__currency != null; - public void Resetcurrency() => __pbn__currency = null; - private string __pbn__currency; - - [global::ProtoBuf.ProtoMember(23)] - public uint steam_level - { - get => __pbn__steam_level.GetValueOrDefault(); - set => __pbn__steam_level = value; - } - public bool ShouldSerializesteam_level() => __pbn__steam_level != null; - public void Resetsteam_level() => __pbn__steam_level = null; - private uint? __pbn__steam_level; - - [global::ProtoBuf.ProtoMember(24)] - public uint friend_count - { - get => __pbn__friend_count.GetValueOrDefault(); - set => __pbn__friend_count = value; - } - public bool ShouldSerializefriend_count() => __pbn__friend_count != null; - public void Resetfriend_count() => __pbn__friend_count = null; - private uint? __pbn__friend_count; - - [global::ProtoBuf.ProtoMember(25)] - public uint account_creation_time - { - get => __pbn__account_creation_time.GetValueOrDefault(); - set => __pbn__account_creation_time = value; - } - public bool ShouldSerializeaccount_creation_time() => __pbn__account_creation_time != null; - public void Resetaccount_creation_time() => __pbn__account_creation_time = null; - private uint? __pbn__account_creation_time; - - [global::ProtoBuf.ProtoMember(27)] - public bool is_steamguard_enabled - { - get => __pbn__is_steamguard_enabled.GetValueOrDefault(); - set => __pbn__is_steamguard_enabled = value; - } - public bool ShouldSerializeis_steamguard_enabled() => __pbn__is_steamguard_enabled != null; - public void Resetis_steamguard_enabled() => __pbn__is_steamguard_enabled = null; - private bool? __pbn__is_steamguard_enabled; - - [global::ProtoBuf.ProtoMember(28)] - public bool is_phone_verified - { - get => __pbn__is_phone_verified.GetValueOrDefault(); - set => __pbn__is_phone_verified = value; - } - public bool ShouldSerializeis_phone_verified() => __pbn__is_phone_verified != null; - public void Resetis_phone_verified() => __pbn__is_phone_verified = null; - private bool? __pbn__is_phone_verified; - - [global::ProtoBuf.ProtoMember(29)] - public bool is_two_factor_auth_enabled - { - get => __pbn__is_two_factor_auth_enabled.GetValueOrDefault(); - set => __pbn__is_two_factor_auth_enabled = value; - } - public bool ShouldSerializeis_two_factor_auth_enabled() => __pbn__is_two_factor_auth_enabled != null; - public void Resetis_two_factor_auth_enabled() => __pbn__is_two_factor_auth_enabled = null; - private bool? __pbn__is_two_factor_auth_enabled; - - [global::ProtoBuf.ProtoMember(30)] - public uint two_factor_enabled_time - { - get => __pbn__two_factor_enabled_time.GetValueOrDefault(); - set => __pbn__two_factor_enabled_time = value; - } - public bool ShouldSerializetwo_factor_enabled_time() => __pbn__two_factor_enabled_time != null; - public void Resettwo_factor_enabled_time() => __pbn__two_factor_enabled_time = null; - private uint? __pbn__two_factor_enabled_time; - - [global::ProtoBuf.ProtoMember(31)] - public uint phone_verification_time - { - get => __pbn__phone_verification_time.GetValueOrDefault(); - set => __pbn__phone_verification_time = value; - } - public bool ShouldSerializephone_verification_time() => __pbn__phone_verification_time != null; - public void Resetphone_verification_time() => __pbn__phone_verification_time = null; - private uint? __pbn__phone_verification_time; - - [global::ProtoBuf.ProtoMember(33)] - public ulong phone_id - { - get => __pbn__phone_id.GetValueOrDefault(); - set => __pbn__phone_id = value; - } - public bool ShouldSerializephone_id() => __pbn__phone_id != null; - public void Resetphone_id() => __pbn__phone_id = null; - private ulong? __pbn__phone_id; - - [global::ProtoBuf.ProtoMember(34)] - public bool is_phone_identifying - { - get => __pbn__is_phone_identifying.GetValueOrDefault(); - set => __pbn__is_phone_identifying = value; - } - public bool ShouldSerializeis_phone_identifying() => __pbn__is_phone_identifying != null; - public void Resetis_phone_identifying() => __pbn__is_phone_identifying = null; - private bool? __pbn__is_phone_identifying; - - [global::ProtoBuf.ProtoMember(35)] - public uint rt_identity_linked - { - get => __pbn__rt_identity_linked.GetValueOrDefault(); - set => __pbn__rt_identity_linked = value; - } - public bool ShouldSerializert_identity_linked() => __pbn__rt_identity_linked != null; - public void Resetrt_identity_linked() => __pbn__rt_identity_linked = null; - private uint? __pbn__rt_identity_linked; - - [global::ProtoBuf.ProtoMember(36)] - public uint rt_birth_date - { - get => __pbn__rt_birth_date.GetValueOrDefault(); - set => __pbn__rt_birth_date = value; - } - public bool ShouldSerializert_birth_date() => __pbn__rt_birth_date != null; - public void Resetrt_birth_date() => __pbn__rt_birth_date = null; - private uint? __pbn__rt_birth_date; - - [global::ProtoBuf.ProtoMember(37)] - [global::System.ComponentModel.DefaultValue("")] - public string txn_country_code - { - get => __pbn__txn_country_code ?? ""; - set => __pbn__txn_country_code = value; - } - public bool ShouldSerializetxn_country_code() => __pbn__txn_country_code != null; - public void Resettxn_country_code() => __pbn__txn_country_code = null; - private string __pbn__txn_country_code; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCGetPersonaNames : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public global::System.Collections.Generic.List steamids { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCGetPersonaNames_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 global::System.Collections.Generic.List succeeded_lookups { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(2, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public global::System.Collections.Generic.List failed_lookup_steamids { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class PersonaName : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steamid - { - get => __pbn__steamid.GetValueOrDefault(); - set => __pbn__steamid = value; - } - public bool ShouldSerializesteamid() => __pbn__steamid != null; - public void Resetsteamid() => __pbn__steamid = null; - private ulong? __pbn__steamid; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string persona_name - { - get => __pbn__persona_name ?? ""; - set => __pbn__persona_name = value; - } - public bool ShouldSerializepersona_name() => __pbn__persona_name != null; - public void Resetpersona_name() => __pbn__persona_name = null; - private string __pbn__persona_name; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCCheckFriendship : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steamid_left - { - get => __pbn__steamid_left.GetValueOrDefault(); - set => __pbn__steamid_left = value; - } - public bool ShouldSerializesteamid_left() => __pbn__steamid_left != null; - public void Resetsteamid_left() => __pbn__steamid_left = null; - private ulong? __pbn__steamid_left; - - [global::ProtoBuf.ProtoMember(2, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steamid_right - { - get => __pbn__steamid_right.GetValueOrDefault(); - set => __pbn__steamid_right = value; - } - public bool ShouldSerializesteamid_right() => __pbn__steamid_right != null; - public void Resetsteamid_right() => __pbn__steamid_right = null; - private ulong? __pbn__steamid_right; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCCheckFriendship_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)] - public bool found_friendship - { - get => __pbn__found_friendship.GetValueOrDefault(); - set => __pbn__found_friendship = value; - } - public bool ShouldSerializefound_friendship() => __pbn__found_friendship != null; - public void Resetfound_friendship() => __pbn__found_friendship = null; - private bool? __pbn__found_friendship; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCGetAppFriendsList : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steamid - { - get => __pbn__steamid.GetValueOrDefault(); - set => __pbn__steamid = value; - } - public bool ShouldSerializesteamid() => __pbn__steamid != null; - public void Resetsteamid() => __pbn__steamid = null; - private ulong? __pbn__steamid; - - [global::ProtoBuf.ProtoMember(2)] - public bool include_friendship_timestamps - { - get => __pbn__include_friendship_timestamps.GetValueOrDefault(); - set => __pbn__include_friendship_timestamps = value; - } - public bool ShouldSerializeinclude_friendship_timestamps() => __pbn__include_friendship_timestamps != null; - public void Resetinclude_friendship_timestamps() => __pbn__include_friendship_timestamps = null; - private bool? __pbn__include_friendship_timestamps; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCGetAppFriendsList_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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public global::System.Collections.Generic.List steamids { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(3, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public global::System.Collections.Generic.List friendship_timestamps { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(4, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public global::System.Collections.Generic.List last_playtimes { get; } = new global::System.Collections.Generic.List(); - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCMsgMasterSetDirectory : 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 master_dir_index - { - get => __pbn__master_dir_index.GetValueOrDefault(); - set => __pbn__master_dir_index = value; - } - public bool ShouldSerializemaster_dir_index() => __pbn__master_dir_index != null; - public void Resetmaster_dir_index() => __pbn__master_dir_index = null; - private uint? __pbn__master_dir_index; - - [global::ProtoBuf.ProtoMember(2)] - public global::System.Collections.Generic.List dir { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class SubGC : 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 dir_index - { - get => __pbn__dir_index.GetValueOrDefault(); - set => __pbn__dir_index = value; - } - public bool ShouldSerializedir_index() => __pbn__dir_index != null; - public void Resetdir_index() => __pbn__dir_index = null; - private uint? __pbn__dir_index; - - [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 box - { - get => __pbn__box ?? ""; - set => __pbn__box = value; - } - public bool ShouldSerializebox() => __pbn__box != null; - public void Resetbox() => __pbn__box = null; - private string __pbn__box; - - [global::ProtoBuf.ProtoMember(4)] - [global::System.ComponentModel.DefaultValue("")] - public string command_line - { - get => __pbn__command_line ?? ""; - set => __pbn__command_line = value; - } - public bool ShouldSerializecommand_line() => __pbn__command_line != null; - public void Resetcommand_line() => __pbn__command_line = null; - private string __pbn__command_line; - - [global::ProtoBuf.ProtoMember(5)] - [global::System.ComponentModel.DefaultValue("")] - public string gc_binary - { - get => __pbn__gc_binary ?? ""; - set => __pbn__gc_binary = value; - } - public bool ShouldSerializegc_binary() => __pbn__gc_binary != null; - public void Resetgc_binary() => __pbn__gc_binary = null; - private string __pbn__gc_binary; - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCMsgMasterSetDirectory_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)] - [global::System.ComponentModel.DefaultValue(2)] - public int eresult - { - get => __pbn__eresult ?? 2; - set => __pbn__eresult = value; - } - public bool ShouldSerializeeresult() => __pbn__eresult != null; - public void Reseteresult() => __pbn__eresult = null; - private int? __pbn__eresult; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string message - { - get => __pbn__message ?? ""; - set => __pbn__message = value; - } - public bool ShouldSerializemessage() => __pbn__message != null; - public void Resetmessage() => __pbn__message = null; - private string __pbn__message; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCMsgWebAPIJobRequestForwardResponse : 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 dir_index - { - get => __pbn__dir_index.GetValueOrDefault(); - set => __pbn__dir_index = value; - } - public bool ShouldSerializedir_index() => __pbn__dir_index != null; - public void Resetdir_index() => __pbn__dir_index = null; - private uint? __pbn__dir_index; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCSystemMsg_GetPurchaseTrust_Request : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steamid - { - get => __pbn__steamid.GetValueOrDefault(); - set => __pbn__steamid = value; - } - public bool ShouldSerializesteamid() => __pbn__steamid != null; - public void Resetsteamid() => __pbn__steamid = null; - private ulong? __pbn__steamid; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CGCSystemMsg_GetPurchaseTrust_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 has_prior_purchase_history - { - get => __pbn__has_prior_purchase_history.GetValueOrDefault(); - set => __pbn__has_prior_purchase_history = value; - } - public bool ShouldSerializehas_prior_purchase_history() => __pbn__has_prior_purchase_history != null; - public void Resethas_prior_purchase_history() => __pbn__has_prior_purchase_history = null; - private bool? __pbn__has_prior_purchase_history; - - [global::ProtoBuf.ProtoMember(2)] - public bool has_no_recent_password_resets - { - get => __pbn__has_no_recent_password_resets.GetValueOrDefault(); - set => __pbn__has_no_recent_password_resets = value; - } - public bool ShouldSerializehas_no_recent_password_resets() => __pbn__has_no_recent_password_resets != null; - public void Resethas_no_recent_password_resets() => __pbn__has_no_recent_password_resets = null; - private bool? __pbn__has_no_recent_password_resets; - - [global::ProtoBuf.ProtoMember(3)] - public bool is_wallet_cash_trusted - { - get => __pbn__is_wallet_cash_trusted.GetValueOrDefault(); - set => __pbn__is_wallet_cash_trusted = value; - } - public bool ShouldSerializeis_wallet_cash_trusted() => __pbn__is_wallet_cash_trusted != null; - public void Resetis_wallet_cash_trusted() => __pbn__is_wallet_cash_trusted = null; - private bool? __pbn__is_wallet_cash_trusted; - - [global::ProtoBuf.ProtoMember(4)] - public uint time_all_trusted - { - get => __pbn__time_all_trusted.GetValueOrDefault(); - set => __pbn__time_all_trusted = value; - } - public bool ShouldSerializetime_all_trusted() => __pbn__time_all_trusted != null; - public void Resettime_all_trusted() => __pbn__time_all_trusted = null; - private uint? __pbn__time_all_trusted; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCHAccountVacStatusChange : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steam_id - { - get => __pbn__steam_id.GetValueOrDefault(); - set => __pbn__steam_id = value; - } - public bool ShouldSerializesteam_id() => __pbn__steam_id != null; - public void Resetsteam_id() => __pbn__steam_id = null; - private ulong? __pbn__steam_id; - - [global::ProtoBuf.ProtoMember(2)] - public uint app_id - { - get => __pbn__app_id.GetValueOrDefault(); - set => __pbn__app_id = value; - } - public bool ShouldSerializeapp_id() => __pbn__app_id != null; - public void Resetapp_id() => __pbn__app_id = null; - private uint? __pbn__app_id; - - [global::ProtoBuf.ProtoMember(3)] - public uint rtime_vacban_starts - { - get => __pbn__rtime_vacban_starts.GetValueOrDefault(); - set => __pbn__rtime_vacban_starts = value; - } - public bool ShouldSerializertime_vacban_starts() => __pbn__rtime_vacban_starts != null; - public void Resetrtime_vacban_starts() => __pbn__rtime_vacban_starts = null; - private uint? __pbn__rtime_vacban_starts; - - [global::ProtoBuf.ProtoMember(4)] - public bool is_banned_now - { - get => __pbn__is_banned_now.GetValueOrDefault(); - set => __pbn__is_banned_now = value; - } - public bool ShouldSerializeis_banned_now() => __pbn__is_banned_now != null; - public void Resetis_banned_now() => __pbn__is_banned_now = null; - private bool? __pbn__is_banned_now; - - [global::ProtoBuf.ProtoMember(5)] - public bool is_banned_future - { - get => __pbn__is_banned_future.GetValueOrDefault(); - set => __pbn__is_banned_future = value; - } - public bool ShouldSerializeis_banned_future() => __pbn__is_banned_future != null; - public void Resetis_banned_future() => __pbn__is_banned_future = null; - private bool? __pbn__is_banned_future; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCGetPartnerAccountLink : 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, DataFormat = global::ProtoBuf.DataFormat.FixedSize)] - public ulong steamid - { - get => __pbn__steamid.GetValueOrDefault(); - set => __pbn__steamid = value; - } - public bool ShouldSerializesteamid() => __pbn__steamid != null; - public void Resetsteamid() => __pbn__steamid = null; - private ulong? __pbn__steamid; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCGetPartnerAccountLink_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 uint pwid - { - get => __pbn__pwid.GetValueOrDefault(); - set => __pbn__pwid = value; - } - public bool ShouldSerializepwid() => __pbn__pwid != null; - public void Resetpwid() => __pbn__pwid = null; - private uint? __pbn__pwid; - - [global::ProtoBuf.ProtoMember(2)] - public uint nexonid - { - get => __pbn__nexonid.GetValueOrDefault(); - set => __pbn__nexonid = value; - } - public bool ShouldSerializenexonid() => __pbn__nexonid != null; - public void Resetnexonid() => __pbn__nexonid = null; - private uint? __pbn__nexonid; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCRoutingInfo : 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 global::System.Collections.Generic.List dir_index { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue(RoutingMethod.RANDOM)] - public RoutingMethod method - { - get => __pbn__method ?? RoutingMethod.RANDOM; - set => __pbn__method = value; - } - public bool ShouldSerializemethod() => __pbn__method != null; - public void Resetmethod() => __pbn__method = null; - private RoutingMethod? __pbn__method; - - [global::ProtoBuf.ProtoMember(3)] - [global::System.ComponentModel.DefaultValue(RoutingMethod.DISCARD)] - public RoutingMethod fallback - { - get => __pbn__fallback ?? RoutingMethod.DISCARD; - set => __pbn__fallback = value; - } - public bool ShouldSerializefallback() => __pbn__fallback != null; - public void Resetfallback() => __pbn__fallback = null; - private RoutingMethod? __pbn__fallback; - - [global::ProtoBuf.ProtoMember(4)] - public uint protobuf_field - { - get => __pbn__protobuf_field.GetValueOrDefault(); - set => __pbn__protobuf_field = value; - } - public bool ShouldSerializeprotobuf_field() => __pbn__protobuf_field != null; - public void Resetprotobuf_field() => __pbn__protobuf_field = null; - private uint? __pbn__protobuf_field; - - [global::ProtoBuf.ProtoMember(5)] - [global::System.ComponentModel.DefaultValue("")] - public string webapi_param - { - get => __pbn__webapi_param ?? ""; - set => __pbn__webapi_param = value; - } - public bool ShouldSerializewebapi_param() => __pbn__webapi_param != null; - public void Resetwebapi_param() => __pbn__webapi_param = null; - private string __pbn__webapi_param; - - [global::ProtoBuf.ProtoContract()] - public enum RoutingMethod - { - RANDOM = 0, - DISCARD = 1, - CLIENT_STEAMID = 2, - PROTOBUF_FIELD_UINT64 = 3, - WEBAPI_PARAM = 4, - WEBAPI_PARAM_STEAMID_ACCOUNTID = 5, - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCMsgMasterSetWebAPIRouting : 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 global::System.Collections.Generic.List entries { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class Entry : 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)] - [global::System.ComponentModel.DefaultValue("")] - public string interface_name - { - get => __pbn__interface_name ?? ""; - set => __pbn__interface_name = value; - } - public bool ShouldSerializeinterface_name() => __pbn__interface_name != null; - public void Resetinterface_name() => __pbn__interface_name = null; - private string __pbn__interface_name; - - [global::ProtoBuf.ProtoMember(2)] - [global::System.ComponentModel.DefaultValue("")] - public string method_name - { - get => __pbn__method_name ?? ""; - set => __pbn__method_name = value; - } - public bool ShouldSerializemethod_name() => __pbn__method_name != null; - public void Resetmethod_name() => __pbn__method_name = null; - private string __pbn__method_name; - - [global::ProtoBuf.ProtoMember(3)] - public CMsgGCRoutingInfo routing { get; set; } - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCMsgMasterSetClientMsgRouting : 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 global::System.Collections.Generic.List entries { get; } = new global::System.Collections.Generic.List(); - - [global::ProtoBuf.ProtoContract()] - public partial class Entry : 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 msg_type - { - get => __pbn__msg_type.GetValueOrDefault(); - set => __pbn__msg_type = value; - } - public bool ShouldSerializemsg_type() => __pbn__msg_type != null; - public void Resetmsg_type() => __pbn__msg_type = null; - private uint? __pbn__msg_type; - - [global::ProtoBuf.ProtoMember(2)] - public CMsgGCRoutingInfo routing { get; set; } - - } - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCMsgMasterSetWebAPIRouting_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)] - [global::System.ComponentModel.DefaultValue(2)] - public int eresult - { - get => __pbn__eresult ?? 2; - set => __pbn__eresult = value; - } - public bool ShouldSerializeeresult() => __pbn__eresult != null; - public void Reseteresult() => __pbn__eresult = null; - private int? __pbn__eresult; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCMsgMasterSetClientMsgRouting_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)] - [global::System.ComponentModel.DefaultValue(2)] - public int eresult - { - get => __pbn__eresult ?? 2; - set => __pbn__eresult = value; - } - public bool ShouldSerializeeresult() => __pbn__eresult != null; - public void Reseteresult() => __pbn__eresult = null; - private int? __pbn__eresult; - - } - - [global::ProtoBuf.ProtoContract()] - public partial class CMsgGCMsgSetOptions : 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 global::System.Collections.Generic.List /// Raw depot manifest data to deserialize. /// Thrown if the given data is not something recognizable. - public static DepotManifest Deserialize(byte[] data) => new DepotManifest(data); + public static DepotManifest Deserialize(byte[] data) => new(data); /// /// Attempts to decrypts file names with the given encryption key. @@ -206,7 +208,7 @@ public bool DecryptFilenames(byte[] encryptionKey) return false; } - file.FileName = Encoding.UTF8.GetString( filename ).TrimEnd( new char[] { '\0' } ).Replace(altDirChar, Path.DirectorySeparatorChar); + file.FileName = Encoding.UTF8.GetString( filename ).TrimEnd( '\0' ).Replace(altDirChar, Path.DirectorySeparatorChar); } // Sort file entries alphabetically because that's what Steam does @@ -224,15 +226,13 @@ public bool DecryptFilenames(byte[] encryptionKey) /// true if serialization was successful; otherwise, false. public bool SaveToFile( string filename ) { - using ( var fs = File.Open( filename, FileMode.Create ) ) - using ( var bw = new BinaryWriter( fs ) ) + using var fs = File.Open( filename, FileMode.Create ); + using var bw = new BinaryWriter( fs ); + var data = Serialize(); + if ( data != null ) { - var data = Serialize(); - if ( data != null ) - { - bw.Write( data ); - return true; - } + bw.Write( data ); + return true; } return false; @@ -248,12 +248,10 @@ public bool SaveToFile( string filename ) if ( !File.Exists( filename ) ) return null; - using ( var fs = File.Open( filename, FileMode.Open ) ) - using ( var ms = new MemoryStream() ) - { - fs.CopyTo( ms ); - return Deserialize( ms.ToArray() ); - } + using var fs = File.Open( filename, FileMode.Open ); + using var ms = new MemoryStream(); + fs.CopyTo( ms ); + return Deserialize( ms.ToArray() ); } void InternalDeserialize(byte[] data) @@ -393,7 +391,7 @@ void ParseProtobufManifestMetadata(ContentManifestMetadata metadata) } else { - protofile.sha_filename = CryptoHelper.SHAHash( Encoding.UTF8.GetBytes( file.FileName.Replace( '/', '\\' ).ToLower() ) ); + protofile.sha_filename = SHA1.HashData( Encoding.UTF8.GetBytes( file.FileName.Replace( '/', '\\' ).ToLower() ) ); } protofile.sha_content = file.FileHash; if ( !string.IsNullOrWhiteSpace( file.LinkTarget ) ) @@ -438,7 +436,7 @@ void ParseProtobufManifestMetadata(ContentManifestMetadata metadata) byte[] data = new byte[ 4 + len ]; Buffer.BlockCopy( BitConverter.GetBytes( len ), 0, data, 0, 4 ); Buffer.BlockCopy( ms_payload.ToArray(), 0, data, 4, len ); - uint crc32 = Crc32.Compute( data ); + uint crc32 = Crc32.HashToUInt32( data ); if ( FilenamesEncrypted ) { diff --git a/SteamKit2/Types/GameID.cs b/SteamKit2/Types/GameID.cs index 3c1030cc4..a94ce73d8 100644 --- a/SteamKit2/Types/GameID.cs +++ b/SteamKit2/Types/GameID.cs @@ -7,6 +7,7 @@ using System; using System.Diagnostics; +using System.IO.Hashing; namespace SteamKit2 { @@ -52,7 +53,7 @@ public GameID() /// Initializes a new instance of the class. /// /// The 64bit integer to assign this GameID from. - public GameID( UInt64 id ) + public GameID( ulong id ) { gameid = new BitVector64( id ); } @@ -60,8 +61,8 @@ public GameID( UInt64 id ) /// Initializes a new instance of the class. /// /// The 32bit app id to assign this GameID from. - public GameID( Int32 nAppID ) - : this( ( UInt64 )nAppID ) + public GameID( int nAppID ) + : this( ( ulong )nAppID ) { } /// @@ -69,12 +70,12 @@ public GameID( Int32 nAppID ) /// /// The base app id of the mod. /// The game folder name of the mod. - public GameID( UInt32 nAppID, string modPath ) + public GameID( uint nAppID, string modPath ) : this(0) { AppID = nAppID; AppType = GameType.GameMod; - ModID = Crc32.Compute(System.Text.Encoding.UTF8.GetBytes(modPath)); + ModID = Crc32.HashToUInt32(System.Text.Encoding.UTF8.GetBytes(modPath)); } /// /// Initializes a new instance of the class. @@ -92,7 +93,7 @@ public GameID( string exePath, string appName ) AppID = 0; AppType = GameType.Shortcut; - ModID = Crc32.Compute(System.Text.Encoding.UTF8.GetBytes(combined)); + ModID = Crc32.HashToUInt32(System.Text.Encoding.UTF8.GetBytes(combined)); } @@ -114,7 +115,7 @@ public ulong ToUInt64() } /// - /// Performs an implicit conversion from to . + /// Performs an implicit conversion from to . /// /// The GameID to convert.. /// @@ -122,39 +123,33 @@ public ulong ToUInt64() /// public static implicit operator string( GameID? gid ) { - if ( gid is null ) - { - throw new ArgumentNullException( nameof(gid) ); - } + ArgumentNullException.ThrowIfNull( gid ); return gid.gameid.Data.ToString(); } /// - /// Performs an implicit conversion from to . + /// Performs an implicit conversion from to . /// /// The GameId to convert. /// /// The result of the conversion. /// - public static implicit operator UInt64( GameID? gid ) + public static implicit operator ulong( GameID? gid ) { - if ( gid is null ) - { - throw new ArgumentNullException( nameof(gid) ); - } + ArgumentNullException.ThrowIfNull( gid ); return gid.gameid.Data; } /// - /// Performs an implicit conversion from to . + /// Performs an implicit conversion from to . /// /// The 64bit integer representing a GameID to convert. /// /// The result of the conversion. /// - public static implicit operator GameID( UInt64 id ) + public static implicit operator GameID( ulong id ) { return new GameID( id ); } @@ -166,15 +161,15 @@ public static implicit operator GameID( UInt64 id ) /// /// The app IDid /// - public UInt32 AppID + public uint AppID { get { - return ( UInt32 )gameid[ 0, 0xFFFFFF ]; + return ( uint )gameid[ 0, 0xFFFFFF ]; } set { - gameid[ 0, 0xFFFFFF ] = ( UInt64 )value; + gameid[ 0, 0xFFFFFF ] = ( ulong )value; } } /// @@ -191,7 +186,7 @@ public GameType AppType } set { - gameid[ 24, 0xFF ] = ( UInt64 )value; + gameid[ 24, 0xFF ] = ( ulong )value; } } /// @@ -200,15 +195,15 @@ public GameType AppType /// /// The mod ID. /// - public UInt32 ModID + public uint ModID { get { - return ( UInt32 )gameid[ 32, 0xFFFFFFFF ]; + return ( uint )gameid[ 32, 0xFFFFFFFF ]; } set { - gameid[ 32, 0xFFFFFFFF ] = ( UInt64 )value; + gameid[ 32, 0xFFFFFFFF ] = ( ulong )value; gameid[ 63, 0xFF ] = 1; } } @@ -257,15 +252,15 @@ public bool IsSteamApp /// - /// Determines whether the specified is equal to this instance. + /// Determines whether the specified is equal to this instance. /// - /// The to compare with this instance. + /// The to compare with this instance. /// - /// true if the specified is equal to this instance; otherwise, false. + /// true if the specified is equal to this instance; otherwise, false. /// public override bool Equals( object? obj ) { - if ( !( obj is GameID gid ) ) + if ( obj is not GameID gid ) { return false; } @@ -338,10 +333,10 @@ public override int GetHashCode() } /// - /// Returns a that represents this instance. + /// Returns a that represents this instance. /// /// - /// A that represents this instance. + /// A that represents this instance. /// public override string ToString() { diff --git a/SteamKit2/Types/GlobalID.cs b/SteamKit2/Types/GlobalID.cs index 0a1e8f5d2..915a4f2bd 100644 --- a/SteamKit2/Types/GlobalID.cs +++ b/SteamKit2/Types/GlobalID.cs @@ -5,9 +5,6 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Diagnostics; namespace SteamKit2 @@ -40,7 +37,7 @@ public GlobalID( ulong gid ) /// - /// Performs an implicit conversion from to . + /// Performs an implicit conversion from to . /// /// The gid. /// @@ -48,16 +45,13 @@ public GlobalID( ulong gid ) /// public static implicit operator ulong( GlobalID gid ) { - if ( gid == null ) - { - throw new ArgumentNullException( nameof(gid) ); - } + ArgumentNullException.ThrowIfNull( gid ); return gid.gidBits.Data; } /// - /// Performs an implicit conversion from to . + /// Performs an implicit conversion from to . /// /// The gid. /// @@ -140,11 +134,11 @@ public ulong Value /// - /// Determines whether the specified is equal to this instance. + /// Determines whether the specified is equal to this instance. /// - /// The to compare with this instance. + /// The to compare with this instance. /// - /// true if the specified is equal to this instance; otherwise, false. + /// true if the specified is equal to this instance; otherwise, false. /// public override bool Equals( object? obj ) { @@ -153,7 +147,7 @@ public override bool Equals( object? obj ) return false; } - if ( !( obj is GlobalID gid ) ) + if ( obj is not GlobalID gid ) { return false; } @@ -226,10 +220,10 @@ public override int GetHashCode() } /// - /// Returns a that represents this instance. + /// Returns a that represents this instance. /// /// - /// A that represents this instance. + /// A that represents this instance. /// public override string ToString() { @@ -261,7 +255,7 @@ public UGCHandle( ulong ugcId ) /// - /// Performs an implicit conversion from to . + /// Performs an implicit conversion from to . /// /// The UGC handle. /// @@ -269,16 +263,13 @@ public UGCHandle( ulong ugcId ) /// public static implicit operator ulong( UGCHandle handle ) { - if ( handle == null ) - { - throw new ArgumentNullException( nameof(handle) ); - } + ArgumentNullException.ThrowIfNull( handle ); return handle.Value; } /// - /// Performs an implicit conversion from to . + /// Performs an implicit conversion from to . /// /// The UGC ID. /// diff --git a/SteamKit2/Types/JobID.cs b/SteamKit2/Types/JobID.cs index 2556cd0c5..0f28d4eee 100644 --- a/SteamKit2/Types/JobID.cs +++ b/SteamKit2/Types/JobID.cs @@ -6,10 +6,9 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Linq; using System.Runtime.CompilerServices; -using System.Text; using System.Threading.Tasks; +using SteamKit2.Util; namespace SteamKit2 { @@ -21,7 +20,7 @@ public class JobID : GlobalID /// /// Represents an invalid JobID. /// - public static readonly JobID Invalid = new JobID(); + public static readonly JobID Invalid = new(); /// @@ -42,7 +41,7 @@ public JobID( ulong jobId ) /// - /// Performs an implicit conversion from to . + /// Performs an implicit conversion from to . /// /// The Job ID. /// @@ -50,16 +49,13 @@ public JobID( ulong jobId ) /// public static implicit operator ulong ( JobID jobId ) { - if ( jobId == null ) - { - throw new ArgumentNullException( nameof(jobId) ); - } + ArgumentNullException.ThrowIfNull( jobId ); return jobId.Value; } /// - /// Performs an implicit conversion from to . + /// Performs an implicit conversion from to . /// /// The Job ID. /// @@ -79,10 +75,7 @@ public static implicit operator JobID( ulong jobId ) /// public static implicit operator JobID( AsyncJob asyncJob ) { - if ( asyncJob == null ) - { - throw new ArgumentNullException( nameof(asyncJob) ); - } + ArgumentNullException.ThrowIfNull( asyncJob ); return asyncJob.JobID; } @@ -94,7 +87,7 @@ public static implicit operator JobID( AsyncJob asyncJob ) /// public abstract class AsyncJob { - DateTime jobStart; + ValueStopwatch jobStart; /// @@ -109,26 +102,18 @@ public abstract class AsyncJob internal bool IsTimedout { - get { return DateTime.UtcNow >= jobStart + Timeout; } + get { return jobStart.GetElapsedTime() >= Timeout; } } internal AsyncJob( SteamClient client, JobID jobId ) { - if ( client == null ) - { - throw new ArgumentNullException( nameof(client) ); - } - - if ( jobId == null ) - { - throw new ArgumentNullException( nameof(jobId) ); - } + ArgumentNullException.ThrowIfNull( client ); - jobStart = DateTime.UtcNow; - JobID = jobId; + ArgumentNullException.ThrowIfNull( jobId ); - + jobStart = ValueStopwatch.StartNew(); + JobID = jobId; } /// @@ -216,10 +201,7 @@ public TaskAwaiter GetAwaiter() /// Always true. internal override bool AddResult( CallbackMsg callback ) { - if ( callback == null ) - { - throw new ArgumentNullException( nameof( callback ) ); - } + ArgumentNullException.ThrowIfNull( callback ); // we're complete with just this callback tcs.TrySetResult( (T)callback ); @@ -285,7 +267,7 @@ public sealed class ResultSet TaskCompletionSource tcs; Predicate finishCondition; - List results = new List(); + List results = []; /// @@ -330,10 +312,7 @@ public TaskAwaiter GetAwaiter() /// true if this result completes the set; otherwise, false. internal override bool AddResult( CallbackMsg callback ) { - if ( callback == null ) - { - throw new ArgumentNullException( nameof( callback ) ); - } + ArgumentNullException.ThrowIfNull( callback ); T callbackMsg = (T)callback; diff --git a/SteamKit2/Types/KeyValue.cs b/SteamKit2/Types/KeyValue.cs index f973fcd73..03feaf266 100644 --- a/SteamKit2/Types/KeyValue.cs +++ b/SteamKit2/Types/KeyValue.cs @@ -15,7 +15,7 @@ namespace SteamKit2 { class KVTextReader : StreamReader { - internal static Dictionary escapedMapping = new Dictionary + internal static Dictionary escapedMapping = new() { { '\\', '\\' }, { 'n', '\n' }, @@ -60,7 +60,7 @@ public KVTextReader( KeyValue kv, Stream input ) s = ReadToken( out wasQuoted, out wasConditional ); } - if ( s != null && s.StartsWith( "{" ) && !wasQuoted ) + if ( s != null && s.StartsWith( '{' ) && !wasQuoted ) { // header is valid so load the file currentKey.RecursiveLoadFromBuffer( this ); @@ -79,7 +79,7 @@ private void EatWhiteSpace() { while ( !EndOfStream ) { - if ( !Char.IsWhiteSpace( ( char )Peek() ) ) + if ( !char.IsWhiteSpace( ( char )Peek() ) ) { break; } @@ -194,7 +194,7 @@ private bool EatCPPComment() if ( next == ']' && bConditionalStart ) wasConditional = true; - if ( Char.IsWhiteSpace( next ) ) + if ( char.IsWhiteSpace( next ) ) break; if ( count < 1023 ) @@ -242,13 +242,13 @@ public KeyValue( string? name = null, string? value = null ) this.Name = name; this.Value = value; - Children = new List(); + Children = []; } /// /// Represents an invalid given when a searched for child does not exist. /// - public readonly static KeyValue Invalid = new KeyValue(); + public readonly static KeyValue Invalid = new(); /// /// Gets or sets the name of this instance. @@ -273,10 +273,7 @@ public KeyValue this[ string key ] { get { - if ( key == null ) - { - throw new ArgumentNullException( nameof(key) ); - } + ArgumentNullException.ThrowIfNull( key ); var child = this.Children .FirstOrDefault( c => string.Equals( c.Name, key, StringComparison.OrdinalIgnoreCase ) ); @@ -290,10 +287,7 @@ public KeyValue this[ string key ] } set { - if ( key == null ) - { - throw new ArgumentNullException( nameof(key) ); - } + ArgumentNullException.ThrowIfNull( key ); var existingChild = this.Children .FirstOrDefault( c => string.Equals( c.Name, key, StringComparison.OrdinalIgnoreCase ) ); @@ -326,7 +320,7 @@ public KeyValue this[ string key ] /// /// The default value to return if the conversion is invalid. /// The value of this instance as an unsigned byte. - public byte AsUnsignedByte( byte defaultValue = default( byte ) ) + public byte AsUnsignedByte( byte defaultValue = default ) { byte value; @@ -344,7 +338,7 @@ public KeyValue this[ string key ] /// /// The default value to return if the conversion is invalid. /// The value of this instance as an unsigned short. - public ushort AsUnsignedShort( ushort defaultValue = default( ushort ) ) + public ushort AsUnsignedShort( ushort defaultValue = default ) { ushort value; @@ -362,7 +356,7 @@ public KeyValue this[ string key ] /// /// The default value to return if the conversion is invalid. /// The value of this instance as an integer. - public int AsInteger( int defaultValue = default( int ) ) + public int AsInteger( int defaultValue = default ) { int value; @@ -380,7 +374,7 @@ public KeyValue this[ string key ] /// /// The default value to return if the conversion is invalid. /// The value of this instance as an unsigned integer. - public uint AsUnsignedInteger( uint defaultValue = default( uint ) ) + public uint AsUnsignedInteger( uint defaultValue = default ) { uint value; @@ -398,7 +392,7 @@ public KeyValue this[ string key ] /// /// The default value to return if the conversion is invalid. /// The value of this instance as a long. - public long AsLong( long defaultValue = default( long ) ) + public long AsLong( long defaultValue = default ) { long value; @@ -416,7 +410,7 @@ public KeyValue this[ string key ] /// /// The default value to return if the conversion is invalid. /// The value of this instance as an unsigned long. - public ulong AsUnsignedLong( ulong defaultValue = default( ulong ) ) + public ulong AsUnsignedLong( ulong defaultValue = default ) { ulong value; @@ -434,7 +428,7 @@ public KeyValue this[ string key ] /// /// The default value to return if the conversion is invalid. /// The value of this instance as a float. - public float AsFloat( float defaultValue = default( float ) ) + public float AsFloat( float defaultValue = default ) { float value; @@ -452,7 +446,7 @@ public KeyValue this[ string key ] /// /// The default value to return if the conversion is invalid. /// The value of this instance as a boolean. - public bool AsBoolean( bool defaultValue = default( bool ) ) + public bool AsBoolean( bool defaultValue = default ) { int value; @@ -470,7 +464,7 @@ public KeyValue this[ string key ] /// /// The default value to return if the conversion is invalid. /// The value of this instance as an enum. - public T AsEnum( T defaultValue = default( T ) ) + public T AsEnum( T defaultValue = default ) where T : struct { T value; @@ -484,10 +478,10 @@ public KeyValue this[ string key ] } /// - /// Returns a that represents this instance. + /// Returns a that represents this instance. /// /// - /// A that represents this instance. + /// A that represents this instance. /// public override string ToString() { @@ -529,27 +523,25 @@ public static bool TryLoadAsBinary( string path, [NotNullWhen(true)] out KeyValu try { - using ( var input = File.Open( path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite ) ) - { - var kv = new KeyValue(); + using var input = File.Open( path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite ); + var kv = new KeyValue(); - if ( asBinary ) + if ( asBinary ) + { + if ( kv.TryReadAsBinary( input ) == false ) { - if ( kv.TryReadAsBinary( input ) == false ) - { - return null; - } + return null; } - else + } + else + { + if ( kv.ReadAsText( input ) == false ) { - if ( kv.ReadAsText( input ) == false ) - { - return null; - } + return null; } - - return kv; } + + return kv; } catch ( Exception ) { @@ -567,28 +559,23 @@ public static bool TryLoadAsBinary( string path, [NotNullWhen(true)] out KeyValu /// public static KeyValue? LoadFromString( string input ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } + ArgumentNullException.ThrowIfNull( input ); byte[] bytes = Encoding.UTF8.GetBytes( input ); - using ( MemoryStream stream = new MemoryStream( bytes ) ) - { - var kv = new KeyValue(); - - try - { - if ( kv.ReadAsText( stream ) == false ) - return null; + using MemoryStream stream = new MemoryStream( bytes ); + var kv = new KeyValue(); - return kv; - } - catch ( Exception ) - { + try + { + if ( kv.ReadAsText( stream ) == false ) return null; - } + + return kv; + } + catch ( Exception ) + { + return null; } } @@ -599,12 +586,9 @@ public static bool TryLoadAsBinary( string path, [NotNullWhen(true)] out KeyValu /// true if the read was successful; otherwise, false. public bool ReadAsText( Stream input ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } + ArgumentNullException.ThrowIfNull( input ); - this.Children = new List(); + this.Children = []; using var _ = new KVTextReader( this, input ); @@ -619,10 +603,8 @@ public bool ReadAsText( Stream input ) /// true if the read was successful; otherwise, false. public bool ReadFileAsText( string filename ) { - using ( FileStream fs = new FileStream( filename, FileMode.Open ) ) - { - return ReadAsText( fs ); - } + using FileStream fs = new FileStream( filename, FileMode.Open ); + return ReadAsText( fs ); } internal void RecursiveLoadFromBuffer( KVTextReader kvr ) @@ -642,13 +624,13 @@ internal void RecursiveLoadFromBuffer( KVTextReader kvr ) throw new InvalidDataException( "RecursiveLoadFromBuffer: got EOF or empty keyname" ); } - if ( name.StartsWith( "}" ) && !wasQuoted ) // top level closed, stop reading + if ( name.StartsWith( '}' ) && !wasQuoted ) // top level closed, stop reading { break; } KeyValue dat = new KeyValue( name ); - dat.Children = new List(); + dat.Children = []; this.Children.Add( dat ); // get the value @@ -665,12 +647,12 @@ internal void RecursiveLoadFromBuffer( KVTextReader kvr ) throw new Exception( "RecursiveLoadFromBuffer: got NULL key" ); } - if ( value.StartsWith( "}" ) && !wasQuoted ) + if ( value.StartsWith( '}' ) && !wasQuoted ) { throw new Exception( "RecursiveLoadFromBuffer: got } in key" ); } - if ( value.StartsWith( "{" ) && !wasQuoted ) + if ( value.StartsWith( '{' ) && !wasQuoted ) { dat.RecursiveLoadFromBuffer( kvr ); } @@ -694,10 +676,8 @@ internal void RecursiveLoadFromBuffer( KVTextReader kvr ) /// If set to true, saves this instance as binary. public void SaveToFile( string path, bool asBinary ) { - using ( var f = File.Create( path ) ) - { - SaveToStream( f, asBinary ); - } + using var f = File.Create( path ); + SaveToStream( f, asBinary ); } /// @@ -707,10 +687,7 @@ public void SaveToFile( string path, bool asBinary ) /// If set to true, saves this instance as binary. public void SaveToStream( Stream stream, bool asBinary ) { - if ( stream == null ) - { - throw new ArgumentNullException( nameof(stream) ); - } + ArgumentNullException.ThrowIfNull( stream ); if (asBinary) { @@ -793,7 +770,7 @@ static string EscapeText( string value ) return value; } - void WriteIndents( Stream stream, int indentLevel ) + static void WriteIndents( Stream stream, int indentLevel ) { WriteString( stream, new string( '\t', indentLevel ) ); } @@ -811,17 +788,14 @@ static void WriteString( Stream stream, string str, bool quote = false ) /// true if the read was successful; otherwise, false. public bool TryReadAsBinary( Stream input ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } - + ArgumentNullException.ThrowIfNull( input ); + return TryReadAsBinaryCore( input, this, null ); } static bool TryReadAsBinaryCore( Stream input, KeyValue current, KeyValue? parent ) { - current.Children = new List(); + current.Children = []; while ( true ) { @@ -891,10 +865,7 @@ static bool TryReadAsBinaryCore( Stream input, KeyValue current, KeyValue? paren } } - if (parent != null) - { - parent.Children.Add(current); - } + parent?.Children.Add(current); current = new KeyValue(); } diff --git a/SteamKit2/Types/Manifest.cs b/SteamKit2/Types/Manifest.cs index 55b8501c1..a45da2007 100644 --- a/SteamKit2/Types/Manifest.cs +++ b/SteamKit2/Types/Manifest.cs @@ -112,10 +112,7 @@ internal void Deserialize( BinaryReader ds ) public Steam3Manifest(byte[] data) { - if (data == null) - { - throw new ArgumentNullException(nameof(data)); - } + ArgumentNullException.ThrowIfNull( data ); Deserialize(data); } @@ -127,11 +124,9 @@ internal Steam3Manifest(BinaryReader data) void Deserialize(byte[] data) { - using ( var ms = new MemoryStream( data ) ) - using ( var br = new BinaryReader( ms ) ) - { - Deserialize( br ); - } + using var ms = new MemoryStream( data ); + using var br = new BinaryReader( ms ); + Deserialize( br ); } void Deserialize( BinaryReader ds ) diff --git a/SteamKit2/Types/MessageObject.cs b/SteamKit2/Types/MessageObject.cs index b7b9be8de..d33c43bde 100644 --- a/SteamKit2/Types/MessageObject.cs +++ b/SteamKit2/Types/MessageObject.cs @@ -1,8 +1,5 @@ using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; namespace SteamKit2 { @@ -23,10 +20,7 @@ public class MessageObject /// The KeyValue backing store for this message object. public MessageObject( KeyValue keyValues ) { - if ( keyValues == null ) - { - throw new ArgumentNullException( nameof(keyValues) ); - } + ArgumentNullException.ThrowIfNull( keyValues ); this.KeyValues = keyValues; } @@ -46,10 +40,7 @@ public MessageObject() /// true on success; otherwise, false. public bool ReadFromStream( Stream stream ) { - if ( stream == null ) - { - throw new ArgumentNullException( nameof(stream) ); - } + ArgumentNullException.ThrowIfNull( stream ); return KeyValues.TryReadAsBinary( stream ); } @@ -60,10 +51,7 @@ public bool ReadFromStream( Stream stream ) /// The stream to write to. public void WriteToStream( Stream stream ) { - if ( stream == null ) - { - throw new ArgumentNullException( nameof(stream) ); - } + ArgumentNullException.ThrowIfNull( stream ); KeyValues.SaveToStream( stream, true ); } diff --git a/SteamKit2/Types/PubFile.cs b/SteamKit2/Types/PubFile.cs index 4fe8c2f08..145795eb8 100644 --- a/SteamKit2/Types/PubFile.cs +++ b/SteamKit2/Types/PubFile.cs @@ -52,11 +52,11 @@ public override int GetHashCode() } /// - /// Determines whether the specified is equal to this instance. + /// Determines whether the specified is equal to this instance. /// - /// The to compare with this instance. + /// The to compare with this instance. /// - /// true if the specified is equal to this instance; otherwise, false. + /// true if the specified is equal to this instance; otherwise, false. /// public override bool Equals( object? obj ) { @@ -69,10 +69,10 @@ public override bool Equals( object? obj ) } /// - /// Returns a that represents this instance. + /// Returns a that represents this instance. /// /// - /// A that represents this instance. + /// A that represents this instance. /// public override string ToString() { @@ -118,7 +118,7 @@ public PublishedFileID( ulong fileId = ulong.MaxValue ) } /// - /// Performs an implicit conversion from to . + /// Performs an implicit conversion from to . /// /// The published file. /// @@ -126,15 +126,12 @@ public PublishedFileID( ulong fileId = ulong.MaxValue ) /// public static implicit operator ulong( PublishedFileID? file ) { - if ( file is null ) - { - throw new ArgumentNullException( nameof(file) ); - } + ArgumentNullException.ThrowIfNull( file ); return file.Value; } /// - /// Performs an implicit conversion from to . + /// Performs an implicit conversion from to . /// /// The file id. /// diff --git a/SteamKit2/Types/SteamID.cs b/SteamKit2/Types/SteamID.cs index 984d85ea8..8f7f5bf6a 100644 --- a/SteamKit2/Types/SteamID.cs +++ b/SteamKit2/Types/SteamID.cs @@ -34,23 +34,20 @@ public BitVector64( ulong value ) /// This 64-bit structure is used for identifying various objects on the Steam network. /// [DebuggerDisplay( "{Render()}, {ConvertToUInt64()}" )] - public class SteamID + public partial class SteamID { readonly BitVector64 steamid; - static readonly Regex Steam2Regex = new Regex( - @"STEAM_(?[0-4]):(?[0-1]):(?\d+)", - RegexOptions.Compiled | RegexOptions.IgnoreCase ); + [GeneratedRegex( @"STEAM_(?[0-4]):(?[0-1]):(?[0-9]+)", RegexOptions.IgnoreCase )] + private static partial Regex Steam2Regex(); - static readonly Regex Steam3Regex = new Regex( - @"\[(?[AGMPCgcLTIUai]):(?[0-4]):(?\d+)(:(?\d+))?\]", - RegexOptions.Compiled ); + [GeneratedRegex( @"\[(?[AGMPCgcLTIUai]):(?[0-4]):(?[0-9]+)(:(?[0-9]+))?\]" )] + private static partial Regex Steam3Regex(); - static readonly Regex Steam3FallbackRegex = new Regex( - @"\[(?[AGMPCgcLTIUai]):(?[0-4]):(?\d+)(\((?\d+)\))?\]", - RegexOptions.Compiled ); + [GeneratedRegex( @"\[(?[AGMPCgcLTIUai]):(?[0-4]):(?[0-9]+)(\((?[0-9]+)\))?\]" )] + private static partial Regex Steam3FallbackRegex(); - static readonly Dictionary AccountTypeChars = new Dictionary + static readonly Dictionary AccountTypeChars = new() { { EAccountType.AnonGameServer, 'A' }, { EAccountType.GameServer, 'G' }, @@ -222,7 +219,7 @@ public bool SetFromString( string steamId, EUniverse eUniverse ) return false; } - Match m = Steam2Regex.Match( steamId ); + Match m = Steam2Regex().Match( steamId ); if ( !m.Success ) { @@ -255,11 +252,11 @@ public bool SetFromSteam3String( string steamId ) return false; } - Match m = Steam3Regex.Match( steamId ); + Match m = Steam3Regex().Match( steamId ); if ( !m.Success ) { - m = Steam3FallbackRegex.Match( steamId ); + m = Steam3FallbackRegex().Match( steamId ); if ( !m.Success ) { @@ -293,19 +290,11 @@ public bool SetFromSteam3String( string steamId ) } else { - switch ( type ) + instance = type switch { - case 'g': - case 'T': - case 'c': - case 'L': - instance = 0; - break; - - default: - instance = 1; - break; - } + 'g' or 'T' or 'c' or 'L' => 0, + _ => 1, + }; } if ( type == 'c' ) @@ -660,10 +649,7 @@ string RenderSteam3() /// public static implicit operator ulong( SteamID sid ) { - if ( sid is null ) - { - throw new ArgumentNullException( nameof(sid) ); - } + ArgumentNullException.ThrowIfNull( sid ); return sid.steamid.Data; } @@ -675,7 +661,7 @@ public static implicit operator ulong( SteamID sid ) /// /// The result of the conversion. /// - public static implicit operator SteamID( ulong id ) => new SteamID( id ); + public static implicit operator SteamID( ulong id ) => new( id ); /// /// Determines whether the specified is equal to this instance. @@ -691,7 +677,7 @@ public override bool Equals( object? obj ) return false; } - if ( !( obj is SteamID sid ) ) + if ( obj is not SteamID sid ) { return false; } @@ -762,6 +748,5 @@ public override int GetHashCode() { return steamid.Data.GetHashCode(); } - } } diff --git a/SteamKit2/Util/AsnKeyParser.cs b/SteamKit2/Util/AsnKeyParser.cs deleted file mode 100644 index 2d46adf99..000000000 --- a/SteamKit2/Util/AsnKeyParser.cs +++ /dev/null @@ -1,704 +0,0 @@ -/* -This code is licenced under MIT - -// The MIT License -// -// Copyright (c) 2006-2008 TinyVine Software Limited. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. - -Portions of this software are Copyright of Simone Chiaretta -Portions of this software are Copyright of Nate Kohari -Portions of this software are Copyright of Alex Henderson -*/ - -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Globalization; -using System.IO; -using System.Runtime.Serialization; -using System.Security.Cryptography; -using System.Security.Permissions; -using System.Text; - -namespace SteamKit2 -{ - [Serializable] - sealed class BerDecodeException : Exception - { - readonly int _position; - - public BerDecodeException() - { - } - - public BerDecodeException(String message) - : base(message) - { - } - - public BerDecodeException(String message, Exception ex) - : base(message, ex) - { - } - - public BerDecodeException(String message, int position) - : base(message) - { - _position = position; - } - - public BerDecodeException(String message, int position, Exception ex) - : base(message, ex) - { - _position = position; - } - - BerDecodeException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - _position = info.GetInt32("Position"); - } - - public int Position - { - get { return _position; } - } - - public override string Message - { - get - { - var sb = new StringBuilder(base.Message); - - sb.AppendFormat(" (Position {0}){1}", - _position, Environment.NewLine); - - return sb.ToString(); - } - } - - public override void GetObjectData(SerializationInfo info, StreamingContext context) - { - base.GetObjectData(info, context); - info.AddValue("Position", _position); - } - } - - - class AsnKeyParser - { - readonly AsnParser _parser; - - public AsnKeyParser(String pathname) - { - using var reader = new BinaryReader( new FileStream( pathname, FileMode.Open, FileAccess.Read ) ); - var info = new FileInfo( pathname ); - - _parser = new AsnParser( reader.ReadBytes( ( int )info.Length ) ); - } - - public AsnKeyParser(ICollection contents) - { - _parser = new AsnParser(contents); - } - - public static byte[] TrimLeadingZero(byte[] values) - { - byte[] r; - if ((0x00 == values[0]) && (values.Length > 1)) - { - r = new byte[values.Length - 1]; - Array.Copy(values, 1, r, 0, values.Length - 1); - } - else - { - r = new byte[values.Length]; - Array.Copy(values, r, values.Length); - } - - return r; - } - - public static bool EqualOid(byte[] first, byte[] second) - { - if (first.Length != second.Length) - { - return false; - } - - for (int i = 0; i < first.Length; i++) - { - if (first[i] != second[i]) - { - return false; - } - } - - return true; - } - - public RSAParameters ParseRSAPublicKey() - { - var parameters = new RSAParameters(); - - // Current value - - // Sanity Check - - // Checkpoint - int position = _parser.CurrentPosition(); - - // Ignore Sequence - PublicKeyInfo - int length = _parser.NextSequence(); - if (length != _parser.RemainingBytes()) - { - var sb = new StringBuilder("Incorrect Sequence Size. "); - sb.AppendFormat("Specified: {0}, Remaining: {1}", - length.ToString(CultureInfo.InvariantCulture), - _parser.RemainingBytes().ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - // Checkpoint - position = _parser.CurrentPosition(); - - // Ignore Sequence - AlgorithmIdentifier - length = _parser.NextSequence(); - if (length > _parser.RemainingBytes()) - { - var sb = new StringBuilder("Incorrect AlgorithmIdentifier Size. "); - sb.AppendFormat("Specified: {0}, Remaining: {1}", - length.ToString(CultureInfo.InvariantCulture), - _parser.RemainingBytes().ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - // Checkpoint - position = _parser.CurrentPosition(); - // Grab the OID - byte[] value = _parser.NextOID(); - byte[] oid = { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01 }; - if (!EqualOid(value, oid)) - { - throw new BerDecodeException("Expected OID 1.2.840.113549.1.1.1", position); - } - - // Optional Parameters - if (_parser.IsNextNull()) - { - _parser.NextNull(); - // Also OK: value = _parser.Next(); - } - else - { - // Gracefully skip the optional data - _parser.Next(); - } - - // Checkpoint - position = _parser.CurrentPosition(); - - // Ignore BitString - PublicKey - length = _parser.NextBitString(); - if (length > _parser.RemainingBytes()) - { - var sb = new StringBuilder("Incorrect PublicKey Size. "); - sb.AppendFormat("Specified: {0}, Remaining: {1}", - length.ToString(CultureInfo.InvariantCulture), - (_parser.RemainingBytes()).ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - // Checkpoint - position = _parser.CurrentPosition(); - - // Ignore Sequence - RSAPublicKey - length = _parser.NextSequence(); - if (length < _parser.RemainingBytes()) - { - var sb = new StringBuilder("Incorrect RSAPublicKey Size. "); - sb.AppendFormat("Specified: {0}, Remaining: {1}", - length.ToString(CultureInfo.InvariantCulture), - _parser.RemainingBytes().ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - parameters.Modulus = TrimLeadingZero(_parser.NextInteger()); - parameters.Exponent = TrimLeadingZero(_parser.NextInteger()); - - Debug.Assert(0 == _parser.RemainingBytes()); - - return parameters; - } - - public DSAParameters ParseDSAPublicKey() - { - var parameters = new DSAParameters(); - - // Current value - - // Current Position - int position = _parser.CurrentPosition(); - // Sanity Checks - - // Ignore Sequence - PublicKeyInfo - int length = _parser.NextSequence(); - if (length != _parser.RemainingBytes()) - { - var sb = new StringBuilder("Incorrect Sequence Size. "); - sb.AppendFormat("Specified: {0}, Remaining: {1}", - length.ToString(CultureInfo.InvariantCulture), - _parser.RemainingBytes().ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - // Checkpoint - position = _parser.CurrentPosition(); - - // Ignore Sequence - AlgorithmIdentifier - length = _parser.NextSequence(); - if (length > _parser.RemainingBytes()) - { - var sb = new StringBuilder("Incorrect AlgorithmIdentifier Size. "); - sb.AppendFormat("Specified: {0}, Remaining: {1}", - length.ToString(CultureInfo.InvariantCulture), - _parser.RemainingBytes().ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - // Checkpoint - position = _parser.CurrentPosition(); - - // Grab the OID - byte[] value = _parser.NextOID(); - byte[] oid = { 0x2a, 0x86, 0x48, 0xce, 0x38, 0x04, 0x01 }; - if (!EqualOid(value, oid)) - { - throw new BerDecodeException("Expected OID 1.2.840.10040.4.1", position); - } - - - // Checkpoint - position = _parser.CurrentPosition(); - - // Ignore Sequence - DSS-Params - length = _parser.NextSequence(); - if (length > _parser.RemainingBytes()) - { - var sb = new StringBuilder("Incorrect DSS-Params Size. "); - sb.AppendFormat("Specified: {0}, Remaining: {1}", - length.ToString(CultureInfo.InvariantCulture), - _parser.RemainingBytes().ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - // Next three are curve parameters - parameters.P = TrimLeadingZero(_parser.NextInteger()); - parameters.Q = TrimLeadingZero(_parser.NextInteger()); - parameters.G = TrimLeadingZero(_parser.NextInteger()); - - // Ignore BitString - PrivateKey - _parser.NextBitString(); - - // Public Key - parameters.Y = TrimLeadingZero(_parser.NextInteger()); - - Debug.Assert(0 == _parser.RemainingBytes()); - - return parameters; - } - } - - internal class AsnParser - { - readonly int _initialCount; - readonly List _octets; - - public AsnParser(ICollection values) - { - _octets = new List(values.Count); - _octets.AddRange(values); - - _initialCount = _octets.Count; - } - - public int CurrentPosition() - { - return _initialCount - _octets.Count; - } - - public int RemainingBytes() - { - return _octets.Count; - } - - int GetLength() - { - int length = 0; - - // Checkpoint - int position = CurrentPosition(); - - try - { - byte b = GetNextOctet(); - - if (b == (b & 0x7f)) - { - return b; - } - int i = b & 0x7f; - - if (i > 4) - { - var sb = new StringBuilder("Invalid Length Encoding. "); - sb.AppendFormat("Length uses {0} _octets", - i.ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - while (0 != i--) - { - // shift left - length <<= 8; - - length |= GetNextOctet(); - } - } - catch (ArgumentOutOfRangeException ex) - { - throw new BerDecodeException("Error Parsing Key", position, ex); - } - - return length; - } - - public byte[] Next() - { - int position = CurrentPosition(); - - try - { - byte b = GetNextOctet(); - - int length = GetLength(); - if (length > RemainingBytes()) - { - var sb = new StringBuilder("Incorrect Size. "); - sb.AppendFormat("Specified: {0}, Remaining: {1}", - length.ToString(CultureInfo.InvariantCulture), - RemainingBytes().ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - return GetOctets(length); - } - - catch (ArgumentOutOfRangeException ex) - { - throw new BerDecodeException("Error Parsing Key", position, ex); - } - } - - public byte GetNextOctet() - { - int position = CurrentPosition(); - - if (0 == RemainingBytes()) - { - var sb = new StringBuilder("Incorrect Size. "); - sb.AppendFormat("Specified: {0}, Remaining: {1}", - 1.ToString(CultureInfo.InvariantCulture), - RemainingBytes().ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - byte b = GetOctets(1)[0]; - - return b; - } - - public byte[] GetOctets(int octetCount) - { - int position = CurrentPosition(); - - if (octetCount > RemainingBytes()) - { - var sb = new StringBuilder("Incorrect Size. "); - sb.AppendFormat("Specified: {0}, Remaining: {1}", - octetCount.ToString(CultureInfo.InvariantCulture), - RemainingBytes().ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - var values = new byte[octetCount]; - - try - { - _octets.CopyTo(0, values, 0, octetCount); - _octets.RemoveRange(0, octetCount); - } - - catch (ArgumentOutOfRangeException ex) - { - throw new BerDecodeException("Error Parsing Key", position, ex); - } - - return values; - } - - public bool IsNextNull() - { - return 0x05 == _octets[0]; - } - - public int NextNull() - { - int position = CurrentPosition(); - - try - { - byte b = GetNextOctet(); - if (0x05 != b) - { - var sb = new StringBuilder("Expected Null. "); - sb.AppendFormat("Specified Identifier: {0}", b.ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - // Next octet must be 0 - b = GetNextOctet(); - if (0x00 != b) - { - var sb = new StringBuilder("Null has non-zero size. "); - sb.AppendFormat("Size: {0}", b.ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - return 0; - } - - catch (ArgumentOutOfRangeException ex) - { - throw new BerDecodeException("Error Parsing Key", position, ex); - } - } - - public bool IsNextSequence() - { - return 0x30 == _octets[0]; - } - - public int NextSequence() - { - int position = CurrentPosition(); - - try - { - byte b = GetNextOctet(); - if (0x30 != b) - { - var sb = new StringBuilder("Expected Sequence. "); - sb.AppendFormat("Specified Identifier: {0}", - b.ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - int length = GetLength(); - if (length > RemainingBytes()) - { - var sb = new StringBuilder("Incorrect Sequence Size. "); - sb.AppendFormat("Specified: {0}, Remaining: {1}", - length.ToString(CultureInfo.InvariantCulture), - RemainingBytes().ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - return length; - } - - catch (ArgumentOutOfRangeException ex) - { - throw new BerDecodeException("Error Parsing Key", position, ex); - } - } - - public bool IsNextOctetString() - { - return 0x04 == _octets[0]; - } - - public int NextOctetString() - { - int position = CurrentPosition(); - - try - { - byte b = GetNextOctet(); - if (0x04 != b) - { - var sb = new StringBuilder("Expected Octet String. "); - sb.AppendFormat("Specified Identifier: {0}", b.ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - int length = GetLength(); - if (length > RemainingBytes()) - { - var sb = new StringBuilder("Incorrect Octet String Size. "); - sb.AppendFormat("Specified: {0}, Remaining: {1}", - length.ToString(CultureInfo.InvariantCulture), - RemainingBytes().ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - return length; - } - - catch (ArgumentOutOfRangeException ex) - { - throw new BerDecodeException("Error Parsing Key", position, ex); - } - } - - public bool IsNextBitString() - { - return 0x03 == _octets[0]; - } - - public int NextBitString() - { - int position = CurrentPosition(); - - try - { - byte b = GetNextOctet(); - if (0x03 != b) - { - var sb = new StringBuilder("Expected Bit String. "); - sb.AppendFormat("Specified Identifier: {0}", b.ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - int length = GetLength(); - - // We need to consume unused bits, which is the first - // octet of the remaing values - b = _octets[0]; - _octets.RemoveAt(0); - length--; - - if (0x00 != b) - { - throw new BerDecodeException("The first octet of BitString must be 0", position); - } - - return length; - } - - catch (ArgumentOutOfRangeException ex) - { - throw new BerDecodeException("Error Parsing Key", position, ex); - } - } - - public bool IsNextInteger() - { - return 0x02 == _octets[0]; - } - - public byte[] NextInteger() - { - int position = CurrentPosition(); - - try - { - byte b = GetNextOctet(); - if (0x02 != b) - { - var sb = new StringBuilder("Expected Integer. "); - sb.AppendFormat("Specified Identifier: {0}", b.ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - int length = GetLength(); - if (length > RemainingBytes()) - { - var sb = new StringBuilder("Incorrect Integer Size. "); - sb.AppendFormat("Specified: {0}, Remaining: {1}", - length.ToString(CultureInfo.InvariantCulture), - RemainingBytes().ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - return GetOctets(length); - } - - catch (ArgumentOutOfRangeException ex) - { - throw new BerDecodeException("Error Parsing Key", position, ex); - } - } - - public byte[] NextOID() - { - int position = CurrentPosition(); - - try - { - byte b = GetNextOctet(); - if (0x06 != b) - { - var sb = new StringBuilder("Expected Object Identifier. "); - sb.AppendFormat("Specified Identifier: {0}", - b.ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - int length = GetLength(); - if (length > RemainingBytes()) - { - var sb = new StringBuilder("Incorrect Object Identifier Size. "); - sb.AppendFormat("Specified: {0}, Remaining: {1}", - length.ToString(CultureInfo.InvariantCulture), - RemainingBytes().ToString(CultureInfo.InvariantCulture)); - throw new BerDecodeException(sb.ToString(), position); - } - - var values = new byte[length]; - - for (int i = 0; i < length; i++) - { - values[i] = _octets[0]; - _octets.RemoveAt(0); - } - - return values; - } - - catch (ArgumentOutOfRangeException ex) - { - throw new BerDecodeException("Error Parsing Key", position, ex); - } - } - } - -} diff --git a/SteamKit2/Util/Crc32.cs b/SteamKit2/Util/Crc32.cs deleted file mode 100644 index 3fa783e01..000000000 --- a/SteamKit2/Util/Crc32.cs +++ /dev/null @@ -1,114 +0,0 @@ -// -// from: http://damieng.com/blog/2006/08/08/calculating_crc32_in_c_and_net -// - -using System; -using System.Security.Cryptography; - -namespace SteamKit2 -{ - class Crc32 : HashAlgorithm - { - public const UInt32 DefaultPolynomial = 0xedb88320; - public const UInt32 DefaultSeed = 0xffffffff; - - private UInt32 hash; - private UInt32 seed; - private UInt32[] table; - private static UInt32[]? defaultTable; - - public Crc32() - { - table = InitializeTable( DefaultPolynomial ); - seed = DefaultSeed; - Initialize(); - } - - public Crc32( UInt32 polynomial, UInt32 seed ) - { - table = InitializeTable( polynomial ); - this.seed = seed; - Initialize(); - } - - public override void Initialize() - { - hash = seed; - } - - protected override void HashCore( byte[] buffer, int start, int length ) - { - hash = CalculateHash( table, hash, buffer, start, length ); - } - - protected override byte[] HashFinal() - { - var hashBuffer = UInt32ToBigEndianBytes( ~hash ); - return hashBuffer; - } - - public override int HashSize - { - get { return 32; } - } - - public static UInt32 Compute( byte[] buffer ) - { - return ~CalculateHash( InitializeTable( DefaultPolynomial ), DefaultSeed, buffer, 0, buffer.Length ); - } - - public static UInt32 Compute( UInt32 seed, byte[] buffer ) - { - return ~CalculateHash( InitializeTable( DefaultPolynomial ), seed, buffer, 0, buffer.Length ); - } - - public static UInt32 Compute( UInt32 polynomial, UInt32 seed, byte[] buffer ) - { - return ~CalculateHash( InitializeTable( polynomial ), seed, buffer, 0, buffer.Length ); - } - - private static UInt32[] InitializeTable( UInt32 polynomial ) - { - if ( polynomial == DefaultPolynomial && defaultTable != null ) - return defaultTable; - - UInt32[] createTable = new UInt32[ 256 ]; - for ( int i = 0 ; i < 256 ; i++ ) - { - UInt32 entry = ( UInt32 )i; - for ( int j = 0 ; j < 8 ; j++ ) - if ( ( entry & 1 ) == 1 ) - entry = ( entry >> 1 ) ^ polynomial; - else - entry = entry >> 1; - createTable[ i ] = entry; - } - - if ( polynomial == DefaultPolynomial ) - defaultTable = createTable; - - return createTable; - } - - private static UInt32 CalculateHash( UInt32[] table, UInt32 seed, byte[] buffer, int start, int size ) - { - UInt32 crc = seed; - for ( int i = start ; i < size ; i++ ) - unchecked - { - crc = ( crc >> 8 ) ^ table[ buffer[ i ] ^ crc & 0xff ]; - } - return crc; - } - - private byte[] UInt32ToBigEndianBytes( UInt32 x ) - { - return new byte[] { - (byte)((x >> 24) & 0xff), - (byte)((x >> 16) & 0xff), - (byte)((x >> 8) & 0xff), - (byte)(x & 0xff) - }; - } - } -} diff --git a/SteamKit2/Util/CryptoHelper.cs b/SteamKit2/Util/CryptoHelper.cs index 25c24b760..1cfb4f115 100644 --- a/SteamKit2/Util/CryptoHelper.cs +++ b/SteamKit2/Util/CryptoHelper.cs @@ -6,7 +6,6 @@ using System; -using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; @@ -30,15 +29,10 @@ public class RSACrypto : IDisposable /// The public key to encrypt with. public RSACrypto( byte[] key ) { - if ( key == null ) - { - throw new ArgumentNullException( nameof(key) ); - } - - AsnKeyParser keyParser = new AsnKeyParser( key ); + ArgumentNullException.ThrowIfNull( key ); rsa = RSA.Create(); - rsa.ImportParameters( keyParser.ParseRSAPublicKey() ); + rsa.ImportSubjectPublicKeyInfo( key, out _ ); } /// @@ -48,10 +42,7 @@ public RSACrypto( byte[] key ) /// The input to encrypt. public byte[] Encrypt( byte[] input ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } + ArgumentNullException.ThrowIfNull( input ); return rsa.Encrypt( input, RSAEncryptionPadding.OaepSHA1 ); } @@ -61,7 +52,7 @@ public byte[] Encrypt( byte[] input ) /// public void Dispose() { - ( ( IDisposable )rsa ).Dispose(); + rsa.Dispose(); } } @@ -70,60 +61,31 @@ public void Dispose() /// public static class CryptoHelper { - /// - /// Performs an SHA1 hash of an input byte array - /// - public static byte[] SHAHash( byte[] input ) - { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } - - using ( var sha = SHA1.Create() ) - { - return sha.ComputeHash( input ); - } - } - /// /// Encrypts using AES/CBC/PKCS7 an input byte array with a given key and IV /// public static byte[] AESEncrypt( byte[] input, byte[] key, byte[] iv ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } - - if ( key == null ) - { - throw new ArgumentNullException( nameof(key) ); - } - - if ( iv == null ) - { - throw new ArgumentNullException( nameof(iv) ); - } + ArgumentNullException.ThrowIfNull( input ); - using ( var aes = Aes.Create() ) - { - aes.BlockSize = 128; - aes.KeySize = 128; - - aes.Mode = CipherMode.CBC; - aes.Padding = PaddingMode.PKCS7; - - using ( var aesTransform = aes.CreateEncryptor( key, iv ) ) - using ( var ms = new MemoryStream() ) - using ( var cs = new CryptoStream( ms, aesTransform, CryptoStreamMode.Write ) ) - { - cs.Write( input, 0, input.Length ); - cs.FlushFinalBlock(); - - return ms.ToArray(); - } - } + ArgumentNullException.ThrowIfNull( key ); + + ArgumentNullException.ThrowIfNull( iv ); + + using var aes = Aes.Create(); + aes.BlockSize = 128; + aes.KeySize = 128; + + aes.Mode = CipherMode.CBC; + aes.Padding = PaddingMode.PKCS7; + + using var aesTransform = aes.CreateEncryptor( key, iv ); + using var ms = new MemoryStream(); + using var cs = new CryptoStream( ms, aesTransform, CryptoStreamMode.Write ); + cs.Write( input, 0, input.Length ); + cs.FlushFinalBlock(); + + return ms.ToArray(); } /// @@ -131,44 +93,33 @@ public static byte[] AESEncrypt( byte[] input, byte[] key, byte[] iv ) /// public static byte[] AESDecrypt( byte[] input, byte[] key, byte[] iv ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } - - if ( key == null ) - { - throw new ArgumentNullException( nameof(key) ); - } - - if ( iv == null ) - { - throw new ArgumentNullException( nameof(iv) ); - } + ArgumentNullException.ThrowIfNull( input ); - using ( var aes = Aes.Create() ) - { - aes.BlockSize = 128; - aes.KeySize = 128; + ArgumentNullException.ThrowIfNull( key ); - aes.Mode = CipherMode.CBC; - aes.Padding = PaddingMode.PKCS7; + ArgumentNullException.ThrowIfNull( iv ); - byte[] plainText = new byte[ input.Length ]; - int outLen = 0; + using var aes = Aes.Create(); + aes.BlockSize = 128; + aes.KeySize = 128; - using ( var aesTransform = aes.CreateDecryptor( key, iv ) ) - using ( var ms = new MemoryStream( input ) ) - using ( var cs = new CryptoStream( ms, aesTransform, CryptoStreamMode.Read ) ) - { - outLen = cs.ReadAll( plainText ); - } + aes.Mode = CipherMode.CBC; + aes.Padding = PaddingMode.PKCS7; - byte[] output = new byte[ outLen ]; - Array.Copy( plainText, 0, output, 0, output.Length ); + byte[] plainText = new byte[ input.Length ]; + int outLen = 0; - return output; + using ( var aesTransform = aes.CreateDecryptor( key, iv ) ) + using ( var ms = new MemoryStream( input ) ) + using ( var cs = new CryptoStream( ms, aesTransform, CryptoStreamMode.Read ) ) + { + outLen = cs.ReadAll( plainText ); } + + byte[] output = new byte[ outLen ]; + Array.Copy( plainText, 0, output, 0, output.Length ); + + return output; } /// @@ -176,60 +127,49 @@ public static byte[] AESDecrypt( byte[] input, byte[] key, byte[] iv ) /// public static byte[] SymmetricEncryptWithIV( byte[] input, byte[] key, byte[] iv ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } - - if ( key == null ) - { - throw new ArgumentNullException( nameof(key) ); - } - - if ( iv == null ) - { - throw new ArgumentNullException( nameof(iv) ); - } + ArgumentNullException.ThrowIfNull( input ); + + ArgumentNullException.ThrowIfNull( key ); + + ArgumentNullException.ThrowIfNull( iv ); DebugLog.Assert( key.Length == 32, "CryptoHelper", "SymmetricEncrypt used with non 32 byte key!" ); - using ( var aes = Aes.Create() ) - { - aes.BlockSize = 128; - aes.KeySize = 256; + using var aes = Aes.Create(); + aes.BlockSize = 128; + aes.KeySize = 256; - byte[] cryptedIv; - - // encrypt iv using ECB and provided key - aes.Mode = CipherMode.ECB; - aes.Padding = PaddingMode.None; + byte[] cryptedIv; - using ( var aesTransform = aes.CreateEncryptor( key, null ) ) - { - cryptedIv = aesTransform.TransformFinalBlock( iv, 0, iv.Length ); - } + // encrypt iv using ECB and provided key + aes.Mode = CipherMode.ECB; + aes.Padding = PaddingMode.None; - // encrypt input plaintext with CBC using the generated (plaintext) IV and the provided key - aes.Mode = CipherMode.CBC; - aes.Padding = PaddingMode.PKCS7; + using ( var aesTransform = aes.CreateEncryptor( key, null ) ) + { + cryptedIv = aesTransform.TransformFinalBlock( iv, 0, iv.Length ); + } - using ( var aesTransform = aes.CreateEncryptor( key, iv ) ) - using ( var ms = new MemoryStream() ) - using ( var cs = new CryptoStream( ms, aesTransform, CryptoStreamMode.Write ) ) - { - cs.Write( input, 0, input.Length ); - cs.FlushFinalBlock(); + // encrypt input plaintext with CBC using the generated (plaintext) IV and the provided key + aes.Mode = CipherMode.CBC; + aes.Padding = PaddingMode.PKCS7; - var cipherText = ms.ToArray(); + using ( var aesTransform = aes.CreateEncryptor( key, iv ) ) + using ( var ms = new MemoryStream() ) + using ( var cs = new CryptoStream( ms, aesTransform, CryptoStreamMode.Write ) ) + { + cs.Write( input, 0, input.Length ); + cs.FlushFinalBlock(); - // final output is 16 byte ecb crypted IV + cbc crypted plaintext - var output = new byte[ cryptedIv.Length + cipherText.Length ]; + var cipherText = ms.ToArray(); - Array.Copy( cryptedIv, 0, output, 0, cryptedIv.Length ); - Array.Copy( cipherText, 0, output, cryptedIv.Length, cipherText.Length ); + // final output is 16 byte ecb crypted IV + cbc crypted plaintext + var output = new byte[ cryptedIv.Length + cipherText.Length ]; - return output; - } + Array.Copy( cryptedIv, 0, output, 0, cryptedIv.Length ); + Array.Copy( cipherText, 0, output, cryptedIv.Length, cipherText.Length ); + + return output; } } @@ -238,15 +178,9 @@ public static byte[] SymmetricEncryptWithIV( byte[] input, byte[] key, byte[] iv /// public static byte[] SymmetricEncrypt( byte[] input, byte[] key ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } - - if ( key == null ) - { - throw new ArgumentNullException( nameof(key) ); - } + ArgumentNullException.ThrowIfNull( input ); + + ArgumentNullException.ThrowIfNull( key ); var iv = GenerateRandomBlock( 16 ); return SymmetricEncryptWithIV( input, key, iv ); @@ -257,20 +191,11 @@ public static byte[] SymmetricEncrypt( byte[] input, byte[] key ) /// public static byte[] SymmetricEncryptWithHMACIV( byte[] input, byte[] key, byte[] hmacSecret ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } - - if ( key == null ) - { - throw new ArgumentNullException( nameof(key) ); - } - - if ( hmacSecret == null ) - { - throw new ArgumentNullException( nameof(hmacSecret) ); - } + ArgumentNullException.ThrowIfNull( input ); + + ArgumentNullException.ThrowIfNull( key ); + + ArgumentNullException.ThrowIfNull( hmacSecret ); // IV is HMAC-SHA1(Random(3) + Plaintext) + Random(3). (Same random values for both) var iv = new byte[ 16 ]; @@ -296,16 +221,10 @@ public static byte[] SymmetricEncryptWithHMACIV( byte[] input, byte[] key, byte[ /// public static byte[] SymmetricDecrypt( byte[] input, byte[] key ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } - - if ( key == null ) - { - throw new ArgumentNullException( nameof(key) ); - } - + ArgumentNullException.ThrowIfNull( input ); + + ArgumentNullException.ThrowIfNull( key ); + return SymmetricDecrypt( input, key, out _ ); } @@ -314,20 +233,11 @@ public static byte[] SymmetricDecrypt( byte[] input, byte[] key ) /// public static byte[] SymmetricDecryptHMACIV( byte[] input, byte[] key, byte[] hmacSecret ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } - - if ( key == null ) - { - throw new ArgumentNullException( nameof(key) ); - } - - if ( hmacSecret == null ) - { - throw new ArgumentNullException( nameof(hmacSecret) ); - } + ArgumentNullException.ThrowIfNull( input ); + + ArgumentNullException.ThrowIfNull( key ); + + ArgumentNullException.ThrowIfNull( hmacSecret ); DebugLog.Assert( key.Length >= 16, "CryptoHelper", "SymmetricDecryptHMACIV used with a key smaller than 16 bytes." ); var truncatedKeyForHmac = new byte[ 16 ]; @@ -360,59 +270,51 @@ public static byte[] SymmetricDecryptHMACIV( byte[] input, byte[] key, byte[] hm /// static byte[] SymmetricDecrypt( byte[] input, byte[] key, out byte[] iv ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } - - if ( key == null ) - { - throw new ArgumentNullException( nameof(key) ); - } + ArgumentNullException.ThrowIfNull( input ); + + ArgumentNullException.ThrowIfNull( key ); DebugLog.Assert( key.Length == 32, "CryptoHelper", "SymmetricDecrypt used with non 32 byte key!" ); - using ( var aes = Aes.Create() ) - { - aes.BlockSize = 128; - aes.KeySize = 256; + using var aes = Aes.Create(); + aes.BlockSize = 128; + aes.KeySize = 256; - // first 16 bytes of input is the ECB encrypted IV - byte[] cryptedIv = new byte[ 16 ]; - iv = new byte[ cryptedIv.Length ]; - Array.Copy( input, 0, cryptedIv, 0, cryptedIv.Length ); + // first 16 bytes of input is the ECB encrypted IV + byte[] cryptedIv = new byte[ 16 ]; + iv = new byte[ cryptedIv.Length ]; + Array.Copy( input, 0, cryptedIv, 0, cryptedIv.Length ); - // the rest is ciphertext - byte[] cipherText = new byte[ input.Length - cryptedIv.Length ]; - Array.Copy( input, cryptedIv.Length, cipherText, 0, cipherText.Length ); + // the rest is ciphertext + byte[] cipherText = new byte[ input.Length - cryptedIv.Length ]; + Array.Copy( input, cryptedIv.Length, cipherText, 0, cipherText.Length ); - // decrypt the IV using ECB - aes.Mode = CipherMode.ECB; - aes.Padding = PaddingMode.None; + // decrypt the IV using ECB + aes.Mode = CipherMode.ECB; + aes.Padding = PaddingMode.None; - using ( var aesTransform = aes.CreateDecryptor( key, null ) ) - { - iv = aesTransform.TransformFinalBlock( cryptedIv, 0, cryptedIv.Length ); - } + using ( var aesTransform = aes.CreateDecryptor( key, null ) ) + { + iv = aesTransform.TransformFinalBlock( cryptedIv, 0, cryptedIv.Length ); + } - // decrypt the remaining ciphertext in cbc with the decrypted IV - aes.Mode = CipherMode.CBC; - aes.Padding = PaddingMode.PKCS7; + // decrypt the remaining ciphertext in cbc with the decrypted IV + aes.Mode = CipherMode.CBC; + aes.Padding = PaddingMode.PKCS7; - using ( var aesTransform = aes.CreateDecryptor( key, iv ) ) - using ( var ms = new MemoryStream( cipherText ) ) - using ( var cs = new CryptoStream( ms, aesTransform, CryptoStreamMode.Read ) ) - { - // plaintext is never longer than ciphertext - byte[] plaintext = new byte[ cipherText.Length ]; + using ( var aesTransform = aes.CreateDecryptor( key, iv ) ) + using ( var ms = new MemoryStream( cipherText ) ) + using ( var cs = new CryptoStream( ms, aesTransform, CryptoStreamMode.Read ) ) + { + // plaintext is never longer than ciphertext + byte[] plaintext = new byte[ cipherText.Length ]; - int len = cs.ReadAll( plaintext ); + int len = cs.ReadAll( plaintext ); - byte[] output = new byte[ len ]; - Array.Copy( plaintext, 0, output, 0, len ); + byte[] output = new byte[ len ]; + Array.Copy( plaintext, 0, output, 0, len ); - return output; - } + return output; } } @@ -421,23 +323,15 @@ static byte[] SymmetricDecrypt( byte[] input, byte[] key, out byte[] iv ) /// public static byte[]? VerifyAndDecryptPassword( byte[] input, string password ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } - - if ( password == null ) - { - throw new ArgumentNullException( nameof(password) ); - } + ArgumentNullException.ThrowIfNull( input ); + + ArgumentNullException.ThrowIfNull( password ); byte[] key, hash; - using( var sha256 = SHA256.Create() ) - { - byte[] password_bytes = Encoding.UTF8.GetBytes( password ); - key = sha256.ComputeHash( password_bytes ); - } - using( HMACSHA1 hmac = new HMACSHA1(key) ) + byte[] password_bytes = Encoding.UTF8.GetBytes( password ); + key = SHA256.HashData( password_bytes ); + + using ( HMACSHA1 hmac = new HMACSHA1( key ) ) { hash = hmac.ComputeHash( input, 0, 32 ); } @@ -457,51 +351,22 @@ static byte[] SymmetricDecrypt( byte[] input, byte[] key, out byte[] iv ) /// public static byte[] SymmetricDecryptECB( byte[] input, byte[] key ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } - - if ( key == null ) - { - throw new ArgumentNullException( nameof(key) ); - } - - DebugLog.Assert( key.Length == 32, "CryptoHelper", "SymmetricDecryptECB used with non 32 byte key!" ); - - using ( var aes = Aes.Create() ) - { - aes.BlockSize = 128; - aes.KeySize = 256; - aes.Mode = CipherMode.ECB; - aes.Padding = PaddingMode.PKCS7; + ArgumentNullException.ThrowIfNull( input ); - using ( var aesTransform = aes.CreateDecryptor( key, null ) ) - { - byte[] output = aesTransform.TransformFinalBlock( input, 0, input.Length ); + ArgumentNullException.ThrowIfNull( key ); - return output; - } - } - } + DebugLog.Assert( key.Length == 32, "CryptoHelper", "SymmetricDecryptECB used with non 32 byte key!" ); - /// - /// Performs CRC32 on an input byte array using the CrcStandard.Crc32Bit parameters - /// - public static byte[] CRCHash( byte[] input ) - { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } + using var aes = Aes.Create(); + aes.BlockSize = 128; + aes.KeySize = 256; + aes.Mode = CipherMode.ECB; + aes.Padding = PaddingMode.PKCS7; - using ( var crc = new Crc32() ) - { - byte[] hash = crc.ComputeHash( input ); - Array.Reverse( hash ); + using var aesTransform = aes.CreateDecryptor( key, null ); + byte[] output = aesTransform.TransformFinalBlock( input, 0, input.Length ); - return hash; - } + return output; } /// @@ -509,11 +374,8 @@ public static byte[] CRCHash( byte[] input ) /// public static byte[] AdlerHash( byte[] input ) { - if ( input == null ) - { - throw new ArgumentNullException( nameof(input) ); - } - + ArgumentNullException.ThrowIfNull( input ); + uint a = 0, b = 0; for ( int i = 0 ; i < input.Length ; i++ ) { @@ -528,14 +390,12 @@ public static byte[] AdlerHash( byte[] input ) /// public static byte[] GenerateRandomBlock( int size ) { - using ( var rng = RandomNumberGenerator.Create() ) - { - var block = new byte[ size ]; + using var rng = RandomNumberGenerator.Create(); + var block = new byte[ size ]; - rng.GetBytes( block ); + rng.GetBytes( block ); - return block; - } + return block; } } } diff --git a/SteamKit2/Util/DebugLog.cs b/SteamKit2/Util/DebugLog.cs index 649c65640..2b4f94997 100644 --- a/SteamKit2/Util/DebugLog.cs +++ b/SteamKit2/Util/DebugLog.cs @@ -7,9 +7,9 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; +using System.Linq; namespace SteamKit2 { @@ -55,7 +55,7 @@ public static class DebugLog /// public static bool Enabled { get; set; } - internal static List listeners = new List(); + internal static List listeners = []; /// @@ -76,11 +76,8 @@ static DebugLog() /// The listener. public static void AddListener( IDebugListener listener ) { - if ( listener == null ) - { - throw new ArgumentNullException( nameof(listener) ); - } - + ArgumentNullException.ThrowIfNull( listener ); + listeners.Add( listener ); } /// diff --git a/SteamKit2/Util/DebugNetworkListener.cs b/SteamKit2/Util/DebugNetworkListener.cs index 5953516b7..d0268ecaa 100644 --- a/SteamKit2/Util/DebugNetworkListener.cs +++ b/SteamKit2/Util/DebugNetworkListener.cs @@ -7,7 +7,6 @@ using System; using System.IO; -using System.Reflection; using System.Threading; namespace SteamKit2 diff --git a/SteamKit2/Util/HardwareUtils.cs b/SteamKit2/Util/HardwareUtils.cs index 9e722ae84..dbba576f1 100644 --- a/SteamKit2/Util/HardwareUtils.cs +++ b/SteamKit2/Util/HardwareUtils.cs @@ -1,21 +1,21 @@ using System; using System.IO; using System.Linq; -using System.Threading.Tasks; using System.Net.NetworkInformation; using System.Runtime.CompilerServices; using System.Runtime.ExceptionServices; +using System.Runtime.InteropServices; +using System.Runtime.Versioning; +using System.Security.Cryptography; using System.Text; +using System.Threading.Tasks; +using Microsoft.Win32; using SteamKit2.Util; using SteamKit2.Util.MacHelpers; -using Microsoft.Win32; - -using static SteamKit2.Util.MacHelpers.LibC; using static SteamKit2.Util.MacHelpers.CoreFoundation; using static SteamKit2.Util.MacHelpers.DiskArbitration; using static SteamKit2.Util.MacHelpers.IOKit; -using System.Runtime.Versioning; -using System.Runtime.InteropServices; +using static SteamKit2.Util.MacHelpers.LibC; namespace SteamKit2 { @@ -81,16 +81,13 @@ public byte[] GetDiskId() } } -#if NET5_0_OR_GREATER [SupportedOSPlatform("windows")] -#endif sealed class WindowsMachineInfoProvider : IMachineInfoProvider { public byte[]? GetMachineGuid() { - var localKey = RegistryKey - .OpenBaseKey( Microsoft.Win32.RegistryHive.LocalMachine, RegistryView.Registry64 ) - .OpenSubKey( @"SOFTWARE\Microsoft\Cryptography" ); + using var baseKey = RegistryKey.OpenBaseKey( Microsoft.Win32.RegistryHive.LocalMachine, RegistryView.Registry64 ); + using var localKey = baseKey.OpenSubKey( @"SOFTWARE\Microsoft\Cryptography" ); if ( localKey == null ) { @@ -107,7 +104,38 @@ sealed class WindowsMachineInfoProvider : IMachineInfoProvider return Encoding.UTF8.GetBytes( guid.ToString()! ); } - public byte[]? GetMacAddress() => null; + // On windows, the steam client hashes a 16 bytes struct + // containing the mac address of the first *Physical* network adapter padded to 8 bytes (mac addresses are 6 bytes) + // and the mac address of the second *Physical* network adapter also padded to 8 bytes. + // So the hashed data ends up being (6bytes of mac address, 10 bytes of zeroes) + public byte[] GetMacAddress() + { + // This part of the code finds *Physical* network interfaces + // based on : https://social.msdn.microsoft.com/Forums/en-US/46c86903-3698-41bc-b081-fcf444e8a127/get-the-ip-address-of-the-physical-network-card-?forum=winforms + return NetworkInterface.GetAllNetworkInterfaces() + .Where( adapter => + { + //Accessing the registry key corresponding to each adapter + string fRegistryKey = + $@"SYSTEM\CurrentControlSet\Control\Network\{{4D36E972-E325-11CE-BFC1-08002BE10318}}\{adapter.Id}\Connection"; + using RegistryKey? rk = Registry.LocalMachine.OpenSubKey( fRegistryKey, false ); + if ( rk == null ) return false; + + var instanceID = rk.GetValue( "PnpInstanceID", "" )?.ToString(); + return instanceID?.Length > 3 && instanceID.StartsWith( "PCI" ); + } ) + .Select( networkInterface => networkInterface.GetPhysicalAddress().GetAddressBytes() + //pad all found mac addresses to 8 bytes + .Append( ( byte )0 ) + .Append( ( byte )0 ) + ) + //add fallbacks in case less than 2 adapters are found + .Append( Enumerable.Repeat( ( byte )0, 8 )) + .Append( Enumerable.Repeat( ( byte )0, 8 )) + .Take( 2 ) + .SelectMany( b => b ) + .ToArray(); + } public byte[]? GetDiskId() { @@ -122,15 +150,13 @@ sealed class WindowsMachineInfoProvider : IMachineInfoProvider } } -#if NET5_0_OR_GREATER [SupportedOSPlatform( "linux" )] -#endif sealed class LinuxMachineInfoProvider : IMachineInfoProvider { public byte[]? GetMachineGuid() { string[] machineFiles = - { + [ "/etc/machine-id", // present on at least some gentoo systems "/var/lib/dbus/machine-id", "/sys/class/net/eth0/address", @@ -138,7 +164,7 @@ sealed class LinuxMachineInfoProvider : IMachineInfoProvider "/sys/class/net/eth2/address", "/sys/class/net/eth3/address", "/etc/hostname", - }; + ]; foreach ( var fileName in machineFiles ) { @@ -163,10 +189,10 @@ sealed class LinuxMachineInfoProvider : IMachineInfoProvider string[] bootParams = GetBootOptions(); string[] paramsToCheck = - { + [ "root=UUID=", "root=PARTUUID=", - }; + ]; foreach ( string param in paramsToCheck ) { @@ -199,7 +225,7 @@ static string[] GetBootOptions() } catch { - return Array.Empty(); + return []; } return bootOptions.Split( ' ' ); @@ -219,7 +245,7 @@ static string[] GetDiskUUIDs() } catch { - return Array.Empty(); + return []; } } @@ -231,13 +257,11 @@ static string[] GetDiskUUIDs() if ( paramString == null ) return null; - return paramString.Substring( param.Length ); + return paramString[ param.Length.. ]; } } -#if NET5_0_OR_GREATER [SupportedOSPlatform( "macos" )] -#endif sealed class MacOSMachineInfoProvider : IMachineInfoProvider { public byte[]? GetMachineGuid() @@ -268,7 +292,7 @@ sealed class MacOSMachineInfoProvider : IMachineInfoProvider public byte[]? GetDiskId() { - var stat = new statfs(); + var stat = new StatFS(); var statted = statfs64( "/", ref stat ); if ( statted == 0 ) { @@ -326,7 +350,7 @@ public void Set333( string value ) } } - static ConditionalWeakTable> generationTable = new ConditionalWeakTable>(); + static ConditionalWeakTable> generationTable = []; public static void Init(IMachineInfoProvider machineInfoProvider) { @@ -392,7 +416,7 @@ static MachineID GenerateMachineID(object? state) static string GetHexString( byte[] data ) { - data = CryptoHelper.SHAHash( data ); + data = SHA1.HashData( data ); return BitConverter.ToString( data ) .Replace( "-", "" ) diff --git a/SteamKit2/Util/KeyDictionary.cs b/SteamKit2/Util/KeyDictionary.cs index 02768f455..0cedd076c 100644 --- a/SteamKit2/Util/KeyDictionary.cs +++ b/SteamKit2/Util/KeyDictionary.cs @@ -15,12 +15,12 @@ namespace SteamKit2 /// public static class KeyDictionary { - static Dictionary keys = new Dictionary + static Dictionary keys = new() { [ EUniverse.Invalid ] = null, - [ EUniverse.Public ] = new byte[] - { + [ EUniverse.Public ] = + [ 0x30, 0x81, 0x9D, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x81, 0x8B, 0x00, 0x30, 0x81, 0x87, 0x02, 0x81, 0x81, 0x00, 0xDF, 0xEC, 0x1A, 0xD6, 0x2C, 0x10, 0x66, 0x2C, 0x17, 0x35, 0x3A, 0x14, 0xB0, 0x7C, 0x59, 0x11, 0x7F, 0x9D, 0xD3, @@ -31,10 +31,10 @@ public static class KeyDictionary 0xBA, 0x1C, 0x7A, 0x33, 0x75, 0xA1, 0x62, 0x34, 0x46, 0xBB, 0x60, 0xB7, 0x80, 0x68, 0xFA, 0x13, 0xA7, 0x7A, 0x8A, 0x37, 0x4B, 0x9E, 0xC6, 0xF4, 0x5D, 0x5F, 0x3A, 0x99, 0xF9, 0x9E, 0xC4, 0x3A, 0xE9, 0x63, 0xA2, 0xBB, 0x88, 0x19, 0x28, 0xE0, 0xE7, 0x14, 0xC0, 0x42, 0x89, 0x02, 0x01, 0x11, - }, + ], - [ EUniverse.Beta ] = new byte[] - { + [ EUniverse.Beta ] = + [ 0x30, 0x81, 0x9D, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x81, 0x8B, 0x00, 0x30, 0x81, 0x87, 0x02, 0x81, 0x81, 0x00, 0xAE, 0xD1, 0x4B, 0xC0, 0xA3, 0x36, 0x8B, 0xA0, 0x39, 0x0B, 0x43, 0xDC, 0xED, 0x6A, 0xC8, 0xF2, 0xA3, 0xE4, 0x7E, @@ -45,10 +45,10 @@ public static class KeyDictionary 0x66, 0x46, 0x42, 0x0C, 0xFB, 0x6E, 0x4C, 0x30, 0xC6, 0x6C, 0x5C, 0x16, 0xFF, 0xBA, 0x9C, 0xB9, 0x78, 0x3F, 0x17, 0x4B, 0xCB, 0xC9, 0x01, 0x5D, 0x3E, 0x37, 0x70, 0xEC, 0x67, 0x5A, 0x33, 0x48, 0xF7, 0x46, 0xCE, 0x58, 0xAA, 0xEC, 0xD9, 0xFF, 0x4A, 0x78, 0x6C, 0x83, 0x4B, 0x02, 0x01, 0x11, - }, + ], - [ EUniverse.Internal ] = new byte[] - { + [ EUniverse.Internal ] = + [ 0x30, 0x81, 0x9D, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x81, 0x8B, 0x00, 0x30, 0x81, 0x87, 0x02, 0x81, 0x81, 0x00, 0xA8, 0xFE, 0x01, 0x3B, 0xB6, 0xD7, 0x21, 0x4B, 0x53, 0x23, 0x6F, 0xA1, 0xAB, 0x4E, 0xF1, 0x07, 0x30, 0xA7, 0xC6, @@ -59,10 +59,10 @@ public static class KeyDictionary 0x34, 0x69, 0xA2, 0xA5, 0xE8, 0x44, 0x76, 0x18, 0xE2, 0x3D, 0xB7, 0xC5, 0xA8, 0x96, 0xFD, 0xE5, 0xB4, 0x4B, 0xF8, 0x40, 0x12, 0xA6, 0x17, 0x4E, 0xC4, 0xC1, 0x60, 0x0E, 0xB0, 0xC2, 0xB8, 0x40, 0x4D, 0x9E, 0x76, 0x4C, 0x44, 0xF4, 0xFC, 0x6F, 0x14, 0x89, 0x73, 0xB4, 0x13, 0x02, 0x01, 0x11, - }, + ], - [ EUniverse.Dev ] = new byte[] - { + [ EUniverse.Dev ] = + [ 0x30, 0x81, 0x9D, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x81, 0x8B, 0x00, 0x30, 0x81, 0x87, 0x02, 0x81, 0x81, 0x00, 0xD0, 0x05, 0x2C, 0xE9, 0x80, 0x95, 0xCD, 0x30, 0x83, 0xA8, 0xE9, 0x25, 0x96, 0x63, 0xCE, 0xCC, 0x48, 0x5D, 0x5C, @@ -73,7 +73,7 @@ public static class KeyDictionary 0x86, 0x96, 0x3C, 0x89, 0xCC, 0x92, 0x15, 0x63, 0xCB, 0x57, 0x70, 0xB9, 0xC3, 0xAE, 0x08, 0x4F, 0xC8, 0x56, 0x16, 0xB0, 0x0C, 0xC6, 0xC8, 0x8A, 0x80, 0xD2, 0x37, 0xF7, 0x7F, 0xAB, 0x93, 0xBB, 0xE6, 0xDE, 0x95, 0x78, 0xB8, 0x11, 0xC9, 0xE5, 0x62, 0xAD, 0xBC, 0x0C, 0x87, 0x02, 0x01, 0x11, - }, + ], }; /// diff --git a/SteamKit2/Util/KeyValuePairExtensions.cs b/SteamKit2/Util/KeyValuePairExtensions.cs deleted file mode 100644 index 4227cadc7..000000000 --- a/SteamKit2/Util/KeyValuePairExtensions.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System.Collections.Generic; - -namespace SteamKit2 -{ - static class KeyValuePairExtensions - { - public static void Deconstruct(this KeyValuePair kvp, out TKey key, out TValue value) - { - key = kvp.Key; - value = kvp.Value; - } - } -} diff --git a/SteamKit2/Util/LZMA/Common/CRC.cs b/SteamKit2/Util/LZMA/Common/CRC.cs index 82cc857ef..148281f42 100644 --- a/SteamKit2/Util/LZMA/Common/CRC.cs +++ b/SteamKit2/Util/LZMA/Common/CRC.cs @@ -1,3 +1,4 @@ +// - This code comes from LZMA SDK, we don't want to format it // Common/CRC.cs namespace SevenZip diff --git a/SteamKit2/Util/LZMA/Common/InBuffer.cs b/SteamKit2/Util/LZMA/Common/InBuffer.cs index 2a2593b0e..f29f7011d 100644 --- a/SteamKit2/Util/LZMA/Common/InBuffer.cs +++ b/SteamKit2/Util/LZMA/Common/InBuffer.cs @@ -1,3 +1,4 @@ +// - This code comes from LZMA SDK, we don't want to format it // InBuffer.cs #nullable disable diff --git a/SteamKit2/Util/LZMA/Common/OutBuffer.cs b/SteamKit2/Util/LZMA/Common/OutBuffer.cs index 53ee05ced..f896dd7ed 100644 --- a/SteamKit2/Util/LZMA/Common/OutBuffer.cs +++ b/SteamKit2/Util/LZMA/Common/OutBuffer.cs @@ -1,3 +1,4 @@ +// - This code comes from LZMA SDK, we don't want to format it // OutBuffer.cs #nullable disable diff --git a/SteamKit2/Util/LZMA/Compress/LZ/IMatchFinder.cs b/SteamKit2/Util/LZMA/Compress/LZ/IMatchFinder.cs index 10ca2b37f..84387a246 100644 --- a/SteamKit2/Util/LZMA/Compress/LZ/IMatchFinder.cs +++ b/SteamKit2/Util/LZMA/Compress/LZ/IMatchFinder.cs @@ -1,3 +1,4 @@ +// - This code comes from LZMA SDK, we don't want to format it // IMatchFinder.cs using System; diff --git a/SteamKit2/Util/LZMA/Compress/LZ/LzBinTree.cs b/SteamKit2/Util/LZMA/Compress/LZ/LzBinTree.cs index 881da4d71..6ec28bc61 100644 --- a/SteamKit2/Util/LZMA/Compress/LZ/LzBinTree.cs +++ b/SteamKit2/Util/LZMA/Compress/LZ/LzBinTree.cs @@ -1,3 +1,4 @@ +// - This code comes from LZMA SDK, we don't want to format it // LzBinTree.cs #nullable disable diff --git a/SteamKit2/Util/LZMA/Compress/LZ/LzInWindow.cs b/SteamKit2/Util/LZMA/Compress/LZ/LzInWindow.cs index 9a4111f97..610a53076 100644 --- a/SteamKit2/Util/LZMA/Compress/LZ/LzInWindow.cs +++ b/SteamKit2/Util/LZMA/Compress/LZ/LzInWindow.cs @@ -1,3 +1,4 @@ +// - This code comes from LZMA SDK, we don't want to format it // LzInWindow.cs #nullable disable diff --git a/SteamKit2/Util/LZMA/Compress/LZ/LzOutWindow.cs b/SteamKit2/Util/LZMA/Compress/LZ/LzOutWindow.cs index a41fb39df..d479dbdcc 100644 --- a/SteamKit2/Util/LZMA/Compress/LZ/LzOutWindow.cs +++ b/SteamKit2/Util/LZMA/Compress/LZ/LzOutWindow.cs @@ -1,3 +1,4 @@ +// - This code comes from LZMA SDK, we don't want to format it // LzOutWindow.cs #nullable disable diff --git a/SteamKit2/Util/LZMA/Compress/LZMA/LzmaBase.cs b/SteamKit2/Util/LZMA/Compress/LZMA/LzmaBase.cs index c7bca86f5..6fea42bbf 100644 --- a/SteamKit2/Util/LZMA/Compress/LZMA/LzmaBase.cs +++ b/SteamKit2/Util/LZMA/Compress/LZMA/LzmaBase.cs @@ -1,3 +1,4 @@ +// - This code comes from LZMA SDK, we don't want to format it // LzmaBase.cs namespace SevenZip.Compression.LZMA diff --git a/SteamKit2/Util/LZMA/Compress/LZMA/LzmaDecoder.cs b/SteamKit2/Util/LZMA/Compress/LZMA/LzmaDecoder.cs index d6e10ff86..d9f835b82 100644 --- a/SteamKit2/Util/LZMA/Compress/LZMA/LzmaDecoder.cs +++ b/SteamKit2/Util/LZMA/Compress/LZMA/LzmaDecoder.cs @@ -1,3 +1,4 @@ +// - This code comes from LZMA SDK, we don't want to format it // LzmaDecoder.cs #nullable disable diff --git a/SteamKit2/Util/LZMA/Compress/LZMA/LzmaEncoder.cs b/SteamKit2/Util/LZMA/Compress/LZMA/LzmaEncoder.cs index d629a15b8..4f02410a4 100644 --- a/SteamKit2/Util/LZMA/Compress/LZMA/LzmaEncoder.cs +++ b/SteamKit2/Util/LZMA/Compress/LZMA/LzmaEncoder.cs @@ -1,3 +1,4 @@ +// - This code comes from LZMA SDK, we don't want to format it // LzmaEncoder.cs #nullable disable diff --git a/SteamKit2/Util/LZMA/Compress/RangeCoder/RangeCoder.cs b/SteamKit2/Util/LZMA/Compress/RangeCoder/RangeCoder.cs index 3ae491a74..ee21e2ae1 100644 --- a/SteamKit2/Util/LZMA/Compress/RangeCoder/RangeCoder.cs +++ b/SteamKit2/Util/LZMA/Compress/RangeCoder/RangeCoder.cs @@ -1,3 +1,4 @@ +// - This code comes from LZMA SDK, we don't want to format it #nullable disable using System; diff --git a/SteamKit2/Util/LZMA/Compress/RangeCoder/RangeCoderBit.cs b/SteamKit2/Util/LZMA/Compress/RangeCoder/RangeCoderBit.cs index 4f0346d17..e8e567a03 100644 --- a/SteamKit2/Util/LZMA/Compress/RangeCoder/RangeCoderBit.cs +++ b/SteamKit2/Util/LZMA/Compress/RangeCoder/RangeCoderBit.cs @@ -1,3 +1,4 @@ +// - This code comes from LZMA SDK, we don't want to format it using System; namespace SevenZip.Compression.RangeCoder diff --git a/SteamKit2/Util/LZMA/Compress/RangeCoder/RangeCoderBitTree.cs b/SteamKit2/Util/LZMA/Compress/RangeCoder/RangeCoderBitTree.cs index 4b4506f9d..64ff946b9 100644 --- a/SteamKit2/Util/LZMA/Compress/RangeCoder/RangeCoderBitTree.cs +++ b/SteamKit2/Util/LZMA/Compress/RangeCoder/RangeCoderBitTree.cs @@ -1,3 +1,4 @@ +// - This code comes from LZMA SDK, we don't want to format it using System; namespace SevenZip.Compression.RangeCoder diff --git a/SteamKit2/Util/LZMA/ICoder.cs b/SteamKit2/Util/LZMA/ICoder.cs index cc6d3a9bf..05b4c4bd8 100644 --- a/SteamKit2/Util/LZMA/ICoder.cs +++ b/SteamKit2/Util/LZMA/ICoder.cs @@ -1,3 +1,4 @@ +// - This code comes from LZMA SDK, we don't want to format it // ICoder.h using System; diff --git a/SteamKit2/Util/MacHelpers.cs b/SteamKit2/Util/MacHelpers.cs index 72a701494..33d9e8ff2 100644 --- a/SteamKit2/Util/MacHelpers.cs +++ b/SteamKit2/Util/MacHelpers.cs @@ -1,5 +1,4 @@ using System; -using System.Diagnostics.CodeAnalysis; using System.Runtime.InteropServices; using System.Runtime.Versioning; using System.Text; @@ -8,9 +7,7 @@ namespace SteamKit2.Util.MacHelpers { #pragma warning disable CA2101 // Specify marshaling for P/Invoke string arguments. All the APIs in this file deal with regular UTF-8 strings (char *). With CharSet.Unicode, SK2 just crashes. -#if NET5_0_OR_GREATER [SupportedOSPlatform( "macos" )] -#endif class CFTypeRef : SafeHandle { public CFTypeRef() @@ -40,12 +37,9 @@ public static CFTypeRef None } } - // Taken from -#if NET5_0_OR_GREATER + // Taken from , original name "statfs" [SupportedOSPlatform( "macos" )] -#endif - [SuppressMessage( "Style", "IDE1006:Naming Styles", Justification = "Original name of interop type." )] - struct statfs + struct StatFS { const int MFSTYPENAMELEN = 16; const int PATH_MAX = 1024; @@ -78,20 +72,16 @@ struct statfs public uint[] f_reserved; /* For future use */ } -#if NET5_0_OR_GREATER [SupportedOSPlatform( "macos" )] -#endif static class LibC { const string LibraryName = "libc"; [DllImport(LibraryName, CallingConvention = CallingConvention.Cdecl)] - public static extern int statfs64(string path, ref statfs buf); + public static extern int statfs64(string path, ref StatFS buf); } -#if NET5_0_OR_GREATER [SupportedOSPlatform( "macos" )] -#endif static class CoreFoundation { const string LibraryName = "CoreFoundation.framework/CoreFoundation"; @@ -119,9 +109,7 @@ public enum CFStringEncoding : uint public static extern CFTypeRef CFUUIDCreateString(CFTypeRef allocator, IntPtr uuid); } -#if NET5_0_OR_GREATER [SupportedOSPlatform( "macos" )] -#endif static class DiskArbitration { const string LibraryName = "DiskArbitration.framework/DiskArbitration"; @@ -137,9 +125,7 @@ static class DiskArbitration public static extern CFTypeRef DADiskCopyDescription(CFTypeRef disk); } -#if NET5_0_OR_GREATER [SupportedOSPlatform( "macos" )] -#endif static class IOKit { const string LibraryName = "IOKit.framework/IOKit"; diff --git a/SteamKit2/Util/NullabilityAttributes.cs b/SteamKit2/Util/NullabilityAttributes.cs deleted file mode 100644 index 379f7ee5e..000000000 --- a/SteamKit2/Util/NullabilityAttributes.cs +++ /dev/null @@ -1,87 +0,0 @@ -#if !NETSTANDARD2_1_OR_GREATER && !NETCOREAPP3_0_OR_GREATER - -namespace System.Diagnostics.CodeAnalysis -{ - [AttributeUsage( AttributeTargets.Field | - AttributeTargets.Parameter | - AttributeTargets.Property )] - internal sealed class AllowNullAttribute : Attribute - { - } - - [AttributeUsage( AttributeTargets.Field | - AttributeTargets.Parameter | - AttributeTargets.Property )] - internal sealed class DisallowNullAttribute : Attribute - { - } - - [AttributeUsage( AttributeTargets.Field | - AttributeTargets.Parameter | - AttributeTargets.Property | - AttributeTargets.ReturnValue )] - internal sealed class MaybeNullAttribute : Attribute - { - } - - [AttributeUsage( AttributeTargets.Field | - AttributeTargets.Parameter | - AttributeTargets.Property | - AttributeTargets.ReturnValue )] - internal sealed class NotNullAttribute : Attribute - { - } - - [AttributeUsage( AttributeTargets.Parameter )] - internal sealed class MaybeNullWhenAttribute : Attribute - { - public MaybeNullWhenAttribute( bool returnValue ) - { - ReturnValue = returnValue; - } - - public bool ReturnValue { get; } - } - - [AttributeUsage( AttributeTargets.Parameter )] - internal sealed class NotNullWhenAttribute : Attribute - { - public NotNullWhenAttribute( bool returnValue ) - { - ReturnValue = returnValue; - } - - public bool ReturnValue { get; } - } - - [AttributeUsage( AttributeTargets.Parameter | - AttributeTargets.Property | - AttributeTargets.ReturnValue, AllowMultiple = true )] - internal sealed class NotNullIfNotNullAttribute : Attribute - { - public NotNullIfNotNullAttribute( string parameterName ) - { - ParameterName = parameterName; - } - - public string ParameterName { get; } - } - - [AttributeUsage( AttributeTargets.Method | AttributeTargets.Constructor )] - internal sealed class DoesNotReturnAttribute : Attribute - { - } - - [AttributeUsage( AttributeTargets.Parameter )] - internal sealed class DoesNotReturnIfAttribute : Attribute - { - public DoesNotReturnIfAttribute( bool parameterValue ) - { - ParameterValue = parameterValue; - } - - public bool ParameterValue { get; } - } -} - -#endif diff --git a/SteamKit2/Util/SteamKitWebRequestException.cs b/SteamKit2/Util/SteamKitWebRequestException.cs index 251db18af..ca309c722 100644 --- a/SteamKit2/Util/SteamKitWebRequestException.cs +++ b/SteamKit2/Util/SteamKitWebRequestException.cs @@ -12,11 +12,7 @@ public class SteamKitWebRequestException : HttpRequestException /// /// Represents the status code of the HTTP response. /// -#if NET5_0_OR_GREATER public new HttpStatusCode StatusCode => base.StatusCode ?? default; -#else - public HttpStatusCode StatusCode { get; private set; } -#endif /// /// Represents the collection of HTTP response headers. @@ -28,19 +24,10 @@ public class SteamKitWebRequestException : HttpRequestException /// /// The message that describes the error. /// HTTP response message including the status code and data. -#if NET5_0_OR_GREATER public SteamKitWebRequestException(string message, HttpResponseMessage response) : base(message, null, response.StatusCode) { this.Headers = response.Headers; } -#else - public SteamKitWebRequestException(string message, HttpResponseMessage response) - : base(message) - { - this.StatusCode = response.StatusCode; - this.Headers = response.Headers; - } -#endif } } diff --git a/SteamKit2/Util/StreamHelpers.cs b/SteamKit2/Util/StreamHelpers.cs index 3e968805a..c2f81137a 100644 --- a/SteamKit2/Util/StreamHelpers.cs +++ b/SteamKit2/Util/StreamHelpers.cs @@ -7,71 +7,60 @@ namespace SteamKit2 { internal static class StreamHelpers { - [ThreadStatic] - static byte[]? data; - -#if NET5_0_OR_GREATER - [MemberNotNull(nameof(data))] -#endif - static void EnsureInitialized() - { - data ??= new byte[ 8 ]; - } - - public static Int16 ReadInt16(this Stream stream) + public static short ReadInt16(this Stream stream) { - EnsureInitialized(); + Span data = stackalloc byte[sizeof(Int16)]; - stream.Read( data, 0, 2 ); - return BitConverter.ToInt16( data, 0 ); + stream.Read( data ); + return BitConverter.ToInt16( data ); } - public static UInt16 ReadUInt16(this Stream stream) + public static ushort ReadUInt16(this Stream stream) { - EnsureInitialized(); + Span data = stackalloc byte[sizeof(UInt16)]; - stream.Read( data, 0, 2 ); - return BitConverter.ToUInt16( data, 0); + stream.Read( data ); + return BitConverter.ToUInt16( data ); } - public static Int32 ReadInt32(this Stream stream) + public static int ReadInt32(this Stream stream) { - EnsureInitialized(); + Span data = stackalloc byte[sizeof(Int32)]; - stream.Read( data, 0, 4 ); - return BitConverter.ToInt32( data, 0 ); + stream.Read( data ); + return BitConverter.ToInt32( data ); } - public static Int64 ReadInt64(this Stream stream) + public static long ReadInt64(this Stream stream) { - EnsureInitialized(); + Span data = stackalloc byte[sizeof(Int64)]; - stream.Read( data, 0, 8 ); - return BitConverter.ToInt64( data, 0 ); + stream.Read( data ); + return BitConverter.ToInt64( data ); } - public static UInt32 ReadUInt32(this Stream stream) + public static uint ReadUInt32(this Stream stream) { - EnsureInitialized(); + Span data = stackalloc byte[sizeof(UInt32)]; - stream.Read(data, 0, 4); - return BitConverter.ToUInt32( data, 0); + stream.Read( data ); + return BitConverter.ToUInt32( data ); } - public static UInt64 ReadUInt64(this Stream stream) + public static ulong ReadUInt64(this Stream stream) { - EnsureInitialized(); + Span data = stackalloc byte[sizeof(UInt64)]; - stream.Read( data, 0, 8 ); - return BitConverter.ToUInt64( data, 0 ); + stream.Read( data ); + return BitConverter.ToUInt64( data ); } public static float ReadFloat( this Stream stream ) { - EnsureInitialized(); + Span data = stackalloc byte[sizeof(float)]; - stream.Read( data, 0, 4 ); - return BitConverter.ToSingle( data, 0 ); + stream.Read( data ); + return BitConverter.ToSingle( data ); } public static string ReadNullTermString( this Stream stream, Encoding encoding ) diff --git a/SteamKit2/Util/Utils.cs b/SteamKit2/Util/Utils.cs index bbb7432e6..70f3b7fdc 100644 --- a/SteamKit2/Util/Utils.cs +++ b/SteamKit2/Util/Utils.cs @@ -21,24 +21,16 @@ static class Utils { public static string EncodeHexString(byte[] input) { - return input.Aggregate(new StringBuilder(), - (sb, v) => sb.Append(v.ToString("x2")) - ).ToString(); + return Convert.ToHexString(input).ToLower(); } - [return: NotNullIfNotNull("hex")] + [return: NotNullIfNotNull( nameof( hex ) )] public static byte[]? DecodeHexString(string? hex) { if (hex == null) return null; - int chars = hex.Length; - byte[] bytes = new byte[chars / 2]; - - for (int i = 0; i < chars; i += 2) - bytes[i / 2] = Convert.ToByte(hex.Substring(i, 2), 16); - - return bytes; + return Convert.FromHexString( hex ); } public static EOSType GetOSType() @@ -137,6 +129,8 @@ public static EOSType GetOSType() 19 => EOSType.Macos1015, // Catalina 20 => EOSType.MacOS11, // Big Sur 21 => EOSType.MacOS12, // Monterey + 22 => EOSType.MacOS13, // Ventura + 23 => EOSType.MacOS14, // Sonoma _ => EOSType.MacOSUnknown, }, @@ -163,8 +157,7 @@ public static class DateUtils /// DateTime representation public static DateTime DateTimeFromUnixTime(ulong unixTime) { - DateTime origin = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); - return origin.AddSeconds(unixTime); + return DateTimeOffset.FromUnixTimeSeconds( (long)unixTime ).DateTime; } /// /// Converts a given DateTime into a unix timestamp representing seconds since the unix epoch. @@ -173,8 +166,7 @@ public static DateTime DateTimeFromUnixTime(ulong unixTime) /// 64-bit wide representation public static ulong DateTimeToUnixTime(DateTime time) { - DateTime origin = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); - return (ulong)(time - origin).TotalSeconds; + return (ulong)new DateTimeOffset( time ).ToUnixTimeSeconds(); } } @@ -277,15 +269,11 @@ static bool IsUrlSafeChar( char ch ) return true; } - switch ( ch ) + return ch switch { - case '-': - case '.': - case '_': - return true; - } - - return false; + '-' or '.' or '_' => true, + _ => false, + }; } public static string UrlEncode( string input ) @@ -423,13 +411,13 @@ public static bool TryParseIPEndPoint( string stringValue, [NotNullWhen( true )] return false; } - if ( !IPAddress.TryParse( stringValue.Substring( 0, colonPosition ), out var address ) ) + if ( !IPAddress.TryParse( stringValue.AsSpan( 0, colonPosition ), out var address ) ) { endPoint = null; return false; } - if ( !ushort.TryParse( stringValue.Substring( colonPosition + 1 ), out var port ) ) + if ( !ushort.TryParse( stringValue.AsSpan( colonPosition + 1 ), out var port ) ) { endPoint = null; return false; @@ -441,17 +429,12 @@ public static bool TryParseIPEndPoint( string stringValue, [NotNullWhen( true )] public static (string host, int port) ExtractEndpointHost( EndPoint endPoint ) { - switch ( endPoint ) + return endPoint switch { - case IPEndPoint ipep: - return ( ipep.Address.ToString(), ipep.Port ); - - case DnsEndPoint dns: - return ( dns.Host, dns.Port ); - - default: - throw new InvalidOperationException( "Unknown endpoint type." ); - } + IPEndPoint ipep => (ipep.Address.ToString(), ipep.Port), + DnsEndPoint dns => (dns.Host, dns.Port), + _ => throw new InvalidOperationException( "Unknown endpoint type." ), + }; } } } diff --git a/SteamKit2/Util/VZipDeltaUtil.cs b/SteamKit2/Util/VZipDeltaUtil.cs index ee688394b..f0156d162 100644 --- a/SteamKit2/Util/VZipDeltaUtil.cs +++ b/SteamKit2/Util/VZipDeltaUtil.cs @@ -1,12 +1,13 @@ using System; using System.IO; +using System.IO.Hashing; namespace SteamKit2 { class VZipDeltaUtil { - private static UInt16 VZipHeader = 0x5A56; - private static UInt16 VZipFooter = 0x767A; + private static ushort VZipHeader = 0x5A56; + private static ushort VZipFooter = 0x767A; private static int HeaderLength = 7; private static int FooterLength = 10; @@ -15,52 +16,48 @@ class VZipDeltaUtil public static byte[] Decompress( byte[] buffer, byte[] sourceChunkData ) { - using ( MemoryStream ms = new MemoryStream( buffer ) ) - using ( BinaryReader reader = new BinaryReader( ms ) ) + using MemoryStream ms = new MemoryStream( buffer ); + using BinaryReader reader = new BinaryReader( ms ); + if ( reader.ReadUInt16() != VZipHeader ) { - if ( reader.ReadUInt16() != VZipHeader ) - { - throw new Exception( "Expecting VZipHeader at start of stream" ); - } - - if ( reader.ReadChar() != Version ) - { - throw new Exception( "Expecting VZip version 'd'" ); - } + throw new Exception( "Expecting VZipHeader at start of stream" ); + } - // This is also the CRC of the chunk - /* uint secondaryCRC = */ reader.ReadUInt32(); + if ( reader.ReadChar() != Version ) + { + throw new Exception( "Expecting VZip version 'd'" ); + } - byte[] properties = reader.ReadBytes( 5 ); - byte[] deltaBuffer = reader.ReadBytes( ( int )ms.Length - HeaderLength - FooterLength - 5 ); + // This is also the CRC of the chunk + /* uint secondaryCRC = */ reader.ReadUInt32(); - uint outputCRC = reader.ReadUInt32(); - uint sizeDecompressed = reader.ReadUInt32(); + byte[] properties = reader.ReadBytes( 5 ); + byte[] deltaBuffer = reader.ReadBytes( ( int )ms.Length - HeaderLength - FooterLength - 5 ); - if ( reader.ReadUInt16() != VZipFooter ) - { - throw new Exception( "Expecting VZipFooter at end of stream" ); - } + uint outputCRC = reader.ReadUInt32(); + uint sizeDecompressed = reader.ReadUInt32(); - SevenZip.Compression.LZMA.Decoder decoder = new SevenZip.Compression.LZMA.Decoder( allowIllegalStreamStart: true ); - decoder.SetDecoderProperties( properties ); + if ( reader.ReadUInt16() != VZipFooter ) + { + throw new Exception( "Expecting VZipFooter at end of stream" ); + } - using ( MemoryStream trainingStream = new MemoryStream( sourceChunkData ) ) - using ( MemoryStream inputStream = new MemoryStream( deltaBuffer ) ) - using ( MemoryStream outStream = new MemoryStream( ( int )sizeDecompressed ) ) - { - decoder.Train( trainingStream ); - decoder.Code( inputStream, outStream, deltaBuffer.Length, sizeDecompressed, null ); + SevenZip.Compression.LZMA.Decoder decoder = new SevenZip.Compression.LZMA.Decoder( allowIllegalStreamStart: true ); + decoder.SetDecoderProperties( properties ); - var outData = outStream.ToArray(); - if ( Crc32.Compute( outData ) != outputCRC ) - { - throw new InvalidDataException( "CRC does not match decompressed data. VZip data may be corrupted." ); - } + using MemoryStream trainingStream = new MemoryStream( sourceChunkData ); + using MemoryStream inputStream = new MemoryStream( deltaBuffer ); + using MemoryStream outStream = new MemoryStream( ( int )sizeDecompressed ); + decoder.Train( trainingStream ); + decoder.Code( inputStream, outStream, deltaBuffer.Length, sizeDecompressed, null ); - return outData; - } + var outData = outStream.ToArray(); + if ( Crc32.HashToUInt32( outData ) != outputCRC ) + { + throw new InvalidDataException( "CRC does not match decompressed data. VZip data may be corrupted." ); } + + return outData; } } } diff --git a/SteamKit2/Util/VZipUtil.cs b/SteamKit2/Util/VZipUtil.cs index 49abb4431..8c8b172ca 100644 --- a/SteamKit2/Util/VZipUtil.cs +++ b/SteamKit2/Util/VZipUtil.cs @@ -1,15 +1,13 @@ using System; -using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; +using System.IO.Hashing; namespace SteamKit2 { class VZipUtil { - private static UInt16 VZipHeader = 0x5A56; - private static UInt16 VZipFooter = 0x767A; + private static ushort VZipHeader = 0x5A56; + private static ushort VZipFooter = 0x767A; private static int HeaderLength = 7; private static int FooterLength = 10; @@ -18,109 +16,104 @@ class VZipUtil public static byte[] Decompress(byte[] buffer) { - using (MemoryStream ms = new MemoryStream(buffer)) - using (BinaryReader reader = new BinaryReader(ms)) + using MemoryStream ms = new MemoryStream( buffer ); + using BinaryReader reader = new BinaryReader( ms ); + if ( reader.ReadUInt16() != VZipHeader ) { - if (reader.ReadUInt16() != VZipHeader) - { - throw new Exception("Expecting VZipHeader at start of stream"); - } - - if (reader.ReadChar() != Version) - { - throw new Exception("Expecting VZip version 'a'"); - } - - // Sometimes this is a creation timestamp (e.g. for Steam Client VZips). - // Sometimes this is a CRC32 (e.g. for depot chunks). - /* uint creationTimestampOrSecondaryCRC = */ reader.ReadUInt32(); - - byte[] properties = reader.ReadBytes(5); - byte[] compressedBuffer = reader.ReadBytes((int)ms.Length - HeaderLength - FooterLength - 5); - - uint outputCRC = reader.ReadUInt32(); - uint sizeDecompressed = reader.ReadUInt32(); - - if (reader.ReadUInt16() != VZipFooter) - { - throw new Exception("Expecting VZipFooter at end of stream"); - } - - SevenZip.Compression.LZMA.Decoder decoder = new SevenZip.Compression.LZMA.Decoder(); - decoder.SetDecoderProperties(properties); - - using (MemoryStream inputStream = new MemoryStream(compressedBuffer)) - using (MemoryStream outStream = new MemoryStream((int)sizeDecompressed)) - { - decoder.Code(inputStream, outStream, compressedBuffer.Length, sizeDecompressed, null); - - var outData = outStream.ToArray(); - if (Crc32.Compute(outData) != outputCRC) - { - throw new InvalidDataException("CRC does not match decompressed data. VZip data may be corrupted."); - } - - return outData; - } + throw new Exception( "Expecting VZipHeader at start of stream" ); } + + if ( reader.ReadChar() != Version ) + { + throw new Exception( "Expecting VZip version 'a'" ); + } + + // Sometimes this is a creation timestamp (e.g. for Steam Client VZips). + // Sometimes this is a CRC32 (e.g. for depot chunks). + /* uint creationTimestampOrSecondaryCRC = */ reader.ReadUInt32(); + + byte[] properties = reader.ReadBytes( 5 ); + byte[] compressedBuffer = reader.ReadBytes( ( int )ms.Length - HeaderLength - FooterLength - 5 ); + + uint outputCRC = reader.ReadUInt32(); + uint sizeDecompressed = reader.ReadUInt32(); + + if ( reader.ReadUInt16() != VZipFooter ) + { + throw new Exception( "Expecting VZipFooter at end of stream" ); + } + + SevenZip.Compression.LZMA.Decoder decoder = new SevenZip.Compression.LZMA.Decoder(); + decoder.SetDecoderProperties( properties ); + + using MemoryStream inputStream = new MemoryStream( compressedBuffer ); + using MemoryStream outStream = new MemoryStream( ( int )sizeDecompressed ); + decoder.Code( inputStream, outStream, compressedBuffer.Length, sizeDecompressed, null ); + + var outData = outStream.ToArray(); + if ( Crc32.HashToUInt32( outData ) != outputCRC ) + { + throw new InvalidDataException( "CRC does not match decompressed data. VZip data may be corrupted." ); + } + + return outData; } public static byte[] Compress(byte[] buffer) { - using (MemoryStream ms = new MemoryStream()) - using (BinaryWriter writer = new BinaryWriter(ms)) + using MemoryStream ms = new MemoryStream(); + using BinaryWriter writer = new BinaryWriter( ms ); + byte[] crc = Crc32.Hash( buffer ); + + writer.Write( VZipHeader ); + writer.Write( ( byte )Version ); + writer.Write( crc ); + + int dictionary = 1 << 23; + int posStateBits = 2; + int litContextBits = 3; + int litPosBits = 0; + int algorithm = 2; + int numFastBytes = 128; + + SevenZip.CoderPropID[] propIDs = + [ + SevenZip.CoderPropID.DictionarySize, + SevenZip.CoderPropID.PosStateBits, + SevenZip.CoderPropID.LitContextBits, + SevenZip.CoderPropID.LitPosBits, + SevenZip.CoderPropID.Algorithm, + SevenZip.CoderPropID.NumFastBytes, + SevenZip.CoderPropID.MatchFinder, + SevenZip.CoderPropID.EndMarker + ]; + + object[] properties = + [ + dictionary, + posStateBits, + litContextBits, + litPosBits, + algorithm, + numFastBytes, + "bt4", + false + ]; + + SevenZip.Compression.LZMA.Encoder encoder = new SevenZip.Compression.LZMA.Encoder(); + encoder.SetCoderProperties( propIDs, properties ); + encoder.WriteCoderProperties( ms ); + + using ( MemoryStream input = new MemoryStream( buffer ) ) { - byte[] crc = CryptoHelper.CRCHash(buffer); - - writer.Write(VZipHeader); - writer.Write((byte)Version); - writer.Write(crc); - - Int32 dictionary = 1 << 23; - Int32 posStateBits = 2; - Int32 litContextBits = 3; - Int32 litPosBits = 0; - Int32 algorithm = 2; - Int32 numFastBytes = 128; - - SevenZip.CoderPropID[] propIDs = - { - SevenZip.CoderPropID.DictionarySize, - SevenZip.CoderPropID.PosStateBits, - SevenZip.CoderPropID.LitContextBits, - SevenZip.CoderPropID.LitPosBits, - SevenZip.CoderPropID.Algorithm, - SevenZip.CoderPropID.NumFastBytes, - SevenZip.CoderPropID.MatchFinder, - SevenZip.CoderPropID.EndMarker - }; - - object[] properties = - { - (Int32)(dictionary), - (Int32)(posStateBits), - (Int32)(litContextBits), - (Int32)(litPosBits), - (Int32)(algorithm), - (Int32)(numFastBytes), - "bt4", - false - }; - - SevenZip.Compression.LZMA.Encoder encoder = new SevenZip.Compression.LZMA.Encoder(); - encoder.SetCoderProperties(propIDs, properties); - encoder.WriteCoderProperties(ms); - - using(MemoryStream input = new MemoryStream(buffer)) { - encoder.Code(input, ms, -1, -1, null); - } - - writer.Write(crc); - writer.Write((uint)buffer.Length); - writer.Write(VZipFooter); - - return ms.ToArray(); + encoder.Code( input, ms, -1, -1, null ); } + + writer.Write( crc ); + writer.Write( ( uint )buffer.Length ); + writer.Write( VZipFooter ); + + return ms.ToArray(); } } } diff --git a/SteamKit2/Util/ValueStopwatch.cs b/SteamKit2/Util/ValueStopwatch.cs new file mode 100644 index 000000000..e6cd7b17d --- /dev/null +++ b/SteamKit2/Util/ValueStopwatch.cs @@ -0,0 +1,32 @@ +using System; +using System.Diagnostics; + +namespace SteamKit2.Util +{ + readonly struct ValueStopwatch + { + private static readonly double s_timestampToTicks = TimeSpan.TicksPerSecond / ( double )Stopwatch.Frequency; + + private readonly long _startTimestamp; + + private ValueStopwatch( long startTimestamp ) + { + _startTimestamp = startTimestamp; + } + + public static ValueStopwatch StartNew() => new( Stopwatch.GetTimestamp() ); + + public TimeSpan GetElapsedTime() + { + if ( _startTimestamp == 0 ) + { + throw new InvalidOperationException( "An uninitialized, or 'default', ValueStopwatch cannot be used to get elapsed time." ); + } + + long end = Stopwatch.GetTimestamp(); + long timestampDelta = end - _startTimestamp; + long ticks = ( long )( s_timestampToTicks * timestampDelta ); + return new TimeSpan( ticks ); + } + } +} diff --git a/SteamKit2/Util/Win32Helpers.cs b/SteamKit2/Util/Win32Helpers.cs index 0e6d918ee..0957a589b 100644 --- a/SteamKit2/Util/Win32Helpers.cs +++ b/SteamKit2/Util/Win32Helpers.cs @@ -6,9 +6,7 @@ namespace SteamKit2.Util { -#if NET5_0_OR_GREATER [SupportedOSPlatform("windows")] -#endif static class Win32Helpers { #region Boot Disk Serial Number @@ -203,7 +201,7 @@ public struct VOLUME_DISK_EXTENTS { public uint NumberOfDiskExtents; - [MarshalAs( UnmanagedType.ByValArray )] + [MarshalAs( UnmanagedType.ByValArray, SizeConst = 1 )] public DISK_EXTENT[] Extents; } diff --git a/SteamKit2/Util/ZipUtil.cs b/SteamKit2/Util/ZipUtil.cs index 6590b3084..048757a2c 100644 --- a/SteamKit2/Util/ZipUtil.cs +++ b/SteamKit2/Util/ZipUtil.cs @@ -8,196 +8,193 @@ using System; using System.IO; using System.IO.Compression; +using System.IO.Hashing; using System.Text; namespace SteamKit2 { static class ZipUtil { - private static UInt32 LocalFileHeader = 0x04034b50; - private static UInt32 CentralDirectoryHeader = 0x02014b50; - private static UInt32 EndOfDirectoryHeader = 0x06054b50; + private static uint LocalFileHeader = 0x04034b50; + private static uint CentralDirectoryHeader = 0x02014b50; + private static uint EndOfDirectoryHeader = 0x06054b50; - private static UInt16 DeflateCompression = 8; - private static UInt16 StoreCompression = 0; + private static ushort DeflateCompression = 8; + private static ushort StoreCompression = 0; - private static UInt16 Version = 20; + private static ushort Version = 20; public static byte[] Decompress( byte[] buffer ) { - using ( MemoryStream ms = new MemoryStream( buffer ) ) - using ( BinaryReader reader = new BinaryReader( ms ) ) + using MemoryStream ms = new MemoryStream( buffer ); + using BinaryReader reader = new BinaryReader( ms ); + if ( !PeekHeader( reader, LocalFileHeader ) ) { - if ( !PeekHeader( reader, LocalFileHeader ) ) - { - throw new Exception( "Expecting LocalFileHeader at start of stream" ); - } - - string fileName; - UInt32 decompressedSize; - UInt16 compressionMethod; - uint crc; - byte[] compressedBuffer = ReadLocalFile( reader, out fileName, out decompressedSize, out compressionMethod, out crc ); + throw new Exception( "Expecting LocalFileHeader at start of stream" ); + } - if ( !PeekHeader( reader, CentralDirectoryHeader ) ) - { - throw new Exception( "Expecting CentralDirectoryHeader following filename" ); - } + string fileName; + uint decompressedSize; + ushort compressionMethod; + uint crc; + byte[] compressedBuffer = ReadLocalFile( reader, out fileName, out decompressedSize, out compressionMethod, out crc ); - string cdrFileName; - /*Int32 relativeOffset =*/ ReadCentralDirectory( reader, out cdrFileName ); + if ( !PeekHeader( reader, CentralDirectoryHeader ) ) + { + throw new Exception( "Expecting CentralDirectoryHeader following filename" ); + } - if ( !PeekHeader( reader, EndOfDirectoryHeader ) ) - { - throw new Exception( "Expecting EndOfDirectoryHeader following CentralDirectoryHeader" ); - } + string cdrFileName; + /*Int32 relativeOffset =*/ ReadCentralDirectory( reader, out cdrFileName ); - /*UInt32 count =*/ ReadEndOfDirectory( reader ); + if ( !PeekHeader( reader, EndOfDirectoryHeader ) ) + { + throw new Exception( "Expecting EndOfDirectoryHeader following CentralDirectoryHeader" ); + } - byte[] decompressed; + /*UInt32 count =*/ ReadEndOfDirectory( reader ); - if ( compressionMethod == DeflateCompression ) - decompressed = InflateBuffer( compressedBuffer, decompressedSize ); - else - decompressed = compressedBuffer; + byte[] decompressed; - uint checkSum = Crc32.Compute( decompressed ); + if ( compressionMethod == DeflateCompression ) + decompressed = InflateBuffer( compressedBuffer, decompressedSize ); + else + decompressed = compressedBuffer; - if ( checkSum != crc ) - { - throw new Exception( "Checksum validation failed for decompressed file" ); - } + uint checkSum = Crc32.HashToUInt32( decompressed ); - return decompressed; + if ( checkSum != crc ) + { + throw new Exception( "Checksum validation failed for decompressed file" ); } + + return decompressed; } public static byte[] Compress( byte[] buffer ) { - using ( MemoryStream ms = new MemoryStream() ) - using ( BinaryWriter writer = new BinaryWriter( ms ) ) - { - uint checkSum = Crc32.Compute( buffer ); + using MemoryStream ms = new MemoryStream(); + using BinaryWriter writer = new BinaryWriter( ms ); + uint checkSum = Crc32.HashToUInt32( buffer ); - byte[] compressed = DeflateBuffer( buffer ); + byte[] compressed = DeflateBuffer( buffer ); - Int32 poslocal = WriteHeader( writer, LocalFileHeader ); - WriteLocalFile( writer, "z", checkSum, ( UInt32 )buffer.Length, compressed ); + int poslocal = WriteHeader( writer, LocalFileHeader ); + WriteLocalFile( writer, "z", checkSum, ( uint )buffer.Length, compressed ); - Int32 posCDR = WriteHeader( writer, CentralDirectoryHeader ); - UInt32 CDRSize = WriteCentralDirectory( writer, "z", checkSum, ( UInt32 )compressed.Length, ( UInt32 )buffer.Length, poslocal ); + int posCDR = WriteHeader( writer, CentralDirectoryHeader ); + uint CDRSize = WriteCentralDirectory( writer, "z", checkSum, ( uint )compressed.Length, ( uint )buffer.Length, poslocal ); - /*Int32 posEOD =*/ WriteHeader( writer, EndOfDirectoryHeader ); - WriteEndOfDirectory( writer, 1, CDRSize, posCDR ); + /*Int32 posEOD =*/ WriteHeader( writer, EndOfDirectoryHeader ); + WriteEndOfDirectory( writer, 1, CDRSize, posCDR ); - return ms.ToArray(); - } + return ms.ToArray(); } - private static Int32 WriteHeader( BinaryWriter writer, UInt32 header ) + private static int WriteHeader( BinaryWriter writer, uint header ) { - Int32 position = ( Int32 )writer.BaseStream.Position; + int position = ( int )writer.BaseStream.Position; writer.Write( header ); return position; } - private static void WriteEndOfDirectory( BinaryWriter writer, UInt32 count, UInt32 CDRSize, Int32 CDROffset ) + private static void WriteEndOfDirectory( BinaryWriter writer, uint count, uint CDRSize, int CDROffset ) { - writer.Write( ( UInt16 )0 ); // diskNumber - writer.Write( ( UInt16 )0 ); // CDRDisk - writer.Write( ( UInt16 )count ); // CDRCount - writer.Write( ( UInt16 )1 ); // CDRTotal + writer.Write( ( ushort )0 ); // diskNumber + writer.Write( ( ushort )0 ); // CDRDisk + writer.Write( ( ushort )count ); // CDRCount + writer.Write( ( ushort )1 ); // CDRTotal - writer.Write( ( UInt32 )CDRSize ); // CDRSize - writer.Write( ( Int32 )CDROffset ); // CDROffset + writer.Write( ( uint )CDRSize ); // CDRSize + writer.Write( ( int )CDROffset ); // CDROffset - writer.Write( ( UInt16 )0 ); // commentLength + writer.Write( ( ushort )0 ); // commentLength } - private static UInt32 WriteCentralDirectory( BinaryWriter writer, string fileName, UInt32 CRC, UInt32 compressedSize, UInt32 decompressedSize, Int32 localHeaderOffset ) + private static uint WriteCentralDirectory( BinaryWriter writer, string fileName, uint CRC, uint compressedSize, uint decompressedSize, int localHeaderOffset ) { - UInt32 pos = ( UInt32 )writer.BaseStream.Position; + uint pos = ( uint )writer.BaseStream.Position; writer.Write( Version ); // versionGenerator writer.Write( Version ); // versionExtract - writer.Write( ( UInt16 )0 ); // bitflags + writer.Write( ( ushort )0 ); // bitflags writer.Write( DeflateCompression ); // compression - writer.Write( ( UInt16 )0 ); // modTime - writer.Write( ( UInt16 )0 ); // createTime + writer.Write( ( ushort )0 ); // modTime + writer.Write( ( ushort )0 ); // createTime writer.Write( CRC ); // CRC writer.Write( compressedSize ); // compressedSize writer.Write( decompressedSize ); // decompressedSize - writer.Write( ( UInt16 )Encoding.UTF8.GetByteCount( fileName ) ); // nameLength - writer.Write( ( UInt16 )0 ); // fieldLength - writer.Write( ( UInt16 )0 ); // commentLength + writer.Write( ( ushort )Encoding.UTF8.GetByteCount( fileName ) ); // nameLength + writer.Write( ( ushort )0 ); // fieldLength + writer.Write( ( ushort )0 ); // commentLength - writer.Write( ( UInt16 )0 ); // diskNumber - writer.Write( ( UInt16 )1 ); // internalAttributes - writer.Write( ( UInt32 )32 ); // externalAttributes + writer.Write( ( ushort )0 ); // diskNumber + writer.Write( ( ushort )1 ); // internalAttributes + writer.Write( ( uint )32 ); // externalAttributes writer.Write( localHeaderOffset ); // relativeOffset writer.Write( Encoding.UTF8.GetBytes( fileName ) ); // filename - return ( ( UInt32 )writer.BaseStream.Position - pos ) + 4; + return ( ( uint )writer.BaseStream.Position - pos ) + 4; } - private static void WriteLocalFile( BinaryWriter writer, string fileName, UInt32 CRC, UInt32 decompressedSize, byte[] processedBuffer ) + private static void WriteLocalFile( BinaryWriter writer, string fileName, uint CRC, uint decompressedSize, byte[] processedBuffer ) { writer.Write( Version ); // version - writer.Write( ( UInt16 )0 ); // bitflags + writer.Write( ( ushort )0 ); // bitflags writer.Write( DeflateCompression ); // compression - writer.Write( ( UInt16 )0 ); // modTime - writer.Write( ( UInt16 )0 ); // createTime + writer.Write( ( ushort )0 ); // modTime + writer.Write( ( ushort )0 ); // createTime writer.Write( CRC ); // CRC writer.Write( processedBuffer.Length ); // compressedSize writer.Write( decompressedSize ); // decompressedSize - writer.Write( ( UInt16 )Encoding.UTF8.GetByteCount( fileName ) ); // nameLength - writer.Write( ( UInt16 )0 ); // fieldLength + writer.Write( ( ushort )Encoding.UTF8.GetByteCount( fileName ) ); // nameLength + writer.Write( ( ushort )0 ); // fieldLength writer.Write( Encoding.UTF8.GetBytes( fileName ) ); // filename writer.Write( processedBuffer ); // contents } - private static bool PeekHeader( BinaryReader reader, UInt32 expecting ) + private static bool PeekHeader( BinaryReader reader, uint expecting ) { - UInt32 header = reader.ReadUInt32(); + uint header = reader.ReadUInt32(); return header == expecting; } - private static UInt32 ReadEndOfDirectory( BinaryReader reader ) + private static uint ReadEndOfDirectory( BinaryReader reader ) { /*UInt16 diskNumber =*/ reader.ReadUInt16(); /*UInt16 CDRDisk =*/ reader.ReadUInt16(); - UInt16 CDRCount = reader.ReadUInt16(); + ushort CDRCount = reader.ReadUInt16(); /*UInt16 CDRTotal =*/ reader.ReadUInt16(); /*UInt32 CDRSize =*/ reader.ReadUInt32(); /*Int32 CDROffset =*/ reader.ReadInt32(); - UInt16 commentLength = reader.ReadUInt16(); + ushort commentLength = reader.ReadUInt16(); /*byte[] comment =*/ reader.ReadBytes( commentLength ); return CDRCount; } - private static Int32 ReadCentralDirectory( BinaryReader reader, out String fileName ) + private static int ReadCentralDirectory( BinaryReader reader, out string fileName ) { /*UInt16 versionGenerator =*/ reader.ReadUInt16(); /*UInt16 versionExtract =*/ reader.ReadUInt16(); /*UInt16 bitflags =*/ reader.ReadUInt16(); - UInt16 compression = reader.ReadUInt16(); + ushort compression = reader.ReadUInt16(); if ( compression != DeflateCompression && compression != StoreCompression ) { @@ -211,15 +208,15 @@ private static Int32 ReadCentralDirectory( BinaryReader reader, out String fileN /*UInt32 compressedSize =*/ reader.ReadUInt32(); /*UInt32 decompressedSize =*/ reader.ReadUInt32(); - UInt16 nameLength = reader.ReadUInt16(); - UInt16 fieldLength = reader.ReadUInt16(); - UInt16 commentLength = reader.ReadUInt16(); + ushort nameLength = reader.ReadUInt16(); + ushort fieldLength = reader.ReadUInt16(); + ushort commentLength = reader.ReadUInt16(); /*UInt16 diskNumber =*/ reader.ReadUInt16(); /*UInt16 internalAttributes =*/ reader.ReadUInt16(); /*UInt32 externalAttributes =*/ reader.ReadUInt32(); - Int32 relativeOffset = reader.ReadInt32(); + int relativeOffset = reader.ReadInt32(); byte[] name = reader.ReadBytes( nameLength ); /*byte[] fields =*/ reader.ReadBytes( fieldLength ); @@ -229,7 +226,7 @@ private static Int32 ReadCentralDirectory( BinaryReader reader, out String fileN return relativeOffset; } - private static byte[] ReadLocalFile( BinaryReader reader, out String fileName, out UInt32 decompressedSize, out UInt16 compressionMethod, out UInt32 crc ) + private static byte[] ReadLocalFile( BinaryReader reader, out string fileName, out uint decompressedSize, out ushort compressionMethod, out uint crc ) { /*UInt16 version =*/ reader.ReadUInt16(); /*UInt16 bitflags =*/ reader.ReadUInt16(); @@ -244,11 +241,11 @@ private static byte[] ReadLocalFile( BinaryReader reader, out String fileName, o /*UInt16 createtime =*/ reader.ReadUInt16(); crc = reader.ReadUInt32(); - UInt32 compressedSize = reader.ReadUInt32(); + uint compressedSize = reader.ReadUInt32(); decompressedSize = reader.ReadUInt32(); - UInt16 nameLength = reader.ReadUInt16(); - UInt16 fieldLength = reader.ReadUInt16(); + ushort nameLength = reader.ReadUInt16(); + ushort fieldLength = reader.ReadUInt16(); byte[] name = reader.ReadBytes( nameLength ); /*byte[] fields =*/ reader.ReadBytes( fieldLength ); @@ -259,29 +256,25 @@ private static byte[] ReadLocalFile( BinaryReader reader, out String fileName, o } - private static byte[] InflateBuffer( byte[] compressedBuffer, UInt32 decompressedSize ) + private static byte[] InflateBuffer( byte[] compressedBuffer, uint decompressedSize ) { - using ( MemoryStream ms = new MemoryStream( compressedBuffer ) ) - using ( DeflateStream deflateStream = new DeflateStream( ms, CompressionMode.Decompress ) ) - { - byte[] inflated = new byte[ decompressedSize ]; - deflateStream.ReadAll( inflated ); + using MemoryStream ms = new MemoryStream( compressedBuffer ); + using DeflateStream deflateStream = new DeflateStream( ms, CompressionMode.Decompress ); + byte[] inflated = new byte[ decompressedSize ]; + deflateStream.ReadAll( inflated ); - return inflated; - } + return inflated; } private static byte[] DeflateBuffer( byte[] uncompressedBuffer ) { - using ( MemoryStream ms = new MemoryStream() ) + using MemoryStream ms = new MemoryStream(); + using ( DeflateStream deflateStream = new DeflateStream( ms, CompressionMode.Compress ) ) { - using ( DeflateStream deflateStream = new DeflateStream( ms, CompressionMode.Compress ) ) - { - deflateStream.Write( uncompressedBuffer, 0, uncompressedBuffer.Length ); - } - - return ms.ToArray(); + deflateStream.Write( uncompressedBuffer, 0, uncompressedBuffer.Length ); } + + return ms.ToArray(); } } diff --git a/SteamKit2/changes.txt b/SteamKit2/changes.txt index 755a3fcfe..f775feeff 100644 --- a/SteamKit2/changes.txt +++ b/SteamKit2/changes.txt @@ -1,18 +1,35 @@ ------------------------------------------------------------------------------ -v 2.5.0 March 23 2022 +v 3.0.0 March 19 2024 +------------------------------------------------------------------------------ + +* Added a dependency on `System.IO.Hashing` +* Added `SteamKit2.WebUI.Internal` protobufs +* Updated Steam enums and protobufs. + +BREAKING CHANGES +* SteamKit now targets .NET 8 +* Removed obsolete methods and enum values + +------------------------------------------------------------------------------ +v 2.5.0 November 6 2023 ------------------------------------------------------------------------------ * Added `SteamApps.GetLegacyGameKey`. -* Added `SteamUser. PlayingSessionStateCallback`. +* Added `SteamUser.PlayingSessionStateCallback`. * Added ability to serialize depot manifests. * Added support for unauthenticated service methods. * Added `LogOnDetails.MachineName`. * Added support for new Steam authentication system. * Improved TCP connection reliability. * Update Steam enums and protobufs. +* Added `BalanceDelayed` and `LongBalanceDelayed` in `WalletInfoCallback` +* Deprecated `WebAPIUserNonce`, `RequestWebAPIUserNonce`, `SendMachineAuthResponse`, `UpdateMachineAuthCallback` Bug Fixes * Fixed nullability annotations on `PersonaStateCallback`. * Fixed sending service method notifications. +* Fixed `machine_id` on Windows to be consistent with the Steam client. +* Fixed SteamLanguageParser to generate BinaryWriter/Reader that gets disposed. +* Fixed async jobs to use high precision timer for timeouts instead of wall clock.. ------------------------------------------------------------------------------