@wayward/types 2.11.6-beta.dev.20220401.1 → 2.11.6-beta.dev.20220403.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.
|
@@ -128,7 +128,7 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
|
128
128
|
passTurn(player: Player, turnType?: TurnType): void;
|
|
129
129
|
tickRealtime(): void;
|
|
130
130
|
updateView(source: RenderSource, updateFov?: boolean, computeSpritesNow?: boolean): void;
|
|
131
|
-
updateTablesAndWeight(): void;
|
|
131
|
+
updateTablesAndWeight(deferTableUpdates?: boolean): void;
|
|
132
132
|
/**
|
|
133
133
|
* Gets the largest damage type weaknesses of a human or creature based on a type and damage value
|
|
134
134
|
* @param defense Defense of the human or creature
|
|
@@ -91,6 +91,8 @@ export default class InGameScreen extends BaseScreen {
|
|
|
91
91
|
private nonCraftableItemTypes;
|
|
92
92
|
private dismantleItems;
|
|
93
93
|
private craftingDialogDirty;
|
|
94
|
+
private dismantleDialogDirty;
|
|
95
|
+
private invalidatingTargets;
|
|
94
96
|
constructor();
|
|
95
97
|
selector(): string;
|
|
96
98
|
bindElements(): void;
|
|
@@ -219,9 +221,13 @@ export default class InGameScreen extends BaseScreen {
|
|
|
219
221
|
*/
|
|
220
222
|
filterContainers(): void;
|
|
221
223
|
/**
|
|
222
|
-
* Invalidates and updates mouse targets
|
|
224
|
+
* Invalidates and updates mouse targets after 300 milliseconds (should be enough time to calculate all the new stuffs).
|
|
223
225
|
*/
|
|
224
226
|
invalidateTableTargets(): void;
|
|
227
|
+
/**
|
|
228
|
+
* Will force an update on crafting and dismantle tables based on dirty variables.
|
|
229
|
+
*/
|
|
230
|
+
updateTablesDirty(which?: "crafting" | "dismantle"): void;
|
|
225
231
|
showSortContextMenu(element: JQuery, container: JQuery, messageType: Message): void;
|
|
226
232
|
getContainerId(containerElement: JQuery): string;
|
|
227
233
|
sortItems(containerElement: JQuery, sortType: SortType, messageType?: Message, canReverse?: boolean, activeSort?: boolean): void;
|
package/package.json
CHANGED