@wwawing/engine 4.0.0 → 4.0.2
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 +2 -2
- package/debug/make-debug-pages.ts +4 -3
- package/debug/maps-config.ts +1 -0
- package/lib/wwa.js +246 -21
- package/package.json +28 -29
- package/lib/__tests__/wwa_util-test.d.ts +0 -1
- package/lib/json_api_client/index.d.ts +0 -12
- package/lib/load_script_file/index.d.ts +0 -6
- package/lib/wwa_camera.d.ts +0 -20
- package/lib/wwa_cgmanager.d.ts +0 -51
- package/lib/wwa_data/options.d.ts +0 -2
- package/lib/wwa_data/typedef.d.ts +0 -20
- package/lib/wwa_data.d.ts +0 -591
- package/lib/wwa_encryption.d.ts +0 -4
- package/lib/wwa_estimate_battle.d.ts +0 -14
- package/lib/wwa_expression/__tests__/value-assign-operation.d.ts +0 -1
- package/lib/wwa_expression/eval.d.ts +0 -5
- package/lib/wwa_expression/index.d.ts +0 -11
- package/lib/wwa_expression/parsers.d.ts +0 -3
- package/lib/wwa_expression/regexp.d.ts +0 -11
- package/lib/wwa_expression/typedef.d.ts +0 -57
- package/lib/wwa_expression/value-assign-operation.d.ts +0 -22
- package/lib/wwa_expression2/acorn.d.ts +0 -111
- package/lib/wwa_expression2/converter.d.ts +0 -4
- package/lib/wwa_expression2/eval.d.ts +0 -73
- package/lib/wwa_expression2/index.d.ts +0 -4
- package/lib/wwa_expression2/typedef.d.ts +0 -9
- package/lib/wwa_expression2/wwa.d.ts +0 -150
- package/lib/wwa_inject_html.d.ts +0 -2
- package/lib/wwa_input.d.ts +0 -140
- package/lib/wwa_item_menu.d.ts +0 -20
- package/lib/wwa_macro.d.ts +0 -76
- package/lib/wwa_main.d.ts +0 -394
- package/lib/wwa_message/_internal/index.d.ts +0 -32
- package/lib/wwa_message/data/index.d.ts +0 -18
- package/lib/wwa_message/data/node.d.ts +0 -46
- package/lib/wwa_message/data/page.d.ts +0 -13
- package/lib/wwa_message/index.d.ts +0 -10
- package/lib/wwa_message/typedef.d.ts +0 -5
- package/lib/wwa_monster.d.ts +0 -21
- package/lib/wwa_motion.d.ts +0 -29
- package/lib/wwa_parts_player.d.ts +0 -173
- package/lib/wwa_password_window.d.ts +0 -28
- package/lib/wwa_play_time.d.ts +0 -8
- package/lib/wwa_save/WWACompress.d.ts +0 -36
- package/lib/wwa_save/WWASave.d.ts +0 -27
- package/lib/wwa_save/WWASaveData.d.ts +0 -20
- package/lib/wwa_save/WWASaveDataDB.d.ts +0 -5
- package/lib/wwa_save/WWASaveDataDBList.d.ts +0 -31
- package/lib/wwa_save/WWASaveDataList.d.ts +0 -6
- package/lib/wwa_save/WWASaveDataLog.d.ts +0 -3
- package/lib/wwa_save/WWASaveDataLogList.d.ts +0 -14
- package/lib/wwa_save/common/definitions.d.ts +0 -11
- package/lib/wwa_save/common/index.d.ts +0 -2
- package/lib/wwa_save/common/mapDataRevisionKey.d.ts +0 -1
- package/lib/wwa_save/index.d.ts +0 -6
- package/lib/wwa_save/migrators/index.d.ts +0 -2
- package/lib/wwa_save/migrators/migrate-gameover-policy.d.ts +0 -2
- package/lib/wwa_sound.d.ts +0 -26
- package/lib/wwa_util.d.ts +0 -14
- package/lib/wwa_vardump/api.d.ts +0 -8
- package/lib/wwa_vardump/index.d.ts +0 -9
- package/lib/wwa_vardump/named-user-variable/api.d.ts +0 -1
- package/lib/wwa_vardump/named-user-variable/index.d.ts +0 -1
- package/lib/wwa_vardump/numbered-user-variable/api.d.ts +0 -3
- package/lib/wwa_vardump/numbered-user-variable/index.d.ts +0 -1
- package/lib/wwa_vardump/user-variable/user-variable-card/index.d.ts +0 -10
- package/lib/wwa_vardump/user-variable/user-variable-label/index.d.ts +0 -3
- package/lib/wwa_vardump/user-variable/user-variable-list/index.d.ts +0 -14
- package/lib/wwa_vardump/user-variable/user-variable-list-section/header/index.d.ts +0 -13
- package/lib/wwa_vardump/user-variable/user-variable-list-section/header/information/index.d.ts +0 -3
- package/lib/wwa_vardump/user-variable/user-variable-list-section/index.d.ts +0 -8
- package/lib/wwa_window.d.ts +0 -97
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface VariableAssignOperation {
|
|
2
|
-
assignee: "variable";
|
|
3
|
-
index: number;
|
|
4
|
-
rawValue: number;
|
|
5
|
-
}
|
|
6
|
-
export interface CoordAssignOperation {
|
|
7
|
-
assignee: "map" | "mapObject";
|
|
8
|
-
x: number;
|
|
9
|
-
y: number;
|
|
10
|
-
rawValue: number;
|
|
11
|
-
}
|
|
12
|
-
export interface ItemAssignOperation {
|
|
13
|
-
assignee: "item";
|
|
14
|
-
boxIndex1to12: number;
|
|
15
|
-
rawValue: number;
|
|
16
|
-
}
|
|
17
|
-
export interface NoExtraArgumentValueeAssignOperation {
|
|
18
|
-
assignee: "energy" | "energyMax" | "strength" | "defence" | "gold" | "moveCount" | "playerDirection";
|
|
19
|
-
rawValue: number;
|
|
20
|
-
}
|
|
21
|
-
export type ValueAssignOperation = VariableAssignOperation | CoordAssignOperation | ItemAssignOperation | NoExtraArgumentValueeAssignOperation;
|
|
22
|
-
export declare function generateValueAssignOperation(calcResult: number, assigneeExpression: string): ValueAssignOperation;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { parse, type Node } from "acorn";
|
|
2
|
-
export { parse, Node };
|
|
3
|
-
export interface Program extends Node {
|
|
4
|
-
type: "Program";
|
|
5
|
-
body: Node[];
|
|
6
|
-
}
|
|
7
|
-
export interface ExpressionStatement extends Node {
|
|
8
|
-
type: "ExpressionStatement";
|
|
9
|
-
expression: Node;
|
|
10
|
-
}
|
|
11
|
-
export interface AssignmentExpression extends Node {
|
|
12
|
-
type: "AssignmentExpression";
|
|
13
|
-
operator: string;
|
|
14
|
-
left: Node;
|
|
15
|
-
right: Node;
|
|
16
|
-
}
|
|
17
|
-
export interface MemberExpression extends Node {
|
|
18
|
-
type: "MemberExpression";
|
|
19
|
-
object: Node;
|
|
20
|
-
property: Node;
|
|
21
|
-
}
|
|
22
|
-
export interface UnaryExpression extends Node {
|
|
23
|
-
type: "UnaryExpression";
|
|
24
|
-
operator: string;
|
|
25
|
-
argument: Node;
|
|
26
|
-
}
|
|
27
|
-
export interface BinaryExpression extends Node {
|
|
28
|
-
type: "BinaryExpression";
|
|
29
|
-
operator: string;
|
|
30
|
-
left: Node;
|
|
31
|
-
right: Node;
|
|
32
|
-
}
|
|
33
|
-
export interface Identifier extends Node {
|
|
34
|
-
type: "Identifier";
|
|
35
|
-
name: string;
|
|
36
|
-
}
|
|
37
|
-
export interface Literal extends Node {
|
|
38
|
-
type: "Literal";
|
|
39
|
-
value: number;
|
|
40
|
-
}
|
|
41
|
-
export interface CallExpression extends Node {
|
|
42
|
-
type: "CallExpression";
|
|
43
|
-
arguments: Literal[];
|
|
44
|
-
callee: Identifier;
|
|
45
|
-
}
|
|
46
|
-
export interface IfStatement extends Node {
|
|
47
|
-
type: "IfStatement";
|
|
48
|
-
consequent: Node;
|
|
49
|
-
test: Node;
|
|
50
|
-
alternate?: IfStatement;
|
|
51
|
-
}
|
|
52
|
-
export interface BlockStatement extends Node {
|
|
53
|
-
type: "BlockStatement";
|
|
54
|
-
body: Node[];
|
|
55
|
-
}
|
|
56
|
-
export interface FunctionDeclaration extends Node {
|
|
57
|
-
type: "FunctionDeclaration";
|
|
58
|
-
body: BlockStatement;
|
|
59
|
-
id: Identifier;
|
|
60
|
-
}
|
|
61
|
-
export interface ForStatement extends Node {
|
|
62
|
-
type: "ForStatement";
|
|
63
|
-
body: BlockStatement;
|
|
64
|
-
init: Node;
|
|
65
|
-
test: Node;
|
|
66
|
-
update: Node;
|
|
67
|
-
}
|
|
68
|
-
export interface UpdateExpression extends Node {
|
|
69
|
-
type: "UpdateExpression";
|
|
70
|
-
operator: string;
|
|
71
|
-
argument: Node;
|
|
72
|
-
}
|
|
73
|
-
export interface LogicalExpression extends Node {
|
|
74
|
-
type: "LogicalExpression";
|
|
75
|
-
operator: string;
|
|
76
|
-
left: Node;
|
|
77
|
-
right: Node;
|
|
78
|
-
}
|
|
79
|
-
export interface BreakStatement extends Node {
|
|
80
|
-
label: string;
|
|
81
|
-
type: "BreakExpression";
|
|
82
|
-
}
|
|
83
|
-
export interface ReturnStatement extends Node {
|
|
84
|
-
type: "ReturnStatement";
|
|
85
|
-
argument?: Node;
|
|
86
|
-
}
|
|
87
|
-
export interface ContinueStatement extends Node {
|
|
88
|
-
label: string;
|
|
89
|
-
type: "ContinueExpression";
|
|
90
|
-
}
|
|
91
|
-
export interface TemplateLiteral extends Node {
|
|
92
|
-
label: string;
|
|
93
|
-
type: "TemplateLiteral";
|
|
94
|
-
expressions: Node[];
|
|
95
|
-
quasis: Node[];
|
|
96
|
-
}
|
|
97
|
-
export interface TemplateElement extends Node {
|
|
98
|
-
label: string;
|
|
99
|
-
type: "TemplateElement";
|
|
100
|
-
value: {
|
|
101
|
-
cooked: string;
|
|
102
|
-
raw: string;
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
export interface ConditionalExpression extends Node {
|
|
106
|
-
label: string;
|
|
107
|
-
type: "ConditionalExpression";
|
|
108
|
-
test: Node;
|
|
109
|
-
consequent: Node;
|
|
110
|
-
alternate: Node;
|
|
111
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { BattleEstimateParameters, Coord, PartsType } from "../wwa_data";
|
|
2
|
-
import { WWA } from "../wwa_main";
|
|
3
|
-
import * as Wwa from "./wwa";
|
|
4
|
-
import { PageAdditionalItem } from "./typedef";
|
|
5
|
-
export declare class EvalCalcWwaNodeGenerator {
|
|
6
|
-
wwa: WWA;
|
|
7
|
-
loop_limit: number;
|
|
8
|
-
state: {
|
|
9
|
-
readonly triggerParts?: {
|
|
10
|
-
id?: number;
|
|
11
|
-
type?: PartsType;
|
|
12
|
-
position?: Coord;
|
|
13
|
-
};
|
|
14
|
-
readonly earnedItem?: {
|
|
15
|
-
partsId?: number;
|
|
16
|
-
itemPos1To12?: number;
|
|
17
|
-
};
|
|
18
|
-
readonly battleDamageCalculation?: {
|
|
19
|
-
aborted?: boolean;
|
|
20
|
-
estimatingParams?: BattleEstimateParameters;
|
|
21
|
-
};
|
|
22
|
-
messagePageAdditionalQueue: PageAdditionalItem[];
|
|
23
|
-
};
|
|
24
|
-
constructor(wwa: WWA);
|
|
25
|
-
setTriggerParts(partsId: number, partsType: PartsType, position: Coord): void;
|
|
26
|
-
clearTemporaryState(): void;
|
|
27
|
-
setEarnedItem(partsId: number, itemPos1To12: number): void;
|
|
28
|
-
clearEarnedItem(): void;
|
|
29
|
-
setBattleDamageCalculationMode(estimatingParams: BattleEstimateParameters): void;
|
|
30
|
-
clearBattleDamageCalculationMode(): void;
|
|
31
|
-
evalWwaNodes(nodes: Wwa.WWANode[]): any;
|
|
32
|
-
evalWwaNode(node: Wwa.WWANode): any;
|
|
33
|
-
addPageAdditionalItem(item: PageAdditionalItem): void;
|
|
34
|
-
pickPageAdditionalQueue(): PageAdditionalItem[];
|
|
35
|
-
updateLoopLimit(limit: number): void;
|
|
36
|
-
}
|
|
37
|
-
export declare class EvalCalcWwaNode {
|
|
38
|
-
generator: EvalCalcWwaNodeGenerator;
|
|
39
|
-
private for_id;
|
|
40
|
-
constructor(generator: EvalCalcWwaNodeGenerator);
|
|
41
|
-
evalWwaNodes(nodes: Wwa.WWANode[]): any;
|
|
42
|
-
evalWwaNode(node: Wwa.WWANode): any;
|
|
43
|
-
private wrapCallFunction;
|
|
44
|
-
callDefinedFunction(node: Wwa.CallDefinedFunction): any;
|
|
45
|
-
updateExpression(node: Wwa.UpdateExpression): any;
|
|
46
|
-
logicalExpression(node: Wwa.LogicalExpression): any;
|
|
47
|
-
convertTemplateLiteral(node: Wwa.TemplateLiteral): string;
|
|
48
|
-
contunueStatment(node: Wwa.Continue): void;
|
|
49
|
-
breakStatement(node: Wwa.Break): void;
|
|
50
|
-
returnStatement(node: Wwa.Return): any;
|
|
51
|
-
forStateMent(node: Wwa.ForStatement): void;
|
|
52
|
-
private _checkArgsLength;
|
|
53
|
-
evalAnyFunction(node: Wwa.AnyFunction): any;
|
|
54
|
-
private resolveSystemMessageKeyFromMacroArg;
|
|
55
|
-
partsAssignment(node: Wwa.PartsAssignment): void;
|
|
56
|
-
private resolveParts;
|
|
57
|
-
blockStatement(node: Wwa.BlockStatement): any;
|
|
58
|
-
ifStatement(node: Wwa.IfStatement): any;
|
|
59
|
-
convertConditionalExpression(node: Wwa.ConditionalExpression): any;
|
|
60
|
-
convertLoopPointerExpression(node: Wwa.LoopPointerAssignment): number;
|
|
61
|
-
itemAssignment(node: Wwa.ItemAssignment): any;
|
|
62
|
-
evalMessage(node: Wwa.Msg): any;
|
|
63
|
-
evalJumpgate(node: Wwa.Jumpgate): any;
|
|
64
|
-
evalRandom(node: Wwa.Random): any;
|
|
65
|
-
evalSetSpecialParameter(node: Wwa.SpecialParameterAssignment): any;
|
|
66
|
-
evalSetUserVariable(node: Wwa.UserVariableAssignment): any;
|
|
67
|
-
evalUnaryOperation(node: Wwa.UnaryOperation): any;
|
|
68
|
-
evalBinaryOperation(node: Wwa.BinaryOperation): any;
|
|
69
|
-
evalSymbol(node: Wwa.Symbol): number | number[];
|
|
70
|
-
evalArray1D(node: Wwa.Array1D): any;
|
|
71
|
-
evalArray2D(node: Wwa.Array2D): number;
|
|
72
|
-
evalNumber(node: Wwa.Literal): string | number;
|
|
73
|
-
}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
export type Calcurable = Array1D | Array2D | Literal | Symbol | UnaryOperation | BinaryOperation;
|
|
2
|
-
export declare function isCalcurable(node: WWANode): node is Calcurable;
|
|
3
|
-
export interface PartsAssignment {
|
|
4
|
-
type: "PartsAssignment";
|
|
5
|
-
partsKind: "map" | "object";
|
|
6
|
-
operator?: "+" | "-" | "*" | "/" | "%" | "+=" | "=" | "-=" | "*=" | "/=";
|
|
7
|
-
destinationX: Calcurable;
|
|
8
|
-
destinationY: Calcurable;
|
|
9
|
-
value: Calcurable;
|
|
10
|
-
}
|
|
11
|
-
export interface ItemAssignment {
|
|
12
|
-
type: "ItemAssignment";
|
|
13
|
-
itemBoxPosition1to12: Calcurable;
|
|
14
|
-
value: Calcurable;
|
|
15
|
-
operator?: "=" | "+=" | "-=" | "*=" | "/=";
|
|
16
|
-
}
|
|
17
|
-
export interface UserVariableAssignment {
|
|
18
|
-
type: "UserVariableAssignment";
|
|
19
|
-
index: Calcurable;
|
|
20
|
-
value: Calcurable;
|
|
21
|
-
operator?: "=" | "+=" | "-=" | "*=" | "/=";
|
|
22
|
-
}
|
|
23
|
-
export interface LoopPointerAssignment {
|
|
24
|
-
type: "LoopPointerAssignment";
|
|
25
|
-
index: Calcurable;
|
|
26
|
-
value: Calcurable;
|
|
27
|
-
operator?: "=" | "+=" | "-=" | "*=" | "/=";
|
|
28
|
-
}
|
|
29
|
-
export interface SpecialParameterAssignment {
|
|
30
|
-
type: "SpecialParameterAssignment";
|
|
31
|
-
kind: "PX" | "PY" | "HP" | "HPMAX" | "AT" | "DF" | "GD" | "STEP" | "TIME" | "PDIR" | "i" | "j" | "k" | "LOOPLIMIT" | "ITEM_ID" | "ITEM_POS";
|
|
32
|
-
value: Calcurable;
|
|
33
|
-
operator?: "=" | "+=" | "-=" | "*=" | "/=";
|
|
34
|
-
}
|
|
35
|
-
export interface UnaryOperation {
|
|
36
|
-
type: "UnaryOperation";
|
|
37
|
-
operator: "+" | "-" | "!";
|
|
38
|
-
argument: Calcurable;
|
|
39
|
-
}
|
|
40
|
-
export interface BinaryOperation {
|
|
41
|
-
type: "BinaryOperation";
|
|
42
|
-
operator: "+" | "-" | "*" | "/" | "%" | ">" | "<" | ">=" | "<=" | "==" | "!=";
|
|
43
|
-
left: Calcurable;
|
|
44
|
-
right: Calcurable;
|
|
45
|
-
}
|
|
46
|
-
export interface Symbol {
|
|
47
|
-
type: "Symbol";
|
|
48
|
-
name: "ITEM" | "m" | "o" | "v" | "X" | "Y" | "ID" | "TYPE" | "PX" | "PY" | "CX" | "CY" | "HP" | "HPMAX" | "AT" | "AT_TOTAL" | "DF" | "DF_TOTAL" | "GD" | "STEP" | "TIME" | "PDIR" | "i" | "j" | "k" | "LOOPLIMIT" | "ITEM_ID" | "ITEM_POS" | "ENEMY_HP" | "ENEMY_AT" | "ENEMY_DF" | "ENEMY_GD" | "LP";
|
|
49
|
-
}
|
|
50
|
-
export interface Array1D {
|
|
51
|
-
type: "Array1D";
|
|
52
|
-
name: "ITEM" | "m" | "o" | "v" | "LP";
|
|
53
|
-
index0: Calcurable;
|
|
54
|
-
}
|
|
55
|
-
export interface Array2D {
|
|
56
|
-
type: "Array2D";
|
|
57
|
-
name: "m" | "o";
|
|
58
|
-
index0: Calcurable;
|
|
59
|
-
index1: Calcurable;
|
|
60
|
-
}
|
|
61
|
-
export interface Literal {
|
|
62
|
-
type: "Literal";
|
|
63
|
-
value: number | string;
|
|
64
|
-
}
|
|
65
|
-
export interface Random {
|
|
66
|
-
type: "Random";
|
|
67
|
-
value: WWANode;
|
|
68
|
-
}
|
|
69
|
-
export interface Jumpgate {
|
|
70
|
-
type: "Jumpgate";
|
|
71
|
-
x: WWANode;
|
|
72
|
-
y: WWANode;
|
|
73
|
-
}
|
|
74
|
-
export interface Msg {
|
|
75
|
-
type: "Msg";
|
|
76
|
-
value: WWANode;
|
|
77
|
-
}
|
|
78
|
-
export interface IfStatement {
|
|
79
|
-
type: "IfStatement";
|
|
80
|
-
consequent: WWANode;
|
|
81
|
-
test: WWANode;
|
|
82
|
-
alternate?: WWANode;
|
|
83
|
-
}
|
|
84
|
-
export interface BlockStatement {
|
|
85
|
-
type: "BlockStatement";
|
|
86
|
-
value: WWANode[];
|
|
87
|
-
}
|
|
88
|
-
export interface ForStatement {
|
|
89
|
-
type: "ForStatement";
|
|
90
|
-
body: WWANode[];
|
|
91
|
-
init: WWANode;
|
|
92
|
-
test: WWANode;
|
|
93
|
-
update: WWANode;
|
|
94
|
-
}
|
|
95
|
-
export interface AnyFunction {
|
|
96
|
-
type: "AnyFunction";
|
|
97
|
-
functionName: string;
|
|
98
|
-
value: WWANode[];
|
|
99
|
-
}
|
|
100
|
-
export interface DefinedFunction {
|
|
101
|
-
type: "DefinedFunction";
|
|
102
|
-
functionName: string;
|
|
103
|
-
body: WWANode;
|
|
104
|
-
}
|
|
105
|
-
export interface CallDefinedFunction {
|
|
106
|
-
type: "CallDefinedFunction";
|
|
107
|
-
functionName: string;
|
|
108
|
-
}
|
|
109
|
-
export interface Break {
|
|
110
|
-
type: "Break";
|
|
111
|
-
label: string;
|
|
112
|
-
}
|
|
113
|
-
export interface Return {
|
|
114
|
-
type: "Return";
|
|
115
|
-
argument: WWANode;
|
|
116
|
-
}
|
|
117
|
-
export interface Continue {
|
|
118
|
-
type: "Continue";
|
|
119
|
-
label: string;
|
|
120
|
-
}
|
|
121
|
-
export interface UpdateExpression {
|
|
122
|
-
type: "UpdateExpression";
|
|
123
|
-
operator: string;
|
|
124
|
-
argument: WWANode;
|
|
125
|
-
}
|
|
126
|
-
export interface LogicalExpression {
|
|
127
|
-
type: "LogicalExpression";
|
|
128
|
-
operator: string;
|
|
129
|
-
left: WWANode;
|
|
130
|
-
right: WWANode;
|
|
131
|
-
}
|
|
132
|
-
export interface TemplateLiteral {
|
|
133
|
-
type: "TemplateLiteral";
|
|
134
|
-
expressions: WWANode[];
|
|
135
|
-
quasis: WWANode[];
|
|
136
|
-
}
|
|
137
|
-
export interface TemplateElement {
|
|
138
|
-
type: "TemplateElement";
|
|
139
|
-
value: {
|
|
140
|
-
cooked: string;
|
|
141
|
-
raw: string;
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
export interface ConditionalExpression {
|
|
145
|
-
type: "ConditionalExpression";
|
|
146
|
-
consequent: WWANode;
|
|
147
|
-
test: WWANode;
|
|
148
|
-
alternate: WWANode;
|
|
149
|
-
}
|
|
150
|
-
export type WWANode = PartsAssignment | ItemAssignment | UserVariableAssignment | SpecialParameterAssignment | UnaryOperation | BinaryOperation | Array1D | Array2D | Literal | Symbol | Random | Jumpgate | Msg | IfStatement | BlockStatement | AnyFunction | DefinedFunction | CallDefinedFunction | ForStatement | AnyFunction | Break | Continue | Return | UpdateExpression | LogicalExpression | TemplateLiteral | TemplateElement | ConditionalExpression | LoopPointerAssignment;
|
package/lib/wwa_inject_html.d.ts
DELETED
package/lib/wwa_input.d.ts
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { Direction } from "./wwa_data";
|
|
2
|
-
export declare enum KeyState {
|
|
3
|
-
NONE = 0,
|
|
4
|
-
KEYDOWN = 1,
|
|
5
|
-
KEYPRESS = 2,
|
|
6
|
-
KEYUP = 3,
|
|
7
|
-
KEYPRESS_MESSAGECHANGE = 4
|
|
8
|
-
}
|
|
9
|
-
export declare enum KeyCode {
|
|
10
|
-
KEY_ENTER = 13,
|
|
11
|
-
KEY_SHIFT = 16,
|
|
12
|
-
KEY_ESC = 27,
|
|
13
|
-
KEY_SPACE = 32,
|
|
14
|
-
KEY_LEFT = 37,
|
|
15
|
-
KEY_UP = 38,
|
|
16
|
-
KEY_RIGHT = 39,
|
|
17
|
-
KEY_DOWN = 40,
|
|
18
|
-
KEY_1 = 49,
|
|
19
|
-
KEY_2 = 50,
|
|
20
|
-
KEY_3 = 51,
|
|
21
|
-
KEY_A = 65,
|
|
22
|
-
KEY_B = 66,
|
|
23
|
-
KEY_C = 67,
|
|
24
|
-
KEY_D = 68,
|
|
25
|
-
KEY_E = 69,
|
|
26
|
-
KEY_F = 70,
|
|
27
|
-
KEY_G = 71,
|
|
28
|
-
KEY_H = 72,
|
|
29
|
-
KEY_I = 73,
|
|
30
|
-
KEY_J = 74,
|
|
31
|
-
KEY_K = 75,
|
|
32
|
-
KEY_L = 76,
|
|
33
|
-
KEY_M = 77,
|
|
34
|
-
KEY_N = 78,
|
|
35
|
-
KEY_O = 79,
|
|
36
|
-
KEY_P = 80,
|
|
37
|
-
KEY_Q = 81,
|
|
38
|
-
KEY_R = 82,
|
|
39
|
-
KEY_S = 83,
|
|
40
|
-
KEY_T = 84,
|
|
41
|
-
KEY_U = 85,
|
|
42
|
-
KEY_V = 86,
|
|
43
|
-
KEY_W = 87,
|
|
44
|
-
KEY_X = 88,
|
|
45
|
-
KEY_Y = 89,
|
|
46
|
-
KEY_Z = 90,
|
|
47
|
-
KEY_F1 = 112,
|
|
48
|
-
KEY_F2 = 113,
|
|
49
|
-
KEY_F3 = 114,
|
|
50
|
-
KEY_F4 = 115,
|
|
51
|
-
KEY_F5 = 116,
|
|
52
|
-
KEY_F6 = 117,
|
|
53
|
-
KEY_F7 = 118,
|
|
54
|
-
KEY_F8 = 119,
|
|
55
|
-
KEY_F9 = 120,
|
|
56
|
-
KEY_F10 = 121,
|
|
57
|
-
KEY_F12 = 123
|
|
58
|
-
}
|
|
59
|
-
export declare class KeyStore {
|
|
60
|
-
static KEY_BUFFER_MAX: number;
|
|
61
|
-
private _nextKeyState;
|
|
62
|
-
private _keyState;
|
|
63
|
-
private _prevKeyState;
|
|
64
|
-
private _prevKeyStateOnControllable;
|
|
65
|
-
private _keyInputContinueFrameNum;
|
|
66
|
-
checkHitKey(keyCode: KeyCode): boolean;
|
|
67
|
-
getKeyState(keyCode: KeyCode): KeyState;
|
|
68
|
-
getKeyStateForControllPlayer(keyCode: KeyCode): KeyState;
|
|
69
|
-
getKeyStateForMessageCheck(keyCode: KeyCode): KeyState;
|
|
70
|
-
setPressInfo(keyCode: KeyCode): void;
|
|
71
|
-
setReleaseInfo(keyCode: KeyCode): void;
|
|
72
|
-
update(): void;
|
|
73
|
-
memorizeKeyStateOnControllableFrame(): void;
|
|
74
|
-
allClear(): void;
|
|
75
|
-
constructor();
|
|
76
|
-
}
|
|
77
|
-
export declare enum MouseState {
|
|
78
|
-
NONE = 0,
|
|
79
|
-
MOUSEDOWN = 1,
|
|
80
|
-
MOUSEPRESS = 2,
|
|
81
|
-
MOUSEUP = 3
|
|
82
|
-
}
|
|
83
|
-
export declare enum MouseTouchIDFlag {
|
|
84
|
-
DIR_KEY = 1
|
|
85
|
-
}
|
|
86
|
-
export declare class MouseStore {
|
|
87
|
-
private _prevMouseState;
|
|
88
|
-
private _mouseState;
|
|
89
|
-
private _nextMouseState;
|
|
90
|
-
private _prevMouseStateOnControllable;
|
|
91
|
-
private _inputDir;
|
|
92
|
-
private _touchID;
|
|
93
|
-
checkClickMouse(dir?: Direction): boolean;
|
|
94
|
-
getMouseState(dir?: Direction): MouseState;
|
|
95
|
-
getMouseStateForControllPlayer(dir?: Direction): MouseState;
|
|
96
|
-
setPressInfo(dir: Direction, touchID?: number): void;
|
|
97
|
-
setReleaseInfo(): void;
|
|
98
|
-
touchIDIsSetDir(): boolean;
|
|
99
|
-
memorizeMouseStateOnControllableFrame(): void;
|
|
100
|
-
update(): void;
|
|
101
|
-
clear(): void;
|
|
102
|
-
getTouchID(): number;
|
|
103
|
-
constructor();
|
|
104
|
-
}
|
|
105
|
-
export declare enum GamePadState {
|
|
106
|
-
BUTTON_INDEX_B = 0,
|
|
107
|
-
BUTTON_INDEX_A = 1,
|
|
108
|
-
BUTTON_INDEX_Y = 2,
|
|
109
|
-
BUTTON_INDEX_X = 3,
|
|
110
|
-
BUTTON_INDEX_L = 4,
|
|
111
|
-
BUTTON_INDEX_R = 5,
|
|
112
|
-
BUTTON_INDEX_ZL = 6,
|
|
113
|
-
BUTTON_INDEX_ZR = 7,
|
|
114
|
-
BUTTON_INDEX_MINUS = 8,
|
|
115
|
-
BUTTON_INDEX_PLUS = 9,
|
|
116
|
-
BUTTON_INDEX_LEFT_STICK = 10,
|
|
117
|
-
BUTTON_INDEX_RIGHT_STICK = 11,
|
|
118
|
-
BUTTON_CROSS_KEY_UP = 12,
|
|
119
|
-
BUTTON_CROSS_KEY_DOWN = 13,
|
|
120
|
-
BUTTON_CROSS_KEY_LEFT = 14,
|
|
121
|
-
BUTTON_CROSS_KEY_RIGHT = 15
|
|
122
|
-
}
|
|
123
|
-
export declare enum GamePadStateAxes {
|
|
124
|
-
AXES_L_HORIZONTAL_INDEX = 0,
|
|
125
|
-
AXES_L_VERTICAL_INDEX = 1,
|
|
126
|
-
AXES_R_HORIZONTAL_INDEX = 2,
|
|
127
|
-
AXES_R_VERTICAL_INDEX = 3,
|
|
128
|
-
AXES_CROSS_KEY = 9
|
|
129
|
-
}
|
|
130
|
-
export declare class GamePadStore {
|
|
131
|
-
private gamepad;
|
|
132
|
-
private triggers;
|
|
133
|
-
constructor();
|
|
134
|
-
update(): void;
|
|
135
|
-
buttonTrigger(...codes: any[]): boolean;
|
|
136
|
-
buttonPressed(...codes: any[]): boolean;
|
|
137
|
-
crossPressed(...codes: any[]): boolean;
|
|
138
|
-
vibration(isStrong: boolean): boolean;
|
|
139
|
-
private stickFloor;
|
|
140
|
-
}
|
package/lib/wwa_item_menu.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Direction } from "./wwa_data";
|
|
2
|
-
export declare class ItemMenu {
|
|
3
|
-
private static ROW_MAX;
|
|
4
|
-
private static COL_MAX;
|
|
5
|
-
private static DOM_ID_TABLE;
|
|
6
|
-
private static CLICK_DOM_QUERY_TABLE;
|
|
7
|
-
private col;
|
|
8
|
-
private row;
|
|
9
|
-
private counter;
|
|
10
|
-
update(): void;
|
|
11
|
-
private cursor_wait;
|
|
12
|
-
allClear(): void;
|
|
13
|
-
controll(moveDir: Direction): void;
|
|
14
|
-
ok(): boolean;
|
|
15
|
-
ng(): void;
|
|
16
|
-
close(): void;
|
|
17
|
-
openView(): void;
|
|
18
|
-
init(): void;
|
|
19
|
-
constructor();
|
|
20
|
-
}
|
package/lib/wwa_macro.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { WWA } from "./wwa_main";
|
|
2
|
-
import { MacroType, TriggerParts } from "./wwa_data";
|
|
3
|
-
export declare class Macro {
|
|
4
|
-
private _wwa;
|
|
5
|
-
private _triggerParts;
|
|
6
|
-
macroType: MacroType;
|
|
7
|
-
macroArgs: string[];
|
|
8
|
-
constructor(_wwa: WWA, _triggerParts: TriggerParts, macroType: MacroType, macroArgs: string[]);
|
|
9
|
-
isJunction(): boolean;
|
|
10
|
-
execute(): {
|
|
11
|
-
isGameOver?: true;
|
|
12
|
-
};
|
|
13
|
-
private _concatEmptyArgs;
|
|
14
|
-
private _evaluateIntValue;
|
|
15
|
-
private _executeJumpGateMacro;
|
|
16
|
-
private _executeRecPositionMacro;
|
|
17
|
-
private _executeJumpRecPositionMacro;
|
|
18
|
-
private _executeConsoleLogMacro;
|
|
19
|
-
private _executeCopyHpToMacro;
|
|
20
|
-
private _executeCopyHpMaxToMacro;
|
|
21
|
-
private _executeCopyAtToMacro;
|
|
22
|
-
private _executeCopyDfToMacro;
|
|
23
|
-
private _parseStatusKind;
|
|
24
|
-
private _executeCopyMoneyToMacro;
|
|
25
|
-
private _executeSetHPMacro;
|
|
26
|
-
private _executeSetHpMaxMacro;
|
|
27
|
-
private _executeSetAtMacro;
|
|
28
|
-
private _executeSetDfMacro;
|
|
29
|
-
private _executeSetMoneyMacro;
|
|
30
|
-
private _executeSetStepCountMacro;
|
|
31
|
-
private _executeVarSetValMacro;
|
|
32
|
-
private _executeVarSetMacro;
|
|
33
|
-
private _executeVarAddMacro;
|
|
34
|
-
private _executeVarSubMacro;
|
|
35
|
-
private _executeVarMulMacro;
|
|
36
|
-
private _executeVarDivMacro;
|
|
37
|
-
private _executeVarModMacro;
|
|
38
|
-
private _executeVarSetRandMacro;
|
|
39
|
-
private _executeGameSpeedMacro;
|
|
40
|
-
private _executeLegacyIfMacro;
|
|
41
|
-
private _executeSetSpeedMacro;
|
|
42
|
-
private _executeCopyTimeToMacro;
|
|
43
|
-
private _executeHideStatusMacro;
|
|
44
|
-
private _executeVarMapMacro;
|
|
45
|
-
private _executeImgPlayerMacro;
|
|
46
|
-
private _executeImgYesNoMacro;
|
|
47
|
-
private _executeHPMaxMacro;
|
|
48
|
-
private _executeSaveMacro;
|
|
49
|
-
private _executeItemMacro;
|
|
50
|
-
private _executeDefaultMacro;
|
|
51
|
-
private _executeOldMapMacro;
|
|
52
|
-
private _executePartsMacro;
|
|
53
|
-
private _executeMoveMacro;
|
|
54
|
-
private _executeMapMacro;
|
|
55
|
-
private _executeDirMapMacro;
|
|
56
|
-
private _executeImgFrameMacro;
|
|
57
|
-
private _executeImgBomMacro;
|
|
58
|
-
private _executeDelPlayerMacro;
|
|
59
|
-
private _executeFaceMacro;
|
|
60
|
-
private _executeEffectMacro;
|
|
61
|
-
private _executeGameOverMacro;
|
|
62
|
-
private _executeImgClickMacro;
|
|
63
|
-
private _executeEffItemMacro;
|
|
64
|
-
private _executeStatusMacro;
|
|
65
|
-
private _executeColorMacro;
|
|
66
|
-
private _executeWaitMacro;
|
|
67
|
-
private _executeSoundMacro;
|
|
68
|
-
private _executeGamePadButtonMacro;
|
|
69
|
-
private _executeOldMoveMacro;
|
|
70
|
-
private _executeNoGameOverMacro;
|
|
71
|
-
private _executeSetMacro;
|
|
72
|
-
private _executeDelayBgmMacro;
|
|
73
|
-
private _executeSysMsgMacro;
|
|
74
|
-
private resolveSystemMessageKeyFromMacroArg;
|
|
75
|
-
}
|
|
76
|
-
export declare function parseMacro(wwa: WWA, triggerParts: TriggerParts, macroStr: string): Macro;
|