blob: 5e47a703384c4184e889b49201cc7e97a451e718 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
using Newtonsoft.Json;
namespace StardewModdingAPI
{
public struct Version
{
public int MajorVersion { get; set; }
public int MinorVersion { get; set; }
public int PatchVersion { get; set; }
public string Build { get; set; }
[JsonIgnore]
public string VersionString => $"{MajorVersion}.{MinorVersion}.{PatchVersion} {Build}";
public Version(int major, int minor, int patch, string build)
{
MajorVersion = major;
MinorVersion = minor;
PatchVersion = patch;
Build = build;
}
}
}
|