UNPKG

@zerospacegg/iolin

Version:

Pure TypeScript implementation of ZeroSpace game data processing (PKL-free)

37 lines 1.04 kB
/** * Game Mechanic Engine - Base classes for game mechanics * * This module provides the foundational classes for defining and managing * game mechanics in ZeroSpace. Mechanics represent core gameplay systems * and rules that apply across factions and units. */ import { Entity } from "./entity.js"; /** * Base class for all game mechanics * Represents a core gameplay system or rule */ export declare class GameMechanic extends Entity { name: string; uuid: string; static src: string; references: string[]; protected _wiki?: string; get wiki(): string | undefined; set wiki(value: string | undefined); get type(): string; get subtype(): string; constructor(); /** * Get a summary of this mechanic */ get summary(): string; /** * Check if this mechanic matches a search term */ matches(searchTerm: string): boolean; /** * Get mechanic data as a plain object */ toJSON(): Record<string, unknown>; } //# sourceMappingURL=mechanic.d.ts.map