@wwawing/engine 3.9.4 → 3.9.7
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type TokenValues } from "./parsers";
|
|
1
|
+
import { parseValue, parseType, type TokenValues } from "./parsers";
|
|
2
2
|
import { type ValueAssignOperation } from "./value-assign-operation";
|
|
3
|
-
export { TokenValues, ValueAssignOperation };
|
|
3
|
+
export { TokenValues, ValueAssignOperation, parseType, parseValue };
|
|
4
4
|
export declare function evaluateSetMacroExpression(expression: string, tokenValues: TokenValues): ValueAssignOperation;
|
|
5
5
|
export declare function evaluateIfMacroExpression(expression: string, tokenValues: TokenValues): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface ValueAssignOperation {
|
|
2
|
-
assignee: "energy" | "energyMax" | "strength" | "defence" | "gold" | number;
|
|
2
|
+
assignee: "energy" | "energyMax" | "strength" | "defence" | "gold" | "moveCount" | number;
|
|
3
3
|
rawValue: number;
|
|
4
4
|
}
|
|
5
5
|
export declare function generateValueAssignOperation(calcResult: number, assigneeExpression: string): ValueAssignOperation;
|
package/lib/wwa_main.d.ts
CHANGED
|
@@ -154,6 +154,7 @@ export declare class WWA {
|
|
|
154
154
|
private _execObjectUrlGateEvent;
|
|
155
155
|
private _execObjectScoreEvent;
|
|
156
156
|
updateScore(): void;
|
|
157
|
+
private _execChoiceWindowObjectSellEvent;
|
|
157
158
|
private _execChoiceWindowRunningEvent;
|
|
158
159
|
setMessageQueue(message: string, showChoice: boolean, isSystemMessage: boolean, partsID?: number, partsType?: PartsType, partsPosition?: Coord, messageDisplayed?: boolean): boolean;
|
|
159
160
|
getMessageQueueByRawMessage(message: string, partsID: number, partsType: PartsType, partsPosition: Coord, isSystemMessage?: boolean): ParsedMessage[];
|
|
@@ -269,7 +270,7 @@ export declare class WWA {
|
|
|
269
270
|
setUserValDiv(x: number, y: number): void;
|
|
270
271
|
setUserValMod(x: number, y: number): void;
|
|
271
272
|
setUserValRandNum(x: number, num: number, bias: number): void;
|
|
272
|
-
private
|
|
273
|
+
private _generateShowStrString;
|
|
273
274
|
speedChangeJudge(speedChangeFlag: boolean): void;
|
|
274
275
|
switchConditionalExecutionStatus(descriminant?: string): void;
|
|
275
276
|
execSetMacro(macroStr?: string): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wwawing/engine",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.7",
|
|
4
4
|
"description": "World Wide Adventure: an RPG Engine.",
|
|
5
5
|
"main": "./lib/wwa.js",
|
|
6
6
|
"files": [
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"@types/pug": "^2.0.6",
|
|
46
46
|
"@types/terser-webpack-plugin": "^5.2.0",
|
|
47
47
|
"@types/webpack": "^5.28.0",
|
|
48
|
-
"@wwawing/assets": "^3.9.
|
|
49
|
-
"@wwawing/common-interface": "^3.9.
|
|
50
|
-
"@wwawing/debug-server": "^3.9.
|
|
51
|
-
"@wwawing/event-emitter": "^3.9.
|
|
52
|
-
"@wwawing/loader": "^3.9.
|
|
53
|
-
"@wwawing/page-generator": "^3.9.
|
|
54
|
-
"@wwawing/styles": "^3.9.
|
|
48
|
+
"@wwawing/assets": "^3.9.7",
|
|
49
|
+
"@wwawing/common-interface": "^3.9.7",
|
|
50
|
+
"@wwawing/debug-server": "^3.9.7",
|
|
51
|
+
"@wwawing/event-emitter": "^3.9.7",
|
|
52
|
+
"@wwawing/loader": "^3.9.7",
|
|
53
|
+
"@wwawing/page-generator": "^3.9.7",
|
|
54
|
+
"@wwawing/styles": "^3.9.7",
|
|
55
55
|
"crypto-js": "^4.1.1",
|
|
56
56
|
"npm-run-all": "^4.1.5",
|
|
57
57
|
"pug": "^3.0.2",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"node": ">=16",
|
|
72
72
|
"npm": ">=8"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "dc62b9aac4a9f8ebe95ee714422ce1be6385c88d"
|
|
75
75
|
}
|