Class AudityVersion
This package’s own version, compiled in, plus the only version comparison Audity needs. The constant is duplicated from package.json because a built player has no package manifest to ask; Tools/release/lint_package.py fails the release if the two ever disagree.
Assembly: DarkEffekt.Audity.Runtime
Section titled “Assembly: DarkEffekt.Audity.Runtime”public static class AudityVersionFields
Section titled “Fields”Package
Section titled “Package”Must equal package.json’s “version”.
public const string Package = "1.0.0"Initial
Section titled “Initial”The version every node that predates the introduced-in stamp belongs to. Nothing shipped before this, so an unstamped node type is a 1.0 node.
public const string Initial = "1.0.0"Methods
Section titled “Methods”Compare(string, string)
Section titled “Compare(string, string)”Compares two “major.minor.patch” strings: negative if a
is older, 0 if equal, positive if newer. Any pre-release suffix is ignored
(1.2.0-pre.3 compares as 1.2.0), which is deliberate: a buyer on a
pre-release of a version can read that version’s assets. An unparseable or
empty string sorts oldest, so a missing stamp never triggers a warning.
public static int Compare(string a, string b)Returns
Section titled “Returns”System.Int32
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.String |
a |
System.String |
b |
IsNewerThanThisPackage(string)
Section titled “IsNewerThanThisPackage(string)”True if version is newer than this package.
public static bool IsNewerThanThisPackage(string version)Returns
Section titled “Returns”System.Boolean
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.String |
version |