@wayward/types 2.14.0-beta.dev.20241008.1 → 2.14.0-beta.dev.20241010.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.
- package/definitions/devserver/middleware/E404.d.ts +1 -1
- package/definitions/game/game/temperature/TemperatureManager.d.ts +3 -3
- package/definitions/game/multiplayer/networking/Connection.d.ts +1 -1
- package/definitions/game/multiplayer/networking/IConnection.d.ts +1 -1
- package/definitions/game/multiplayer/networking/SmartConnection.d.ts +1 -1
- package/definitions/game/multiplayer/networking/SteamNetworkConnection.d.ts +1 -1
- package/definitions/game/multiplayer/networking/WebWorkerConnection.d.ts +1 -1
- package/definitions/game/multiplayer/packets/IPacket.d.ts +1 -1
- package/definitions/game/multiplayer/packets/Packet.d.ts +1 -1
- package/definitions/game/webWorker/WebWorkerClient.d.ts +1 -1
- package/definitions/game/webWorker/WebWorkerManager.d.ts +1 -1
- package/definitions/game/webWorker/WebWorkerMessages.d.ts +1 -1
- package/definitions/launcher/ui/LauncherUI.d.ts +3 -3
- package/definitions/launcher/ui/component/InputButton.d.ts +1 -1
- package/definitions/launcher/ui/launcher/FolderButton.d.ts +1 -1
- package/definitions/launcher/utilities/EventManager.d.ts +1 -1
- package/definitions/test/suite/functionalTests/singleplayer/creature/PathThroughCaveEntrancesIfTamed.d.ts +2 -1
- package/definitions/test/suite/functionalTests/singleplayer/ui/ItemComponentLeak.d.ts +2 -1
- package/package.json +2 -2
- package/tsconfig.mod.base.json +3 -2
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import Middleware from "@wayward/devserver/middleware/util/Middleware";
|
|
12
|
-
declare const _default: Middleware<[message?:
|
|
12
|
+
declare const _default: Middleware<[message?: string]>;
|
|
13
13
|
export default _default;
|
|
@@ -47,9 +47,9 @@ export interface ITemperatureManagerEvents {
|
|
|
47
47
|
}
|
|
48
48
|
export default class TemperatureManager extends EventEmitter.Host<ITemperatureManagerEvents> implements IPreSerializeCallback {
|
|
49
49
|
private readonly island;
|
|
50
|
-
encodedCalculatedCache: Map<number, Map<number, Uint32Array
|
|
51
|
-
encodedProducedCache: Map<number, Map<number, Uint32Array
|
|
52
|
-
encodedGuaranteedCorrectCache: Map<number, Map<number, Uint32Array
|
|
50
|
+
encodedCalculatedCache: Map<number, Map<number, Uint32Array<ArrayBufferLike>>>;
|
|
51
|
+
encodedProducedCache: Map<number, Map<number, Uint32Array<ArrayBufferLike>>>;
|
|
52
|
+
encodedGuaranteedCorrectCache: Map<number, Map<number, Uint32Array<ArrayBufferLike>>>;
|
|
53
53
|
private readonly containerTemperatureCache;
|
|
54
54
|
private readonly containerTileTemperatureCache;
|
|
55
55
|
private readonly containerItemsTemperatureCache;
|
|
@@ -63,7 +63,7 @@ export declare abstract class Connection implements IConnection {
|
|
|
63
63
|
/**
|
|
64
64
|
* Queues data to be sent soon
|
|
65
65
|
*/
|
|
66
|
-
protected queuePacketData(data:
|
|
66
|
+
protected queuePacketData(data: ArrayBufferLike, packetNumber?: number): void;
|
|
67
67
|
/**
|
|
68
68
|
* Clears queued packets
|
|
69
69
|
*/
|
|
@@ -29,7 +29,7 @@ export declare class SmartConnection extends Connection {
|
|
|
29
29
|
private _steamNetworkTimeoutId;
|
|
30
30
|
private _steamNetworkConnection;
|
|
31
31
|
private _webWorkerConnection;
|
|
32
|
-
constructor(matchmakingInfo: IMatchmakingInfo, matchmakingIdentifier: string, webRTCConfig: RTCConfiguration, sendMatchmakingMessage: (message: MatchmakingMessageData) => void, onData: (data:
|
|
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
33
|
private get activeConnection();
|
|
34
34
|
get isSteamNetworkConnection(): boolean;
|
|
35
35
|
get isConnected(): boolean;
|
|
@@ -21,7 +21,7 @@ export declare class SteamNetworkConnection extends Connection {
|
|
|
21
21
|
readonly maxMessageSize = 65536;
|
|
22
22
|
private _processIntervalId;
|
|
23
23
|
private _checkSessionStateIntervalId;
|
|
24
|
-
constructor(steamNetworking: ISteamworksNetworking, hostSteamId: string, matchmakingInfo: IMatchmakingInfo | undefined, matchmakingIdentifier: string, onData: (data:
|
|
24
|
+
constructor(steamNetworking: ISteamworksNetworking, hostSteamId: string, matchmakingInfo: IMatchmakingInfo | undefined, matchmakingIdentifier: string, onData: (data: ArrayBufferLike) => void, onConnected?: ((matchmakingInfo: IMatchmakingInfo) => void) | undefined, connectGlobalMatchmakingServer?: (() => void) | undefined);
|
|
25
25
|
/**
|
|
26
26
|
* Steam id of the peer
|
|
27
27
|
*/
|
|
@@ -17,7 +17,7 @@ export declare class WebWorkerConnection extends Connection {
|
|
|
17
17
|
private webWorkerClient?;
|
|
18
18
|
name: string;
|
|
19
19
|
get maxMessageSize(): number;
|
|
20
|
-
constructor(matchmakingInfo: IMatchmakingInfo | undefined, matchmakingIdentifier: string, onData: (data:
|
|
20
|
+
constructor(matchmakingInfo: IMatchmakingInfo | undefined, matchmakingIdentifier: string, onData: (data: ArrayBufferLike) => void, onConnected?: ((matchmakingInfo: IMatchmakingInfo) => void) | undefined, webWorkerClient?: WebWorkerClient | undefined);
|
|
21
21
|
get isConnected(): boolean;
|
|
22
22
|
protected onClosing(): void;
|
|
23
23
|
protected onClosed(): void;
|
|
@@ -34,7 +34,7 @@ export interface IHashedSyncCheck {
|
|
|
34
34
|
}
|
|
35
35
|
export interface IPacket<T = any> {
|
|
36
36
|
getAllowedStates(): ConnectionState;
|
|
37
|
-
getArrayBuffer(id?: number):
|
|
37
|
+
getArrayBuffer(id?: number): ArrayBufferLike;
|
|
38
38
|
getRegistrarId(): number;
|
|
39
39
|
getDebugInfo(): string;
|
|
40
40
|
getSynchronizationCheckData(): ISynchronizationCheckData;
|
|
@@ -21,7 +21,7 @@ export declare abstract class Packet<T = void> extends IndexedPacket implements
|
|
|
21
21
|
isSyncCheckEnabled(): boolean;
|
|
22
22
|
isAllowedWhenPaused(): boolean;
|
|
23
23
|
getSynchronizationCheckData(): ISynchronizationCheckData;
|
|
24
|
-
getArrayBuffer(id?: number):
|
|
24
|
+
getArrayBuffer(id?: number): ArrayBufferLike;
|
|
25
25
|
serializeData(): number;
|
|
26
26
|
processSerializedData(dataView: DataView): void;
|
|
27
27
|
abstract process(): T;
|
|
@@ -15,7 +15,7 @@ import { WebWorkerStatus } from "@wayward/game/webWorker/WebWorkerMessages";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class WebWorkerClient {
|
|
17
17
|
readonly identifier: string;
|
|
18
|
-
multiplayerDataCallback: ((data:
|
|
18
|
+
multiplayerDataCallback: ((data: ArrayBufferLike) => void) | undefined;
|
|
19
19
|
private readonly log;
|
|
20
20
|
private readonly worker;
|
|
21
21
|
private readonly readyPromise;
|
|
@@ -17,7 +17,7 @@ import type { HostWebWorkerMessage } from "@wayward/game/webWorker/WebWorkerMess
|
|
|
17
17
|
export declare class WebWorkerManager {
|
|
18
18
|
private readonly game;
|
|
19
19
|
readonly workers: Map<string, WebWorkerClient>;
|
|
20
|
-
multiplayerDataCallback: ((data:
|
|
20
|
+
multiplayerDataCallback: ((data: ArrayBufferLike) => void) | undefined;
|
|
21
21
|
constructor(game: Game);
|
|
22
22
|
get workerId(): string | undefined;
|
|
23
23
|
/**
|
|
@@ -15,7 +15,7 @@ interface IWebWorkerMessage<Type extends string, DataType> {
|
|
|
15
15
|
interface IDatalessWebWorkerMessage<Type extends string> {
|
|
16
16
|
type: Type;
|
|
17
17
|
}
|
|
18
|
-
export type SharedWebWorkerMessages = IDatalessWebWorkerMessage<"delete"> | IWebWorkerMessage<"multiplayerData",
|
|
18
|
+
export type SharedWebWorkerMessages = IDatalessWebWorkerMessage<"delete"> | IWebWorkerMessage<"multiplayerData", ArrayBufferLike>;
|
|
19
19
|
export type HostWebWorkerMessage = SharedWebWorkerMessages | IDatalessWebWorkerMessage<"ready"> | IWebWorkerMessage<"status", {
|
|
20
20
|
status: WebWorkerStatus;
|
|
21
21
|
}> | IWebWorkerMessage<"multiplayerConnect", {
|
|
@@ -23,13 +23,13 @@ export declare enum LauncherUIClasses {
|
|
|
23
23
|
}
|
|
24
24
|
export default class LauncherUI extends Component {
|
|
25
25
|
private readonly data;
|
|
26
|
-
readonly content: Component
|
|
26
|
+
readonly content: Component;
|
|
27
27
|
readonly resources: Resources;
|
|
28
28
|
readonly mods: Mods;
|
|
29
29
|
readonly saves: Saves;
|
|
30
|
-
readonly launchRow: Component
|
|
30
|
+
readonly launchRow: Component;
|
|
31
31
|
readonly launchOptions: Component;
|
|
32
|
-
readonly launchButton: Button
|
|
32
|
+
readonly launchButton: Button;
|
|
33
33
|
constructor(data: Data);
|
|
34
34
|
private launch;
|
|
35
35
|
private cleanUp;
|
|
@@ -16,7 +16,7 @@ export declare enum InputButtonClasses {
|
|
|
16
16
|
Input = "button-input-input"
|
|
17
17
|
}
|
|
18
18
|
export default class InputButton extends Button {
|
|
19
|
-
readonly input: Component<HTMLInputElement
|
|
19
|
+
readonly input: Component<HTMLInputElement>;
|
|
20
20
|
constructor();
|
|
21
21
|
setPlaceholder(text: string): this;
|
|
22
22
|
protected shouldSelectInputOnClick(): boolean;
|
|
@@ -23,7 +23,7 @@ export interface IFolderButtonEvents extends ComponentEvents<InputButton> {
|
|
|
23
23
|
export default class FolderButton extends InputButton {
|
|
24
24
|
readonly folder: IFolder;
|
|
25
25
|
event: ComponentEventManager<this, IFolderButtonEvents>;
|
|
26
|
-
readonly path: Component
|
|
26
|
+
readonly path: Component;
|
|
27
27
|
constructor(folder: IFolder);
|
|
28
28
|
protected shouldSelectInputOnClick(): boolean;
|
|
29
29
|
}
|
|
@@ -15,7 +15,7 @@ export interface IEventSubscriptionManager<EVENTS = {}, TARGET extends EventTarg
|
|
|
15
15
|
subscribeOnce(type: string | string[], listener: (this: TARGET, event: Event) => any): this;
|
|
16
16
|
}
|
|
17
17
|
export declare class EventManager<HOST extends object, EVENTS = {}, TARGET extends EventTarget = EventTarget> {
|
|
18
|
-
static readonly global: EventManager<{}, GlobalEventHandlersEventMap
|
|
18
|
+
static readonly global: EventManager<{}, GlobalEventHandlersEventMap>;
|
|
19
19
|
static make<EVENTS>(): EventManager<{}, EVENTS>;
|
|
20
20
|
static emit(target: EventTarget | undefined, event: Event | string, init?: ((event: Event) => any) | object): Event;
|
|
21
21
|
private readonly host;
|
|
@@ -8,5 +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
|
-
|
|
11
|
+
import type { TestExecutor } from "@wayward/test/testRunner";
|
|
12
|
+
declare const _default: [string, TestExecutor];
|
|
12
13
|
export default _default;
|
|
@@ -8,5 +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
|
-
|
|
11
|
+
import type { TestExecutor } from "@wayward/test/testRunner";
|
|
12
|
+
declare const _default: [string, TestExecutor];
|
|
12
13
|
export default _default;
|
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.14.0-beta.dev.
|
|
4
|
+
"version": "2.14.0-beta.dev.20241010.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"clean": "rimraf ./definitions ./*.tsbuildinfo"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@types/node": "
|
|
14
|
+
"@types/node": "22.7.5",
|
|
15
15
|
"@wayward/goodstream": "0.10.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
package/tsconfig.mod.base.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
"target": "
|
|
3
|
+
"target": "ES2024",
|
|
4
4
|
"module": "AMD",
|
|
5
5
|
"moduleResolution": "node",
|
|
6
6
|
"composite": true,
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"lib": [
|
|
33
33
|
"DOM",
|
|
34
34
|
"DOM.Iterable",
|
|
35
|
-
"
|
|
35
|
+
"ES2024",
|
|
36
|
+
"ESNext.Iterator",
|
|
36
37
|
"WebWorker.ImportScripts",
|
|
37
38
|
]
|
|
38
39
|
},
|