@wayward/types 2.15.1-beta.dev.20251027.1 → 2.15.2-beta

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.
Files changed (101) hide show
  1. package/.github/workflows/main.yml +7 -6
  2. package/definitions/game/Init.d.ts +2 -1
  3. package/definitions/game/Uninit.d.ts +2 -1
  4. package/definitions/game/game/IGame.d.ts +9 -2
  5. package/definitions/game/game/biome/template/Template.d.ts +1 -1
  6. package/definitions/game/game/curse/Curse.d.ts +8 -2
  7. package/definitions/game/game/curse/CurseEvent.d.ts +8 -0
  8. package/definitions/game/game/doodad/Doodad.d.ts +3 -2
  9. package/definitions/game/game/doodad/IDoodad.d.ts +6 -2
  10. package/definitions/game/game/entity/Human.d.ts +6 -1
  11. package/definitions/game/game/entity/IEntity.d.ts +1 -0
  12. package/definitions/game/game/entity/action/IAction.d.ts +2 -1
  13. package/definitions/game/game/entity/action/actions/Apply.d.ts +1 -1
  14. package/definitions/game/game/entity/action/actions/Attack.d.ts +2 -2
  15. package/definitions/game/game/entity/action/actions/Chop.d.ts +1 -1
  16. package/definitions/game/game/entity/action/actions/CloseContainer.d.ts +1 -1
  17. package/definitions/game/game/entity/action/actions/CloseDoor.d.ts +1 -1
  18. package/definitions/game/game/entity/action/actions/Consecrate.d.ts +1 -1
  19. package/definitions/game/game/entity/action/actions/Cure.d.ts +1 -1
  20. package/definitions/game/game/entity/action/actions/Dismount.d.ts +1 -1
  21. package/definitions/game/game/entity/action/actions/DrinkItem.d.ts +1 -1
  22. package/definitions/game/game/entity/action/actions/Eat.d.ts +1 -1
  23. package/definitions/game/game/entity/action/actions/EquipFromArmorStand.d.ts +1 -1
  24. package/definitions/game/game/entity/action/actions/Heal.d.ts +1 -1
  25. package/definitions/game/game/entity/action/actions/Hitch.d.ts +1 -1
  26. package/definitions/game/game/entity/action/actions/Melee.d.ts +1 -1
  27. package/definitions/game/game/entity/action/actions/Mine.d.ts +1 -1
  28. package/definitions/game/game/entity/action/actions/Move.d.ts +2 -1
  29. package/definitions/game/game/entity/action/actions/OpenContainer.d.ts +1 -1
  30. package/definitions/game/game/entity/action/actions/OpenDoor.d.ts +1 -1
  31. package/definitions/game/game/entity/action/actions/PackGround.d.ts +1 -1
  32. package/definitions/game/game/entity/action/actions/PlaceDown.d.ts +1 -1
  33. package/definitions/game/game/entity/action/actions/PropOpenDoor.d.ts +1 -1
  34. package/definitions/game/game/entity/action/actions/ProtectItem.d.ts +1 -1
  35. package/definitions/game/game/entity/action/actions/RemovePlayer.d.ts +14 -0
  36. package/definitions/game/game/entity/action/actions/Ride.d.ts +1 -1
  37. package/definitions/game/game/entity/action/actions/SetCreatureAiAll.d.ts +2 -1
  38. package/definitions/game/game/entity/action/actions/Sleep.d.ts +1 -1
  39. package/definitions/game/game/entity/action/actions/StartFire.d.ts +0 -2
  40. package/definitions/game/game/entity/action/actions/TakeFromArmorStand.d.ts +1 -1
  41. package/definitions/game/game/entity/action/actions/Throw.d.ts +1 -1
  42. package/definitions/game/game/entity/action/actions/Till.d.ts +1 -1
  43. package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +1 -1
  44. package/definitions/game/game/entity/action/actions/Uncage.d.ts +1 -1
  45. package/definitions/game/game/entity/action/actions/Unhitch.d.ts +1 -1
  46. package/definitions/game/game/entity/action/actions/UnprotectItem.d.ts +1 -1
  47. package/definitions/game/game/entity/action/actions/UpdateDirection.d.ts +1 -3
  48. package/definitions/game/game/entity/action/actions/Upgrade.d.ts +1 -1
  49. package/definitions/game/game/entity/action/usable/UsableActionType.d.ts +7 -4
  50. package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
  51. package/definitions/game/game/entity/player/PlayerManager.d.ts +2 -1
  52. package/definitions/game/game/island/Island.d.ts +17 -4
  53. package/definitions/game/game/island/automation/Automation.d.ts +1 -0
  54. package/definitions/game/game/island/automation/IAutomation.d.ts +21 -0
  55. package/definitions/game/game/item/IItem.d.ts +13 -22
  56. package/definitions/game/game/item/Item.d.ts +6 -5
  57. package/definitions/game/game/item/ItemManager.d.ts +3 -3
  58. package/definitions/game/game/item/Items.d.ts +1 -9
  59. package/definitions/game/game/item/runes/RuneEffects.d.ts +58 -0
  60. package/definitions/game/game/magic/IMagicalProperty.d.ts +2 -0
  61. package/definitions/game/game/magic/MagicalPropertyDescriptions.d.ts +1 -0
  62. package/definitions/game/game/magic/MagicalPropertyManager.d.ts +4 -4
  63. package/definitions/game/game/meta/prompt/IPrompt.d.ts +62 -60
  64. package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +2 -0
  65. package/definitions/game/game/milestones/milestone/Runekeeper.d.ts +1 -1
  66. package/definitions/game/game/options/modifiers/milestone/modifiers/Afflicted.d.ts +6 -0
  67. package/definitions/game/game/reference/IReferenceManager.d.ts +3 -0
  68. package/definitions/game/language/DictionaryMap.d.ts +12 -0
  69. package/definitions/game/language/dictionary/Message.d.ts +838 -837
  70. package/definitions/game/language/dictionary/UiTranslation.d.ts +668 -662
  71. package/definitions/game/language/english/item/ItemAffixes.d.ts +1 -1
  72. package/definitions/game/mod/Mod.d.ts +48 -10
  73. package/definitions/game/mod/ModRegistry.d.ts +2 -2
  74. package/definitions/game/multiplayer/IMultiplayer.d.ts +7 -2
  75. package/definitions/game/multiplayer/Multiplayer.d.ts +8 -3
  76. package/definitions/game/multiplayer/matchmaking/IMatchmaking.d.ts +2 -0
  77. package/definitions/game/multiplayer/networking/SmartConnection.d.ts +2 -1
  78. package/definitions/game/multiplayer/networking/SteamNetworkConnection.d.ts +2 -1
  79. package/definitions/game/multiplayer/networking/WebRTCConnection.d.ts +4 -1
  80. package/definitions/game/multiplayer/networking/WebSocketConnection.d.ts +2 -1
  81. package/definitions/game/multiplayer/networking/WebWorkerConnection.d.ts +2 -1
  82. package/definitions/game/renderer/overlay/EffectRadiusOverlay.d.ts +3 -0
  83. package/definitions/game/save/data/SaveDataGlobal.d.ts +0 -1
  84. package/definitions/game/save/upgrade/UpgradeVersionRegistry.d.ts +1 -1
  85. package/definitions/game/save/upgrade/versions/beta2.15.2/beta2.15.2-dev20251030.d.ts +12 -0
  86. package/definitions/game/save/upgrade/versions/beta2.15.2/beta2.15.2-dev20251103.d.ts +12 -0
  87. package/definitions/game/save/upgrade/versions/beta2.15.2/beta2.15.2.d.ts +12 -0
  88. package/definitions/game/ui/input/Bindable.d.ts +228 -223
  89. package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +5 -1
  90. package/definitions/game/ui/screen/screens/game/static/actions/ActionsDrawer.d.ts +4 -1
  91. package/definitions/game/ui/screen/screens/menu/menus/JoinServerChooseModifiersMenu.d.ts +2 -2
  92. package/definitions/game/ui/screen/screens/menu/menus/pause/MultiplayerOptionsMenu.d.ts +8 -0
  93. package/definitions/game/utilities/collection/map/DefaultMap.d.ts +1 -1
  94. package/definitions/game/utilities/dev/Reflection.d.ts +2 -0
  95. package/definitions/game/utilities/object/Merge.d.ts +3 -1
  96. package/definitions/hosts/shared/globals.d.ts +2 -2
  97. package/definitions/utilities/event/EventEmitter.d.ts +3 -0
  98. package/definitions/utilities/math/Math2.d.ts +7 -1
  99. package/definitions/utilities/prototype/Define.d.ts +4 -2
  100. package/package.json +1 -1
  101. /package/definitions/game/game/item/{cooldown → runes}/InvokeCooldown.d.ts +0 -0
