Files
Nebula-Auth/SteamLibForked/Utility/MafileSerialization/MafileSerializerSettings.cs
T
Давид Чернопятов ef8e12e20d 1.5.4 progress
- Mafile version was updated (3), new property SteamId added
- MafileSerializer was refactored to adjust compability and code readability.
- Serialization work moved from Storage to new class NebulaSerializer
2024-11-10 02:29:40 +02:00

34 lines
1.2 KiB
C#

namespace SteamLib.Utility.MafileSerialization;
public class MafileSerializerSettings
{
public MafileDeserializationOptions DeserializationOptions { get; set; } = new();
[Obsolete("Currently not used")]
public MafileDeserializationOptions SerializationOptions { get; set; } = new();
}
public class MafileDeserializationOptions
{
public bool AllowDeviceIdGeneration { get; set; }
public bool AllowSessionIdGeneration { get; set; }
/// <summary>
/// Throws if the <see cref="MobileDataExtended.SerialNumber"/> is 0 or invalid. Otherwise, SerialNumber will be set to 0.
/// </summary>
public bool ThrowIfInvalidSerialNumber { get; set; }
/// <summary>
/// Restricts recovering an invalid <see cref="MobileDataExtended.SerialNumber"/> if the value is written as a negative number.
/// This can occur when an incompatible type is used, one that does not support large proto fixed64 values.
/// <br/> Returns 0 if <see langword="true"/>, instead of attempting to repair the value.
/// </summary>
public bool RestrictOverflowSerialNumberRecovery { get; set; }
public bool ThrowIfInvalidSteamId { get; set; }
}
public class MafileSerializationOptions
{
}