@wayward/types 2.13.0-beta.dev.20230428.2 → 2.13.0-beta.dev.20230429.2

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.
@@ -67,6 +67,7 @@ declare class UsableAction<REQUIREMENTS extends IUsableActionRequirements = IUsa
67
67
  private translator?;
68
68
  getTranslation(using?: IUsableActionPossibleUsing, which?: ActionWhichTranslation, context?: UsableActionDisplayContext): Translation | undefined;
69
69
  getOrder(using?: IUsableActionPossibleUsing): number;
70
+ getContextualLevel(using?: IUsableActionPossibleUsing): number;
70
71
  canUseOnMoveWhenDiscovered(): boolean;
71
72
  canUseOnMove(): boolean;
72
73
  }
@@ -24,7 +24,7 @@ export default class FlowFieldManager {
24
24
  private readonly island;
25
25
  private readonly size;
26
26
  delegate: DebugRendererDelegate;
27
- flowFields: Record<string, FlowField>;
27
+ flowFields: Map<"-1-0" | "-1-1" | "-1-2" | "-1-4" | "-1-8" | "-1-16" | "-1-32" | "-1-64" | "-1-128" | "-1-256" | "-1-512" | "-1-1024" | "-1-15" | "0-0" | "0-1" | "0-2" | "0-4" | "0-8" | "0-16" | "0-32" | "0-64" | "0-128" | "0-256" | "0-512" | "0-1024" | "0-15" | "1-0" | "1-1" | "1-2" | "1-4" | "1-8" | "1-16" | "1-32" | "1-64" | "1-128" | "1-256" | "1-512" | "1-1024" | "1-15", FlowField>;
28
28
  humans: IFlowFieldHuman[];
29
29
  private _flowFieldHumans;
30
30
  constructor(island: Island, size: number);
@@ -50,6 +50,5 @@ export default class FlowFieldManager {
50
50
  reset(): void;
51
51
  private getDirection;
52
52
  private getFlowField;
53
- private getFlowFields;
54
53
  }
55
54
  export {};
@@ -8,4 +8,7 @@
8
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
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
+ import type { WorldZ } from "game/WorldZ";
12
+ import type { MoveType } from "game/entity/IEntity";
11
13
  export declare const flowFieldBlockedPenalty = 11;
14
+ export type FlowFieldKey = `${WorldZ}-${MoveType}`;
@@ -9,12 +9,12 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import EventEmitter from "event/EventEmitter";
12
+ import type { Game } from "game/Game";
12
13
  import type Player from "game/entity/player/Player";
13
14
  import type PlayerManager from "game/entity/player/PlayerManager";
14
15
  import type { IQuest } from "game/entity/player/quest/quest/IQuest";
15
16
  import { QuestType } from "game/entity/player/quest/quest/IQuest";
16
17
  import type { RequirementInstance } from "game/entity/player/quest/quest/Quest";
17
- import type { Game } from "game/Game";
18
18
  export interface IQuestManager extends EventEmitter.Host<IQuestManagerEvents> {
19
19
  /**
20
20
  * Get all quests
@@ -101,9 +101,8 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
101
101
  readonly players: Set<Human<number>>;
102
102
  /**
103
103
  * Entity move types in fov on this island
104
- * `${z}-${moveType}` -> Humans
105
104
  */
106
- readonly moveTypesInFov: Map<string, Set<Human<number>>>;
105
+ readonly moveTypesInFov: Map<"-1-0" | "-1-1" | "-1-2" | "-1-4" | "-1-8" | "-1-16" | "-1-32" | "-1-64" | "-1-128" | "-1-256" | "-1-512" | "-1-1024" | "-1-15" | "0-0" | "0-1" | "0-2" | "0-4" | "0-8" | "0-16" | "0-32" | "0-64" | "0-128" | "0-256" | "0-512" | "0-1024" | "0-15" | "1-0" | "1-1" | "1-2" | "1-4" | "1-8" | "1-16" | "1-32" | "1-64" | "1-128" | "1-256" | "1-512" | "1-1024" | "1-15", Set<Human<number>>>;
107
106
  previousSaveVersion: IVersionInfo | undefined;
108
107
  brokenReferencesCount: number;
109
108
  readonly id: IslandId;
@@ -157,7 +157,7 @@ export default class TemperatureManager extends EventEmitter.Host<ITemperatureMa
157
157
  protected onTickStart(island: Island): void;
158
158
  protected onTickEnd(island: Island): void;
159
159
  private runContainerInvalidations;
160
- update(invalidateContainers?: boolean, source?: GetterOfOr<string>): void;
160
+ update(invalidateContainers: boolean | undefined, source: GetterOfOr<string>): void;
161
161
  private processScheduledUpdate;
162
162
  private calculateProduced;
163
163
  private updateProducedType;
@@ -208,4 +208,5 @@ export default class TemperatureManager extends EventEmitter.Host<ITemperatureMa
208
208
  private getProduced;
209
209
  private doesProduceTemperature;
210
210
  private generateEmptyTempCache;
211
+ private getSourceString;
211
212
  }
@@ -173,7 +173,7 @@ export default class InGameScreen extends BaseScreen {
173
173
  onSortableItemReceive(sortableEvent: ISortableEvent): void;
174
174
  updateCraftingDialog(craftableItemTypes: ItemType[], nonCraftableItemTypes: ItemType[]): void;
175
175
  updateDismantleTab(dismantleItems: IDismantleComponent, force?: boolean): void;
176
- createCraftItemElements(containerSortInfo: IContainerSortInfo | undefined): void;
176
+ createCraftItemElements(containerSortInfo: IContainerSortInfo | undefined, force?: boolean): void;
177
177
  updateItem(item: Item, updateChildren?: boolean): void;
178
178
  onActionBarSlotUpdate(actionBar: ActionBar, actionSlot: ActionSlot, item?: Item, oldItem?: Item): void;
179
179
  private tooltipTarget?;
@@ -8,7 +8,7 @@
8
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
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
- export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 13, gameVersionPatch = 0, gameVersionName = "Next";
11
+ export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 13, gameVersionPatch = 0, gameVersionName = "Beacon's Call";
12
12
  export declare const gameVersion: string;
13
13
  export declare const gameVersionTitleMajor: string;
14
14
  export declare const gameVersionTitleMinor: string;
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.13.0-beta.dev.20230428.2",
4
+ "version": "2.13.0-beta.dev.20230429.2",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",