@wayward/types 2.13.4-beta.dev.20230705.3 → 2.13.5-beta.dev.20230707.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.
@@ -15,7 +15,7 @@ import type { IMagicalPropertyInfo } from "game/item/IItem";
15
15
  import type Item from "game/item/Item";
16
16
  import type { MagicalPropertyType } from "game/magic/MagicalPropertyType";
17
17
  export interface IUpgradeCanUse extends IActionUsable {
18
- upgrade: IUpgradeable;
18
+ upgrades: IUpgradeable[];
19
19
  upgradeTarget: Item;
20
20
  }
21
21
  declare const _default: Action<[ActionArgument.ItemNearby, [ActionArgument.ItemNearby, ActionArgument.Undefined]], import("../../Human").default<number>, void, IUpgradeCanUse, [Item, (Item | undefined)?]>;
@@ -70,7 +70,7 @@ export interface IReferenceTypeMap {
70
70
  }
71
71
  export type ReferenceContext = [number, ReferenceType?];
72
72
  type ReferenceId<REFTYPE extends ReferenceType> = IReferenceTypeMap[REFTYPE] extends [REFTYPE, infer IdType, any?] ? IdType : number;
73
- export type Reference<REFTYPE extends ReferenceType | undefined = ReferenceType | undefined> = REFTYPE extends ReferenceType ? [id: ReferenceId<REFTYPE>, type: REFTYPE, context?: ReferenceContext, islandId?: IslandId] : [number];
73
+ export type Reference<REFTYPE extends ReferenceType | undefined = ReferenceType | undefined> = REFTYPE extends ReferenceType ? [id: ReferenceId<REFTYPE>, type: REFTYPE, context?: ReferenceContext, islandId?: IslandId, objectId?: number] : [number];
74
74
  export type Referenceable = IReferenceTypeMap[ReferenceableReferenceTypes];
75
75
  export type ResolveReference<REFTYPE extends ReferenceType> = IReferenceTypeMap[REFTYPE];
76
76
  export type EnumReferenceResolved<REFTYPE extends EnumReferenceTypes = EnumReferenceTypes> = IReferenceTypeMap[REFTYPE];
@@ -21,7 +21,7 @@ import Island from "game/island/Island";
21
21
  import { ItemType } from "game/item/IItem";
22
22
  import Item from "game/item/Item";
23
23
  import { Milestone } from "game/milestones/IMilestone";
24
- import type { EnumReferenceTypes, IReferenceTypeMap, Referenceable, Reference } from "game/reference/IReferenceManager";
24
+ import type { EnumReferenceTypes, IReferenceTypeMap, Reference, Referenceable } from "game/reference/IReferenceManager";
25
25
  import { ReferenceType } from "game/reference/IReferenceManager";
26
26
  import ReferenceTooltipHandler from "ui/screen/screens/game/ReferenceTooltipHandler";
27
27
  import type Tooltip from "ui/tooltip/Tooltip";
@@ -31,6 +31,7 @@ export default class ReferenceManager {
31
31
  static get(thing: Referenceable): Reference | undefined;
32
32
  static getReferenceType(thing: Value<IReferenceTypeMap>): ReferenceType;
33
33
  private referenceCursor;
34
+ private readonly referencesCache;
34
35
  constructor(game: Game);
35
36
  create(): number;
36
37
  reset(): void;
@@ -71,6 +71,7 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
71
71
  isProcessingPacket(): boolean;
72
72
  isServer(): boolean;
73
73
  isClient(): boolean;
74
+ get areSyncChecksSuppressed(): boolean;
74
75
  getPlayerIdentifier(): string;
75
76
  setPlayerIdentifier(identifier: string): void;
76
77
  getOptions(): IMultiplayerOptions;
@@ -165,6 +166,10 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
165
166
  getServerMods(): IServerMod[];
166
167
  updateGlobalServerDirectory(): void;
167
168
  checkConnection(): Promise<void>;
169
+ /**
170
+ * Checks if a sync check is active and enabled.
171
+ * Active means there's a current sync check being recorded
172
+ */
168
173
  isSyncCheckEnabled(syncCheck: MultiplayerSyncCheck): boolean;
169
174
  addSyncCheck(syncCheck: MultiplayerSyncCheck, value: any, addStackTrace?: boolean): void;
170
175
  addSyncCheckWithSeed(island: Island, syncCheck: MultiplayerSyncCheck, ...messages: any[]): void;
@@ -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 = 4, gameVersionName = "Beacon's Call";
11
+ export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 13, gameVersionPatch = 5, gameVersionName = "Bacon's Call \uD83D\uDC37";
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.4-beta.dev.20230705.3",
4
+ "version": "2.13.5-beta.dev.20230707.2",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",