41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
URL: https://wiki.studiominus.nl/internalReference/GameVersion.html
|
|
Title: People Playground Modding - GameVersion
|
|
==================================================
|
|
|
|
public struct GameVersion
|
|
Class that only contains a constant value with the current game version
|
|
Fields
|
|
public const string Version
|
|
Constant that returns the current game version
|
|
Constant value: "1.28 alpha"
|
|
|
|
Methods
|
|
public static int GetDifference(string a, string b)
|
|
Returns a negative number if precedes ( is older).
|
|
Returns 0 if they are the same.
|
|
Returns a positive number if succeeds ( is newer).
|
|
|
|
public static bool IsOlderThan(string a, string b)
|
|
No description provided
|
|
|
|
public static bool IsAtLeast(string a, string b)
|
|
No description provided
|
|
|
|
public static bool IsNewerThan(string a, string b)
|
|
No description provided
|
|
|
|
public static int ParseBuildIndex(string input)
|
|
Returns an integer that represents the build index of the given version string. The higher the number, the newer the version.
|
|
Format examples:
|
|
|
|
1.0
|
|
|
|
0.5.2
|
|
|
|
1.9 beta
|
|
|
|
1.19 beta 2
|
|
|
|
1.78 preview
|
|
|
|
1.23 preview 5 |