@wayward/types 2.14.4-beta.dev.20250101.1 → 2.14.4-beta.dev.20250103.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 -3
- package/definitions/game/game/entity/Human.d.ts +9 -1
- package/definitions/game/game/entity/action/ActionExecutor.d.ts +9 -8
- 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/inspection/infoProviders/doodad/StillWater.d.ts +3 -5
- package/definitions/game/game/island/Island.d.ts +2 -2
- package/definitions/game/game/island/automation/IAutomation.d.ts +10 -0
- 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/game/tile/Tile.d.ts +9 -1
- package/definitions/game/game/time/TimeManager.d.ts +8 -0
- package/definitions/game/language/dictionary/Message.d.ts +795 -792
- package/definitions/game/language/dictionary/UiTranslation.d.ts +855 -853
- 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/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 +3 -1
- package/definitions/game/steamworks/ISteamworks.d.ts +0 -6
- package/definitions/game/steamworks/Steamworks.d.ts +7 -3
- package/definitions/game/ui/component/Component.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/component/InspectionsList.d.ts +0 -1
- package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +1 -1
- package/definitions/game/ui/screen/screens/game/dialog/QuestDialog.d.ts +1 -0
- package/definitions/game/ui/screen/screens/menu/menus/main/ChangelogMenu.d.ts +1 -1
- package/definitions/game/utilities/Observer.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 +6 -1
- package/definitions/{core → server/core}/Middleware.d.ts +1 -0
- package/definitions/{core → server/core}/middleware/E404.d.ts +1 -1
- package/definitions/server/core/middleware/Probe.d.ts +13 -0
- package/definitions/{core → server/core}/middleware/Static.d.ts +1 -1
- package/definitions/{core → server/core}/middleware/Validate.d.ts +1 -1
- package/definitions/{core → server/core}/util/SendFile.d.ts +1 -1
- package/definitions/{dev → server/dev}/index.d.ts +1 -1
- package/definitions/{dev → server/dev}/middleware/CustomInternalMods.d.ts +1 -1
- package/definitions/{dev → server/dev}/middleware/SaveFolder.d.ts +1 -1
- package/definitions/{matchmakingserver → server/error}/index.d.ts +1 -3
- package/definitions/{error → server/error}/middleware/ReportError.d.ts +1 -1
- package/definitions/server/error/util/SendDiscordMessage.d.ts +19 -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/{error/index.d.ts → utilities/ApplyTsConfigPaths.d.ts} +1 -1
- package/definitions/utilities/Log.d.ts +1 -0
- package/definitions/{game/utilities → utilities}/Version.d.ts +4 -7
- package/definitions/utilities/event/EventEmitter.d.ts +10 -0
- package/definitions/utilities/types.d.ts +18 -0
- package/package.json +1 -1
- /package/definitions/{core → server/core}/util/Log.d.ts +0 -0
- /package/definitions/{dev → server/dev}/Router.d.ts +0 -0
- /package/definitions/{core → server/dev}/util/GameLogFilter.d.ts +0 -0
- /package/definitions/{error → server/error}/Router.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;
|
@@ -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,9 +10,11 @@
|
|
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
|
+
import type { IBuildId } from "@wayward/hosts/shared/globalTypes";
|
14
15
|
export declare const BUILD_TIME_INTRODUCED_TIME: Date;
|
15
16
|
declare namespace UpgradeVersionRegistry {
|
17
|
+
function getMostRecentBuildId(): IBuildId | undefined;
|
16
18
|
function getAll(): readonly IUpgradeVersion[];
|
17
19
|
function run<TYPE extends UpgradeType>(version: Version.Info, messages: UpgradesArray, which: TYPE, ...params: UpgradeParameters<TYPE>): void;
|
18
20
|
}
|
@@ -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
|
@@ -12,15 +12,15 @@ import type { HeapStatistics } from "electron";
|
|
12
12
|
import type { Game } from "@wayward/game/game/Game";
|
13
13
|
import type Entity from "@wayward/game/game/entity/Entity";
|
14
14
|
import IActionContext from "@wayward/game/game/entity/action/IActionContext";
|
15
|
-
import { ModType } from "@wayward/game/mod/IModInformation";
|
15
|
+
import { ModState, 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;
|
@@ -219,6 +219,10 @@ export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
|
|
219
219
|
private refreshSetupMods;
|
220
220
|
private cleanupTemporaryLocalFiles;
|
221
221
|
private cleanupTemporaryRemoteFiles;
|
222
|
+
/**
|
223
|
+
* Called when the overlay is closed or when the refresh mods button is clicked
|
224
|
+
*/
|
225
|
+
refreshWorkshopMods(waitForRefresh?: boolean, initialModState?: ModState.Enabled | ModState.Disabled): Promise<void>;
|
222
226
|
private refreshPublishedMods;
|
223
227
|
private getIdFromWorkshopItem;
|
224
228
|
private syncWorkshopItems;
|
@@ -94,6 +94,7 @@ export default class Component<E extends HTMLElement = HTMLElement> extends Even
|
|
94
94
|
*/
|
95
95
|
get selectable(): SelectableLayer | false;
|
96
96
|
constructor(elementType?: string, namespace?: Namespace);
|
97
|
+
toString(): string;
|
97
98
|
/**
|
98
99
|
* Alias of `.element.addEventListener`, except it returns `this` instead and prevents memory leaks
|
99
100
|
*/
|
@@ -30,7 +30,6 @@ export default abstract class InspectionsList<INSPECTIONS_HANDLER extends Inspec
|
|
30
30
|
event: IEventEmitter<this, ITileInspectionsEvents>;
|
31
31
|
private readonly paragraphInspectionsInvalid;
|
32
32
|
private inspectTypeFilter;
|
33
|
-
private _removed?;
|
34
33
|
protected inspectionsHandler?: InspectionsHandler;
|
35
34
|
protected refreshPromiseSequence: PromiseSequence;
|
36
35
|
protected inspectionsHandlerUpdatedInspectionsCallback?: (_: any, inspectType: InspectType, inspections: HashSet<Inspection<any>>, oldInspections: HashSet<Inspection<any>> | undefined) => void;
|
@@ -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>;
|
@@ -27,6 +27,7 @@ export default class QuestDialog extends Dialog {
|
|
27
27
|
private readonly childQuestsHeading;
|
28
28
|
private readonly childQuests;
|
29
29
|
private readonly completeQuestButton;
|
30
|
+
private readonly activateQuestButton;
|
30
31
|
private current;
|
31
32
|
constructor();
|
32
33
|
getBindable(): Bindable;
|
@@ -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;
|
@@ -57,7 +57,7 @@ declare namespace Observer {
|
|
57
57
|
start(): void;
|
58
58
|
end(): void;
|
59
59
|
setDefaultPriority(priority?: number): this;
|
60
|
-
inherit(registrar: IRegistrar<any>):
|
60
|
+
inherit(registrar: IRegistrar<any>): HOST;
|
61
61
|
}
|
62
62
|
export function createRegistrar<HOST>(host: HOST, handler: () => any): IRegistrar<HOST>;
|
63
63
|
export {};
|
@@ -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;
|
@@ -8,12 +8,17 @@ declare namespace _default {
|
|
8
8
|
}
|
9
9
|
export { messages };
|
10
10
|
export let schema: never[];
|
11
|
-
export let fixable: string;
|
11
|
+
export let fixable: string | undefined;
|
12
12
|
}
|
13
13
|
export { createRuleListener as create };
|
14
14
|
}
|
15
15
|
export default _default;
|
16
16
|
export type Context = TSESLint.RuleContext<keyof typeof messages, []>;
|
17
|
+
export type Complexity = {
|
18
|
+
value: number;
|
19
|
+
functionValue: number;
|
20
|
+
conditional: boolean;
|
21
|
+
};
|
17
22
|
declare namespace messages {
|
18
23
|
let conditionTooComplexVariable: string;
|
19
24
|
let conditionTooComplexFunction: string;
|
@@ -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,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
|
-
import "
|
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;
|
@@ -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 "../../utilities/ApplyTsConfigPaths";
|
@@ -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,19 @@
|
|
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
|
+
export interface IDiscordMessage {
|
12
|
+
color?: number;
|
13
|
+
author?: string;
|
14
|
+
title: string;
|
15
|
+
url?: string;
|
16
|
+
description?: string;
|
17
|
+
footer?: string;
|
18
|
+
}
|
19
|
+
export default function (message: IDiscordMessage): Promise<void>;
|
@@ -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 {};
|
@@ -87,6 +87,7 @@ declare namespace Log {
|
|
87
87
|
Memory = 2
|
88
88
|
}
|
89
89
|
function setMemoryLog(memoryLog: MemoryLog | undefined): void;
|
90
|
+
function setTimestampType(type: "full" | "build"): void;
|
90
91
|
function disableFileLogger(): void;
|
91
92
|
function disableFileLoggingForSource(source: string): void;
|
92
93
|
function initializeGameState(): void;
|
@@ -8,8 +8,8 @@
|
|
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
|
-
import type {
|
11
|
+
import type { IBuild, IBuildId } from "@wayward/hosts/shared/globalTypes";
|
12
|
+
import type { IFileSystem } from "@wayward/hosts/shared/ipc/fileSystem";
|
13
13
|
export interface IVersionInfo {
|
14
14
|
str: Version.String;
|
15
15
|
strSemver: Version.StringSemVer;
|
@@ -31,6 +31,7 @@ export declare namespace IVersionInfo {
|
|
31
31
|
}
|
32
32
|
}
|
33
33
|
declare namespace Version {
|
34
|
+
export function readBuildFile(path?: string, fs?: IFileSystem): Promise<IBuild | undefined>;
|
34
35
|
export type Stage = "beta" | "release";
|
35
36
|
export type String = `${Stage}${bigint}.${bigint}.${bigint}` | `${Stage}${bigint}.${bigint}` | `${Stage}${bigint}`;
|
36
37
|
export type StringSemVer = `${bigint}.${bigint}.${bigint}-${Stage}` | `${bigint}.${bigint}.${bigint}`;
|
@@ -68,10 +69,8 @@ declare namespace Version {
|
|
68
69
|
export function createRawVersionInfo(stage: Version.Stage, major: number, minor: number, patch?: number, date?: Date): IVersionInfo;
|
69
70
|
export function convertStringToRawInfo(version: Version.String | Version.StringSemVer | Version.StringBuildId): IVersionInfo;
|
70
71
|
export function create(stage: Version.Stage, major: number, minor: number, patch?: number, date?: Date): Info;
|
71
|
-
export function getVersionInfo(version
|
72
|
+
export function getVersionInfo(version?: IVersionInfo | Version.String | Version.StringSemVer | Version.StringBuildId): Info;
|
72
73
|
export function isSameVersion(version: IVersionInfo, compareVersion: IVersionInfo): boolean;
|
73
|
-
export function getVersionDisplayTranslation(version?: Version.String | Version.StringSemVer | IVersionInfo, development?: boolean): TranslationImpl;
|
74
|
-
export function getUpdateDisplayTranslation(version?: Version.String | Version.StringSemVer | IVersionInfo): TranslationImpl | undefined;
|
75
74
|
const timezones: {
|
76
75
|
nz: string;
|
77
76
|
pt: string;
|
@@ -110,8 +109,6 @@ declare namespace Version {
|
|
110
109
|
*/
|
111
110
|
isBefore(dateStr: DateString, timezone: keyof typeof timezones): boolean;
|
112
111
|
equals(version: IVersionInfo | Version.String | Version.StringSemVer): boolean;
|
113
|
-
getTranslation(): TranslationImpl;
|
114
|
-
getUpdateTranslation(): TranslationImpl | undefined;
|
115
112
|
}
|
116
113
|
export {};
|
117
114
|
}
|
@@ -79,6 +79,10 @@ export interface IEventEmitter<H = any, E = any> {
|
|
79
79
|
until<E2>(emitter: IEventEmitterHost<E2>, ...events: Array<keyof E2>): IUntilSubscriber<H, E>;
|
80
80
|
until(promise: Promise<any>): IUntilSubscriber<H, E>;
|
81
81
|
hasHandlersForEvent(...events: Array<keyof E>): boolean;
|
82
|
+
/**
|
83
|
+
* Closes an event emitter, which will prevent any further subscriptions from being made.
|
84
|
+
*/
|
85
|
+
close(): void;
|
82
86
|
}
|
83
87
|
export interface IUntilSubscriber<H, E> {
|
84
88
|
until(promise: Promise<any>): this;
|
@@ -101,7 +105,13 @@ declare class EventEmitter<H, E> {
|
|
101
105
|
private subscriptions?;
|
102
106
|
private cachedEmitSelfHandlers?;
|
103
107
|
private cachedClassHandlers?;
|
108
|
+
private closed?;
|
104
109
|
constructor(host: H);
|
110
|
+
/**
|
111
|
+
* Closes an event emitter, which will prevent any further subscriptions from being made.
|
112
|
+
*/
|
113
|
+
close(): void;
|
114
|
+
private throwIfClosed;
|
105
115
|
raw(): IEventEmitter<H, E>;
|
106
116
|
emitSelf<K extends keyof E>(event: K, ...args: ArgsOf<E[K]>): H;
|
107
117
|
emit<K extends keyof E>(event: K, ...args: ArgsOf<E[K]>): H;
|
@@ -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 "@wayward/utilities/types/Class";
|
12
|
+
import "@wayward/utilities/types/Descriptions";
|
13
|
+
import "@wayward/utilities/types/Function";
|
14
|
+
import "@wayward/utilities/types/Immutable";
|
15
|
+
import "@wayward/utilities/types/Iterables";
|
16
|
+
import "@wayward/utilities/types/Misc";
|
17
|
+
import "@wayward/utilities/types/Objects";
|
18
|
+
import "@wayward/utilities/types/Types";
|