@wayward/types 2.14.0-beta.dev.20241002.1 → 2.14.0-beta.dev.20241003.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.
|
@@ -18,6 +18,7 @@ import Component from "@wayward/game/ui/component/Component";
|
|
|
18
18
|
import type { TranslationGenerator } from "@wayward/game/ui/component/IComponent";
|
|
19
19
|
import type HashSet from "@wayward/utilities/collection/set/HashSet";
|
|
20
20
|
import type { Events, IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
21
|
+
import ResolvablePromise from "@wayward/utilities/promise/ResolvablePromise";
|
|
21
22
|
export interface ITileInspectionsEvents extends Events<Component> {
|
|
22
23
|
refreshed(isValid?: boolean): any;
|
|
23
24
|
updateInspectTypeFilter(): any;
|
|
@@ -30,7 +31,7 @@ export default abstract class InspectionsList<INSPECTIONS_HANDLER extends Inspec
|
|
|
30
31
|
private readonly paragraphInspectionsInvalid;
|
|
31
32
|
private inspectTypeFilter;
|
|
32
33
|
protected inspectionsHandler?: InspectionsHandler;
|
|
33
|
-
protected
|
|
34
|
+
protected refreshInspectionsOfTypeRunning?: ResolvablePromise;
|
|
34
35
|
protected inspectionsHandlerUpdatedInspectionsCallback?: (_: any, inspectType: InspectType, inspections: HashSet<Inspection<any>>, oldInspections: HashSet<Inspection<any>> | undefined) => void;
|
|
35
36
|
private displayLevel;
|
|
36
37
|
private readonly inspectTypeWrappers;
|
|
@@ -40,7 +41,7 @@ export default abstract class InspectionsList<INSPECTIONS_HANDLER extends Inspec
|
|
|
40
41
|
all(): Iterable<[InspectType, HashSet<Inspection<any>>]>;
|
|
41
42
|
setInspectTypeFilter(filter?: (inspectType: InspectType) => boolean): this;
|
|
42
43
|
refreshInspectTypeFilter(): this;
|
|
43
|
-
deregister(): void
|
|
44
|
+
deregister(): Promise<void>;
|
|
44
45
|
setDisplayLevel(displayLevel: InfoDisplayLevel): this;
|
|
45
46
|
refresh(): this;
|
|
46
47
|
private refreshAsync;
|
package/package.json
CHANGED