HammeriteVersion
Core: files, names and extension. Inherits RefCounted
Which Hammerite this is. The four addons are released together under one version, so a game can ask any of them - and a bug report should say it.
Methods
| Returns | Method |
|---|---|
bool | at_least(major: int, minor: int = 0, patch: int = 0) static |
String | string() static |
Constants
MAJOR
const MAJOR = 2
The major part of string(): a change here may break what the supported API promised.
MINOR
const MINOR = 0
The minor part of string(): additions to the supported API, nothing changed.
PATCH
const PATCH = 0
The patch part of string(): fixes only.
Method descriptions
at_least()
static func at_least(major: int, minor: int = 0, patch: int = 0) -> bool
Whether this Hammerite is major.minor.patch or later, for a game or addon that needs something a release added.
string()
static func string() -> String
Semantic versioning over the supported API (docs/api-stability.md). Kept equal to every addon's plugin.cfg, and to MAJOR, MINOR and PATCH, by a test.
The constant STRING before the class was native: a native class's constants can only be integers.