27 lines
869 B
TypeScript
27 lines
869 B
TypeScript
export interface PackOptions {
|
|
/** Path to the folder containing character assets. */
|
|
input: string;
|
|
/** Path where atlases and character.json should be written. */
|
|
output: string;
|
|
/** Path to overrides JSON. Defaults to `<input>/character.config.json` if present. */
|
|
config?: string;
|
|
/** Max atlas dimension in pixels. Default 2048. */
|
|
maxAtlasSize?: number;
|
|
/** Report what would be done without writing files. */
|
|
dryRun?: boolean;
|
|
}
|
|
|
|
export interface PackResult {
|
|
ok: boolean;
|
|
/** Populated on success. */
|
|
characterConfig?: unknown;
|
|
/** Populated on failure. */
|
|
errors?: Array<{ path: string; message: string }>;
|
|
/** Non-fatal issues. */
|
|
warnings?: string[];
|
|
}
|
|
|
|
export async function pack(_options: PackOptions): Promise<PackResult> {
|
|
throw new Error("shimejic-packer: not implemented yet");
|
|
}
|