@wwawing/engine 4.0.0 → 4.0.3
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 +214 -20
- 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,173 +0,0 @@
|
|
|
1
|
-
import { WWA } from "./wwa_main";
|
|
2
|
-
import { Position, Direction, Status, EquipmentStatus, PartsType, Coord, type BattleTurnResult } from "./wwa_data";
|
|
3
|
-
import { Camera } from "./wwa_camera";
|
|
4
|
-
import { Monster } from "./wwa_monster";
|
|
5
|
-
export declare class Parts {
|
|
6
|
-
protected _position: Position;
|
|
7
|
-
protected _wwa: WWA;
|
|
8
|
-
getPosition(): Position;
|
|
9
|
-
constructor(pos: Position);
|
|
10
|
-
}
|
|
11
|
-
export declare class PartsObject extends Parts {
|
|
12
|
-
constructor(pos: Position);
|
|
13
|
-
}
|
|
14
|
-
export declare class PartsMap extends Parts {
|
|
15
|
-
constructor(pos: Position);
|
|
16
|
-
}
|
|
17
|
-
export declare enum PlayerState {
|
|
18
|
-
CONTROLLABLE = 0,
|
|
19
|
-
MOVING = 1,
|
|
20
|
-
CAMERA_MOVING = 2,
|
|
21
|
-
MESSAGE_WAITING = 3,
|
|
22
|
-
LOCALGATE_JUMPED = 4,
|
|
23
|
-
BATTLE = 5,
|
|
24
|
-
ESTIMATE_WINDOW_WAITING = 6,
|
|
25
|
-
PASSWORD_WINDOW_WAITING = 7,
|
|
26
|
-
LOCALGATE_JUMPED_WITH_MESSAGE = 8
|
|
27
|
-
}
|
|
28
|
-
export declare class Player extends PartsObject {
|
|
29
|
-
protected _status: Status;
|
|
30
|
-
protected _equipStatus: EquipmentStatus;
|
|
31
|
-
protected _energyMax: number;
|
|
32
|
-
protected _dir: Direction;
|
|
33
|
-
protected _jumpWaitFramesRemain: number;
|
|
34
|
-
protected _camera: Camera;
|
|
35
|
-
protected _state: PlayerState;
|
|
36
|
-
protected _isPartsEventExecuted: boolean;
|
|
37
|
-
protected _samePosLastExecutedMapID: number;
|
|
38
|
-
protected _samePosLastExecutedObjID: number;
|
|
39
|
-
protected _executedObjPartsID_onSamePosition: number;
|
|
40
|
-
protected _isMovingImage: boolean;
|
|
41
|
-
protected _partsAppeared: boolean;
|
|
42
|
-
protected _energyValueElement: HTMLElement;
|
|
43
|
-
protected _strengthValueElement: HTMLElement;
|
|
44
|
-
protected _defenceValueElement: HTMLElement;
|
|
45
|
-
protected _goldValueElement: HTMLElement;
|
|
46
|
-
protected _itemBox: number[];
|
|
47
|
-
protected _itemBoxElement: HTMLDivElement[];
|
|
48
|
-
protected _itemUsingEvent: EventListener[];
|
|
49
|
-
protected _readyToUseItemPos1To12: number;
|
|
50
|
-
protected _isReadyToUseItem: boolean;
|
|
51
|
-
protected _battleFrameCounter: number;
|
|
52
|
-
protected _isPlayerTurn: boolean;
|
|
53
|
-
protected _battleTurnLength: number;
|
|
54
|
-
protected _enemy: Monster;
|
|
55
|
-
protected _moves: number;
|
|
56
|
-
protected _frameCount: number;
|
|
57
|
-
protected _moveMacroWaitingRemainMoves: number;
|
|
58
|
-
protected _moveObjectAutoExecTimer: number;
|
|
59
|
-
protected _afterMoveMacroFlag: boolean;
|
|
60
|
-
protected _isClickableItemGot: boolean;
|
|
61
|
-
protected _isPreparedForLookingAround: boolean;
|
|
62
|
-
protected _lookingAroundTimer: number;
|
|
63
|
-
protected _speedIndex: number;
|
|
64
|
-
protected _messageDelayFrameCount: number;
|
|
65
|
-
protected _battleNoDamageTurnLength: number;
|
|
66
|
-
move(): void;
|
|
67
|
-
controll(moveDir: Direction): void;
|
|
68
|
-
setDir(newDir: Direction): void;
|
|
69
|
-
canMoveTo(pos: Position): boolean;
|
|
70
|
-
isMoving(): boolean;
|
|
71
|
-
private _isOnCameraMovingPosition;
|
|
72
|
-
private _isOnCameraStopPosition;
|
|
73
|
-
isControllable(): boolean;
|
|
74
|
-
getCopyOfItemBox(): number[];
|
|
75
|
-
getDir(): Direction;
|
|
76
|
-
isMovingImage(): boolean;
|
|
77
|
-
toggleMovingImage(): void;
|
|
78
|
-
getEnergyMax(): number;
|
|
79
|
-
isJumped(): boolean;
|
|
80
|
-
setMessageWaiting(): void;
|
|
81
|
-
isWaitingMessage(): boolean;
|
|
82
|
-
isDelayFrame(): boolean;
|
|
83
|
-
updateDelayFrame(): void;
|
|
84
|
-
setDelayFrame(): void;
|
|
85
|
-
clearMessageWaiting(): void;
|
|
86
|
-
setEstimateWindowWating(): void;
|
|
87
|
-
isWaitingEstimateWindow(): boolean;
|
|
88
|
-
clearEstimateWindowWaiting(): void;
|
|
89
|
-
setPasswordWindowWating(): void;
|
|
90
|
-
isWaitingPasswordWindow(): boolean;
|
|
91
|
-
clearPasswordWindowWaiting(): void;
|
|
92
|
-
isPartsEventExecuted(): boolean;
|
|
93
|
-
resetEventExecutionInfo(): void;
|
|
94
|
-
getLastExecPartsIDOnSamePosition(type: PartsType): number;
|
|
95
|
-
setLastExecInfoOnSamePosition(type: PartsType, id: number): void;
|
|
96
|
-
processAfterJump(): void;
|
|
97
|
-
jumpTo(pos: Position): boolean;
|
|
98
|
-
systemJumpTo(pos: Position): void;
|
|
99
|
-
addStatusAll(s: Status): Status;
|
|
100
|
-
setEnergyMax(em: number): number;
|
|
101
|
-
setEnergy(e: number): number;
|
|
102
|
-
damage(amount: number): void;
|
|
103
|
-
setStrength(s: number): number;
|
|
104
|
-
setDefence(d: number): number;
|
|
105
|
-
setGold(g: number): number;
|
|
106
|
-
getStatus(): Status;
|
|
107
|
-
getStatusWithoutEquipments(): Status;
|
|
108
|
-
getStatusOfEquipments(): EquipmentStatus;
|
|
109
|
-
updateStatusValueBox(): void;
|
|
110
|
-
readonly itemTransitioningClassName = "item-transitioning";
|
|
111
|
-
readonly overwittenItemClassName = "item-overwritten";
|
|
112
|
-
readonly overwittenItemSelector: string;
|
|
113
|
-
readonly itemEffectStartTimers: (number | undefined)[];
|
|
114
|
-
updateItemBox(animationOption?: {
|
|
115
|
-
insertPos: number;
|
|
116
|
-
itemScreenPixelCoord: Coord;
|
|
117
|
-
itemBoxScreenPixelCoord: Coord;
|
|
118
|
-
itemBoxBackgroundImageCoord: Coord;
|
|
119
|
-
overwrittenObjectId?: number;
|
|
120
|
-
}): void;
|
|
121
|
-
private startItemEffect;
|
|
122
|
-
private disposeItemEffect;
|
|
123
|
-
isDead(): boolean;
|
|
124
|
-
addItem(objID: number, itemPos?: number, isOverwrite?: boolean, animationOption?: {
|
|
125
|
-
screenPixelCoord: Coord;
|
|
126
|
-
itemBoxBackgroundImageCoord: Coord;
|
|
127
|
-
}): void;
|
|
128
|
-
private _forceSetItemBox;
|
|
129
|
-
private _getBlankItemPos;
|
|
130
|
-
private _updateEquipmentStatus;
|
|
131
|
-
hasItem(partsID: number): boolean;
|
|
132
|
-
canUseItem(itemPos: number): boolean;
|
|
133
|
-
useItem(): number;
|
|
134
|
-
canHaveMoreItems(): boolean;
|
|
135
|
-
removeItemByItemPosition(itemPos: number): void;
|
|
136
|
-
removeItemByPartsID(partsID: number): void;
|
|
137
|
-
clearItemBox(): void;
|
|
138
|
-
hasGold(gold: number): boolean;
|
|
139
|
-
payGold(gold: number): void;
|
|
140
|
-
earnGold(gold: number): void;
|
|
141
|
-
setPartsAppearedFlag(): void;
|
|
142
|
-
clearPartsAppearedFlag(): void;
|
|
143
|
-
isPartsAppearedTime(): boolean;
|
|
144
|
-
startBattleWith(enemy: Monster): void;
|
|
145
|
-
isFighting(): boolean;
|
|
146
|
-
isTurn(): boolean;
|
|
147
|
-
getTurnNum(): number;
|
|
148
|
-
isBattleStartFrame(): boolean;
|
|
149
|
-
calcBattleResultForPlayerTurn(playerStatus: Status, enemyStatus: Status, estimating?: boolean): BattleTurnResult;
|
|
150
|
-
calcBattleResultForEnemyTurn(enemyStatus: Status, playerStatus: Status, estimating?: boolean): BattleTurnResult;
|
|
151
|
-
private _calcDamageDefault;
|
|
152
|
-
fight(): void;
|
|
153
|
-
readyToUseItem(itemPos1To12: number): void;
|
|
154
|
-
isReadyToUseItem(): boolean;
|
|
155
|
-
getDrawingCenterPosition(): Coord;
|
|
156
|
-
mainFrameCount(): void;
|
|
157
|
-
getFrameCount(): number;
|
|
158
|
-
setFrameCount(count: number): number;
|
|
159
|
-
getMoveCount(): number;
|
|
160
|
-
setMoveCount(count: number): number;
|
|
161
|
-
isMoveObjectAutoExecTime(): boolean;
|
|
162
|
-
setMoveMacroWaiting(moveNum: number): void;
|
|
163
|
-
resetMoveObjectAutoExecTimer(): void;
|
|
164
|
-
decrementMoveObjectAutoExecTimer(): number;
|
|
165
|
-
isWaitingMoveMacro(): boolean;
|
|
166
|
-
decrementLookingAroundTimer(): number;
|
|
167
|
-
isLookingAround(): boolean;
|
|
168
|
-
getSpeedIndex(): number;
|
|
169
|
-
speedUp(): number;
|
|
170
|
-
speedDown(): number;
|
|
171
|
-
setSpeedIndex(speedIndex: number): number;
|
|
172
|
-
constructor(wwa: WWA, pos: Position, camera: Camera, status: Status, em: number, moves: number, gameSpeedIndex: number);
|
|
173
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { WWA } from "./wwa_main";
|
|
2
|
-
export declare enum Mode {
|
|
3
|
-
SAVE = 0,
|
|
4
|
-
LOAD = 1
|
|
5
|
-
}
|
|
6
|
-
export declare class PasswordWindow {
|
|
7
|
-
private _wwa;
|
|
8
|
-
private _parent;
|
|
9
|
-
private _isDisallowLoadOldSave;
|
|
10
|
-
private readonly COPIED_MESSAGE_DISPLAY_MS;
|
|
11
|
-
private _element;
|
|
12
|
-
private _okButtonElement;
|
|
13
|
-
private _cancelButtonElement;
|
|
14
|
-
private _copyButtonElement;
|
|
15
|
-
private _descriptionElement;
|
|
16
|
-
private _passwordBoxElement;
|
|
17
|
-
private _buttonWrapperElement;
|
|
18
|
-
private _isVisible;
|
|
19
|
-
private _mode;
|
|
20
|
-
constructor(_wwa: WWA, _parent: HTMLDivElement, _isDisallowLoadOldSave: boolean);
|
|
21
|
-
get mode(): Mode;
|
|
22
|
-
set mode(mode: Mode);
|
|
23
|
-
get password(): string;
|
|
24
|
-
set password(password: string);
|
|
25
|
-
show(mode?: Mode): void;
|
|
26
|
-
hide(): void;
|
|
27
|
-
update(): void;
|
|
28
|
-
}
|
package/lib/wwa_play_time.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare class PlayTimeCalculator {
|
|
2
|
-
private lastCalculatedTimeUnixMs;
|
|
3
|
-
private lastCalculatedPlayTimeMs;
|
|
4
|
-
constructor(baseTimeMs?: number);
|
|
5
|
-
calculateTimeMs(): number;
|
|
6
|
-
calculatePlayTimeFormat(): string;
|
|
7
|
-
static formatPlayTimeText(timeSec: number): string;
|
|
8
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { WWAData } from "../wwa_data";
|
|
2
|
-
import { WWADataWithWorldNameStatus } from "./common";
|
|
3
|
-
export declare class FirstChangedMapUint8Table {
|
|
4
|
-
map: Uint8Array;
|
|
5
|
-
mapObject: Uint8Array;
|
|
6
|
-
}
|
|
7
|
-
export default class WWACompress {
|
|
8
|
-
private static _usingByteFlag;
|
|
9
|
-
private static MIN_LOOP_COUNT;
|
|
10
|
-
private static _restartData;
|
|
11
|
-
private static _mapByteLength;
|
|
12
|
-
private static _firstRandomMapObjectUtf8Table;
|
|
13
|
-
static compress(wwaData: WWAData): object;
|
|
14
|
-
private static compressObject;
|
|
15
|
-
private static compressUserVars;
|
|
16
|
-
private static compressMapAllObject;
|
|
17
|
-
private static indexListCompress;
|
|
18
|
-
private static idSort;
|
|
19
|
-
private static getCompressArray;
|
|
20
|
-
private static getDecompressArray;
|
|
21
|
-
static decompress(saveObject: object): WWADataWithWorldNameStatus;
|
|
22
|
-
private static decompressObject;
|
|
23
|
-
private static decompressUserVars;
|
|
24
|
-
private static generateEmptyUserVars;
|
|
25
|
-
private static decompressAllMapObject;
|
|
26
|
-
static setRestartData(restartData: WWAData, firstFrameData: WWAData): void;
|
|
27
|
-
private static getChangedUint8Array;
|
|
28
|
-
static getStartWWAData(resumeSaveTextData: string): WWAData;
|
|
29
|
-
static usingByte(_usingByteFlag: any): void;
|
|
30
|
-
}
|
|
31
|
-
export declare class WWACompressIndexTable {
|
|
32
|
-
id: number;
|
|
33
|
-
index: number;
|
|
34
|
-
count: number;
|
|
35
|
-
constructor(id: number, index: number);
|
|
36
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { WWAData, ChoiceCallInfo } from "../wwa_data";
|
|
2
|
-
import { WWA } from "../wwa_main";
|
|
3
|
-
import { Player } from "../wwa_parts_player";
|
|
4
|
-
import WWASaveDataList from "./WWASaveDataList";
|
|
5
|
-
import { OnCheckLoadingSaveDataFunction, OnCompleteLoadingSaveDataFunction } from "./common";
|
|
6
|
-
export default class WWASave {
|
|
7
|
-
static checkOriginalMapString: string;
|
|
8
|
-
static worldName: string;
|
|
9
|
-
static mapDataRevisionKey: string;
|
|
10
|
-
private _wwaDBSaveList;
|
|
11
|
-
private _wwaLogSaveList;
|
|
12
|
-
list: WWASaveDataList;
|
|
13
|
-
constructor(wwa: WWA, worldName: string, worldPassNumber: number, onCheckLoadingSaveData: OnCheckLoadingSaveDataFunction, onCompleteLoadingSaveData: OnCompleteLoadingSaveDataFunction);
|
|
14
|
-
resumeStart(): void;
|
|
15
|
-
isAutoSaveFrame(player: Player): boolean;
|
|
16
|
-
autoSave(gameCvs: HTMLCanvasElement, _quickSaveData: WWAData): void;
|
|
17
|
-
selectDBSaveDataList(): void;
|
|
18
|
-
selectLogSaveDataList(): void;
|
|
19
|
-
save(gameCvs: HTMLCanvasElement, _quickSaveData: WWAData, id: number): boolean;
|
|
20
|
-
load(id: number): WWAData;
|
|
21
|
-
hasSaveData(): boolean;
|
|
22
|
-
setAutoSaveInterval(autoInterval: number): void;
|
|
23
|
-
getFirstSaveChoiceCallInfo(forcePassword: boolean): ChoiceCallInfo;
|
|
24
|
-
getSecondSaveChoiceCallInfo(usePassword: boolean): ChoiceCallInfo;
|
|
25
|
-
gameStart(wwaData: WWAData, player: Player): void;
|
|
26
|
-
quickSaveButtonUpdate(wwaData: WWAData): void;
|
|
27
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { WWAData } from "../wwa_data";
|
|
2
|
-
import WWASaveDataList from "./WWASaveDataList";
|
|
3
|
-
export default class WWASaveData {
|
|
4
|
-
protected _parent: WWASaveDataList;
|
|
5
|
-
protected _id: number;
|
|
6
|
-
flag: boolean;
|
|
7
|
-
date: Date;
|
|
8
|
-
cvs: HTMLCanvasElement;
|
|
9
|
-
ctx: CanvasRenderingContext2D;
|
|
10
|
-
protected quickSaveData: WWAData;
|
|
11
|
-
_statusEnergy: number;
|
|
12
|
-
constructor(id: number, parent: WWASaveDataList);
|
|
13
|
-
showQickLoad(): void;
|
|
14
|
-
save(gameCvs: HTMLCanvasElement, _quickSaveData: WWAData): boolean;
|
|
15
|
-
getStatusEnergy(): number;
|
|
16
|
-
load(): WWAData;
|
|
17
|
-
saveDataSet(src: string, quickSaveData: WWAData, date: Date): void;
|
|
18
|
-
getDateText(): string;
|
|
19
|
-
isLastSaveData(): boolean;
|
|
20
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { WWAData } from "../wwa_data";
|
|
2
|
-
import WWASaveDataList from "./WWASaveDataList";
|
|
3
|
-
import { OnCheckLoadingSaveDataFunction, OnCompleteLoadingSaveDataFunction } from "./common";
|
|
4
|
-
type WWASaveDataItem = {
|
|
5
|
-
url?: string;
|
|
6
|
-
id: number;
|
|
7
|
-
hash: string;
|
|
8
|
-
image: string;
|
|
9
|
-
data: object;
|
|
10
|
-
date: Date;
|
|
11
|
-
worldName: string | undefined;
|
|
12
|
-
mapDataRevisionKey: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
export default class WWASaveDataDBList extends WWASaveDataList {
|
|
15
|
-
private selectDatas;
|
|
16
|
-
private IDBTransaction;
|
|
17
|
-
private onCheckLoadingSaveData;
|
|
18
|
-
private onCompleteLoadingSaveData;
|
|
19
|
-
private static doNotAnything;
|
|
20
|
-
protected keyPath: string | string[];
|
|
21
|
-
constructor(onCheckLoadingSaveData: OnCheckLoadingSaveDataFunction, onCompleteLoadingSaveData: OnCompleteLoadingSaveDataFunction, prototype?: WWASaveDataDBList);
|
|
22
|
-
private indexDBOpen;
|
|
23
|
-
private createDataBase;
|
|
24
|
-
private getObjectStore;
|
|
25
|
-
protected makeSaveDataItem(saveID: number, gameCvs: HTMLCanvasElement, compressedData: object, date: Date): WWASaveDataItem;
|
|
26
|
-
protected getSaveDataResult(store: IDBObjectStore, onsuccess: (result: WWASaveDataItem[]) => void): void;
|
|
27
|
-
dbUpdateSaveData(saveID: number, gameCvs: HTMLCanvasElement, _quickSaveData: WWAData, date: Date): void;
|
|
28
|
-
dbDeleteSaveData(saveIDs: number[]): void;
|
|
29
|
-
private selectSaveData;
|
|
30
|
-
}
|
|
31
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { WWAData } from "../wwa_data";
|
|
2
|
-
import WWASaveDataList from "./WWASaveDataList";
|
|
3
|
-
import { Player } from "../wwa_parts_player";
|
|
4
|
-
export default class WWASaveDataLogList extends WWASaveDataList {
|
|
5
|
-
private _saveNo;
|
|
6
|
-
private _lastAutoSaveMove;
|
|
7
|
-
private _autoInterval;
|
|
8
|
-
constructor();
|
|
9
|
-
resumeStart(): void;
|
|
10
|
-
setPlayer(player: Player): void;
|
|
11
|
-
isAutoSaveFrame(player: Player): boolean;
|
|
12
|
-
autoSave(gameCvs: HTMLCanvasElement, _quickSaveData: WWAData): void;
|
|
13
|
-
setAutoSaveInterval(autoInterval: number): void;
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { WWAData } from "../../wwa_data";
|
|
2
|
-
export declare enum LoadErrorCode {
|
|
3
|
-
UNMATCHED_WORLD_NAME = "UNMATCHED_WORLD_NAME",
|
|
4
|
-
UNMATCHED_WORLD_PASS_NUMBER = "UNMATCHED_WORLD_PASS_NUMBER",
|
|
5
|
-
DISALLOW_OLD_REVISION_WORLD_SAVE_DATA = "DISALLOW_OLD_REVISION_WORLD_SAVE_DATA"
|
|
6
|
-
}
|
|
7
|
-
export type OnCompleteLoadingSaveDataFunction = (hasFailedLoadingSaveData: LoadErrorCode[]) => void;
|
|
8
|
-
export type OnCheckLoadingSaveDataFunction = (saveDataWorldName: string | undefined, saveDataHash: string, mapDataRevisionKey: string | undefined) => LoadErrorCode | null;
|
|
9
|
-
export type WWADataWithWorldNameStatus = [WWAData, {
|
|
10
|
-
isWorldNameEmpty: boolean;
|
|
11
|
-
}];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function generateMapDataRevisionKey(worldName: string, worldPassNumber: number): string;
|
package/lib/wwa_save/index.d.ts
DELETED
package/lib/wwa_sound.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
}
|
package/lib/wwa_util.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
12
|
-
export declare function assertNumber(value: unknown, varName: string): value is number;
|
|
13
|
-
export declare function assertString(value: unknown, varName: string): value is string;
|
|
14
|
-
export declare function formatUserVarForDisplay(value: number | string | boolean, trimming?: boolean): string;
|
package/lib/wwa_vardump/api.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function updateValues(dumpElement: HTMLElement | undefined | null, userVar: Map<string, number | string | boolean>): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as Api from "./api";
|
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as Api from "./api";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface Props {
|
|
2
|
-
index: number | string;
|
|
3
|
-
value?: number | string | boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const CLASS_NAME = "user-variable-card";
|
|
6
|
-
export declare function createElement({ index, value }: Props): HTMLElement;
|
|
7
|
-
export declare function setupLabel(element: HTMLElement, labelElement: HTMLElement): void;
|
|
8
|
-
export declare function setValue(element: HTMLElement, value?: number | string | boolean): void;
|
|
9
|
-
export declare function clearValue(element: HTMLElement): void;
|
|
10
|
-
export declare function getLabelElement(element: HTMLElement): HTMLElement | null;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type UserVariableKind } from "../../../wwa_data";
|
|
2
|
-
export declare const CLASS_NAME = "user-variable-list";
|
|
3
|
-
export interface Props {
|
|
4
|
-
kind: UserVariableKind;
|
|
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;
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { UserVariableKind } from "../../../wwa_data";
|
|
2
|
-
import * as Header from "./header";
|
|
3
|
-
export declare const CLASS_NAME = "user-variable-list-section";
|
|
4
|
-
export { Header };
|
|
5
|
-
export interface Props {
|
|
6
|
-
kind: UserVariableKind;
|
|
7
|
-
}
|
|
8
|
-
export declare function createElement({ kind }: Props): HTMLElement;
|
package/lib/wwa_window.d.ts
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { WWA } from "./wwa_main";
|
|
2
|
-
import { WWAData, Coord, Position, Direction } from "./wwa_data";
|
|
3
|
-
import { Monster } from "./wwa_monster";
|
|
4
|
-
import { WWASave } from "./wwa_save";
|
|
5
|
-
export declare class TextWindow {
|
|
6
|
-
protected _wwa: WWA;
|
|
7
|
-
protected _coord: Coord;
|
|
8
|
-
protected _width: number;
|
|
9
|
-
protected _height: number;
|
|
10
|
-
protected _isVisible: boolean;
|
|
11
|
-
protected _parentElement: HTMLElement;
|
|
12
|
-
protected _element: HTMLElement;
|
|
13
|
-
constructor(_wwa: WWA, _coord: Coord, _width: number, _height: number, _isVisible: boolean, _parentElement: HTMLElement, zIndex: number);
|
|
14
|
-
update(a?: any): void;
|
|
15
|
-
show(): void;
|
|
16
|
-
hide(): void;
|
|
17
|
-
isVisible(): boolean;
|
|
18
|
-
protected get windowName(): string;
|
|
19
|
-
}
|
|
20
|
-
export declare class MonsterWindow extends TextWindow {
|
|
21
|
-
protected _cgFileName: string;
|
|
22
|
-
protected _monsterBox: HTMLDivElement;
|
|
23
|
-
protected _energyBox: HTMLDivElement;
|
|
24
|
-
protected _strengthBox: HTMLDivElement;
|
|
25
|
-
protected _defenceBox: HTMLDivElement;
|
|
26
|
-
constructor(wwa: WWA, coord: Coord, width: number, height: number, isVisible: boolean, parentElement: HTMLElement, _cgFileName: string);
|
|
27
|
-
update(monster?: Monster): void;
|
|
28
|
-
protected get windowName(): string;
|
|
29
|
-
}
|
|
30
|
-
export declare class ScoreWindow extends TextWindow {
|
|
31
|
-
protected static WINDOW_NAME: string;
|
|
32
|
-
constructor(wwa: WWA, coord: Coord, isVisible: boolean, parentElement: HTMLElement);
|
|
33
|
-
update(score?: number): void;
|
|
34
|
-
protected get windowName(): string;
|
|
35
|
-
}
|
|
36
|
-
export declare enum Positioning {
|
|
37
|
-
TOP = 0,
|
|
38
|
-
CENTER = 1,
|
|
39
|
-
BOTTOM = 2,
|
|
40
|
-
SCORE = 3
|
|
41
|
-
}
|
|
42
|
-
export declare class MessageWindow {
|
|
43
|
-
private _wwa;
|
|
44
|
-
private _x;
|
|
45
|
-
private _y;
|
|
46
|
-
private _width;
|
|
47
|
-
private _height;
|
|
48
|
-
private _message;
|
|
49
|
-
private _cgFileName;
|
|
50
|
-
private _isVisible;
|
|
51
|
-
private _isYesno;
|
|
52
|
-
private _isSave;
|
|
53
|
-
private _isItemMenu;
|
|
54
|
-
private _isInputDisable;
|
|
55
|
-
private _element;
|
|
56
|
-
private _msgWrapperElement;
|
|
57
|
-
private _dummyElement;
|
|
58
|
-
private _saveElement;
|
|
59
|
-
private _ynWrapperElement;
|
|
60
|
-
private _divYesElement;
|
|
61
|
-
private _divNoElement;
|
|
62
|
-
private _parentElement;
|
|
63
|
-
private _wwaSave;
|
|
64
|
-
private _save_select_id;
|
|
65
|
-
private _save_counter;
|
|
66
|
-
private _save_close;
|
|
67
|
-
constructor(wwa: WWA, x: number, y: number, width: number, height: number, cgFileName: string, isVisible: boolean, isYesno: boolean, isItemMenu: boolean, parentElement: HTMLElement);
|
|
68
|
-
setPosition(x: number, y: number, width: number, height: number): void;
|
|
69
|
-
setPositionByPlayerPosition(existsFaces: boolean, existsScoreWindow: boolean, displayCenter: boolean, playerPos: Position, cameraPos: Position): void;
|
|
70
|
-
setPositionEasy(pos: Positioning): void;
|
|
71
|
-
setMessage(message: string): void;
|
|
72
|
-
clear(): void;
|
|
73
|
-
setYesNoChoice(isYesNo: boolean): boolean;
|
|
74
|
-
isYesNoChoice(): boolean;
|
|
75
|
-
isSaveChoice(): boolean;
|
|
76
|
-
setItemMenuChoice(isItemMenu: boolean): boolean;
|
|
77
|
-
isItemMenuChoice(): boolean;
|
|
78
|
-
setInputDisable(): void;
|
|
79
|
-
isInputDisable(): boolean;
|
|
80
|
-
show(): void;
|
|
81
|
-
hide(): void;
|
|
82
|
-
isVisible(): boolean;
|
|
83
|
-
private isWideChar;
|
|
84
|
-
private createClassicTextElement;
|
|
85
|
-
update(): void;
|
|
86
|
-
setWWASave(wwaSave: WWASave): void;
|
|
87
|
-
createSaveDom(): void;
|
|
88
|
-
deleteSaveDom(): void;
|
|
89
|
-
setSaveID(save_select_id: number): void;
|
|
90
|
-
save(gameCvs: HTMLCanvasElement, _quickSaveData: WWAData): boolean;
|
|
91
|
-
load(): WWAData;
|
|
92
|
-
saveUpdate(): void;
|
|
93
|
-
isSaveClose(): boolean;
|
|
94
|
-
private cursor_wait;
|
|
95
|
-
saveControll(moveDir: Direction): void;
|
|
96
|
-
protected get windowName(): string;
|
|
97
|
-
}
|