@wayward/types 2.13.0-beta.dev.20230408.2 → 2.13.0-beta.dev.20230410.1
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/definitions/game/audio/Audio.d.ts +2 -2
- package/definitions/game/game/entity/Human.d.ts +1 -1
- package/definitions/game/game/item/IItem.d.ts +4 -0
- package/definitions/game/game/item/IItemManager.d.ts +0 -2
- package/definitions/game/game/item/ItemManager.d.ts +1 -1
- package/definitions/game/game/item/WorldContainer.d.ts +16 -0
- package/definitions/game/ui/old/OldUi.d.ts +3 -2
- package/definitions/game/ui/old/screens/InGameScreen.d.ts +10 -2
- package/definitions/game/ui/screen/screens/game/component/Dialog.d.ts +0 -1
- package/definitions/game/ui/screen/screens/game/dialog/IslandsSailDialog.d.ts +1 -0
- package/definitions/hosts/electron/main/launchOptions.d.ts +1 -0
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ export default class WAudio extends EventEmitter.Host<IAudioEvents> {
|
|
|
37
37
|
private readonly _musicInfo;
|
|
38
38
|
private readonly _sfxInfo;
|
|
39
39
|
private readonly _soundQueue;
|
|
40
|
-
private readonly
|
|
40
|
+
private readonly _recentlyPlayedGameSounds;
|
|
41
41
|
private readonly _fileFormat;
|
|
42
42
|
private _onInitializedPromise;
|
|
43
43
|
private _audioContext;
|
|
@@ -73,7 +73,7 @@ export default class WAudio extends EventEmitter.Host<IAudioEvents> {
|
|
|
73
73
|
/**
|
|
74
74
|
* Plays a ui sound effect (a sound effect with no position)
|
|
75
75
|
*/
|
|
76
|
-
playUiSoundEffect(sfxType: SfxType, speed?: number): void
|
|
76
|
+
playUiSoundEffect(sfxType: SfxType, speed?: number): Promise<void>;
|
|
77
77
|
/**
|
|
78
78
|
* Plays a sound effect (game / location based)
|
|
79
79
|
*/
|
|
@@ -180,7 +180,7 @@ export default abstract class Human<TypeType extends number = number> extends En
|
|
|
180
180
|
addTamedCreature(creature: Creature): void;
|
|
181
181
|
removeTamedCreature(creature: Creature): boolean;
|
|
182
182
|
resetMovementIntent(): void;
|
|
183
|
-
createItemInInventory(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, quality?: Quality, updateTables?: boolean
|
|
183
|
+
createItemInInventory(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, quality?: Quality, updateTables?: boolean): Item;
|
|
184
184
|
damageRandomEquipment(): void;
|
|
185
185
|
getDamageModifier(): number;
|
|
186
186
|
calculateDamageAmount(attackType: AttackType, weapon?: Item, ammoItem?: Item): number;
|
|
@@ -502,6 +502,10 @@ export interface IMagicalPropertyInfo {
|
|
|
502
502
|
* Generates the random sub-property to use for this magical property, if this magical property is a magical property with subtypes.
|
|
503
503
|
*/
|
|
504
504
|
subType?: MagicalSubPropertySubTypes | (() => MagicalSubPropertySubTypes);
|
|
505
|
+
/**
|
|
506
|
+
* Set to true if the value can be expanded beyond its normal maximum (in the case of relic items).
|
|
507
|
+
*/
|
|
508
|
+
expandable?: boolean;
|
|
505
509
|
}
|
|
506
510
|
export interface IItemUsed {
|
|
507
511
|
usedBy?: string[];
|
|
@@ -90,13 +90,11 @@ export interface IDoodadsUsed {
|
|
|
90
90
|
group: DoodadType | DoodadTypeGroup;
|
|
91
91
|
}
|
|
92
92
|
export interface IAddToContainerOptions {
|
|
93
|
-
movingMultiple?: boolean;
|
|
94
93
|
skipMessage?: boolean;
|
|
95
94
|
skipUpdateTables?: boolean;
|
|
96
95
|
skipTileUpdate?: boolean;
|
|
97
96
|
}
|
|
98
97
|
export interface IPlaceOnTileOptions {
|
|
99
|
-
movingMultiple?: boolean;
|
|
100
98
|
force?: boolean;
|
|
101
99
|
skipMessage?: boolean;
|
|
102
100
|
skipTileUpdate?: boolean;
|
|
@@ -137,7 +137,7 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
|
|
|
137
137
|
getDisassemblyComponents(description: IItemDescription, quality: Quality | undefined): Item[];
|
|
138
138
|
getDisassemblyComponentsAsItemTypes(description: IItemDescription): Array<ItemType | ItemTypeGroup>;
|
|
139
139
|
getWeightCapacity(container: IContainer, includeMagic?: boolean): number | undefined;
|
|
140
|
-
create(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, container: IContainer | undefined, quality?: Quality, human?: Human,
|
|
140
|
+
create(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, container: IContainer | undefined, quality?: Quality, human?: Human, updateTables?: boolean): Item;
|
|
141
141
|
createFake(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, quality?: Quality, human?: Human): Item;
|
|
142
142
|
getContainedContainers(container: IContainer): IContainer[];
|
|
143
143
|
moveAllFromContainerToInventory(human: Human, container: IContainer, ofQuality?: Quality): Item[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2011-2021 Unlok
|
|
3
|
+
* https://www.unlok.ca
|
|
4
|
+
*
|
|
5
|
+
* Credits & Thanks:
|
|
6
|
+
* https://www.unlok.ca/credits-thanks/
|
|
7
|
+
*
|
|
8
|
+
* Wayward is a copyrighted and licensed work. Modification and/or distribution of any source files is prohibited. If you wish to modify the game in any way, please refer to the modding guide:
|
|
9
|
+
* https://github.com/WaywardGame/types/wiki
|
|
10
|
+
*/
|
|
11
|
+
import type { IContainer } from "game/item/IItem";
|
|
12
|
+
import type Item from "game/item/Item";
|
|
13
|
+
export declare class WorldContainer implements IContainer {
|
|
14
|
+
readonly containedItems: Item[];
|
|
15
|
+
toString(): string;
|
|
16
|
+
}
|
|
@@ -51,8 +51,9 @@ export default class OldUi {
|
|
|
51
51
|
closeContainer(container: IContainer): void;
|
|
52
52
|
refreshContainerName(container: IContainer): void;
|
|
53
53
|
isContainerOpen(value: unknown): boolean;
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
startAddingMultipleItemsToContainer(container: IContainer): void;
|
|
55
|
+
addItemToContainer(item: Item, container: IContainer, internal?: boolean, updateTables?: boolean): void;
|
|
56
|
+
completeAddingMultipleItemsToContainer(container: IContainer, itemsToSync?: Item[]): void;
|
|
56
57
|
removeItemFromContainer(item: Item, container: IContainer): void;
|
|
57
58
|
getDialogInfo(dialogId: OldUiDialogId): IDialogInfo;
|
|
58
59
|
setVersionExtra(msg: string): void;
|
|
@@ -144,10 +144,18 @@ export default class InGameScreen extends BaseScreen {
|
|
|
144
144
|
private readonly SYMBOL_LAST_NEARLY_DECAYED;
|
|
145
145
|
private readonly SYMBOL_LAST_DECAY;
|
|
146
146
|
syncDecayBar(item: Item, force?: boolean, element?: HTMLElement | null): void;
|
|
147
|
-
addItemToContainer(item: Item, container: IContainer, _internal?: boolean,
|
|
147
|
+
addItemToContainer(item: Item, container: IContainer, _internal?: boolean, updateTables?: boolean, containerElement?: JQuery): void;
|
|
148
148
|
insertItemStringToContainer(itemElement: string | JQuery, containerElement: JQuery): void;
|
|
149
149
|
onAddItemsToContainer(containerElement: JQuery, containerDialogElement: JQuery | undefined, isInventoryContainer: boolean, updateTables?: boolean): void;
|
|
150
|
-
|
|
150
|
+
/**
|
|
151
|
+
* Call this before starting to add items to a container
|
|
152
|
+
*/
|
|
153
|
+
startAddingMultipleItemsToContainer(container: IContainer): void;
|
|
154
|
+
/**
|
|
155
|
+
* Call this after adding multiple items to a container.
|
|
156
|
+
* You must also call startAddingMultipleItemsToContainer before adding any items
|
|
157
|
+
*/
|
|
158
|
+
completeAddingMultipleItemsToContainer(container: IContainer, itemsToSync?: Item[], saveItemOrder?: boolean, updateTables?: boolean): void;
|
|
151
159
|
removeItemFromContainer(item: Item, container: IContainer): void;
|
|
152
160
|
refreshContainerName(container: IContainer, nestedUpdate?: boolean): void;
|
|
153
161
|
getInventoryItemsInOrder(): any[];
|
|
@@ -154,7 +154,6 @@ declare abstract class Dialog extends Component implements IDialog {
|
|
|
154
154
|
*/
|
|
155
155
|
close(): Promise<boolean>;
|
|
156
156
|
protected onRemove1(): void;
|
|
157
|
-
protected onAppend1(): void;
|
|
158
157
|
addPanel(id: string | number): Component<HTMLElement>;
|
|
159
158
|
showPanel(id: string | number): Component<HTMLElement> | undefined;
|
|
160
159
|
getPanel(id: string | number): Component<HTMLElement> | undefined;
|
|
@@ -15,6 +15,7 @@ export default class IslandsSailDialog extends IslandsDialog {
|
|
|
15
15
|
closeOnTravel: boolean;
|
|
16
16
|
readonly sailButton: Button;
|
|
17
17
|
constructor();
|
|
18
|
+
protected onAppend(): void;
|
|
18
19
|
protected initializeSettingsPanel(panel: Component): void;
|
|
19
20
|
protected onChangedSelectedIsland(animate?: boolean): void;
|
|
20
21
|
protected onMouseMoveWhileOver(): void;
|
package/package.json
CHANGED