import { Action, ActionTextGroup, ActionContext, ButtonName, StickName, ActionPlayer } from 'ts-combo-script'; export interface PadElements { actionUpButton: HTMLElement; actionRightButton: HTMLElement; actionDownButton: HTMLElement; actionLeftButton: HTMLElement; leftStick: HTMLElement; rightStick: HTMLElement; crossUp: HTMLElement; crossUpArrow: HTMLElement; crossRight: HTMLElement; crossRightArrow: HTMLElement; crossDown: HTMLElement; crossDownArrow: HTMLElement; crossLeft: HTMLElement; crossLeftArrow: HTMLElement; r1: HTMLElement; r2: HTMLElement; r3: HTMLElement; l1: HTMLElement; l2: HTMLElement; l3: HTMLElement; } export interface LogElements { logContainer: HTMLElement; createStep: () => HTMLElement; createStepContent: () => HTMLElement; createArrowIcon: (target: ButtonName) => HTMLElement; createRotatedArrowIcon: (angle: number) => HTMLElement; createActionButtons: () => HTMLElement; createActionUpButton: (target: ButtonName) => HTMLElement; createActionRightButton: (target: ButtonName) => HTMLElement; createActionDownButton: (target: ButtonName) => HTMLElement; createActionLeftButton: (target: ButtonName) => HTMLElement; createOptionButton: (label: string) => HTMLElement; createStickButton: (label: string, color: string) => HTMLElement; createLabelButton: (text: string, color: string) => HTMLElement; createText: (text: string, color: string) => HTMLElement; createButton: (target: ButtonName) => HTMLElement; } export interface EffectEnv { durationRate: number; stickColor: string; stickLabelColor: string; stickLabelFontSize: number; stickLabelPosLeft: number; stickLabelPosTop: number; stickRadius: number; stickPaddingSize: number; arrowSize: number; lineStrokeColor: string; lineStrokeSize: number; showHoldingStartPopup: boolean; showHoldingEndPopup: boolean; leftStickPushColor: string; rightStickPushColor: string; } export interface ActionEffect { exec: (...args: any[]) => Promise; } export interface ButtonController { pushDown: (isHolding: boolean) => Promise; pushUp: (fromHolding: boolean) => Promise; } export interface StickController { rotate: (fromAngle: number, toAngle: number) => Promise; set: (toAngle: number, drawArrow: boolean, isHolding: boolean) => Promise; unset: (fromAngle: number) => Promise; move: (fromAngle: number, toAngle: number) => Promise; touch: () => Promise; } export interface ActionController { reset: () => void; onAndActionsStart: (actions: Action[], context: ActionContext) => void; onAndActionsEnd: (actions: Action[], context: ActionContext) => void; onOrActionsStart: (actions: Action[], context: ActionContext) => void; onOrActionsEnd: (actions: Action[], context: ActionContext) => void; playPushDown: (target: ButtonName, context: ActionContext) => Promise; playPushUp: (target: ButtonName, context: ActionContext) => Promise; playRotate: (target: StickName, fromAngle: number, toAngle: number, context: ActionContext) => Promise; playMove: (target: StickName, fromAngle: number, toAngle: number, context: ActionContext) => Promise; playSet: (target: StickName, toAngle: number, drawArrow: boolean, context: ActionContext) => Promise; playUnset: (target: StickName, fromAngle: number, context: ActionContext) => Promise; playTouch: (target: StickName, context: ActionContext) => Promise; playText: (text: string, group: ActionTextGroup, context: ActionContext) => Promise; } export interface PluginStore { add: (name: string, entry: Plugin) => void; get: (name: string) => Plugin | undefined; } export interface PluginEntry { name: string; plugin: Plugin; } export interface Plugin { onAction: (context: PluginContext) => Promise; onHoldStart: (context: PluginContext) => Promise; onHoldEnd: (cointext: PluginContext) => Promise; } export interface PluginContext { name: string; args: string[]; player: ActionPlayer; actionContext: ActionContext; } export interface GameCommand { name: string; category?: string; combo: string; } export interface GameEntry { title: string; commands: GameCommand[]; } export interface GameLoader { load: (name: string) => Promise; } //# sourceMappingURL=types.d.ts.map