@wwawing/engine 0.0.0-exe-chousa.based-on.3.12.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +11 -0
- package/debug/index.pug +22 -0
- package/debug/make-debug-pages.ts +88 -0
- package/debug/maps-config.ts +14 -0
- package/lib/json_api_client/index.d.ts +12 -0
- package/lib/wwa.js +21 -0
- package/lib/wwa_camera.d.ts +20 -0
- package/lib/wwa_cgmanager.d.ts +51 -0
- package/lib/wwa_data.d.ts +578 -0
- package/lib/wwa_encryption.d.ts +4 -0
- package/lib/wwa_estimate_battle.d.ts +13 -0
- package/lib/wwa_expression/__tests__/value-assign-operation.d.ts +1 -0
- package/lib/wwa_expression/eval.d.ts +5 -0
- package/lib/wwa_expression/index.d.ts +11 -0
- package/lib/wwa_expression/parsers.d.ts +3 -0
- package/lib/wwa_expression/regexp.d.ts +11 -0
- package/lib/wwa_expression/typedef.d.ts +57 -0
- package/lib/wwa_expression/value-assign-operation.d.ts +22 -0
- package/lib/wwa_inject_html.d.ts +2 -0
- package/lib/wwa_input.d.ts +129 -0
- package/lib/wwa_item_menu.d.ts +20 -0
- package/lib/wwa_main.d.ts +331 -0
- package/lib/wwa_message.d.ts +241 -0
- package/lib/wwa_monster.d.ts +19 -0
- package/lib/wwa_motion.d.ts +29 -0
- package/lib/wwa_parts_player.d.ts +169 -0
- package/lib/wwa_password_window.d.ts +28 -0
- package/lib/wwa_play_time.d.ts +8 -0
- package/lib/wwa_save/WWACompress.d.ts +36 -0
- package/lib/wwa_save/WWASave.d.ts +27 -0
- package/lib/wwa_save/WWASaveData.d.ts +20 -0
- package/lib/wwa_save/WWASaveDataDB.d.ts +5 -0
- package/lib/wwa_save/WWASaveDataDBList.d.ts +31 -0
- package/lib/wwa_save/WWASaveDataList.d.ts +6 -0
- package/lib/wwa_save/WWASaveDataLog.d.ts +3 -0
- package/lib/wwa_save/WWASaveDataLogList.d.ts +14 -0
- package/lib/wwa_save/common/definitions.d.ts +11 -0
- package/lib/wwa_save/common/index.d.ts +2 -0
- package/lib/wwa_save/common/mapDataRevisionKey.d.ts +1 -0
- package/lib/wwa_save/index.d.ts +6 -0
- package/lib/wwa_save/migrators/index.d.ts +2 -0
- package/lib/wwa_save/migrators/migrate-gameover-policy.d.ts +2 -0
- package/lib/wwa_sound.d.ts +26 -0
- package/lib/wwa_util.d.ts +11 -0
- package/lib/wwa_vardump/api.d.ts +8 -0
- package/lib/wwa_vardump/index.d.ts +9 -0
- package/lib/wwa_vardump/named-user-variable/api.d.ts +1 -0
- package/lib/wwa_vardump/named-user-variable/index.d.ts +1 -0
- package/lib/wwa_vardump/numbered-user-variable/api.d.ts +3 -0
- package/lib/wwa_vardump/numbered-user-variable/index.d.ts +1 -0
- package/lib/wwa_vardump/user-variable/user-variable-card/index.d.ts +11 -0
- package/lib/wwa_vardump/user-variable/user-variable-label/index.d.ts +3 -0
- package/lib/wwa_vardump/user-variable/user-variable-list/index.d.ts +14 -0
- package/lib/wwa_vardump/user-variable/user-variable-list-section/header/index.d.ts +13 -0
- package/lib/wwa_vardump/user-variable/user-variable-list-section/header/information/index.d.ts +3 -0
- package/lib/wwa_vardump/user-variable/user-variable-list-section/index.d.ts +8 -0
- package/package.json +83 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare class Sound {
|
|
2
|
+
private id;
|
|
3
|
+
private fileName;
|
|
4
|
+
private audioContext;
|
|
5
|
+
private audioGain;
|
|
6
|
+
private audioBuffer;
|
|
7
|
+
private bufferSources;
|
|
8
|
+
private isLoaded;
|
|
9
|
+
private isExceededMaxRetryCount?;
|
|
10
|
+
private delayBgmTimeoutId;
|
|
11
|
+
constructor(id: number, fileName: string, audioContext: AudioContext, audioGain: GainNode);
|
|
12
|
+
private fetchSoundFile;
|
|
13
|
+
private getArrayBuffer;
|
|
14
|
+
private load;
|
|
15
|
+
private retry;
|
|
16
|
+
private setData;
|
|
17
|
+
private cancelLoad;
|
|
18
|
+
play(delayDurationMs?: number): void;
|
|
19
|
+
pause(): void;
|
|
20
|
+
isBgm(): boolean;
|
|
21
|
+
hasData(): boolean;
|
|
22
|
+
isPlaying(): boolean;
|
|
23
|
+
isLoading(): boolean;
|
|
24
|
+
isError(): boolean;
|
|
25
|
+
private disposeBufferSource;
|
|
26
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Coord } from "./wwa_data";
|
|
2
|
+
export declare var $id: (id: string) => HTMLElement;
|
|
3
|
+
export declare var $class: (className: string) => HTMLCollectionOf<Element>;
|
|
4
|
+
export declare var $tag: (tagName: string) => HTMLCollectionOf<Element>;
|
|
5
|
+
export declare var $qs: (selector: string) => Element;
|
|
6
|
+
export declare var $qsh: (selector: string) => HTMLElement;
|
|
7
|
+
export declare var $qsAll: (selector: string) => NodeList;
|
|
8
|
+
export declare var $localPos: (mouseX: number, mouseY: number) => Coord;
|
|
9
|
+
export declare var $escapedURI: (uri: string) => string;
|
|
10
|
+
export declare var arr2str4save: (x: any) => string;
|
|
11
|
+
export declare const reverse: (str: string) => string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as NamedUserVariable from "./named-user-variable/api";
|
|
2
|
+
import * as NumberedUserVariable from "./numbered-user-variable/api";
|
|
3
|
+
export { NamedUserVariable, NumberedUserVariable };
|
|
4
|
+
export declare function updateAllVariables({ dumpElement, namedUserVar, userVar }: {
|
|
5
|
+
dumpElement: HTMLElement;
|
|
6
|
+
namedUserVar?: Map<string, string | number | boolean>;
|
|
7
|
+
userVar?: (string | number | boolean)[];
|
|
8
|
+
}): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as UserVariableListSection from "./user-variable/user-variable-list-section";
|
|
2
|
+
export * as Api from "./api";
|
|
3
|
+
export * as UserVariableCard from "./user-variable/user-variable-card";
|
|
4
|
+
export * as UserVariableLabel from "./user-variable/user-variable-label";
|
|
5
|
+
export * as UserVariableList from "./user-variable/user-variable-list";
|
|
6
|
+
export * as NumberedUserVariable from "./numbered-user-variable";
|
|
7
|
+
export { UserVariableListSection };
|
|
8
|
+
export declare const CLASS_NAME = "wwa-vardump-wrapper";
|
|
9
|
+
export declare function setup(dumpElmQuery: string): HTMLElement | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function updateValues(dumpElement: HTMLElement | undefined | null, userVar: Map<string, number | string | boolean>): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Api from "./api";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function updateValues(dumpElement: HTMLElement | undefined | null, userVar: (number | string | boolean)[]): void;
|
|
2
|
+
export declare function updateLabels(dumpElement: HTMLElement | undefined | null, userVarNameList: string[]): void;
|
|
3
|
+
export declare function updateInformation(dumpElement: HTMLElement | undefined | null, content: string, isError?: boolean): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Api from "./api";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type Kind = "numbered" | "named";
|
|
2
|
+
export interface Props {
|
|
3
|
+
index: number | string;
|
|
4
|
+
value?: number | string | boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const CLASS_NAME = "user-variable-card";
|
|
7
|
+
export declare function createElement({ index, value }: Props): HTMLElement;
|
|
8
|
+
export declare function setupLabel(element: HTMLElement, labelElement: HTMLElement): void;
|
|
9
|
+
export declare function setValue(element: HTMLElement, value?: number | string | boolean): void;
|
|
10
|
+
export declare function clearValue(element: HTMLElement): void;
|
|
11
|
+
export declare function getLabelElement(element: HTMLElement): HTMLElement | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as UserVariableCard from "../user-variable-card";
|
|
2
|
+
export declare const CLASS_NAME = "user-variable-list";
|
|
3
|
+
export interface Props {
|
|
4
|
+
kind: UserVariableCard.Kind;
|
|
5
|
+
}
|
|
6
|
+
export declare function createElement({ kind }: Props): HTMLElement;
|
|
7
|
+
export declare function createListItemElement({ index, value, }: {
|
|
8
|
+
index: number | string;
|
|
9
|
+
value?: number | string | boolean;
|
|
10
|
+
}): HTMLLIElement;
|
|
11
|
+
export declare function appendNewListItemElement(element: HTMLElement, { index, value }: {
|
|
12
|
+
index: number | string;
|
|
13
|
+
value: number | string | boolean;
|
|
14
|
+
}): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as Information from "./information";
|
|
2
|
+
export { Information };
|
|
3
|
+
export interface Props {
|
|
4
|
+
heading: {
|
|
5
|
+
text: string;
|
|
6
|
+
};
|
|
7
|
+
contentVisibilityToggleButton: {
|
|
8
|
+
onClick?: (ev: MouseEvent) => any;
|
|
9
|
+
};
|
|
10
|
+
information?: Record<never, never>;
|
|
11
|
+
}
|
|
12
|
+
export declare function createElement({ heading, contentVisibilityToggleButton, information, }: Props): HTMLElement;
|
|
13
|
+
export declare function setContentVisibilityToggleButtonText(element: HTMLElement, active: boolean): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as Header from "./header";
|
|
2
|
+
import type * as UserVariableCard from "../user-variable-card";
|
|
3
|
+
export declare const CLASS_NAME = "user-variable-list-section";
|
|
4
|
+
export { Header };
|
|
5
|
+
export interface Props {
|
|
6
|
+
kind: UserVariableCard.Kind;
|
|
7
|
+
}
|
|
8
|
+
export declare function createElement({ kind }: Props): HTMLElement;
|
package/package.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wwawing/engine",
|
|
3
|
+
"version": "0.0.0-exe-chousa.based-on.3.12.21",
|
|
4
|
+
"description": "World Wide Adventure: an RPG Engine.",
|
|
5
|
+
"main": "./lib/wwa.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"debug",
|
|
8
|
+
"lib"
|
|
9
|
+
],
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "jest",
|
|
13
|
+
"start": "run-p build:dev deploy:dev server",
|
|
14
|
+
"build": "npm-run-all clean build:prod",
|
|
15
|
+
"build:prod": "webpack --config webpack.config.prod.ts",
|
|
16
|
+
"build:dev": "webpack -w",
|
|
17
|
+
"deploy:prod": "shx mkdir -p lib && run-p deploy:common:* deploy:prod:*",
|
|
18
|
+
"deploy:dev": "shx mkdir -p lib && run-p deploy:common:* deploy:dev:*",
|
|
19
|
+
"deploy:common:audio": "shx cp -R ../../node_modules/@wwawing/assets/audio lib/",
|
|
20
|
+
"deploy:common:images": "shx cp ../../node_modules/@wwawing/assets/images/*.* lib/",
|
|
21
|
+
"deploy:common:mapdata": "shx cp ../../node_modules/@wwawing/assets/mapdata/*.* lib/",
|
|
22
|
+
"deploy:common:vars": "shx cp ../../node_modules/@wwawing/assets/vars/*.* lib/",
|
|
23
|
+
"deploy:common:style": "shx cp ../../node_modules/@wwawing/styles/output/*.* lib/ && shx cp ../../node_modules/@wwawing/assets/style/*.* lib/",
|
|
24
|
+
"deploy:prod:html": "ts-node ./debug/make-debug-pages",
|
|
25
|
+
"deploy:dev:html": "ts-node ./debug/make-debug-pages dev",
|
|
26
|
+
"clean": "shx rm -rf lib",
|
|
27
|
+
"server": "node ./launch-server lib"
|
|
28
|
+
},
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/WWAWing/WWAWing.git",
|
|
32
|
+
"directory": "packages/engine"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"wwa",
|
|
36
|
+
"typescript"
|
|
37
|
+
],
|
|
38
|
+
"author": "WWA Wing Team",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/WWAWing/WWAWing/issues"
|
|
42
|
+
},
|
|
43
|
+
"homepage": "https://github.com/WWAWing/WWAWing#readme",
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@swc/core": "^1.10.4",
|
|
46
|
+
"@swc/jest": "^0.2.37",
|
|
47
|
+
"@types/crypto-js": "^4.1.1",
|
|
48
|
+
"@types/jest": "^29.5.1",
|
|
49
|
+
"@types/pug": "^2.0.6",
|
|
50
|
+
"@types/terser-webpack-plugin": "^5.2.0",
|
|
51
|
+
"@types/webpack": "^5.28.0",
|
|
52
|
+
"@wwawing/assets": "^0.0.0-exe-chousa.based-on.3.12.21",
|
|
53
|
+
"@wwawing/common-interface": "^0.0.0-exe-chousa.based-on.3.12.21",
|
|
54
|
+
"@wwawing/debug-server": "^0.0.0-exe-chousa.based-on.3.12.21",
|
|
55
|
+
"@wwawing/event-emitter": "^0.0.0-exe-chousa.based-on.3.12.21",
|
|
56
|
+
"@wwawing/loader": "^0.0.0-exe-chousa.based-on.3.12.21",
|
|
57
|
+
"@wwawing/page-generator": "^0.0.0-exe-chousa.based-on.3.12.21",
|
|
58
|
+
"@wwawing/styles": "^0.0.0-exe-chousa.based-on.3.12.21",
|
|
59
|
+
"@wwawing/virtual-pad": "^0.0.0-exe-chousa.based-on.3.12.21",
|
|
60
|
+
"crypto-js": "^4.1.1",
|
|
61
|
+
"jest": "^29.5.0",
|
|
62
|
+
"jest-cli": "^29.5.0",
|
|
63
|
+
"jest-environment-jsdom": "^29.5.0",
|
|
64
|
+
"npm-run-all2": "^8.0.1",
|
|
65
|
+
"pug": "^3.0.2",
|
|
66
|
+
"shelljs": "^0.9.2",
|
|
67
|
+
"shx": "^0.4.0",
|
|
68
|
+
"terser-webpack-plugin": "^5.3.9",
|
|
69
|
+
"ts-loader": "^9.5.2",
|
|
70
|
+
"ts-node": "^10.9.2",
|
|
71
|
+
"typescript": "^5.8.3",
|
|
72
|
+
"webpack": "^5.83.1",
|
|
73
|
+
"webpack-cli": "^5.1.1"
|
|
74
|
+
},
|
|
75
|
+
"publishConfig": {
|
|
76
|
+
"access": "public"
|
|
77
|
+
},
|
|
78
|
+
"engines": {
|
|
79
|
+
"node": ">=22",
|
|
80
|
+
"npm": ">=11"
|
|
81
|
+
},
|
|
82
|
+
"gitHead": "b52982378576ed3ef7223fae8457a7923eba7ace"
|
|
83
|
+
}
|