Scripting API

Scripting API

EngineVersion

Class in Abyss.Core, from Abyss.Core.

The engine's version: one number for its C# and its Rust.

public static class EngineVersion

Properties

Current

public static string Current { get; }

This engine's version, 0.1.0: what a project it opens is stamped with.

Methods

Compare

public static int Compare(string a, string b)

Compares two versions part by part — major, minor, patch, as whole numbers — so 0.10.0 is after 0.9.0; a part missing or not a number counts as nothing.

Parameters

  • a
  • b

Returns Less than zero when a is the older, zero when the same, more when the newer.