UNPKG

patchwork-mapconverter

Version:

Executable wrapper for https://github.com/ChiefOfGxBxL/WC3MapTranslator

20 lines (19 loc) 943 B
/// <reference types="node" /> import { type TriggerContainer } from './data/TriggerContainer'; import { type ScriptContent } from './data/properties/ScriptContent'; import { type WarResult, type JsonResult } from '../wc3maptranslator/CommonInterfaces'; import { type Translator } from '../wc3maptranslator/translators'; interface TriggerTranslatorOutput { roots: TriggerContainer[]; scriptReferences: Array<ScriptContent | null>; } export declare class TriggersTranslator implements Translator<TriggerTranslatorOutput> { private static instance; private constructor(); static getInstance(): TriggersTranslator; static jsonToWar(triggers: TriggerTranslatorOutput): WarResult; static warToJson(buffer: Buffer): JsonResult<TriggerTranslatorOutput>; jsonToWar(json: TriggerTranslatorOutput): WarResult; warToJson(buffer: Buffer): JsonResult<TriggerTranslatorOutput>; } export type { TriggerTranslatorOutput };