@wayward/types 2.14.4-beta.dev.20241231.1 → 2.14.4-beta.dev.20250102.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/game/IGlobal.d.ts +2 -9
- package/definitions/game/game/Game.d.ts +2 -2
- package/definitions/game/game/IGame.d.ts +1 -1
- package/definitions/game/game/doodad/Doodad.d.ts +1 -1
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SetTitle.d.ts +1 -1
- package/definitions/game/game/island/Island.d.ts +2 -2
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +2 -1
- package/definitions/game/game/mapgen/IMapGen.d.ts +1 -1
- package/definitions/game/game/mapgen/MapGenHelpers.d.ts +1 -1
- package/definitions/game/game/options/GameOptions.d.ts +1 -1
- package/definitions/game/language/DictionaryMap.d.ts +2 -2
- package/definitions/game/language/dictionary/Message.d.ts +37 -37
- package/definitions/game/language/dictionary/UiTranslation.d.ts +924 -917
- package/definitions/game/mod/IMod.d.ts +1 -1
- package/definitions/game/save/ISaveManager.d.ts +1 -1
- package/definitions/game/save/SaveManager.d.ts +1 -1
- package/definitions/game/save/SaveMetadata.d.ts +1 -1
- package/definitions/game/save/data/ISaveData.d.ts +1 -1
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +2 -1
- package/definitions/game/save/data/SaveData.d.ts +1 -1
- package/definitions/game/save/data/SaveDataGlobal.d.ts +1 -1
- package/definitions/game/save/serializer/ISerializer.d.ts +1 -1
- package/definitions/game/save/serializer/PropertiesToSerialize.d.ts +1 -1
- package/definitions/game/save/serializer/Serializer.d.ts +1 -1
- package/definitions/game/save/upgrade/UpgradePlayer.d.ts +1 -1
- package/definitions/game/save/upgrade/UpgradeSaveDataGlobal.d.ts +1 -1
- package/definitions/game/save/upgrade/UpgradeVersion.d.ts +1 -1
- package/definitions/game/save/upgrade/UpgradeVersionRegistry.d.ts +1 -1
- package/definitions/game/steamworks/ISteamworks.d.ts +0 -6
- package/definitions/game/steamworks/Steamworks.d.ts +2 -2
- package/definitions/game/ui/{screen/screens/splash → component}/Notice.d.ts +4 -2
- package/definitions/game/ui/screen/screens/SplashScreen.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/DialogManager.d.ts +8 -3
- package/definitions/game/ui/screen/screens/game/component/item/ItemComponentEventBus.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/main/ChangelogMenu.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/options/ErrorReportingNotice.d.ts +14 -0
- package/definitions/game/ui/screen/screens/menu/menus/options/TabDeveloper.d.ts +2 -0
- package/definitions/game/ui/screen/screens/splash/DevelopmentBranchNotice.d.ts +1 -1
- package/definitions/game/utilities/VersionTranslation.d.ts +18 -0
- package/definitions/game/utilities/trello/ITrello.d.ts +1 -1
- package/definitions/game/utilities/trello/Trello.d.ts +1 -1
- package/definitions/hosts/node/nodeLoader.d.ts +1 -0
- package/definitions/hosts/shared/globalTypes.d.ts +6 -0
- package/definitions/lint/condition-complexity.d.mts +31 -0
- package/definitions/{devserver/middleware/util → server/core}/Middleware.d.ts +1 -0
- package/definitions/{devserver → server/core}/middleware/E404.d.ts +1 -1
- package/definitions/server/core/middleware/Probe.d.ts +13 -0
- package/definitions/{devserver → server/core}/middleware/Static.d.ts +1 -1
- package/definitions/{devserver → server/core}/middleware/Validate.d.ts +1 -1
- package/definitions/{devserver/middleware → server/core}/util/SendFile.d.ts +1 -1
- package/definitions/{matchmakingserver → server/dev}/index.d.ts +1 -3
- package/definitions/{devserver → server/dev}/middleware/CustomInternalMods.d.ts +1 -1
- package/definitions/{devserver → server/dev}/middleware/SaveFolder.d.ts +1 -1
- package/definitions/server/error/Router.d.ts +13 -0
- package/definitions/server/error/index.d.ts +11 -0
- package/definitions/server/error/middleware/ReportError.d.ts +13 -0
- package/definitions/{matchmakingserver → server/matchmaking}/dedicatedServer.d.ts +1 -1
- package/definitions/test/core/applicationDom.d.ts +1 -1
- package/definitions/test/core/applicationInteractions.d.ts +4 -0
- package/definitions/test/suite/functionalTests/singleplayer/ui/DialogLeak.d.ts +13 -0
- package/definitions/{devserver/index.d.ts → utilities/ApplyTsConfigPaths.d.ts} +1 -1
- package/definitions/{game/utilities → utilities}/Version.d.ts +3 -7
- package/definitions/utilities/event/EventEmitter.d.ts +12 -7
- package/definitions/utilities/types.d.ts +18 -0
- package/package.json +1 -1
- /package/definitions/{devserver → server/core}/util/Log.d.ts +0 -0
- /package/definitions/{devserver → server/dev}/Router.d.ts +0 -0
- /package/definitions/{devserver/middleware → server/dev}/util/GameLogFilter.d.ts +0 -0
- /package/definitions/{matchmakingserver → server/matchmaking}/directoryConnection.d.ts +0 -0
- /package/definitions/{matchmakingserver → server/matchmaking}/globalMatchmaking.d.ts +0 -0
- /package/definitions/{matchmakingserver → server/matchmaking}/globalServerDirectory.d.ts +0 -0
- /package/definitions/{matchmakingserver/vps.d.ts → server/matchmaking/index.d.ts} +0 -0
- /package/definitions/{matchmakingserver → server/matchmaking}/server.d.ts +0 -0
- /package/definitions/{matchmakingserver → server/matchmaking}/shared.d.ts +0 -0
- /package/definitions/utilities/{types → type}/Assert.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Class.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Descriptions.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Function.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Immutable.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Iterables.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Misc.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Objects.d.ts +0 -0
- /package/definitions/utilities/{typesglobal → types}/Types.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 Version from "@wayward/
|
11
|
+
import type Version from "@wayward/utilities/Version";
|
12
12
|
import type { IEventSubscriberEvents } from "@wayward/utilities/event/EventEmitter";
|
13
13
|
export declare enum MultiplayerCompatibility {
|
14
14
|
Clientside = "clientside",
|
@@ -9,7 +9,7 @@
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
10
10
|
*/
|
11
11
|
import type { SavePropertyFlag } from "@wayward/game/save/serializer/ISerializer";
|
12
|
-
import type Version from "@wayward/
|
12
|
+
import type Version from "@wayward/utilities/Version";
|
13
13
|
export declare const SLOT_MIN = 0;
|
14
14
|
export declare const SLOT_GLOBAL = -1;
|
15
15
|
export declare const SLOT_MULTIPLAYER = -2;
|
@@ -16,7 +16,7 @@ import type IClientStore from "@wayward/game/save/clientStore/IClientStore";
|
|
16
16
|
import type { ISerializer } from "@wayward/game/save/serializer/ISerializer";
|
17
17
|
import type { AnyPropertyToSerialize } from "@wayward/game/save/serializer/PropertiesToSerialize";
|
18
18
|
import Files from "@wayward/game/utilities/Files";
|
19
|
-
import Version from "@wayward/
|
19
|
+
import Version from "@wayward/utilities/Version";
|
20
20
|
import type { IWaywardPreload } from "@wayward/hosts/shared/interfaces";
|
21
21
|
import EventEmitter from "@wayward/utilities/event/EventEmitter";
|
22
22
|
export default class SaveManager extends EventEmitter.Host<ISaveManagerEvents> {
|
@@ -13,7 +13,7 @@ import type { GameMode, IGameOptions } from "@wayward/game/game/options/IGameOpt
|
|
13
13
|
import type { ISerializedTranslation } from "@wayward/game/language/ITranslation";
|
14
14
|
import type { ISaveObject } from "@wayward/game/save/ISaveManager";
|
15
15
|
import type { AnyPropertyToSerialize } from "@wayward/game/save/serializer/PropertiesToSerialize";
|
16
|
-
import type Version from "@wayward/
|
16
|
+
import type Version from "@wayward/utilities/Version";
|
17
17
|
interface SaveMetadata {
|
18
18
|
slot?: number;
|
19
19
|
path?: string;
|
@@ -9,7 +9,7 @@
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
10
10
|
*/
|
11
11
|
import type { RunningContext } from "@wayward/game/steamworks/ISteamworks";
|
12
|
-
import type Version from "@wayward/
|
12
|
+
import type Version from "@wayward/utilities/Version";
|
13
13
|
import type { IBuildId } from "@wayward/hosts/shared/globalTypes";
|
14
14
|
export interface IGameCreationInfo {
|
15
15
|
build: IGameCreationInfoBuild;
|
@@ -32,9 +32,10 @@ export interface IOptions {
|
|
32
32
|
currentGame: number;
|
33
33
|
customTitleBar: boolean;
|
34
34
|
defaultCursor: boolean;
|
35
|
+
developerLogMessagesForContainerDesyncs: boolean;
|
35
36
|
developerMode: boolean;
|
36
37
|
developerModeContextMenu: boolean;
|
37
|
-
|
38
|
+
developerReportErrorsToWaywardTeam: boolean;
|
38
39
|
dialogOpacity: number;
|
39
40
|
directionTurnDelay: number;
|
40
41
|
disableAcrylicTransparency: boolean;
|
@@ -15,7 +15,7 @@ import type { IMultiplayerState } from "@wayward/game/multiplayer/IMultiplayer";
|
|
15
15
|
import type IClientStore from "@wayward/game/save/clientStore/IClientStore";
|
16
16
|
import type { IGameCreationInfo } from "@wayward/game/save/data/ISaveData";
|
17
17
|
import type EnumInfo from "@wayward/game/utilities/enum/EnumInfo";
|
18
|
-
import type Version from "@wayward/
|
18
|
+
import type Version from "@wayward/utilities/Version";
|
19
19
|
import type { IBuildId } from "@wayward/hosts/shared/globalTypes";
|
20
20
|
export declare const saveDataVersionUnknown = "Unknown";
|
21
21
|
export default class SaveData {
|
@@ -14,7 +14,7 @@ import type { ModState } from "@wayward/game/mod/IModInformation";
|
|
14
14
|
import type { IHighscore, IOptions } from "@wayward/game/save/data/ISaveDataGlobal";
|
15
15
|
import type { IDialogInfo } from "@wayward/game/ui/old/IOldUi";
|
16
16
|
import type { ISavedCharacter } from "@wayward/game/ui/screen/screens/menu/menus/character/Character";
|
17
|
-
import type Version from "@wayward/
|
17
|
+
import type Version from "@wayward/utilities/Version";
|
18
18
|
import type EnumInfo from "@wayward/game/utilities/enum/EnumInfo";
|
19
19
|
import type { IBuildId } from "@wayward/hosts/shared/globalTypes";
|
20
20
|
export default class SaveDataGlobal {
|
@@ -9,7 +9,7 @@
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
10
10
|
*/
|
11
11
|
import type { Game } from "@wayward/game/game/Game";
|
12
|
-
import type Version from "@wayward/
|
12
|
+
import type Version from "@wayward/utilities/Version";
|
13
13
|
export interface ISerializer {
|
14
14
|
readonly game: Game;
|
15
15
|
readonly version: Version.String;
|
@@ -10,7 +10,7 @@
|
|
10
10
|
*/
|
11
11
|
import type { ISerializeProperty } from "@wayward/game/save/ISaveManager";
|
12
12
|
import { SavePropertyFlag } from "@wayward/game/save/serializer/ISerializer";
|
13
|
-
import Version from "@wayward/
|
13
|
+
import Version from "@wayward/utilities/Version";
|
14
14
|
declare const propertiesToSerializeObject: {
|
15
15
|
game: {
|
16
16
|
property: string[];
|
@@ -12,7 +12,7 @@ import type { Game } from "@wayward/game/game/Game";
|
|
12
12
|
import type { ISerializer, ISerializerOptions } from "@wayward/game/save/serializer/ISerializer";
|
13
13
|
import { SavePropertyFlag, SerializerMetadataKey, Types } from "@wayward/game/save/serializer/ISerializer";
|
14
14
|
import StringTokenizer from "@wayward/game/save/serializer/StringTokenizer";
|
15
|
-
import type Version from "@wayward/
|
15
|
+
import type Version from "@wayward/utilities/Version";
|
16
16
|
export default class Serializer implements ISerializer {
|
17
17
|
readonly game: Game;
|
18
18
|
private readonly options;
|
@@ -11,7 +11,7 @@
|
|
11
11
|
import type { Game } from "@wayward/game/game/Game";
|
12
12
|
import type Player from "@wayward/game/game/entity/player/Player";
|
13
13
|
import UpgradesArray from "@wayward/game/save/upgrade/UpgradesArray";
|
14
|
-
import type Version from "@wayward/
|
14
|
+
import type Version from "@wayward/utilities/Version";
|
15
15
|
export default function upgradePlayer(game: Game, player: Player, saveVersion: Version.Info, isLocalPlayer: boolean): UpgradesArray;
|
16
16
|
/**
|
17
17
|
* Called after loading item & tile references
|
@@ -8,5 +8,5 @@
|
|
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 Version from "@wayward/
|
11
|
+
import type Version from "@wayward/utilities/Version";
|
12
12
|
export default function upgradeGlobalSave(saveVersion: Version.Info): void;
|
@@ -22,7 +22,7 @@ import type Item from "@wayward/game/game/item/Item";
|
|
22
22
|
import type { IGameOptions } from "@wayward/game/game/options/IGameOptions";
|
23
23
|
import type TileEvent from "@wayward/game/game/tile/TileEvent";
|
24
24
|
import type { UpgradesArrayCompressedPusher } from "@wayward/game/save/upgrade/UpgradesArray";
|
25
|
-
import type Version from "@wayward/
|
25
|
+
import type Version from "@wayward/utilities/Version";
|
26
26
|
import type { IBuildId } from "@wayward/hosts/shared/globalTypes";
|
27
27
|
export interface IUpgradeVersion {
|
28
28
|
name?: string;
|
@@ -10,7 +10,7 @@
|
|
10
10
|
*/
|
11
11
|
import type { IUpgradeVersion, UpgradeParameters, UpgradeType } from "@wayward/game/save/upgrade/UpgradeVersion";
|
12
12
|
import type UpgradesArray from "@wayward/game/save/upgrade/UpgradesArray";
|
13
|
-
import type Version from "@wayward/
|
13
|
+
import type Version from "@wayward/utilities/Version";
|
14
14
|
export declare const BUILD_TIME_INTRODUCED_TIME: Date;
|
15
15
|
declare namespace UpgradeVersionRegistry {
|
16
16
|
function getAll(): readonly IUpgradeVersion[];
|
@@ -47,12 +47,6 @@ export interface IDedicatedServerInfo {
|
|
47
47
|
syncChecks: MultiplayerSyncCheckLevel;
|
48
48
|
gameCode?: string;
|
49
49
|
}
|
50
|
-
export interface IBuild {
|
51
|
-
name: string;
|
52
|
-
time: number;
|
53
|
-
publishName?: string;
|
54
|
-
publishTime?: string;
|
55
|
-
}
|
56
50
|
export declare enum SteamStatArea {
|
57
51
|
Music = 0,
|
58
52
|
Renderer = 1
|
@@ -15,12 +15,12 @@ import IActionContext from "@wayward/game/game/entity/action/IActionContext";
|
|
15
15
|
import { ModType } from "@wayward/game/mod/IModInformation";
|
16
16
|
import type { ModInformation } from "@wayward/game/mod/ModInformation";
|
17
17
|
import type { IJoinServerOptions, ServerInfo } from "@wayward/game/multiplayer/IMultiplayer";
|
18
|
-
import type {
|
18
|
+
import type { IDedicatedServerInfo, IModPath, ISteamworksEvents, RunningContext, SteamStatTypeValues } from "@wayward/game/steamworks/ISteamworks";
|
19
19
|
import { SteamStatArea } from "@wayward/game/steamworks/ISteamworks";
|
20
20
|
import type { ISteamBeta } from "@wayward/hosts/shared/interfaces";
|
21
21
|
import { type IMatchmakingServer, type INapiDiscordPresenceInfo, type IRemoteFile, type ISteamFriend, type ISteamId, type ISteamworksNetworking, type IWaywardPreload, type IWorkshopItem, type LobbyType } from "@wayward/hosts/shared/interfaces";
|
22
22
|
import EventEmitter from "@wayward/utilities/event/EventEmitter";
|
23
|
-
import type { IBuildId } from "@wayward/hosts/shared/globalTypes";
|
23
|
+
import type { IBuild, IBuildId } from "@wayward/hosts/shared/globalTypes";
|
24
24
|
export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
|
25
25
|
private readonly game;
|
26
26
|
protected initialized: boolean;
|
@@ -27,11 +27,13 @@ export declare enum NoticeClasses {
|
|
27
27
|
Markdown = "notice-markdown"
|
28
28
|
}
|
29
29
|
export default class Notice extends Component {
|
30
|
-
static await(noticeClass: Class<Notice>, appendTo: Component): Promise<
|
30
|
+
static await(noticeClass: Class<Notice>, appendTo: Component | HTMLElement): Promise<boolean>;
|
31
31
|
readonly sections: Component<HTMLElement>;
|
32
32
|
readonly footer: Component<HTMLElement>;
|
33
33
|
readonly footerContent: Component<HTMLElement>;
|
34
|
-
|
34
|
+
private returnValue;
|
35
|
+
readonly proceedButton: Button;
|
36
|
+
get cancelButton(): Button;
|
35
37
|
constructor();
|
36
38
|
addSection(initializer: (section: NoticeSection) => any): this;
|
37
39
|
hideAndRemove(): Promise<void>;
|
@@ -9,7 +9,7 @@
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
10
10
|
*/
|
11
11
|
import Screen from "@wayward/game/ui/screen/Screen";
|
12
|
-
import Notice from "@wayward/game/ui/
|
12
|
+
import Notice from "@wayward/game/ui/component/Notice";
|
13
13
|
export default class SplashScreen extends Screen {
|
14
14
|
static getNotices(): Array<Class<Notice>>;
|
15
15
|
static show(): Promise<void>;
|
@@ -13,12 +13,15 @@ import type { IDialogStates } from "@wayward/game/ui/screen/screens/GameScreen";
|
|
13
13
|
import type { DialogById } from "@wayward/game/ui/screen/screens/game/DialogMap";
|
14
14
|
import { DialogId } from "@wayward/game/ui/screen/screens/game/Dialogs";
|
15
15
|
import Dialog from "@wayward/game/ui/screen/screens/game/component/Dialog";
|
16
|
-
|
16
|
+
import type { IEventSubscriberEvents } from "@wayward/utilities/event/EventEmitter";
|
17
|
+
import EventEmitter from "@wayward/utilities/event/EventEmitter";
|
18
|
+
type IDialogManagerEvents = IEventSubscriberEvents;
|
19
|
+
export default class DialogManager extends EventEmitter.Host<IDialogManagerEvents> {
|
17
20
|
private readonly map;
|
18
21
|
/**
|
19
22
|
* Flag set when the dialog manager / parent screen is being removed
|
20
23
|
*/
|
21
|
-
private
|
24
|
+
private disposing;
|
22
25
|
private readonly screenRef;
|
23
26
|
get screen(): Screen;
|
24
27
|
constructor(screen: Screen);
|
@@ -31,7 +34,7 @@ export default class DialogManager {
|
|
31
34
|
open<DIALOG extends Dialog>(id: DialogId, initializer?: (dialog: DIALOG) => any, subId?: string, highlightIfAlreadyOpen?: boolean): DIALOG;
|
32
35
|
isVisible(id: DialogId, subId?: string): boolean | undefined;
|
33
36
|
close(id: DialogId | `${DialogId}` | `${DialogId},${string}`, subId?: string): boolean;
|
34
|
-
closeAll(
|
37
|
+
closeAll(): boolean;
|
35
38
|
toggle<ID extends DialogId>(id: ID, force?: boolean, initializer?: (dialog: DialogById[ID]) => any, subId?: string, highlightIfAlreadyOpen?: boolean): this;
|
36
39
|
toggle<DIALOG extends Dialog>(id: DialogId, force?: boolean, initializer?: (dialog: DIALOG) => any, subId?: string, highlightIfAlreadyOpen?: boolean): this;
|
37
40
|
toggleAll(states: IDialogStates, loaded?: boolean): this;
|
@@ -40,4 +43,6 @@ export default class DialogManager {
|
|
40
43
|
private breakKey;
|
41
44
|
private getKey;
|
42
45
|
private updateDialogId;
|
46
|
+
dispose(): void;
|
43
47
|
}
|
48
|
+
export {};
|
@@ -13,8 +13,9 @@ import { type ItemRefreshType } from "@wayward/game/ui/screen/screens/game/compo
|
|
13
13
|
import type ItemComponent from "@wayward/game/ui/screen/screens/game/component/ItemComponent";
|
14
14
|
import type ActionBar from "@wayward/game/ui/screen/screens/game/static/ActionBar";
|
15
15
|
import type { ActionSlot } from "@wayward/game/ui/screen/screens/game/static/actions/ActionSlot";
|
16
|
+
import type { IEventSubscriberEvents } from "@wayward/utilities/event/EventEmitter";
|
16
17
|
import EventEmitter from "@wayward/utilities/event/EventEmitter";
|
17
|
-
interface IItemComponentEventBusEvents {
|
18
|
+
interface IItemComponentEventBusEvents extends IEventSubscriberEvents {
|
18
19
|
update(type: ItemRefreshType): any;
|
19
20
|
changeHovered(): any;
|
20
21
|
}
|
@@ -29,7 +29,7 @@ export declare enum EquipmentClasses {
|
|
29
29
|
SlotsWrapper = "game-dialog-equipment-slots-wrapper"
|
30
30
|
}
|
31
31
|
export declare namespace EquipmentClasses {
|
32
|
-
const SlotType: (enumValue: EquipType) => "game-dialog-equipment-slot-none" | "game-dialog-equipment-slot-
|
32
|
+
const SlotType: (enumValue: EquipType) => "game-dialog-equipment-slot-none" | "game-dialog-equipment-slot-back" | "game-dialog-equipment-slot-chest" | "game-dialog-equipment-slot-feet" | "game-dialog-equipment-slot-hands" | "game-dialog-equipment-slot-head" | "game-dialog-equipment-slot-held" | "game-dialog-equipment-slot-legs" | "game-dialog-equipment-slot-neck" | "game-dialog-equipment-slot-waist" | "game-dialog-equipment-slot-mainhand" | "game-dialog-equipment-slot-offhand" | "game-dialog-equipment-slot-dualwield";
|
33
33
|
}
|
34
34
|
export default class EquipmentDialog extends Dialog {
|
35
35
|
readonly slots: Component<HTMLElement>;
|
@@ -9,7 +9,7 @@
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
10
10
|
*/
|
11
11
|
import Menu from "@wayward/game/ui/screen/screens/menu/component/Menu";
|
12
|
-
import type { IVersionInfo } from "@wayward/
|
12
|
+
import type { IVersionInfo } from "@wayward/utilities/Version";
|
13
13
|
export default class ChangelogMenu extends Menu {
|
14
14
|
private static readonly modLinks;
|
15
15
|
private readonly headingVersionName;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2011-2024 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
|
+
import Notice from "@wayward/game/ui/component/Notice";
|
12
|
+
export default class ErrorReportingNotice extends Notice {
|
13
|
+
constructor();
|
14
|
+
}
|
@@ -23,6 +23,8 @@ export default class TabDeveloper extends Tab implements IRefreshable {
|
|
23
23
|
private readonly buttonToggleTraceRecording;
|
24
24
|
private readonly buttonDisposeReflection;
|
25
25
|
private readonly blockLogSourceFiltering;
|
26
|
+
private readonly checkButtonReportErrors;
|
27
|
+
private onTryEnableReportErrors;
|
26
28
|
private readonly blockUIExperiments;
|
27
29
|
constructor();
|
28
30
|
refresh(): this;
|
@@ -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 Notice from "@wayward/game/ui/
|
11
|
+
import Notice from "@wayward/game/ui/component/Notice";
|
12
12
|
export default class DevelopmentBranchNotice extends Notice {
|
13
13
|
constructor();
|
14
14
|
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2011-2024 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
|
+
import TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
|
12
|
+
import type { IVersionInfo } from "@wayward/utilities/Version";
|
13
|
+
import Version from "@wayward/utilities/Version";
|
14
|
+
declare namespace VersionTranslation {
|
15
|
+
function getVersionDisplayTranslation(version?: Version.String | Version.StringSemVer | IVersionInfo, development?: boolean): TranslationImpl;
|
16
|
+
function getUpdateDisplayTranslation(version?: Version.String | Version.StringSemVer | IVersionInfo): TranslationImpl | undefined;
|
17
|
+
}
|
18
|
+
export default VersionTranslation;
|
@@ -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 { IVersionInfo } from "@wayward/
|
11
|
+
import type { IVersionInfo } from "@wayward/utilities/Version";
|
12
12
|
export interface ITrello {
|
13
13
|
getChangelog(versionInfo: IVersionInfo): Promise<IChangelog | undefined>;
|
14
14
|
getVersions(maxVersion?: IVersionInfo): Promise<IVersionInfo[]>;
|
@@ -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 { IVersionInfo } from "@wayward/
|
11
|
+
import type { IVersionInfo } from "@wayward/utilities/Version";
|
12
12
|
import type { IChangelog, ITrello, ITrelloBoard, ITrelloCard } from "@wayward/game/utilities/trello/ITrello";
|
13
13
|
export default class Trello implements ITrello {
|
14
14
|
getCard(id: string, ...fields: string[]): Promise<ITrelloCard>;
|
@@ -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 "../../utilities/ApplyTsConfigPaths";
|
11
12
|
import "@wayward/goodstream/apply";
|
12
13
|
import "@wayward/game/utilities/prototype/Apply";
|
13
14
|
import type { IInit } from "@wayward/game/Init";
|
@@ -42,6 +42,12 @@ export interface IWaywardTitleBar {
|
|
42
42
|
isMaximized: boolean;
|
43
43
|
electron: IElectron;
|
44
44
|
}
|
45
|
+
export interface IBuild {
|
46
|
+
name: string;
|
47
|
+
time: number;
|
48
|
+
publishName?: string;
|
49
|
+
publishTime?: string;
|
50
|
+
}
|
45
51
|
export interface IBuildId {
|
46
52
|
date: number;
|
47
53
|
number: number;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
export namespace meta {
|
3
|
+
export let type: string;
|
4
|
+
export namespace docs {
|
5
|
+
let description: string;
|
6
|
+
let category: string;
|
7
|
+
let recommended: boolean;
|
8
|
+
}
|
9
|
+
export { messages };
|
10
|
+
export let schema: never[];
|
11
|
+
export let fixable: string | undefined;
|
12
|
+
}
|
13
|
+
export { createRuleListener as create };
|
14
|
+
}
|
15
|
+
export default _default;
|
16
|
+
export type Context = TSESLint.RuleContext<keyof typeof messages, []>;
|
17
|
+
export type Complexity = {
|
18
|
+
value: number;
|
19
|
+
functionValue: number;
|
20
|
+
conditional: boolean;
|
21
|
+
};
|
22
|
+
declare namespace messages {
|
23
|
+
let conditionTooComplexVariable: string;
|
24
|
+
let conditionTooComplexFunction: string;
|
25
|
+
}
|
26
|
+
/**
|
27
|
+
* @param {Context} context
|
28
|
+
* @returns {TSESLint.RuleListener}
|
29
|
+
*/
|
30
|
+
declare function createRuleListener(context: Context): TSESLint.RuleListener;
|
31
|
+
import type { TSESLint } from '@typescript-eslint/utils';
|
@@ -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
|
-
import Middleware from "@wayward/
|
11
|
+
import Middleware from "@wayward/server/core/Middleware";
|
12
12
|
declare const _default: Middleware<[message?: string]>;
|
13
13
|
export default _default;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2011-2024 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
|
+
import Middleware from "@wayward/server/core/Middleware";
|
12
|
+
declare const _default: Middleware;
|
13
|
+
export default _default;
|
@@ -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
|
-
import Middleware from "@wayward/
|
11
|
+
import Middleware from "@wayward/server/core/Middleware";
|
12
12
|
declare const _default: Middleware<[]>;
|
13
13
|
export default _default;
|
@@ -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
|
-
import Middleware from "@wayward/
|
11
|
+
import Middleware from "@wayward/server/core/Middleware";
|
12
12
|
declare const _default: Middleware<[]>;
|
13
13
|
export default _default;
|
@@ -9,5 +9,5 @@
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
10
10
|
*/
|
11
11
|
import type { ServerResponse } from "http";
|
12
|
-
import type { IncomingMessage } from "@wayward/
|
12
|
+
import type { IncomingMessage } from "@wayward/server/core/Middleware";
|
13
13
|
export default function (req: IncomingMessage, res: ServerResponse, filePath: string): Promise<ServerResponse | void | undefined>;
|
@@ -8,6 +8,4 @@
|
|
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
|
12
|
-
declare const server: DedicatedServer;
|
13
|
-
export = server;
|
11
|
+
import "../../hosts/node/nodeLoader";
|
@@ -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
|
-
import Middleware from "@wayward/
|
11
|
+
import Middleware from "@wayward/server/core/Middleware";
|
12
12
|
declare const _default: Middleware<[]>;
|
13
13
|
export default _default;
|
@@ -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
|
-
import Middleware from "@wayward/
|
11
|
+
import Middleware from "@wayward/server/core/Middleware";
|
12
12
|
declare const _default: Middleware<[]>;
|
13
13
|
export default _default;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2011-2024 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
|
+
import type { RequestListener } from "http";
|
12
|
+
declare const Router: RequestListener;
|
13
|
+
export default Router;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2011-2024 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
|
+
import "../../utilities/ApplyTsConfigPaths";
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2011-2024 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
|
+
import Middleware from "@wayward/server/core/Middleware";
|
12
|
+
declare const _default: Middleware<[message?: string]>;
|
13
|
+
export default _default;
|
@@ -12,7 +12,7 @@ import type * as ws from "ws";
|
|
12
12
|
import Server from "./server";
|
13
13
|
import * as shared from "./shared";
|
14
14
|
import type { IServerGameDetails, IServerServerDetails } from "@wayward/hosts-shared/interfaces";
|
15
|
-
export
|
15
|
+
export declare class DedicatedServer extends Server {
|
16
16
|
private host;
|
17
17
|
private readonly dedicatedServerId;
|
18
18
|
stop(): void;
|
@@ -15,7 +15,7 @@ export declare class ApplicationDom {
|
|
15
15
|
private readonly browser;
|
16
16
|
private readonly logger;
|
17
17
|
constructor(browser: WebdriverIO.Browser, logger: ApplicationLogger);
|
18
|
-
executeFunction<T2 extends any[], T>(executor: (...extraArgs: T2) => T
|
18
|
+
executeFunction<T2 extends any[], T>(executor: (...extraArgs: T2) => T | Promise<T>, ...extraArgs: T2): Promise<T>;
|
19
19
|
executeJavaScript<T>(javascript: string): Promise<T>;
|
20
20
|
getElement(selector: string): Promise<WebdriverIO.Element>;
|
21
21
|
getElements(selector: string, onlyVisible?: boolean): Promise<WebdriverIO.Element[]>;
|
@@ -111,4 +111,8 @@ export default class ApplicationInteractions {
|
|
111
111
|
randomMovement(count: number): Promise<void>;
|
112
112
|
pressKey(key: string, modifier?: string, duration?: number): Promise<void>;
|
113
113
|
screenshot(suffix: string): Promise<void>;
|
114
|
+
/**
|
115
|
+
* Runs a garbage collection and counts the number of objects remaining for the specified item
|
116
|
+
*/
|
117
|
+
garbageCollectAndCount(objectIdentifier: string): Promise<number>;
|
114
118
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2011-2024 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
|
+
import type { TestExecutor } from "@wayward/test/testRunner";
|
12
|
+
declare const _default: [string, TestExecutor];
|
13
|
+
export default _default;
|
@@ -8,4 +8,4 @@
|
|
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
|
+
export {};
|