@wayward/types 2.14.4-beta.dev.20241230.1 → 2.14.4-beta.dev.20241231.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/game/doodad/Doodad.d.ts +1 -1
- package/definitions/game/game/entity/player/quest/quest/IQuest.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/LevelValue.d.ts +3 -1
- package/definitions/game/game/inspection/infoProviders/MagicalDamageReduction.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/MagicalDamageRegeneration.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/MagicalPropertyValue.d.ts +3 -2
- package/definitions/game/game/inspection/infoProviders/item/MagicalSourceTooltip.d.ts +2 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemBuildInfo.d.ts +1 -1
- package/definitions/game/game/inspection/infoProviders/item/use/ItemEquipInfo.d.ts +1 -1
- package/definitions/game/game/inspection/inspections/MagicInspection.d.ts +2 -2
- package/definitions/game/game/item/IItem.d.ts +1 -1
- package/definitions/game/game/item/Item.d.ts +2 -1
- package/definitions/game/game/magic/IMagicalProperty.d.ts +85 -0
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +3 -72
- package/definitions/game/game/magic/MagicalPropertyType.d.ts +1 -1
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +27 -26
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +1 -0
- package/definitions/game/game/reference/IReferenceManager.d.ts +1 -1
- package/definitions/game/language/Dictionary.d.ts +58 -57
- package/definitions/game/language/DictionaryMap.d.ts +116 -114
- package/definitions/game/language/Translation.d.ts +1 -2
- package/definitions/game/language/dictionary/Message.d.ts +475 -474
- package/definitions/game/language/dictionary/UiTranslation.d.ts +870 -863
- package/definitions/game/language/english/item/MagicalSubPropertyAffixes.d.ts +13 -0
- package/definitions/game/save/data/ISaveData.d.ts +23 -0
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +1 -0
- package/definitions/game/save/data/SaveData.d.ts +10 -1
- package/definitions/game/save/serializer/PropertiesToSerialize.d.ts +4 -0
- package/definitions/game/save/upgrade/versions/beta2.14.4/beta2.14.4-dev20241231.d.ts +12 -0
- package/definitions/game/steamworks/ISteamworks.d.ts +1 -0
- package/definitions/game/steamworks/Steamworks.d.ts +6 -2
- package/definitions/game/ui/component/dropdown/MagicalPropertyDropdown.d.ts +1 -2
- package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/dialog/MilestonesDialog.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/dialog/unlockables/UnlockablesDialog.d.ts +1 -0
- package/definitions/game/ui/screen/screens/menu/menus/options/TabDeveloper.d.ts +1 -1
- package/definitions/game/ui/screen/screens/menu/menus/options/TabSaveData.d.ts +1 -0
- package/definitions/game/ui/util/HighlightManager.d.ts +11 -1
- package/definitions/game/ui/util/IHighlight.d.ts +1 -0
- package/definitions/test/core/applicationDom.d.ts +3 -1
- package/definitions/utilities/Log.d.ts +3 -2
- package/package.json +1 -1
@@ -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 { MagicalPropertyIdentityHash } from "@wayward/game/game/magic/IMagicalProperty";
|
12
|
+
declare const magicalSubPropertyAffixes: PartialRecord<MagicalPropertyIdentityHash, [adjective: string, noun: string]>;
|
13
|
+
export default magicalSubPropertyAffixes;
|
@@ -0,0 +1,23 @@
|
|
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 { RunningContext } from "@wayward/game/steamworks/ISteamworks";
|
12
|
+
import type Version from "@wayward/game/utilities/Version";
|
13
|
+
import type { IBuildId } from "@wayward/hosts/shared/globalTypes";
|
14
|
+
export interface IGameCreationInfo {
|
15
|
+
build: IGameCreationInfoBuild;
|
16
|
+
creationTime: number;
|
17
|
+
runningContext: RunningContext;
|
18
|
+
version: Version.String;
|
19
|
+
}
|
20
|
+
export interface IGameCreationInfoBuild {
|
21
|
+
id: IBuildId | undefined;
|
22
|
+
time: number;
|
23
|
+
}
|
@@ -34,6 +34,7 @@ export interface IOptions {
|
|
34
34
|
defaultCursor: boolean;
|
35
35
|
developerMode: boolean;
|
36
36
|
developerModeContextMenu: boolean;
|
37
|
+
developerLogMessagesForContainerDesyncs: boolean;
|
37
38
|
dialogOpacity: number;
|
38
39
|
directionTurnDelay: number;
|
39
40
|
disableAcrylicTransparency: boolean;
|
@@ -13,7 +13,9 @@ import type { GameMode, IGameOptions } from "@wayward/game/game/options/IGameOpt
|
|
13
13
|
import type { ISerializedTranslation } from "@wayward/game/language/ITranslation";
|
14
14
|
import type { IMultiplayerState } from "@wayward/game/multiplayer/IMultiplayer";
|
15
15
|
import type IClientStore from "@wayward/game/save/clientStore/IClientStore";
|
16
|
+
import type { IGameCreationInfo } from "@wayward/game/save/data/ISaveData";
|
16
17
|
import type EnumInfo from "@wayward/game/utilities/enum/EnumInfo";
|
18
|
+
import type Version from "@wayward/game/utilities/Version";
|
17
19
|
import type { IBuildId } from "@wayward/hosts/shared/globalTypes";
|
18
20
|
export declare const saveDataVersionUnknown = "Unknown";
|
19
21
|
export default class SaveData {
|
@@ -30,7 +32,14 @@ export default class SaveData {
|
|
30
32
|
saveManagerDifficulty: GameMode;
|
31
33
|
saveManagerOptions: IGameOptions;
|
32
34
|
saveManagerScore: number;
|
33
|
-
saveManagerOriginalVersion:
|
35
|
+
saveManagerOriginalVersion: Version.String;
|
36
|
+
/**
|
37
|
+
* Contains extra information about the creation of this save.
|
38
|
+
* This may not be accurate for older saves before this was added (beta2.14.4).
|
39
|
+
* The existing data must not be modified after initial save creation.
|
40
|
+
* TODO: Remove gameCreationTime & saveManagerOriginalVersion and use this instead?
|
41
|
+
*/
|
42
|
+
gameCreationInfo: Readonly<IGameCreationInfo>;
|
34
43
|
saveManagerDeathBy: ISerializedTranslation;
|
35
44
|
modManagerSaveData: Record<string, any>;
|
36
45
|
modManagerUnloadable: Record<string, {
|
@@ -57,6 +57,10 @@ declare const propertiesToSerializeObject: {
|
|
57
57
|
saveManagerOriginalVersion: {
|
58
58
|
property: string[];
|
59
59
|
};
|
60
|
+
gameCreationInfo: {
|
61
|
+
property: string[];
|
62
|
+
savePropertyFlag: SavePropertyFlag;
|
63
|
+
};
|
60
64
|
gameThumbnail: {
|
61
65
|
property: string[];
|
62
66
|
savePropertyFlag: SavePropertyFlag;
|
@@ -0,0 +1,12 @@
|
|
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
|
+
declare const _default: import("@wayward/game/save/upgrade/UpgradeVersion").IUpgradeVersionDefinition;
|
12
|
+
export default _default;
|
@@ -63,3 +63,4 @@ export declare const steamStatTypes: {
|
|
63
63
|
};
|
64
64
|
export type SteamStatTypeValues<T extends SteamStatArea> = typeof steamStatTypes[T][keyof typeof steamStatTypes[T]];
|
65
65
|
export declare const actionToSteamMarker: OptionalDescriptions<ActionType, SteamTimelineMarker>;
|
66
|
+
export type RunningContext = "Steam" | "Electron" | "Node.js" | "Browser";
|
@@ -15,7 +15,7 @@ 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 { IBuild, IDedicatedServerInfo, IModPath, ISteamworksEvents, SteamStatTypeValues } from "@wayward/game/steamworks/ISteamworks";
|
18
|
+
import type { IBuild, 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";
|
@@ -92,7 +92,7 @@ export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
|
|
92
92
|
/** @deprecated For console use */
|
93
93
|
protected setBuildId(id?: string): void;
|
94
94
|
initialize(): Promise<IWaywardPreload | undefined>;
|
95
|
-
enableSafePaths(): void
|
95
|
+
enableSafePaths(): Promise<void>;
|
96
96
|
onUnload(): void;
|
97
97
|
getHeapStatistics(): Promise<HeapStatistics | undefined>;
|
98
98
|
setFullscreen(fullscreen: boolean): Promise<void>;
|
@@ -130,6 +130,10 @@ export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
|
|
130
130
|
* - {@link Island.saveBuildId}
|
131
131
|
*/
|
132
132
|
get buildId(): IBuildId | undefined;
|
133
|
+
/**
|
134
|
+
* Returns a string about how the game is running
|
135
|
+
*/
|
136
|
+
get runningContext(): RunningContext;
|
133
137
|
getPublishedMods(): IWorkshopItem[] | undefined;
|
134
138
|
getStatInt(name: string): number | undefined;
|
135
139
|
/**
|
@@ -8,8 +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
|
12
|
-
import { MagicalPropertyIdentity } from "@wayward/game/game/magic/MagicalPropertyManager";
|
11
|
+
import { MagicalPropertyIdentity, type MagicalPropertyIdentityHash } from "@wayward/game/game/magic/IMagicalProperty";
|
13
12
|
import MagicalPropertyType from "@wayward/game/game/magic/MagicalPropertyType";
|
14
13
|
import type TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
|
15
14
|
import type { IDropdownOption } from "@wayward/game/ui/component/Dropdown";
|
package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts
CHANGED
@@ -96,6 +96,7 @@ export default class ContainerBucketItemList extends Component implements ISorta
|
|
96
96
|
private readonly transientItemComponents;
|
97
97
|
addTransientItem(item: Item): ItemComponent | undefined;
|
98
98
|
removeTransientItem(item: Item): void;
|
99
|
+
ensureItemComponent(item: Item): ItemComponent | undefined;
|
99
100
|
private readonly itemComponents;
|
100
101
|
private getItemComponent;
|
101
102
|
private readonly itemStacks;
|
@@ -22,6 +22,7 @@ export declare enum MilestonesDialogClasses {
|
|
22
22
|
}
|
23
23
|
export default class MilestonesDialog extends UnlockablesDialog<Milestone, MilestoneSort> {
|
24
24
|
constructor();
|
25
|
+
refreshNotUnlockableWarning(): void;
|
25
26
|
getBindable(): Bindable;
|
26
27
|
getIcon(): MenuBarButtonType;
|
27
28
|
protected getUnlockablesName(): Translation;
|
@@ -38,6 +38,7 @@ export default abstract class UnlockablesDialog<UNLOCKABLE extends number, SORT
|
|
38
38
|
readonly sectionUnlockableInMode: Component;
|
39
39
|
readonly sectionNotUnlockableInMode: Component;
|
40
40
|
readonly sectionHidden: Component;
|
41
|
+
readonly noticeNotUnlockable: Paragraph;
|
41
42
|
readonly noticeRowsHidden: Paragraph;
|
42
43
|
readonly sortFilterRow: DialogSortFilter<SORT>;
|
43
44
|
constructor(id: DialogId);
|
@@ -19,7 +19,7 @@ export default class TabDeveloper extends Tab implements IRefreshable {
|
|
19
19
|
private readonly buttonReloadStylesheets;
|
20
20
|
private readonly buttonReloadTexturesCache;
|
21
21
|
private readonly buttonTogglePrepackedSprites;
|
22
|
-
private readonly
|
22
|
+
private readonly buttonToggleContainerDesyncMessages;
|
23
23
|
private readonly buttonToggleTraceRecording;
|
24
24
|
private readonly buttonDisposeReflection;
|
25
25
|
private readonly blockLogSourceFiltering;
|
@@ -24,6 +24,7 @@ export default class TabSaveData extends Tab implements IRefreshable {
|
|
24
24
|
private onClearOptions;
|
25
25
|
private onClearSaves;
|
26
26
|
private onClearCharacters;
|
27
|
+
private onClearUI;
|
27
28
|
private onClearHighscores;
|
28
29
|
private onClearMilestones;
|
29
30
|
private onClearCraftingRecipes;
|
@@ -9,16 +9,26 @@
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
10
10
|
*/
|
11
11
|
import Component from "@wayward/game/ui/component/Component";
|
12
|
-
import type { HighlightSelector, IHighlight } from "@wayward/game/ui/util/IHighlight";
|
12
|
+
import type { HighlightSelector, HighlightSelectorResolved, IHighlight } from "@wayward/game/ui/util/IHighlight";
|
13
|
+
import { HighlightType } from "@wayward/game/ui/util/IHighlight";
|
13
14
|
import type { Events } from "@wayward/utilities/event/EventEmitter";
|
14
15
|
export default class HighlightManager {
|
15
16
|
private readonly highlightableComponents;
|
17
|
+
private readonly highlightableResolvers;
|
16
18
|
/**
|
17
19
|
* Registers this component to the given highlight selector.
|
18
20
|
*
|
19
21
|
* Note: When not providing `until` events, the `remove` event will be subscribed to automatically.
|
20
22
|
*/
|
21
23
|
register<C extends Component>(component: C, selector: HighlightSelector | undefined, ...until: Array<keyof Events<C>>): void;
|
24
|
+
/**
|
25
|
+
* Registers a "resolver" function to the given highlight selector. This resolver function will be called to produce an additional list
|
26
|
+
* of components to highlight when the highlight is started.
|
27
|
+
*
|
28
|
+
* This resolver function will never be automatically deregistered. Use {@link deregisterResolver} to deregister it.
|
29
|
+
*/
|
30
|
+
registerResolver<C extends Component>(type: HighlightType | undefined, resolver: (selector: HighlightSelectorResolved) => ArrayOr<C> | undefined): void;
|
31
|
+
deregisterResolver<C extends Component>(type: HighlightType | undefined, resolver: (selector: HighlightSelectorResolved) => ArrayOr<C> | undefined): void;
|
22
32
|
is(component: Component, selector: HighlightSelector): boolean;
|
23
33
|
private getHighlightSelectorId;
|
24
34
|
private getHighlightableComponents;
|
@@ -11,6 +11,7 @@
|
|
11
11
|
import type { IContainer } from "@wayward/game/game/item/IItem";
|
12
12
|
import type Item from "@wayward/game/game/item/Item";
|
13
13
|
export type HighlightSelector = [HighlightType, GetterOfOr<string | number>];
|
14
|
+
export type HighlightSelectorResolved = [HighlightType, string | number];
|
14
15
|
export interface IHighlight {
|
15
16
|
selectors: SupplierOr<HighlightSelector[]>;
|
16
17
|
time?: number;
|
@@ -31,7 +31,9 @@ export declare class ApplicationDom {
|
|
31
31
|
}>): Promise<void>;
|
32
32
|
waitForVisibleElements(selector: string, timeout?: number, scrollIntoView?: boolean): Promise<WebdriverIO.Element[]>;
|
33
33
|
waitForNotVisible(selector: string, timeout?: number): Promise<void>;
|
34
|
-
waitUntil(executor: () => Promise<boolean>, options: WaitUntilOptions
|
34
|
+
waitUntil(executor: () => Promise<boolean>, options: WaitUntilOptions & {
|
35
|
+
triggerDebugger?: true;
|
36
|
+
}): Promise<true | void>;
|
35
37
|
}
|
36
38
|
export interface WaitUntilOptions extends Omit<webdriverio.WaitUntilOptions, "timeoutMsg"> {
|
37
39
|
timeoutMsg?: string | (() => string);
|
@@ -87,7 +87,8 @@ declare namespace Log {
|
|
87
87
|
Memory = 2
|
88
88
|
}
|
89
89
|
function setMemoryLog(memoryLog: MemoryLog | undefined): void;
|
90
|
-
function
|
90
|
+
function disableFileLogger(): void;
|
91
|
+
function disableFileLoggingForSource(source: string): void;
|
91
92
|
function initializeGameState(): void;
|
92
93
|
function setCallback(cb?: (...args: any[]) => void): void;
|
93
94
|
function addPreConsoleCallback(cb: (...args: any[]) => void): void;
|
@@ -95,7 +96,7 @@ declare namespace Log {
|
|
95
96
|
/**
|
96
97
|
* Setups file logging
|
97
98
|
*/
|
98
|
-
function setupFileLogger(fileSystem: IFileSystem, logsPath: string): void
|
99
|
+
function setupFileLogger(fileSystem: IFileSystem, logsPath: string): Promise<void>;
|
99
100
|
/**
|
100
101
|
* Flushes pending logs to disk if the file logger is active
|
101
102
|
*/
|
package/package.json
CHANGED