@teraflop/api
Version:
Teraflop game engine WebAssembly scripting API
27 lines (26 loc) • 827 B
TypeScript
export declare function register(name: string, version: i32): bool;
export declare enum VersionMeta {
Release = 0,
ReleaseCandidate = 1,
PreRelease = 2,
Beta = 3,
Alpha = 4,
PreAlpha = 5,
MAX
}
/**
* Pack a Semantic Version into a 32-bit bitfield.
* @param major Incompatible API changes
* @param minor Added functionality in a backwards compatible manner
* @param patch Backwards compatible bug fixes
* @param meta Additional label for pre-release and build metadata
*
* **Bitfield**
*
* | major | minor | patch | meta |
* | ----------- | ----------- | ----------- | ----------- |
* | `0000 0000` | `0000 0000` | `0000 0000` | `0000 0000` |
*
* @see https://semver.org
*/
export declare function makeVersion(major: u8, minor: u8, patch: u8, meta?: i32): i32;