This commit is contained in:
2025-05-16 23:31:59 +08:00
parent 9e4fef3f1e
commit d891e3f0ee
1198 changed files with 274242 additions and 1558 deletions

View File

@@ -0,0 +1,22 @@
namespace VLB
{
public static class Version
{
public const int Current = 20204;
public static string CurrentAsString => GetVersionAsString(Current);
static string GetVersionAsString(int version)
{
const int n1Mult = 10000;
const int n2Mult = 100;
const int n3Mult = 1;
int n1 = (int)(version / n1Mult);
int n2 = (int)((version - n1 * n1Mult) / n2Mult);
int n3 = (int)((version - n1 * n1Mult - n2 * n2Mult) / n3Mult);
return string.Format("{0}.{1}.{2}", n1, n2, n3);
}
}
}