Class GameVersion
- Namespace
- Vintagestory.API.Config
- Assembly
- VintagestoryAPI.dll
The games current version
public static class GameVersion
- Inheritance
-
GameVersion
- Inherited Members
Fields
APIVersion
Version of the Mod API
public const string APIVersion = "1.21.0"
Field Value
AssemblyVersion
Assembly Info Version number in the format: major.minor.revision
public const string AssemblyVersion = "1.0.0.0"
Field Value
BlockItemMappingVersion
"Version" of the block and item mapping. This number gets increased by 1 when remappings are needed
public static int BlockItemMappingVersion
Field Value
Branch
Whether this is a stable or unstable version
public const EnumGameBranch Branch = Unstable
Field Value
ChunkdataVersion
Version of the chunkdata compression for individual WorldChunks (0 is Deflate; 1 is ZSTD and palettised) Also affects compression of network packets sent
public const int ChunkdataVersion = 2
Field Value
CopyRight
Copyright notice
public const string CopyRight = "Copyright © 2016-2024 Anego Studios"
Field Value
DatabaseVersion
Version of the savegame database
public static int DatabaseVersion
Field Value
LongGameVersion
Version number in the format: major.minor.revision [release title]
public static string LongGameVersion
Field Value
NetworkVersion
Version of the Network Protocol
public const string NetworkVersion = "1.21.5"
Field Value
OverallVersion
Assembly Info Version number in the format: major.minor.revision
public const string OverallVersion = "1.21.0"
Field Value
ShortGameVersion
Version number in the format: major.minor.revision[appendix]
public const string ShortGameVersion = "1.21.0-pre.2"
Field Value
WorldGenVersion
Version of the world generator - a change in version will insert a smoothed chunk between old and new version
public const int WorldGenVersion = 3
Field Value
Properties
ReleaseType
public static EnumReleaseType ReleaseType { get; }
Property Value
Methods
EnsureEqualVersionOrKillExecutable(ICoreAPI, string, string, string)
public static void EnsureEqualVersionOrKillExecutable(ICoreAPI api, string version, string reference, string modName)
Parameters
GetReleaseType(string)
public static EnumReleaseType GetReleaseType(string version)
Parameters
version
string
Returns
IsAtLeastVersion(string)
Returns true if supplied version is the same or higher as the current version
public static bool IsAtLeastVersion(string version)
Parameters
version
string
Returns
IsAtLeastVersion(string, string)
Returns true if supplied version is the same or higher as the reference version
public static bool IsAtLeastVersion(string version, string reference)
Parameters
Returns
IsCompatibleApiVersion(string)
Returns true if given version has the same major and minor version. Ignores revision.
public static bool IsCompatibleApiVersion(string version)
Parameters
version
string
Returns
IsCompatibleNetworkVersion(string)
Returns true if given version has the same major and minor version. Ignores revision.
public static bool IsCompatibleNetworkVersion(string version)
Parameters
version
string
Returns
IsLowerVersionThan(string, string)
public static bool IsLowerVersionThan(string version, string reference)
Parameters
Returns
IsNewerVersionThan(string, string)
Returns true if supplied version is the higher as the reference version
public static bool IsNewerVersionThan(string version, string reference)
Parameters
Returns
SplitVersionString(string)
public static int[] SplitVersionString(string version)
Parameters
version
string
Returns
- int[]