@zerospacegg/iolin
Version:
Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)
85 lines • 2.61 kB
JavaScript
/**
* AUTO-GENERATED - DO NOT EDIT
* Magical Release Metadata System
* Generated by scripts/build/build-meta-release.ts
*
* This file contains build metadata and entity statistics for the iolin package.
* All values are baked in at build time to avoid runtime dependencies.
*/
import { zsVersion } from "../zs-version.js";
// Build metadata (baked in at build time)
export { zsVersion };
export const ggVersion = "0.10.2";
export const ggAt = "2025-07-17T04:14:20.874Z";
export const ggTs = "1752725660";
export const ggCommit = "bd720fef6d0f3c57404b7b5552771cc91f8241c8";
export const ggUpdated = ggAt;
export const ggRelease = "0.10.2-ZSplaytest.19202990-1752725660-bd720fef6d0f";
// Entity statistics (generated at build time)
export const entityStats = {
"totalEntities": 213,
"byType": {
"building/base": 5,
"building/extractor": 5,
"building/merc-outpost": 3,
"building/production": 14,
"building/special": 13,
"building/supply": 5,
"building/tech": 17,
"building/ultimate": 3,
"coop-mission/assault-defense": 1,
"coop-mission/escort": 1,
"coop-mission/survival": 1,
"faction/main": 4,
"faction/mercenary": 7,
"faction/nonplayer": 2,
"map/1v1": 5,
"map/2v2": 3,
"map/ffa": 1,
"modifier/boon": 17,
"modifier/mutator": 4,
"unit/army": 45,
"unit/builder": 5,
"unit/coop-commander": 2,
"unit/harvester": 5,
"unit/hero": 14,
"unit/merc": 25,
"unit/special": 4,
"unit/ultimate": 2
}
};
// Utility functions
export function getVersionInfo(includeTimestamp = false) {
const zsVer = zsVersion ?? "unknown";
const ggVer = ggVersion ?? "unknown";
if (includeTimestamp) {
const timestamp = ggUpdated ?? "no timestamp";
return `ZeroSpace ${zsVer} - ${ggVer} (${timestamp})`;
}
else {
return `ZeroSpace ${zsVer} - ${ggVer}`;
}
}
export function getEntityCountByType(typeSubtype) {
return entityStats.byType[typeSubtype] || 0;
}
export function getAllEntityTypes() {
return Object.keys(entityStats.byType).sort();
}
// Build information summary
export const release = {
ggVersion,
zsVersion,
ggUpdated: ggAt,
ggRelease,
ggCommit,
ggAt,
ggTs,
entityCount: entityStats.totalEntities,
typeCount: Object.keys(entityStats.byType).length
};
// Legacy alias for backwards compatibility
export const buildInfo = release;
// Default export
export default release;
//# sourceMappingURL=release.js.map