@drincs/pixi-vn-ink
Version:
Pixi'VN gives you the ability to write your own narrative using Ink
34 lines (31 loc) • 1.59 kB
text/typescript
import { StepLabelPropsType } from '@drincs/pixi-vn';
import { PixiVNJsonLabelStep, PixiVNJsonOperation } from '@drincs/pixi-vn-json';
declare class HashtagScriptManager {
private static _customHashtagScript;
private static runCustomHashtagScript;
static set customHashtagScript(value: (script: string[], props: StepLabelPropsType, convertListStringToObj: (listParm: string[]) => object) => boolean | string);
static generateOrRunOperationFromHashtagScript(comment: string, step: PixiVNJsonLabelStep, props: StepLabelPropsType): Promise<PixiVNJsonOperation | undefined>;
private static getCanvasOperationFromComment;
private static getImageOperationFromComment;
private static getContainerOperationFromComment;
private static getSoundOperationFromComment;
private static setShowProps;
private static getTransition;
private static getSoundOption;
private static getSoundPlayOptions;
/**
* For example:
* Into Ink text:
* duration 3 name "C J" surname Smith position "{ x: 2, y 3 }"
* into string list:
* ["duration", "3", "x", "2", "y", "3", "name", "C J", "surname", "Smith", "position", "{ x: 2, y 3 }"]
* into object:
* { "duration": 3, "x": 2, "y": 3, "name": "C J", "surname": "Smith", "position": { x: 2, y 3 } }
*/
private static convertListStringToObj;
private static convertListStringToPropList;
private static convertPropListStringToObj;
private static removeExtraDoubleQuotes;
private static containExtraDoubleQuotes;
}
export { HashtagScriptManager as default };