skynovel
Version:
webgl novelgame framework
50 lines (49 loc) • 2.08 kB
TypeScript
/// <reference types="node" />
import { IConfig, IHTag, ITag, IVariable, IFn2Path, ISysBase, IData4Vari, HPlugin, HSysBaseArg, ILayerFactory, IMain } from './CmnInterface';
import { Application } from 'pixi.js';
export declare class SysBase implements ISysBase {
protected readonly hPlg: HPlugin;
protected readonly arg: HSysBaseArg;
hFactoryCls: {
[name: string]: ILayerFactory;
};
constructor(hPlg: HPlugin, arg: HSysBaseArg);
get cur(): string;
get crypto(): boolean;
fetch: (url: string) => Promise<Response>;
resolution: number;
reso4frame: number;
loadPathAndVal(_hPathFn2Exts: IFn2Path, _fncLoaded: () => void, _cfg: IConfig): void;
protected data: {
sys: {};
mark: {};
kidoku: {};
};
initVal(_data: IData4Vari, _hTmp: any, _comp: (data: IData4Vari) => void): void;
flush(): void;
protected val: IVariable;
protected appPixi: Application;
init(cfg: IConfig, hTag: IHTag, appPixi: Application, val: IVariable, main: IMain): void;
protected readonly close: ITag;
protected readonly navigate_to: ITag;
protected readonly title: ITag;
protected tgl_full_scr: ITag;
protected readonly update_check: ITag;
protected readonly window: ITag;
pre: (_ext: string, data: string) => Promise<string>;
protected enc: (data: string) => Promise<string>;
protected stk: () => string;
hash: (_data: string) => string;
protected readonly isApp: () => boolean;
protected $path_desktop: string;
get path_desktop(): string;
protected $path_userdata: string;
get path_userdata(): string;
readonly existsSync: (_path: string) => boolean;
readonly writeFile: (_file: string | number | Buffer, _data: any, _callback: (err: NodeJS.ErrnoException) => void) => void;
readonly savePic: (_fn: string, _data_url: string) => void;
readonly appendFile: (_path: string, _data: any, _callback: (err: NodeJS.ErrnoException) => void) => void;
ofsLeft4frm: number;
ofsTop4frm: number;
protected resizeFrames(): void;
}