thief-mission-viewer/project/code/LGS/Database/Version.cs

26 lines
501 B
C#

using System.IO;
namespace KeepersCompound.LGS.Database;
public struct Version
{
public uint Major { get; set; }
public uint Minor { get; set; }
public Version(BinaryReader reader)
{
Major = reader.ReadUInt32();
Minor = reader.ReadUInt32();
}
public readonly void Write(BinaryWriter writer)
{
writer.Write(Major);
writer.Write(Minor);
}
public override readonly string ToString()
{
return $"{Major}.{Minor}";
}
}