Add ink integration UI and media playback
This commit is contained in:
Vendored
+38
@@ -0,0 +1,38 @@
|
||||
export type EngineName = 'yaml' | 'ink' | 'zork' | string;
|
||||
export interface GameMetadata {
|
||||
title: string;
|
||||
author?: string;
|
||||
subtitle?: string;
|
||||
version?: string;
|
||||
copyright?: string;
|
||||
}
|
||||
export interface GamePaths {
|
||||
mainGameFile: string;
|
||||
inkSource?: string;
|
||||
inkCompiled?: string;
|
||||
promptDir?: string;
|
||||
music?: string;
|
||||
sfx?: string;
|
||||
images?: string;
|
||||
[key: string]: string | undefined;
|
||||
}
|
||||
export interface GameEngineConfig {
|
||||
engine: EngineName;
|
||||
locale: 'en_US' | 'de_DE' | string;
|
||||
paths: GamePaths;
|
||||
metadata: GameMetadata;
|
||||
}
|
||||
export declare function projectPath(relativeOrAbsolutePath: string): string;
|
||||
export declare function loadGameConfig(configPath: string, engine: EngineName): GameEngineConfig;
|
||||
export declare function ensureConfiguredAssetDirectories(config: GameEngineConfig): void;
|
||||
export declare function clientGameConfig(config: GameEngineConfig): {
|
||||
engine: string;
|
||||
locale: string;
|
||||
metadata: GameMetadata;
|
||||
assets: {
|
||||
music: string;
|
||||
sfx: string;
|
||||
sounds: string;
|
||||
images: string;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user