@wayward/types 2.14.0-beta.dev.20240928.1 → 2.14.0-beta.dev.20240929.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.
|
@@ -20,6 +20,8 @@ export interface IInspectionsHandlerEvents {
|
|
|
20
20
|
export default abstract class InspectionsHandler extends EventEmitter.Host<IInspectionsHandlerEvents> {
|
|
21
21
|
protected readonly context: InfoProviderContext;
|
|
22
22
|
protected readonly inspectionsMap: Map<InspectType, HashSet<Inspection<any>>>;
|
|
23
|
+
private static readonly registeredInspections;
|
|
24
|
+
static cleanupRegisteredInspections(): void;
|
|
23
25
|
static makeInspectionsSet(...values: Array<IterableOr<Inspection<any> | undefined>>): HashSet<Inspection<any>>;
|
|
24
26
|
protected registered: boolean;
|
|
25
27
|
constructor(context: InfoProviderContext, inspectionsMap?: Map<InspectType, HashSet<Inspection<any>>>);
|
|
@@ -97,11 +97,10 @@ export interface IIslandEvents {
|
|
|
97
97
|
getDefense(defense: Defense | undefined, target: Human | Creature | CreatureType, damageType?: DamageType): Defense | undefined;
|
|
98
98
|
calculateAttackOutcome(damageOutcome: IDamageOutcome, input: IDamageOutcomeInput, attackValue: number, defenseValue: number): IDamageOutcome | undefined;
|
|
99
99
|
/**
|
|
100
|
-
* Called when determining how many ticks to process when fast forwarding an island
|
|
100
|
+
* Called when determining how many ticks to process when fast forwarding an island
|
|
101
101
|
* @param fastForwardAmount Fast forward amount
|
|
102
|
-
* @param travelTime Travel time
|
|
103
102
|
*/
|
|
104
|
-
getFastForwardAmount(fastForwardAmount: number
|
|
103
|
+
getFastForwardAmount(fastForwardAmount: number): number | undefined;
|
|
105
104
|
fastForwardStart(): any;
|
|
106
105
|
fastForwardEnd(): any;
|
|
107
106
|
/**
|
|
@@ -41,7 +41,7 @@ export default abstract class InspectionsList<INSPECTIONS_HANDLER extends Inspec
|
|
|
41
41
|
refreshInspectTypeFilter(): this;
|
|
42
42
|
deregister(): void;
|
|
43
43
|
setDisplayLevel(displayLevel: InfoDisplayLevel): this;
|
|
44
|
-
refresh(): this
|
|
44
|
+
refresh(): Promise<this>;
|
|
45
45
|
private refreshAsync;
|
|
46
46
|
protected abstract initializeInspections(): INSPECTIONS_HANDLER | undefined;
|
|
47
47
|
isValid?(): boolean;
|
package/package.json
CHANGED