@wayward/types 2.11.0-beta.dev.20211206.1 → 2.11.0-beta.dev.20211207.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.
@@ -113,6 +113,7 @@ export declare enum EquipType {
113
113
  LeftHand = 10,
114
114
  RightHand = 11
115
115
  }
116
+ export declare const equipmentRenderOrder: EquipType[];
116
117
  export declare type InsulationWeight = number | [number, "onlyWhenEquipped"];
117
118
  export declare const equipSlotInsulationWeights: Record<TempType, Record<EquipType, InsulationWeight>>;
118
119
  export interface IExcludedWhenLowering {
@@ -21,8 +21,14 @@ export interface IInfoProviderEvents {
21
21
  * Should be emitted when the info provider is starting to initialize its component.
22
22
  */
23
23
  init(component: Component): any;
24
- /** Emitted when the info provider finishes initializing */
24
+ /**
25
+ * Emitted when the info provider finishes initializing
26
+ */
25
27
  initDone(): any;
28
+ /**
29
+ * Should be emitted when the info provider skipped initializing
30
+ */
31
+ initSkip(): any;
26
32
  /**
27
33
  * Should be emitted when the info provider has detected an update and its contents will need to be refreshed.
28
34
  */
@@ -364,7 +364,6 @@ export declare enum ContainerReferenceType {
364
364
  }
365
365
  export interface IBaseContainerReference {
366
366
  crt: ContainerReferenceType;
367
- ii?: IslandId;
368
367
  /**
369
368
  * Legacy, don't use this
370
369
  * @deprecated
@@ -90,6 +90,7 @@ export default class ScreenManager extends EventEmitter.Host<IScreenManagerEvent
90
90
  private hideAndRemove;
91
91
  /**
92
92
  * Removes a screen, or does nothing if the given screen is not initialized.
93
+ * Note: "hide" event is always emitted before remove since this is only called from hideAndRemove
93
94
  */
94
95
  private remove;
95
96
  }
@@ -74,6 +74,7 @@ export default class GameScreen extends Screen {
74
74
  protected onUnshowMoreInfo(): void;
75
75
  protected onCancel(): boolean;
76
76
  protected create(): void;
77
+ protected onHide(): void;
77
78
  protected onResize(): void;
78
79
  /**
79
80
  * Adds a quadrant element to the screen.
@@ -32,6 +32,7 @@ export default abstract class InspectionsList<INSPECTIONS_HANDLER extends Inspec
32
32
  private displayLevel;
33
33
  private refreshingId?;
34
34
  private readonly inspectTypeWrappers;
35
+ private readonly previouslyRefreshed;
35
36
  constructor(context: InfoProviderContext);
36
37
  setInspectTypeFilter(filter?: (inspectType: InspectType) => boolean): this;
37
38
  refreshInspectTypeFilter(): this;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.11.0-beta.dev.20211206.1",
4
+ "version": "2.11.0-beta.dev.20211207.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",