@wayward/types 2.11.1-beta.dev.20220103.1 → 2.11.2-beta.dev.20220104.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.
@@ -228,6 +228,13 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
228
228
  checkMilestones(player: Player, item: Item): void;
229
229
  getDefaultDurability(human: Human | undefined, weight: number, itemType: ItemType, getMax?: boolean): number;
230
230
  updateItemOrder(container: IContainer, itemOrder: number[] | undefined): void;
231
+ /**
232
+ * Used in cases where we break items down from their base form like in dismantling or burning items.
233
+ * @param itemQuality Quality of the base item.
234
+ * @param bonusValue A number that we likely will be passing to getQualityBasedOnSkill and can be based on a skill or some arbitrary value.
235
+ * @returns number That is distributed from the quality/value.
236
+ */
237
+ getBreakingQualityBonus(itemQuality: Quality | undefined, bonusValue: number): number;
231
238
  getQualityBasedOnSkill(itemQuality: Quality | undefined, skillValue: number, allowIncreasedQuality?: boolean, bonusChance?: number): Quality | undefined;
232
239
  getNPCFromInventoryContainer(containable: IContainable): NPC | undefined;
233
240
  getItemsByWeight(a: number, b: number): number;
@@ -34,5 +34,5 @@ export declare module FireStage {
34
34
  export declare module IFire {
35
35
  function dissassemblyBurn(island: Island, item: Item, container: ITileContainer, disassembly: boolean): void;
36
36
  function harvestGatherBurn(step: number, resources: ILootItem[] | undefined, container: IContainer, quality: Quality | undefined, tileEvent: TileEvent): void;
37
- function burnsLike(burnsLikeItem: ItemType, tileEvent: TileEvent, tileContainer: IContainer, quality: Quality): void;
37
+ function burnsLike(burnsLikeItem: ItemType, tileEvent: TileEvent, tileContainer: IContainer, quality: Quality | undefined): void;
38
38
  }
@@ -141,6 +141,7 @@ export interface IMultiplayerNetworkingOptions {
141
141
  connectionTimeout: number;
142
142
  keepAliveInterval: number;
143
143
  keepAliveTimeout: number;
144
+ steamNetworkingConnectionWebRTCFallbackTimeout: number;
144
145
  }
145
146
  export declare type ServerInfo = string | IMatchmakingInfo;
146
147
  export declare enum PacketAcceptType {
@@ -200,6 +201,6 @@ export interface IJoinServerOptions {
200
201
  character: ICharacter;
201
202
  milestoneModifiers: Set<Milestone>;
202
203
  retryMatchmakingInfo: IMatchmakingInfo;
203
- joinServerTimeout?: number;
204
- automaticallyRetry?: boolean;
204
+ automaticallyRetry: boolean;
205
+ enableSteamNetworkConnections: boolean;
205
206
  }
@@ -32,6 +32,7 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
32
32
  private readonly _clients;
33
33
  private readonly _steamIdToClientMapping;
34
34
  private _joinServerTimeoutId;
35
+ private _steamNetworkConnectionWebRTCFallbackTimeoutId;
35
36
  private _joinedMatchmakingInfo;
36
37
  private _connectedMatchmakingInfo;
37
38
  private _globalMatchmaking;
@@ -91,6 +92,7 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
91
92
  rejoinServer(options?: {
92
93
  randomizeIdentifier?: boolean;
93
94
  automaticallyRetry?: boolean;
95
+ enableSteamNetworkConnections?: boolean;
94
96
  }): Promise<boolean>;
95
97
  /**
96
98
  * Disconnects from multiplayer
@@ -146,6 +148,7 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
146
148
  private addDefaultSyncChecks;
147
149
  private getPacketSyncChecks;
148
150
  private clearJoinServerRetryTimeout;
151
+ clearSteamNetworkConnectionWebRTCFallbackTimer(): void;
149
152
  private startMatchmakingServer;
150
153
  private stopMatchmakingServer;
151
154
  private setupClientConnection;
@@ -8,6 +8,6 @@
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 = 11, gameVersionPatch = 1, gameVersionName = "Horizons";
11
+ export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 11, gameVersionPatch = 2, gameVersionName = "Horizons";
12
12
  export declare const gameVersion: string;
13
13
  export declare function registerGlobals(globalObject: any): void;
@@ -8,13 +8,15 @@
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 ApplicationLogger from "./applicationLogger";
11
12
  export default class ChromeDriver {
12
13
  private readonly safeTestTile;
13
14
  private readonly appId;
15
+ private readonly logger;
14
16
  readonly port: number;
15
17
  private process;
16
18
  private exitHandler;
17
- constructor(safeTestTile: string, appId: string);
19
+ constructor(safeTestTile: string, appId: string, logger: ApplicationLogger);
18
20
  start(): Promise<void>;
19
21
  stop(): void;
20
22
  }
@@ -10,3 +10,4 @@
10
10
  */
11
11
  import { Random, SeededGenerator } from "../../game/utilities/random/Random";
12
12
  export declare function createRandom(): Random<SeededGenerator>;
13
+ export declare function getSeed(): number | undefined;
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.1-beta.dev.20220103.1",
4
+ "version": "2.11.2-beta.dev.20220104.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",