@@ -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
- import type { ItemTypeExtra } from "@wayward/game/game/item/IItem";
11
+ import { ItemTypeExtra } from "@wayward/game/game/item/IItem";
12
12
  import { ItemType } from "@wayward/game/game/item/IItem";
13
13
  declare const _default: {
14
14
  affixesBeforeReformat: Map<ItemType | ItemTypeExtra, string>;
@@ -9,10 +9,18 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import "@wayward/game/IGlobal";
12
+ import type { ActionArguments, ActionArgumentTupleTypes, ActionType, IActionUsable } from "@wayward/game/game/entity/action/IAction";
13
+ import type Entity from "@wayward/game/game/entity/Entity";
14
+ import type { IPromptDescriptionBase } from "@wayward/game/game/meta/prompt/IPrompt";
15
+ import type { ModRegistrationTime } from "@wayward/game/mod/BaseMod";
12
16
  import BaseMod from "@wayward/game/mod/BaseMod";
17
+ import type InterModRegistry from "@wayward/game/mod/InterModRegistry";
13
18
  import type { ModInformation } from "@wayward/game/mod/ModInformation";
19
+ import type { IOverrideDescription, PromptConstructorFunction } from "@wayward/game/mod/ModRegistry";
20
+ import Register from "@wayward/game/mod/ModRegistry";
14
21
  import Log from "@wayward/utilities/Log";
15
22
  declare abstract class Mod extends BaseMod {
23
+ constructor(mod: ModInformation);
16
24
  /**
17
25
  * Called when the mod is initialized (when it's enabled via the Mod Manager)
18
26
  */
@@ -35,43 +43,72 @@ declare abstract class Mod extends BaseMod {
35
43
  */
36
44
  onUnload(): void;
37
45
  }
46
+ type RegisterKeys = keyof Omit<typeof Register, ("registry" | "bulk")>;
47
+ declare module "@wayward/game/game/entity/action/Action" {
48
+ interface Action<A extends ActionArguments, T extends ActionType = ActionType, E extends Entity = Entity, R = void, CU extends IActionUsable = IActionUsable, AV extends any[] = ActionArgumentTupleTypes<A>> {
49
+ modRegistration(name: string): this;
50
+ }
51
+ }
38
52
  declare namespace Mod {
53
+ type RegisterHelper = {
54
+ [K in keyof typeof Register as K extends RegisterKeys ? K : never]: ({
55
+ prompt<DESCRIPTION extends IPromptDescriptionBase<any[]>>(name: string, construct: PromptConstructorFunction<DESCRIPTION>): Registration<DESCRIPTION>;
56
+ interModRegistry<T>(name: string): Registration<InterModRegistry<T>>;
57
+ override<OBJECT extends object, PROPERTY extends keyof OBJECT>(time: ModRegistrationTime.Initialize | ModRegistrationTime.Load, overrider: () => IOverrideDescription<OBJECT, PROPERTY>): OBJECT;
58
+ } extends infer OVERRIDES ? K extends keyof OVERRIDES ? OVERRIDES[K] : (ReturnType<typeof Register[K]> extends <K extends string | number | symbol>(target: Record<K, infer V>, key: K) => void ? V : never) extends infer T ? (Parameters<typeof Register[K]> extends [string, ...infer PARAMS] ? {
59
+ (name: string): PartialRegistration<T, PARAMS>;
60
+ (...params: Parameters<typeof Register[K]>): Registration<T>;
61
+ } : {
62
+ (...params: Parameters<typeof Register[K]>): Registration<T>;
63
+ }) : never : never);
64
+ };
65
+ export interface Registration<T> {
66
+ value: T;
67
+ }
68
+ export interface PartialRegistration<T, PARAMS extends any[]> extends Registration<T> {
69
+ define(...params: PARAMS): void;
70
+ }
71
+ /**
72
+ * Create registrations for your mod. This must be called in the top-level scope of your mod script — ie,
73
+ * do not call this in your mod class when reacting to events or injections, that kind of thing.
74
+ */
75
+ export const register: RegisterHelper;
39
76
  /**
40
77
  * Injects the decorated field with this mod's instance.
41
78
  */
42
- function instance<M extends Mod>(): <K extends string | number | symbol, T extends Record<K, M extends (new (index: number) => infer I) ? I : Mod>>(target: T, key: K) => void;
79
+ export function instance<M extends Mod>(): <K extends string | number | symbol, T extends Record<K, M extends (new (index: number) => infer I) ? I : Mod>>(target: T, key: K) => void;
43
80
  /**
44
81
  * Injects the decorated field with a mod instance.
45
82
  * @param name Given a mod name, the decorated field will be injected with the enabled/loaded instance of the mod by that name.
46
83
  */
47
- function instance<M extends Mod>(name: string): <K extends string | number | symbol, T extends Record<K, M extends (new (index: number) => infer I) ? I : Mod>>(target: T, key: K) => void;
84
+ export function instance<M extends Mod>(name: string): <K extends string | number | symbol, T extends Record<K, M extends (new (index: number) => infer I) ? I : Mod>>(target: T, key: K) => void;
48
85
  /**
49
86
  * A function usable exclusively in the *top level* of a mod script, or within synchronous code called by the top level of the mod script.
50
87
  * Returns a container for the mod's instance, its `ModInformation`, or `undefined` if it can't be found or this is used in the wrong context.
51
88
  */
52
- function get<M extends Mod>(): ModInformation & {
89
+ export function get<M extends Mod>(): ModInformation & {
53
90
  instance: M;
54
91
  } | undefined;
55
92
  /**
56
93
  * Given a mod name, returns a container (its `ModInformation`) for the enabled/loaded instance of the mod by that name,
57
94
  * or `undefined` if it can't be found.
58
95
  */
59
- function get<M extends Mod>(name: string): ModInformation & {
96
+ export function get<M extends Mod>(name: string): ModInformation & {
60
97
  instance: M;
61
98
  } | undefined;
62
99
  /**
63
100
  * Injects the decorated field with this mod's log.
64
101
  */
65
- function log(): <K extends string | number | symbol, T extends Record<K, Log>>(target: T, key: K) => void;
102
+ export function log(): <K extends string | number | symbol, T extends Record<K, Log>>(target: T, key: K) => void;
66
103
  /**
67
104
  * Injects the decorated field with a mod's log.
68
105
  * @param name Given a mod name, the decorated field will be injected with the log of the enabled/loaded mod by that name.
69
106
  */
70
- function log(name?: string): <K extends string | number | symbol, T extends Record<K, Log>>(target: T, key: K) => void;
107
+ export function log(name?: string): <K extends string | number | symbol, T extends Record<K, Log>>(target: T, key: K) => void;
71
108
  /**
72
109
  * Injects the save data for this mod.
73
110
  */
74
- function saveData<M extends Mod = Mod>(): <K extends string | number | symbol, T extends Record<K, M extends {
111
+ export function saveData<M extends Mod = Mod>(): <K extends string | number | symbol, T extends Record<K, M extends {
75
112
  initializeSaveData(data?: infer D): infer D;
76
113
  } ? D : never>>(target: T, key: K) => void;
77
114
  /**
@@ -79,13 +116,13 @@ declare namespace Mod {
79
116
  * @param name Given a mod name, the decorated field will be injected with save data from the enabled/loaded instance of
80
117
  * the mod by that name.
81
118
  */
82
- function saveData<M extends Mod = Mod>(name: string): <K extends string | number | symbol, T extends Record<K, M extends {
119
+ export function saveData<M extends Mod = Mod>(name: string): <K extends string | number | symbol, T extends Record<K, M extends {
83
120
  initializeSaveData(data?: infer D): infer D;
84
121
  } ? D : never>>(target: T, key: K) => void;
85
122
  /**
86
123
  * Injects the global data for this mod.
87
124
  */
88
- function globalData<M extends Mod = Mod>(): <K extends string | number | symbol, T extends Record<K, M extends {
125
+ export function globalData<M extends Mod = Mod>(): <K extends string | number | symbol, T extends Record<K, M extends {
89
126
  initializeGlobalData(data?: infer D): infer D;
90
127
  } ? D : never>>(target: T, key: K) => void;
91
128
  /**
@@ -93,8 +130,9 @@ declare namespace Mod {
93
130
  * @param name Given a mod name, the decorated field will be injected with global data from the enabled/loaded instance of
94
131
  * the mod by that name.
95
132
  */
96
- function globalData<M extends Mod = Mod>(name: string): <K extends string | number | symbol, T extends Record<K, M extends {
133
+ export function globalData<M extends Mod = Mod>(name: string): <K extends string | number | symbol, T extends Record<K, M extends {
97
134
  initializeGlobalData(data?: infer D): infer D;
98
135
  } ? D : never>>(target: T, key: K) => void;
136
+ export {};
99
137
  }
100
138
  export default Mod;
@@ -912,10 +912,10 @@ export declare namespace Registry {
912
912
  * Used internally for `Registry<H, T>.get(key)`
913
913
  */
914
914
  class Registered implements Objects.ICloneable {
915
- readonly mod?: string;
915
+ readonly mod?: string | ModInformation;
916
916
  readonly type: RegistryRegisteredIntermediateType;
917
917
  readonly path: PropertyKey[];
918
- constructor(modName: string | undefined, type: RegistryRegisteredIntermediateType, ...path: PropertyKey[]);
918
+ constructor(modName: string | ModInformation | undefined, type: RegistryRegisteredIntermediateType, ...path: PropertyKey[]);
919
919
  mask<T>(): T;
920
920
  /**
921
921
  * An getter for a registration ID in the given `IRegistry`.
@@ -11,7 +11,7 @@
11
11
  import type { ICharacter } from "@wayward/game/game/entity/IHuman";
12
12
  import type { PlayerState } from "@wayward/game/game/entity/player/IPlayer";
13
13
  import type Player from "@wayward/game/game/entity/player/Player";
14
- import type { ISynchronizeState, PauseSource } from "@wayward/game/game/IGame";
14
+ import type { IMultiplayerServerToJoin, ISynchronizeState, PauseSource } from "@wayward/game/game/IGame";
15
15
  import { TurnMode } from "@wayward/game/game/IGame";
16
16
  import type { Load } from "@wayward/game/game/meta/Loading";
17
17
  import type { Milestone } from "@wayward/game/game/milestones/IMilestone";
@@ -223,9 +223,9 @@ export declare enum JoinServerRetryReason {
223
223
  WebRTCTimeout = 4
224
224
  }
225
225
  export interface IJoinServerOptions {
226
+ multiplayerServerToJoin: IMultiplayerServerToJoin;
226
227
  character: ICharacter;
227
228
  milestoneModifiers: Set<Milestone>;
228
- retryMatchmakingInfo: IMatchmakingInfo;
229
229
  automaticallyRetry: boolean;
230
230
  enableSteamNetworkConnections: boolean;
231
231
  }
@@ -242,3 +242,8 @@ export interface IMultiplayerRunSafelyOptions {
242
242
  hostInitiatesHide?: boolean;
243
243
  };
244
244
  }
245
+ export interface IMultiplayerOnConnected {
246
+ matchmakingInfo: IMatchmakingInfo;
247
+ hasExistingPlayerInGame: boolean;
248
+ customMilestoneModifiersAllowed: boolean;
249
+ }
@@ -8,6 +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 { IMultiplayerServerToJoin } from "@wayward/game/game/IGame";
11
12
  import Player from "@wayward/game/game/entity/player/Player";
12
13
  import type Island from "@wayward/game/game/island/Island";
13
14
  import type { IJoinServerOptions, IMultiplayerEvents, IMultiplayerOptions, IMultiplayerRunSafelyOptions, PacketTarget, ServerInfo } from "@wayward/game/multiplayer/IMultiplayer";
@@ -39,7 +40,6 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
39
40
  private readonly _steamIdToClientMapping;
40
41
  private _joinServerTimeoutId;
41
42
  private _steamNetworkConnectionWebRTCFallbackTimeoutId;
42
- private _joinedMatchmakingInfo;
43
43
  private _connectedMatchmakingInfo;
44
44
  private _globalMatchmaking;
45
45
  private _globalMatchmakingRetryTimeoutId;
@@ -99,7 +99,7 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
99
99
  getBannedPlayers(): string[];
100
100
  setBanned(identifier: string, ban: boolean): boolean;
101
101
  createServer(serverInfo: ServerInfo): void;
102
- joinServer(serverInfo: ServerInfo, options?: Partial<IJoinServerOptions>): Promise<void>;
102
+ joinServer(serverToJoin: IMultiplayerServerToJoin, options?: Partial<IJoinServerOptions>): Promise<void>;
103
103
  rejoinServer(options?: {
104
104
  randomizeIdentifier?: boolean;
105
105
  automaticallyRetry?: boolean;
@@ -112,7 +112,7 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
112
112
  * @returns True when it disconnected. False is there was nothing to disconnect
113
113
  */
114
114
  disconnect(reason: DisconnectReason, args?: any[], unloadingOrResetGameState?: boolean): Promise<boolean>;
115
- displayJoinServerRetryDialog(matchmakingInfo: IMatchmakingInfo, retryReason: JoinServerRetryReason): Promise<void>;
115
+ displayJoinServerRetryDialog(matchmakingInfo: IMatchmakingInfo | undefined, retryReason: JoinServerRetryReason): Promise<void>;
116
116
  disconnectAndResetGameState(reason: DisconnectReason.UnableToJoinGame, unableToJoinReason: UnableToJoinReason): Promise<void>;
117
117
  disconnectAndResetGameState(reason: DisconnectReason, reasonDescription?: any[]): Promise<void>;
118
118
  /**
@@ -196,7 +196,12 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
196
196
  private connectDedicatedMatchmakingServer;
197
197
  private disconnectDedicatedMatchmakingServer;
198
198
  private onMatchmakingMessage;
199
+ /**
200
+ * Called when a multiplayer connection is established to a server.
201
+ * This is only called on the client side.
202
+ */
199
203
  private _onConnected;
204
+ private _sendConnectPacket;
200
205
  private onConnectionData;
201
206
  private serverPacketTick;
202
207
  private clientPacketTick;
@@ -90,6 +90,8 @@ export interface IMatchmakingHostIpAddressMessageData extends IMatchmakingMessag
90
90
  }
91
91
  export interface IMatchmakingConnectedMessageData extends IMatchmakingMessageData {
92
92
  type: MatchmakingMessageDataType.Connected;
93
+ hasExistingPlayerInGame: boolean;
94
+ customMilestoneModifiersAllowed: boolean;
93
95
  }
94
96
  export interface IMatchmakingUnableToJoinGameMessageData extends IMatchmakingMessageData {
95
97
  type: MatchmakingMessageDataType.UnableToJoinGame;
@@ -8,6 +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 { IMultiplayerOnConnected } from "@wayward/game/multiplayer/IMultiplayer";
11
12
  import type { IMatchmakingInfo, MatchmakingMessageData } from "@wayward/game/multiplayer/matchmaking/IMatchmaking";
12
13
  import { Connection } from "@wayward/game/multiplayer/networking/Connection";
13
14
  import { ConnectionState } from "@wayward/game/multiplayer/networking/IConnection";
@@ -29,7 +30,7 @@ export declare class SmartConnection extends Connection {
29
30
  private _steamNetworkTimeoutId;
30
31
  private _steamNetworkConnection;
31
32
  private _webWorkerConnection;
32
- constructor(matchmakingInfo: IMatchmakingInfo, matchmakingIdentifier: string, webRTCConfig: RTCConfiguration, sendMatchmakingMessage: (message: MatchmakingMessageData) => void, onData: (data: ArrayBufferLike) => void, onConnected: (matchmakingInfo: IMatchmakingInfo) => void, trySteamRelayNetwork: boolean, connectGlobalMatchmakingServer: () => void);
33
+ constructor(matchmakingInfo: IMatchmakingInfo, matchmakingIdentifier: string, webRTCConfig: RTCConfiguration, sendMatchmakingMessage: (message: MatchmakingMessageData) => void, onData: (data: ArrayBufferLike) => void, onConnected: (data: IMultiplayerOnConnected) => void, trySteamRelayNetwork: boolean, connectGlobalMatchmakingServer: () => void);
33
34
  private get activeConnection();
34
35
  get isSteamNetworkConnection(): boolean;
35
36
  get isConnected(): boolean;
@@ -8,6 +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 { IMultiplayerOnConnected } from "@wayward/game/multiplayer/IMultiplayer";
11
12
  import type { IMatchmakingInfo, MatchmakingMessageData } from "@wayward/game/multiplayer/matchmaking/IMatchmaking";
12
13
  import { Connection } from "@wayward/game/multiplayer/networking/Connection";
13
14
  import type { ISteamworksNetworking } from "@wayward/hosts/shared/interfaces";
@@ -21,7 +22,7 @@ export declare class SteamNetworkConnection extends Connection {
21
22
  readonly maxMessageSize = 65536;
22
23
  private _processIntervalId;
23
24
  private _checkSessionStateIntervalId;
24
- constructor(steamNetworking: ISteamworksNetworking, hostSteamId: string, matchmakingInfo: IMatchmakingInfo | undefined, matchmakingIdentifier: string, onData: (data: ArrayBufferLike) => void, onConnected?: ((matchmakingInfo: IMatchmakingInfo) => void) | undefined, connectGlobalMatchmakingServer?: (() => void) | undefined);
25
+ constructor(steamNetworking: ISteamworksNetworking, hostSteamId: string, matchmakingInfo: IMatchmakingInfo | undefined, matchmakingIdentifier: string, onData: (data: ArrayBufferLike) => void, onConnected?: ((data: IMultiplayerOnConnected) => void) | undefined, connectGlobalMatchmakingServer?: (() => void) | undefined);
25
26
  /**
26
27
  * Steam id of the peer
27
28
  */
@@ -8,6 +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 { IMultiplayerOnConnected } from "@wayward/game/multiplayer/IMultiplayer";
11
12
  import type { IMatchmakingInfo, MatchmakingMessageData } from "@wayward/game/multiplayer/matchmaking/IMatchmaking";
12
13
  import { Connection } from "@wayward/game/multiplayer/networking/Connection";
13
14
  export declare class WebRTCConnection extends Connection {
@@ -18,7 +19,8 @@ export declare class WebRTCConnection extends Connection {
18
19
  readonly maxMessageSize = 65536;
19
20
  private _peerConnection?;
20
21
  private _dataChannel?;
21
- constructor(matchmakingInfo: IMatchmakingInfo | undefined, matchmakingIdentifier: string, config: RTCConfiguration, sendMatchmakingMessage: (message: MatchmakingMessageData) => void, onData: (data: ArrayBuffer) => void, onConnected?: ((matchmakingInfo: IMatchmakingInfo) => void) | undefined);
22
+ private _matchmakingConnectedMessageData?;
23
+ constructor(matchmakingInfo: IMatchmakingInfo | undefined, matchmakingIdentifier: string, config: RTCConfiguration, sendMatchmakingMessage: (message: MatchmakingMessageData) => void, onData: (data: ArrayBuffer) => void, onConnected?: ((data: IMultiplayerOnConnected) => void) | undefined);
22
24
  get isConnected(): boolean;
23
25
  protected onClosing(): void;
24
26
  protected onClosed(): void;
@@ -31,4 +33,5 @@ export declare class WebRTCConnection extends Connection {
31
33
  private _onIceConnectionStateChange;
32
34
  private _onDescriptionCreated;
33
35
  private _parseIceCandidate;
36
+ private _processConnectedMessage;
34
37
  }
@@ -8,6 +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 { IMultiplayerOnConnected } from "@wayward/game/multiplayer/IMultiplayer";
11
12
  import type { IMatchmaking, IMatchmakingInfo, MatchmakingMessageData } from "@wayward/game/multiplayer/matchmaking/IMatchmaking";
12
13
  import { Connection } from "@wayward/game/multiplayer/networking/Connection";
13
14
  export declare class WebSocketConnection extends Connection {
@@ -16,7 +17,7 @@ export declare class WebSocketConnection extends Connection {
16
17
  private readonly onConnected?;
17
18
  name: string;
18
19
  get maxMessageSize(): number;
19
- constructor(matchmakingInfo: IMatchmakingInfo | undefined, matchmakingIdentifier: string, getMatchmaking: () => IMatchmaking | undefined, onData: (data: ArrayBuffer) => void, onConnected?: ((matchmakingInfo: IMatchmakingInfo) => void) | undefined);
20
+ constructor(matchmakingInfo: IMatchmakingInfo | undefined, matchmakingIdentifier: string, getMatchmaking: () => IMatchmaking | undefined, onData: (data: ArrayBuffer) => void, onConnected?: ((data: IMultiplayerOnConnected) => void) | undefined);
20
21
  get isConnected(): boolean;
21
22
  protected onClosing(): void;
22
23
  protected onClosed(): void;
@@ -8,6 +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 { IMultiplayerOnConnected } from "@wayward/game/multiplayer/IMultiplayer";
11
12
  import type { IMatchmakingInfo, MatchmakingMessageData } from "@wayward/game/multiplayer/matchmaking/IMatchmaking";
12
13
  import { Connection } from "@wayward/game/multiplayer/networking/Connection";
13
14
  import type { WebWorkerClient } from "@wayward/game/webWorker/WebWorkerClient";
@@ -17,7 +18,7 @@ export declare class WebWorkerConnection extends Connection {
17
18
  private webWorkerClient?;
18
19
  name: string;
19
20
  get maxMessageSize(): number;
20
- constructor(matchmakingInfo: IMatchmakingInfo | undefined, matchmakingIdentifier: string, onData: (data: ArrayBufferLike) => void, onConnected?: ((matchmakingInfo: IMatchmakingInfo) => void) | undefined, webWorkerClient?: WebWorkerClient | undefined);
21
+ constructor(matchmakingInfo: IMatchmakingInfo | undefined, matchmakingIdentifier: string, onData: (data: ArrayBufferLike) => void, onConnected?: ((data: IMultiplayerOnConnected) => void) | undefined, webWorkerClient?: WebWorkerClient | undefined);
21
22
  get isConnected(): boolean;
22
23
  protected onClosing(): void;
23
24
  protected onClosed(): void;
@@ -12,6 +12,7 @@ import type { IOverlayInfo } from "@wayward/game/game/tile/ITerrain";
12
12
  import type Tile from "@wayward/game/game/tile/Tile";
13
13
  import UniversalOverlay from "@wayward/game/renderer/overlay/UniversalOverlay";
14
14
  import { DistanceType } from "@wayward/game/utilities/math/Vector2";
15
+ import Vector2 from "@wayward/game/utilities/math/Vector2";
15
16
  import type { IColorFul } from "@wayward/utilities/Color";
16
17
  export interface IEffectRadiusOverlayColor extends Partial<IColorFul> {
17
18
  alpha?: number;
@@ -29,6 +30,8 @@ export default class EffectRadiusOverlay extends UniversalOverlay {
29
30
  range: number;
30
31
  color?: IEffectRadiusOverlayColor;
31
32
  constructor();
33
+ get minVector(): Vector2;
34
+ get maxVector(): Vector2;
32
35
  set(type: DistanceType, center: Tile, range: number, color?: IEffectRadiusOverlayColor): void;
33
36
  unset(center: Tile): void;
34
37
  protected generateOverlayInfo(tile: Tile, existingOverlay: IOverlayInfo | undefined): IOverlayInfo | undefined;
@@ -35,7 +35,6 @@ export default class SaveDataGlobal {
35
35
  utilitiesEnumsAllocated: Record<string, EnumInfo>;
36
36
  savedDialogInfo: Record<string, IDialogInfo | undefined>;
37
37
  multiplayerBannedPlayers: string[];
38
- multiplayerPreviousGames: PartialRecord<string, IMultiplayerPreviousGame>;
39
38
  multiplayerMessageOfTheDay: string;
40
39
  characters: ISavedCharacter[];
41
40
  ui: Record<string, any>;
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import { type IUpgradeVersion, type UpgradeParameters, type UpgradeType } from "@wayward/game/save/upgrade/UpgradeVersion";
12
12
  import type UpgradesArray from "@wayward/game/save/upgrade/UpgradesArray";
13
- import type Version from "@wayward/utilities/Version";
13
+ import Version from "@wayward/utilities/Version";
14
14
  import type { IBuildId } from "@wayward/hosts/shared/globalTypes";
15
15
  export declare const BUILD_TIME_INTRODUCED_TIME: Date;
16
16
  declare namespace UpgradeVersionRegistry {
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2025 Unlok
3
+ * https://www.unlok.ca
4
+ *
5
+ * Credits & Thanks:
6
+ * https://www.unlok.ca/credits-thanks/
7
+ *
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
+ * https://github.com/WaywardGame/types/wiki
10
+ */
11
+ declare const _default: import("@wayward/game/save/upgrade/UpgradeVersion").IUpgradeVersionDefinition<unknown>;
12
+ export default _default;
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2025 Unlok
3
+ * https://www.unlok.ca
4
+ *
5
+ * Credits & Thanks:
6
+ * https://www.unlok.ca/credits-thanks/
7
+ *
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
+ * https://github.com/WaywardGame/types/wiki
10
+ */
11
+ declare const _default: import("@wayward/game/save/upgrade/UpgradeVersion").IUpgradeVersionDefinition<unknown>;
12
+ export default _default;
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Copyright 2011-2025 Unlok
3
+ * https://www.unlok.ca
4
+ *
5
+ * Credits & Thanks:
6
+ * https://www.unlok.ca/credits-thanks/
7
+ *
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
+ * https://github.com/WaywardGame/types/wiki
10
+ */
11
+ declare const _default: Record<string, import("@wayward/game/save/upgrade/UpgradeVersion").IUpgradeVersion>;
12
+ export default _default;