blob: 824790d692d7c6a3fac1c0546c44d8df176bb6c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
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;
}
}
}
|