@wayward/types 2.14.0 → 2.14.1-beta
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/cplusplus/index.d.ts +2 -0
- package/definitions/game/game/Game.d.ts +1 -1
- package/definitions/game/game/IObject.d.ts +4 -0
- package/definitions/game/game/biome/arid/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/biome/coastal/Coastal.d.ts +1 -1
- package/definitions/game/game/biome/coastal/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/biome/iceCap/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/biome/template/Template.d.ts +3 -2
- package/definitions/game/game/biome/volcanic/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/biome/wetlands/mapGen/2.14.1.d.ts +12 -0
- package/definitions/game/game/deity/Deity.d.ts +1 -0
- package/definitions/game/game/deity/IDeities.d.ts +7 -0
- package/definitions/game/game/doodad/Doodad.d.ts +1 -1
- package/definitions/game/game/doodad/IDoodad.d.ts +2 -0
- package/definitions/game/game/entity/CombatStrengthManager.d.ts +6 -5
- package/definitions/game/game/entity/Entity.d.ts +1 -1
- package/definitions/game/game/entity/EntityMovable.d.ts +3 -1
- package/definitions/game/game/entity/Human.d.ts +2 -2
- package/definitions/game/game/entity/IEntity.d.ts +1 -0
- package/definitions/game/game/entity/IHuman.d.ts +0 -3
- package/definitions/game/game/entity/action/Action.d.ts +2 -6
- package/definitions/game/game/entity/action/ActionExecutor.d.ts +1 -1
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +17 -8
- package/definitions/game/game/entity/action/IAction.d.ts +16 -11
- package/definitions/game/game/entity/action/actions/{Sacrifice.d.ts → AscendDescend.d.ts} +1 -8
- package/definitions/game/game/entity/action/actions/CageCreature.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/ClearMessages.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Consecrate.d.ts +43 -0
- package/definitions/game/game/entity/action/actions/Craft.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/CraftNew.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Dismantle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Drop.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Eat.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/GatherLiquid.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Harvest.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/Ignite.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Plant.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/SetCreatureAi.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SetCreatureAiAll.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/SetTitle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Stack.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Throw.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/moveItem/MoveItemFilterArgument.d.ts +1 -0
- package/definitions/game/game/entity/action/actions/moveItem/MoveItemOptionsArgument.d.ts +1 -0
- package/definitions/game/game/entity/action/usable/IUsableAction.d.ts +2 -1
- package/definitions/game/game/entity/action/usable/UsableAction.d.ts +3 -1
- package/definitions/game/game/entity/action/usable/UsableActionTranslator.d.ts +6 -6
- package/definitions/game/game/entity/action/usable/UsableActionType.d.ts +3 -1
- package/definitions/game/game/entity/action/usable/actions/UsableActionsDynamic.d.ts +3 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
- package/definitions/game/game/entity/ai/AI.d.ts +7 -7
- package/definitions/game/game/entity/creature/Creature.d.ts +1 -0
- package/definitions/game/game/entity/creature/zone/CreatureZone.d.ts +4 -3
- package/definitions/game/game/entity/creature/zone/CreatureZoneManager.d.ts +2 -2
- package/definitions/game/game/entity/creature/zone/ICreatureZone.d.ts +29 -1
- package/definitions/game/game/entity/creature/zone/zones/arid/AridCreatures.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/arid/AridDoodadReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/arid/AridGuardians.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/arid/AridTileReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/coastal/CoastalCreatures.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/coastal/CoastalDoodadReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/coastal/CoastalGuardians.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/coastal/CoastalTileReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/iceCap/IceCapCreatures.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/iceCap/IceCapDoodadReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/iceCap/IceCapGuardians.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/iceCap/IceCapTileReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/volcanic/VolcanicCreatures.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/volcanic/VolcanicDoodadReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/volcanic/VolcanicGuardians.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/volcanic/VolcanicTileReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/wetlands/WetlandsCreatures.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/wetlands/WetlandsDoodadReplacements.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/wetlands/WetlandsGuardians.d.ts +12 -0
- package/definitions/game/game/entity/creature/zone/zones/wetlands/WetlandsTileReplacements.d.ts +12 -0
- package/definitions/game/game/entity/flowfield/FlowFieldManager.d.ts +1 -1
- package/definitions/game/game/entity/player/IPlayer.d.ts +3 -4
- package/definitions/game/game/entity/player/Player.d.ts +3 -0
- package/definitions/game/game/entity/player/quest/quest/Quest.d.ts +1 -0
- package/definitions/game/game/entity/status/IStatus.d.ts +3 -0
- package/definitions/game/game/inspection/InfoProvider.d.ts +3 -0
- package/definitions/game/game/inspection/Inspection.d.ts +1 -0
- package/definitions/game/game/inspection/infoProviders/item/use/ItemConsumeInfo.d.ts +1 -2
- package/definitions/game/game/inspection/infoProviders/item/use/ItemEquipInfo.d.ts +5 -8
- package/definitions/game/game/island/IIsland.d.ts +1 -1
- package/definitions/game/game/island/Island.d.ts +1 -1
- package/definitions/game/game/island/automation/Automation.d.ts +12 -3
- package/definitions/game/game/island/automation/AutomationStep.d.ts +1 -0
- package/definitions/game/game/island/automation/IAutomation.d.ts +103 -8
- package/definitions/game/game/island/automation/steps/ExecuteAction.d.ts +1 -1
- package/definitions/game/game/item/IItem.d.ts +26 -5
- package/definitions/game/game/item/IItemManager.d.ts +7 -3
- package/definitions/game/game/item/Item.d.ts +1 -0
- package/definitions/game/game/item/ItemFinder.d.ts +1 -0
- package/definitions/game/game/item/ItemManager.d.ts +6 -6
- package/definitions/game/game/magic/MagicalPropertyManager.d.ts +1 -3
- package/definitions/game/game/mapgen/IMapGen.d.ts +1 -1
- package/definitions/game/game/mapgen/version/2.14.1.d.ts +19 -0
- package/definitions/game/game/meta/prompt/IPrompt.d.ts +85 -83
- package/definitions/game/game/meta/prompt/PromptDescriptions.d.ts +2 -0
- package/definitions/game/game/milestones/MilestoneDefinition.d.ts +4 -4
- package/definitions/game/game/milestones/milestone/Runekeeper.d.ts +6 -2
- package/definitions/game/game/options/modifiers/milestone/modifiers/Versatile.d.ts +8 -2
- package/definitions/game/game/reference/IReferenceManager.d.ts +2 -2
- package/definitions/game/game/tile/Tile.d.ts +6 -4
- package/definitions/game/game/tile/TileEventManager.d.ts +5 -0
- package/definitions/game/language/DictionaryMap.d.ts +8 -8
- package/definitions/game/language/Translation.d.ts +9 -4
- package/definitions/game/language/dictionary/Message.d.ts +829 -848
- package/definitions/game/language/dictionary/Misc.d.ts +68 -69
- package/definitions/game/language/dictionary/Note.d.ts +1 -2
- package/definitions/game/language/dictionary/UiTranslation.d.ts +902 -924
- package/definitions/game/language/english/ui/RunekeeperDomains.d.ts +1 -1
- package/definitions/game/language/impl/TranslationImpl.d.ts +1 -0
- package/definitions/game/multiplayer/IMultiplayer.d.ts +68 -68
- package/definitions/game/renderer/IRenderer.d.ts +26 -24
- package/definitions/game/renderer/fieldOfView/FieldOfView.d.ts +6 -0
- package/definitions/game/renderer/notifier/INotifier.d.ts +3 -1
- package/definitions/game/save/data/ISaveDataGlobal.d.ts +3 -2
- package/definitions/game/save/serializer/Serializer.d.ts +2 -1
- package/definitions/game/save/upgrade/UpgradeVersion.d.ts +3 -1
- package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20241129.d.ts +12 -0
- package/definitions/game/steamworks/Steamworks.d.ts +7 -0
- package/definitions/game/ui/ServerJoinHandler.d.ts +1 -0
- package/definitions/game/ui/Ui.d.ts +1 -0
- package/definitions/game/ui/component/Component.d.ts +2 -1
- package/definitions/game/ui/input/Bind.d.ts +21 -14
- package/definitions/game/ui/input/Bindable.d.ts +224 -222
- package/definitions/game/ui/input/IInput.d.ts +19 -0
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +3 -4
- package/definitions/game/ui/screen/screens/game/DialogMap.d.ts +2 -0
- package/definitions/game/ui/screen/screens/game/Dialogs.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/component/Dialog.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/component/ItemComponent.d.ts +3 -0
- package/definitions/game/ui/screen/screens/game/component/container/ContainerBucketItemList.d.ts +8 -3
- package/definitions/game/ui/screen/screens/game/dialog/AltarDialog.d.ts +38 -0
- package/definitions/game/ui/screen/screens/game/dialog/ContainerDialog.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/static/ActionBar.d.ts +1 -0
- package/definitions/game/ui/screen/screens/game/static/actions/ActionSlot.d.ts +3 -1
- package/definitions/game/ui/screen/screens/game/static/actions/ActionsSelector.d.ts +2 -1
- package/definitions/game/ui/screen/screens/game/static/actions/IActionBar.d.ts +3 -1
- package/definitions/game/ui/screen/screens/menu/menus/options/TabDeveloper.d.ts +3 -2
- package/definitions/game/ui/util/ComponentManipulator.d.ts +5 -4
- package/definitions/game/utilities/Version.d.ts +1 -1
- package/definitions/game/utilities/WebWorker.d.ts +4 -1
- package/definitions/game/utilities/math/Direction.d.ts +1 -1
- package/definitions/hosts/electron/main/ipc/handlers/electron/electron.d.ts +1 -0
- package/definitions/hosts/shared/globals.d.ts +2 -2
- package/definitions/hosts/shared/interfaces.d.ts +10 -0
- package/definitions/hosts/shared/ipc/electron.d.ts +1 -0
- package/definitions/launcher/utilities/EventManager.d.ts +1 -3
- package/definitions/matchmakingserver/dedicatedServer.d.ts +2 -1
- package/definitions/matchmakingserver/directoryConnection.d.ts +1 -0
- package/definitions/matchmakingserver/globalServerDirectory.d.ts +1 -0
- package/definitions/matchmakingserver/shared.d.ts +1 -38
- package/definitions/test/core/applicationInteractions.d.ts +4 -0
- package/definitions/test/core/applicationManager.d.ts +5 -4
- package/definitions/test/interfaces.d.ts +0 -63
- package/definitions/test/testRunner.d.ts +2 -2
- package/definitions/utilities/Errors.d.ts +1 -0
- package/definitions/utilities/enum/IEnum.d.ts +1 -1
- package/definitions/utilities/object/Objects.d.ts +5 -15
- package/package.json +1 -1
- package/definitions/game/game/entity/creature/zone/GuardianZones.d.ts +0 -16
- /package/definitions/game/save/upgrade/versions/beta2.14.0/{beta2.14.0-dev20240927.d.ts → beta2.14.0-dev20241024.d.ts} +0 -0
|
@@ -34,6 +34,7 @@ export default class ContainerDialog extends Dialog {
|
|
|
34
34
|
constructor(id?: DialogId, subId?: string);
|
|
35
35
|
setContainer(container: IContainer): this;
|
|
36
36
|
protected resolveContainer(): (Tile & ITileContainer) | (Entity & IContainer) | undefined;
|
|
37
|
+
protected shouldSkipSetContainerOnAppend(): boolean;
|
|
37
38
|
protected onAppend1(): void;
|
|
38
39
|
getName(): TranslationImpl | undefined;
|
|
39
40
|
protected onTickEnd(): void;
|
|
@@ -103,6 +103,7 @@ export default class ActionBar extends QuadrantComponent {
|
|
|
103
103
|
protected onToggleAllUseWhileMoving(api: IBindHandlerApi): boolean;
|
|
104
104
|
protected onMenuCancel(): boolean;
|
|
105
105
|
protected onChangeWhetherCopying(api: IBindHandlerApi): boolean;
|
|
106
|
+
protected onPressingAnything(api: IBindHandlerApi): void;
|
|
106
107
|
getSlots(): Stream<ActionSlot>;
|
|
107
108
|
getHistorySlots(): Stream<ActionSlot>;
|
|
108
109
|
private toggleAllUseWhenMoving;
|
|
@@ -103,6 +103,7 @@ export declare class ActionSlot extends Button implements IRefreshable, ItemSlot
|
|
|
103
103
|
private lastClickUseWhenMoving;
|
|
104
104
|
protected onClick(event?: Event & Partial<MouseEvent>): void;
|
|
105
105
|
toggleUseOnMove(): boolean;
|
|
106
|
+
private static usedActionSlot?;
|
|
106
107
|
private firstActivate;
|
|
107
108
|
onActivateDown(api: IBindHandlerApi): boolean;
|
|
108
109
|
onActivateUp(api: IBindHandlerApi): boolean;
|
|
@@ -117,7 +118,8 @@ export declare class ActionSlot extends Button implements IRefreshable, ItemSlot
|
|
|
117
118
|
getAction(): UsableAction<IUsableActionRequirements, IUsableActionDefinition> | undefined;
|
|
118
119
|
getActionId(): ActionId | undefined;
|
|
119
120
|
getInternalActionType(): ActionType | undefined;
|
|
120
|
-
|
|
121
|
+
private usingCache?;
|
|
122
|
+
getUsing(fresh?: true): IUsableActionPossibleUsing | undefined;
|
|
121
123
|
private getBindingText;
|
|
122
124
|
}
|
|
123
125
|
declare class ActionSlotSlottedContainer extends ItemComponent {
|
|
@@ -13,6 +13,7 @@ import type UsableAction from "@wayward/game/game/entity/action/usable/UsableAct
|
|
|
13
13
|
import Component from "@wayward/game/ui/component/Component";
|
|
14
14
|
import Input from "@wayward/game/ui/component/Input";
|
|
15
15
|
import type { IBindHandlerApi } from "@wayward/game/ui/input/Bind";
|
|
16
|
+
import type ActionsConfigurationDrawer from "@wayward/game/ui/screen/screens/game/static/actions/ActionsDrawer";
|
|
16
17
|
import ActionsList from "@wayward/game/ui/screen/screens/game/static/actions/ActionsList";
|
|
17
18
|
import SelectionHandler from "@wayward/game/ui/screen/screens/menu/component/SelectionHandler";
|
|
18
19
|
import type { Events, IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
@@ -46,7 +47,7 @@ export default class ActionsSelector extends Component {
|
|
|
46
47
|
get action(): UsableAction<IUsableActionRequirements, IUsableActionDefinition> | undefined;
|
|
47
48
|
private readonly host;
|
|
48
49
|
private using?;
|
|
49
|
-
constructor(host:
|
|
50
|
+
constructor(host: ActionsConfigurationDrawer);
|
|
50
51
|
listen(): this;
|
|
51
52
|
unlisten(): this;
|
|
52
53
|
setSlot(number: number, action: UsableAction | undefined, using: IUsableActionPossibleUsing): void;
|
|
@@ -14,6 +14,7 @@ import { UsableActionDisplayContext } from "@wayward/game/game/entity/action/usa
|
|
|
14
14
|
import type UsableAction from "@wayward/game/game/entity/action/usable/UsableAction";
|
|
15
15
|
import { InfoDisplayLevel } from "@wayward/game/game/inspection/IInfoProvider";
|
|
16
16
|
import { InfoProviderContext } from "@wayward/game/game/inspection/InfoProviderContext";
|
|
17
|
+
import { ContainerReference } from "@wayward/game/game/item/IItem";
|
|
17
18
|
import type Item from "@wayward/game/game/item/Item";
|
|
18
19
|
import type { Reference, ReferenceType } from "@wayward/game/game/reference/IReferenceManager";
|
|
19
20
|
import type { Modifier } from "@wayward/game/ui/input/IInput";
|
|
@@ -28,10 +29,11 @@ export interface IActionBarSlotData {
|
|
|
28
29
|
useHovered?: true;
|
|
29
30
|
useOnHoveredTile?: true;
|
|
30
31
|
actionId?: ActionId;
|
|
31
|
-
using?: Omit<IUsableActionPossibleUsing, "item" | "doodad" | "vehicle" | "creature" | "npc" | "fromTile" | "targetTile"> & {
|
|
32
|
+
using?: Omit<IUsableActionPossibleUsing, "item" | "doodad" | "vehicle" | "creature" | "npc" | "fromTile" | "targetTile" | "container"> & {
|
|
32
33
|
fromTile?: number;
|
|
33
34
|
targetTile?: number;
|
|
34
35
|
item?: Reference<ReferenceType.Item>;
|
|
36
|
+
container?: ContainerReference;
|
|
35
37
|
doodad?: Reference<ReferenceType.Doodad>;
|
|
36
38
|
vehicle?: Reference<ReferenceType.Doodad>;
|
|
37
39
|
creature?: Reference<ReferenceType.Creature>;
|
|
@@ -15,11 +15,11 @@ export default class TabDeveloper extends Tab implements IRefreshable {
|
|
|
15
15
|
private readonly buttonDeveloperMode;
|
|
16
16
|
private readonly buttonOpenLogsFolder;
|
|
17
17
|
private readonly buttonToggleDevTools;
|
|
18
|
-
private readonly buttonFullscreen;
|
|
19
18
|
private readonly buttonReloadGame;
|
|
20
19
|
private readonly buttonReloadStylesheets;
|
|
21
20
|
private readonly buttonReloadTexturesCache;
|
|
22
21
|
private readonly buttonTogglePrepackedSprites;
|
|
22
|
+
private readonly buttonDisableMilestones;
|
|
23
23
|
private readonly buttonToggleTraceRecording;
|
|
24
24
|
private readonly buttonDisposeReflection;
|
|
25
25
|
private readonly blockLogSourceFiltering;
|
|
@@ -33,6 +33,7 @@ export default class TabDeveloper extends Tab implements IRefreshable {
|
|
|
33
33
|
private openLogsFolder;
|
|
34
34
|
private toggleTraceRecording;
|
|
35
35
|
private toggleDeveloperMode;
|
|
36
|
-
private onFullscreen;
|
|
37
36
|
private reloadGame;
|
|
37
|
+
private createSteamBetasDropdown;
|
|
38
|
+
private onSteamBetaSelect;
|
|
38
39
|
}
|
|
@@ -19,7 +19,8 @@ type EmptyIfUndefined<T> = T extends undefined ? Empty : T;
|
|
|
19
19
|
export declare abstract class Manipulator<T, U extends Until<T> | undefined = undefined> {
|
|
20
20
|
protected readonly element: () => HTMLElement;
|
|
21
21
|
protected readonly host: T;
|
|
22
|
-
protected
|
|
22
|
+
protected getUntilHandler?(): UntilHandler<T, EmptyIfUndefined<U>>;
|
|
23
|
+
private untilHandler?;
|
|
23
24
|
constructor(host: T, element: () => HTMLElement);
|
|
24
25
|
until(promise: Promise<any>): EmptyIfUndefined<U>;
|
|
25
26
|
until(ms: number): EmptyIfUndefined<U>;
|
|
@@ -32,7 +33,7 @@ export interface ClassUntil<T> extends Until<T> {
|
|
|
32
33
|
toggle(hasClass: boolean, ...classes: string[]): T;
|
|
33
34
|
}
|
|
34
35
|
export declare class ClassManipulator<T> extends Manipulator<T, ClassUntil<T>> {
|
|
35
|
-
protected
|
|
36
|
+
protected getUntilHandler(): {
|
|
36
37
|
add: {
|
|
37
38
|
start: (...classes: string[]) => T;
|
|
38
39
|
end: (...classes: string[]) => T;
|
|
@@ -68,7 +69,7 @@ export interface AttributeUntil<T> extends Until<T> {
|
|
|
68
69
|
set(attributes: Iterable<[string, string | null]>): T;
|
|
69
70
|
}
|
|
70
71
|
export declare class AttributeManipulator<T> extends Manipulator<T, AttributeUntil<T>> {
|
|
71
|
-
protected
|
|
72
|
+
protected getUntilHandler(): {
|
|
72
73
|
set: any;
|
|
73
74
|
};
|
|
74
75
|
set(name: string, value: string): T;
|
|
@@ -92,7 +93,7 @@ export interface StyleUntil<T> extends Until<T> {
|
|
|
92
93
|
set(rule: string, value: string): T;
|
|
93
94
|
}
|
|
94
95
|
export declare class StyleManipulator<T> extends Manipulator<T, StyleUntil<T>> {
|
|
95
|
-
protected
|
|
96
|
+
protected getUntilHandler(): {
|
|
96
97
|
set: {
|
|
97
98
|
start: (rule: string, value: string | number) => T;
|
|
98
99
|
end: (rule: string) => T;
|
|
@@ -65,7 +65,7 @@ declare namespace Version {
|
|
|
65
65
|
export function getUpdateDisplayTranslation(version?: Version.String | Version.StringSemVer | IVersionInfo): TranslationImpl | undefined;
|
|
66
66
|
const timezones: {
|
|
67
67
|
nz: string;
|
|
68
|
-
|
|
68
|
+
pt: string;
|
|
69
69
|
build: string;
|
|
70
70
|
};
|
|
71
71
|
export function isTimeBefore(date: Date, dateStr: DateString, timezone: keyof typeof timezones): boolean;
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
export type WorkerFunction<RequestType, ResultType> = (data: RequestType) => ({
|
|
12
12
|
message: ResultType;
|
|
13
13
|
transfer?: Transferable[];
|
|
14
|
-
} |
|
|
14
|
+
} | Promise<{
|
|
15
|
+
message: ResultType;
|
|
16
|
+
transfer?: Transferable[];
|
|
17
|
+
}> | undefined);
|
|
15
18
|
export declare class WebWorker<RequestType, ResultType> {
|
|
16
19
|
private worker;
|
|
17
20
|
private blobUrl;
|
|
@@ -67,7 +67,7 @@ export declare namespace Direction {
|
|
|
67
67
|
* `0` = East
|
|
68
68
|
*/
|
|
69
69
|
function fromDegrees(deg: number): Direction.Cardinal;
|
|
70
|
-
function asCardinal(direction
|
|
70
|
+
function asCardinal(direction?: Direction): Direction.Cardinal | undefined;
|
|
71
71
|
const HORIZONTAL: Readonly<Record<Direction, boolean>>;
|
|
72
72
|
const VERTICAL: Readonly<Record<Direction, boolean>>;
|
|
73
73
|
}
|
|
@@ -33,6 +33,7 @@ export declare class ElectronIPCHandler implements IElectron, IIPCHandler<IElect
|
|
|
33
33
|
reloadWindow(): Promise<void>;
|
|
34
34
|
invalidateWindow(): Promise<void>;
|
|
35
35
|
destroyWindow(): Promise<void>;
|
|
36
|
+
isFullScreen(): Promise<boolean>;
|
|
36
37
|
showSaveDialog(defaultPath: string, filterName: string, filterExtension: string): Promise<string | undefined>;
|
|
37
38
|
showOpenDirectoryDialog(defaultPath: string): Promise<string[]>;
|
|
38
39
|
}
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { IWaywardTitle } from "@wayward/hosts/shared/globalTypes";
|
|
12
|
-
export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 14, gameVersionPatch =
|
|
13
|
-
export declare const gameVersion = "beta2.14.
|
|
12
|
+
export declare const gameVersionStage = "beta", gameVersionMajor = 2, gameVersionMinor = 14, gameVersionPatch = 1, gameVersionName = "Runekeeper", gameVersionColor = 11015763;
|
|
13
|
+
export declare const gameVersion = "beta2.14.1";
|
|
14
14
|
export declare const gameVersionTitleMajor = "Wayward: Runekeeper";
|
|
15
15
|
export declare const gameVersionTitleMinor: string;
|
|
16
16
|
export declare const gameVersionTitle: string;
|
|
@@ -85,6 +85,8 @@ export interface ISteamworks {
|
|
|
85
85
|
getCurrentGameInstallDir(): string;
|
|
86
86
|
getSteamId(): ISteamId;
|
|
87
87
|
getCurrentBetaName(): string;
|
|
88
|
+
getBetas(): ISteamBeta[];
|
|
89
|
+
setActiveBeta(name: string): boolean;
|
|
88
90
|
onGameOverlayActive(cb: (isActive: boolean) => void): void;
|
|
89
91
|
onLobbyCreated(cb: (success: boolean, lobbyId: string, result?: number) => void): void;
|
|
90
92
|
onLobbyEntered(cb: (success: boolean, lobbyId: string, result?: number) => void): void;
|
|
@@ -121,6 +123,12 @@ export interface ISteamworksNetworking {
|
|
|
121
123
|
setSteamNetworkingSendRates(min: number, max: number): void;
|
|
122
124
|
setSteamNetworkingDebugCallback(callback: (type: number, message: string) => void): void;
|
|
123
125
|
}
|
|
126
|
+
export interface ISteamBeta {
|
|
127
|
+
buildId: number;
|
|
128
|
+
name: string;
|
|
129
|
+
description: string;
|
|
130
|
+
flags: number;
|
|
131
|
+
}
|
|
124
132
|
export interface ISteamFriend {
|
|
125
133
|
name?: string;
|
|
126
134
|
steamId: string;
|
|
@@ -253,6 +261,8 @@ export interface IServerGameDetails {
|
|
|
253
261
|
peaceful: boolean;
|
|
254
262
|
milestoneModifiersAllowed: boolean;
|
|
255
263
|
island: IServerIslandDetails;
|
|
264
|
+
reputation?: number;
|
|
265
|
+
alignment?: number;
|
|
256
266
|
}
|
|
257
267
|
export interface IServerMod {
|
|
258
268
|
name: string;
|
|
@@ -27,6 +27,7 @@ export interface IElectron {
|
|
|
27
27
|
reloadWindow(): Promise<void>;
|
|
28
28
|
invalidateWindow(): Promise<void>;
|
|
29
29
|
destroyWindow(): Promise<void>;
|
|
30
|
+
isFullScreen(): Promise<boolean>;
|
|
30
31
|
showSaveDialog(defaultPath: string, filterName: string, filterExtension: string): Promise<string | undefined>;
|
|
31
32
|
showOpenDirectoryDialog(defaultPath?: string): Promise<string[]>;
|
|
32
33
|
}
|
|
@@ -42,8 +42,6 @@ export declare class EventManager<HOST extends object, EVENTS = {}, TARGET exten
|
|
|
42
42
|
emit<EVENT extends EVENTS[keyof EVENTS]>(event: EVENT, initializer?: (event: EVENT) => any): void;
|
|
43
43
|
emit<EVENT extends Event>(event: EVENT, initializer: (event: EVENT) => EVENTS[keyof EVENTS]): void;
|
|
44
44
|
private readonly pipes;
|
|
45
|
-
pipe<TYPE extends keyof EVENTS>(type: TYPE, on: EventManager<any,
|
|
46
|
-
[key in TYPE]: EVENTS[TYPE];
|
|
47
|
-
}, any>): this;
|
|
45
|
+
pipe<TYPE extends keyof EVENTS>(type: TYPE, on: EventManager<any, Record<TYPE, EVENTS[TYPE]>, any>): this;
|
|
48
46
|
private insertPipe;
|
|
49
47
|
}
|
|
@@ -11,13 +11,14 @@
|
|
|
11
11
|
import type * as ws from "ws";
|
|
12
12
|
import Server from "./server";
|
|
13
13
|
import * as shared from "./shared";
|
|
14
|
+
import type { IServerGameDetails, IServerServerDetails } from "@wayward/hosts-shared/interfaces";
|
|
14
15
|
export default class DedicatedServer extends Server {
|
|
15
16
|
private host;
|
|
16
17
|
private readonly dedicatedServerId;
|
|
17
18
|
stop(): void;
|
|
18
19
|
setLogCallback(logFunc: ((...args: any[]) => void) | undefined): void;
|
|
19
20
|
get ipAddress(): string | undefined;
|
|
20
|
-
updateDirectory(serverDetails: Partial<
|
|
21
|
+
updateDirectory(serverDetails: Partial<IServerServerDetails>, gameDetails: IServerGameDetails): void;
|
|
21
22
|
checkConnection(): Promise<shared.ICheckConnectionServerDirectoryResponse>;
|
|
22
23
|
protected getDirectoryConnectionAddress(): string | undefined;
|
|
23
24
|
protected getConnectionIdentifier(path: string | undefined): string | undefined;
|
|
@@ -25,6 +25,7 @@ export default class DirectoryConnection extends EventEmitter {
|
|
|
25
25
|
checkConnection(channel: string, ipAddress?: string): Promise<shared.ICheckConnectionServerDirectoryResponse>;
|
|
26
26
|
private connect;
|
|
27
27
|
private disconnect;
|
|
28
|
+
private queueProcessMessagesTimer;
|
|
28
29
|
private clearProcessMessagesTimer;
|
|
29
30
|
private processMessages;
|
|
30
31
|
}
|
|
@@ -13,6 +13,7 @@ import Server from "./server";
|
|
|
13
13
|
import * as shared from "./shared";
|
|
14
14
|
export default class GlobalServerDirectory extends Server {
|
|
15
15
|
private readonly servers;
|
|
16
|
+
private readonly serverConnections;
|
|
16
17
|
private hasGlobalMatchmakingServerConnection;
|
|
17
18
|
constructor();
|
|
18
19
|
protected getConnectionIdentifier(_: string | undefined, ipAddress: string): string | undefined;
|
|
@@ -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 type { IServerGameDetails, IServerServerDetails } from "@wayward/hosts/shared/interfaces";
|
|
11
12
|
import type * as ws from "ws";
|
|
12
13
|
export declare const matchmakingServer = "mm.waywardgame.com";
|
|
13
14
|
export declare const matchmakingServerPort = 38740;
|
|
@@ -41,44 +42,6 @@ export interface IServer {
|
|
|
41
42
|
export interface IServerConnectionDetails {
|
|
42
43
|
code: string;
|
|
43
44
|
}
|
|
44
|
-
export interface IServerServerDetails {
|
|
45
|
-
worldId: string;
|
|
46
|
-
name: string;
|
|
47
|
-
description: string;
|
|
48
|
-
hostPlayerName: string;
|
|
49
|
-
hostPlayerId: string;
|
|
50
|
-
lobbyType: ServerLobbyType;
|
|
51
|
-
region: string;
|
|
52
|
-
code: string;
|
|
53
|
-
isDedicatedServer: boolean;
|
|
54
|
-
buildTime: number | undefined;
|
|
55
|
-
gameVersion: string;
|
|
56
|
-
}
|
|
57
|
-
export interface IServerGameDetails {
|
|
58
|
-
players: string[];
|
|
59
|
-
maxPlayers: number;
|
|
60
|
-
difficulty: number;
|
|
61
|
-
pvp: boolean;
|
|
62
|
-
alignment: number;
|
|
63
|
-
reputation: number;
|
|
64
|
-
days: number;
|
|
65
|
-
mods: IServerMod[];
|
|
66
|
-
peaceful: boolean;
|
|
67
|
-
milestoneModifiersAllowed: boolean;
|
|
68
|
-
island: IServerIslandDetails;
|
|
69
|
-
}
|
|
70
|
-
export interface IServerMod {
|
|
71
|
-
name: string;
|
|
72
|
-
version: string;
|
|
73
|
-
publishFileId: string | undefined;
|
|
74
|
-
}
|
|
75
|
-
export interface IServerIslandDetails {
|
|
76
|
-
position: {
|
|
77
|
-
x: number;
|
|
78
|
-
y: number;
|
|
79
|
-
};
|
|
80
|
-
biomeType: number;
|
|
81
|
-
}
|
|
82
45
|
export declare enum ServerLobbyType {
|
|
83
46
|
Private = 0,
|
|
84
47
|
FriendsOnly = 1,
|
|
@@ -71,6 +71,10 @@ export default class ApplicationInteractions {
|
|
|
71
71
|
setNewGameSeed(seed: string | number): Promise<void>;
|
|
72
72
|
setMultiplayerIdentifier(identifier: string): Promise<void>;
|
|
73
73
|
private importGame;
|
|
74
|
+
/**
|
|
75
|
+
* Executes a ascend/descend action
|
|
76
|
+
*/
|
|
77
|
+
ascendDescend(): Promise<void>;
|
|
74
78
|
/**
|
|
75
79
|
* Executes a Move action
|
|
76
80
|
* @param direction Direction to move. Direction.None to Idle
|
|
@@ -12,7 +12,8 @@ import type Player from "@wayward/game/game/entity/player/Player";
|
|
|
12
12
|
import { Direction } from "@wayward/game/utilities/math/Direction";
|
|
13
13
|
import type { Application, ITestState } from "@wayward/test/core/application";
|
|
14
14
|
import { ApplicationInteraction } from "@wayward/test/core/applicationInteraction";
|
|
15
|
-
import type { INewGameOptions, ITestJoinServerOptions
|
|
15
|
+
import type { INewGameOptions, ITestJoinServerOptions } from "@wayward/test/interfaces";
|
|
16
|
+
import type { IAutomationSetup } from "@wayward/game/game/island/automation/IAutomation";
|
|
16
17
|
export declare class ApplicationManager {
|
|
17
18
|
private readonly _logs;
|
|
18
19
|
private readonly _applications;
|
|
@@ -74,8 +75,8 @@ export declare class ApplicationManager {
|
|
|
74
75
|
randomMovement(count: number): Promise<void>;
|
|
75
76
|
moveToTowardsIsland(app: Application, direction: Direction.Cardinal, recoverStats?: boolean): Promise<void>;
|
|
76
77
|
recoverStats(app: Application): Promise<void>;
|
|
77
|
-
|
|
78
|
-
moveInDirection(app: Application, direction: Direction.Cardinal, steps?: number): Promise<void>;
|
|
78
|
+
ascendDesend(app: Application): Promise<void>;
|
|
79
|
+
moveInDirection(app: Application, direction: Direction.Cardinal | Direction.None, steps?: number): Promise<void>;
|
|
79
80
|
executeAndWaitForNextTick(app: Application, executor: () => Promise<void>): Promise<void>;
|
|
80
81
|
waitForClientConsistency(): Promise<void>;
|
|
81
82
|
createInteraction(application: Application): ApplicationInteraction;
|
|
@@ -84,7 +85,7 @@ export declare class ApplicationManager {
|
|
|
84
85
|
executeOnPlayingClients<T>(runnable: (app: Application) => Promise<T>): Promise<T[]>;
|
|
85
86
|
executeOnApps<T>(apps: Application[], runnable: (app: Application) => Promise<T>, requiresDeterminism: boolean): Promise<T[]>;
|
|
86
87
|
runWhilePaused(blockId: string, runnable: () => Promise<void>): Promise<void>;
|
|
87
|
-
setup(app: Application, setup: Readonly<
|
|
88
|
+
setup(app: Application, setup: Readonly<IAutomationSetup>): Promise<void>;
|
|
88
89
|
private bindApp;
|
|
89
90
|
private log;
|
|
90
91
|
}
|
|
@@ -8,20 +8,9 @@
|
|
|
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 { DoodadType, GrowingStage } from "@wayward/game/game/doodad/IDoodad";
|
|
12
|
-
import type { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
-
import type { CreatureType } from "@wayward/game/game/entity/creature/ICreature";
|
|
14
|
-
import type { Quality } from "@wayward/game/game/IObject";
|
|
15
11
|
import type { INewIslandOverrides } from "@wayward/game/game/island/IIsland";
|
|
16
|
-
import type { ContainerSort, ItemType } from "@wayward/game/game/item/IItem";
|
|
17
12
|
import type { Milestone } from "@wayward/game/game/milestones/IMilestone";
|
|
18
13
|
import type { GameMode } from "@wayward/game/game/options/IGameOptions";
|
|
19
|
-
import type { TerrainType } from "@wayward/game/game/tile/ITerrain";
|
|
20
|
-
import type { IOptions } from "@wayward/game/save/data/ISaveDataGlobal";
|
|
21
|
-
import type { SortDirection } from "@wayward/game/save/ISaveManager";
|
|
22
|
-
import type { DialogId } from "@wayward/game/ui/screen/screens/game/Dialogs";
|
|
23
|
-
import type { Direction } from "@wayward/game/utilities/math/Direction";
|
|
24
|
-
import type { IVector3 } from "@wayward/game/utilities/math/IVector";
|
|
25
14
|
export interface ICommonGameOptions {
|
|
26
15
|
gameMode: GameMode;
|
|
27
16
|
seed?: string | number;
|
|
@@ -64,56 +53,4 @@ export interface IPaths extends Omit<IAppPaths, "saveZipPath"> {
|
|
|
64
53
|
saveImportsPath: string;
|
|
65
54
|
savewardPath: string | undefined;
|
|
66
55
|
}
|
|
67
|
-
export interface ITestSetup {
|
|
68
|
-
options?: Partial<IOptions>;
|
|
69
|
-
ui?: {
|
|
70
|
-
dialogs?: PartialRecord<DialogId, boolean>;
|
|
71
|
-
actionSlots?: Array<{
|
|
72
|
-
itemType?: ItemType;
|
|
73
|
-
actionType?: ActionType;
|
|
74
|
-
autoUse?: boolean;
|
|
75
|
-
}>;
|
|
76
|
-
};
|
|
77
|
-
world?: {
|
|
78
|
-
tiles?: Array<{
|
|
79
|
-
type: TerrainType;
|
|
80
|
-
x?: number;
|
|
81
|
-
y?: number;
|
|
82
|
-
z?: number;
|
|
83
|
-
}>;
|
|
84
|
-
doodads?: Array<{
|
|
85
|
-
type: DoodadType;
|
|
86
|
-
growingStage?: GrowingStage;
|
|
87
|
-
x?: number;
|
|
88
|
-
y?: number;
|
|
89
|
-
z?: number;
|
|
90
|
-
inventory?: ITestSetupItemContainer;
|
|
91
|
-
}>;
|
|
92
|
-
creatures?: Array<{
|
|
93
|
-
type: CreatureType;
|
|
94
|
-
x?: number;
|
|
95
|
-
y?: number;
|
|
96
|
-
z?: number;
|
|
97
|
-
tamed?: true;
|
|
98
|
-
/** Defaults to a massive number */
|
|
99
|
-
happiness?: number;
|
|
100
|
-
aberrant?: true;
|
|
101
|
-
}>;
|
|
102
|
-
};
|
|
103
|
-
player?: {
|
|
104
|
-
position?: IVector3;
|
|
105
|
-
direction?: Direction.Cardinal;
|
|
106
|
-
inventory?: ITestSetupItemContainer;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
export interface ITestSetupItemContainer {
|
|
110
|
-
sort?: ContainerSort;
|
|
111
|
-
sortDirection?: SortDirection;
|
|
112
|
-
stacks?: ItemType[];
|
|
113
|
-
items?: ITestSetupItem[];
|
|
114
|
-
}
|
|
115
|
-
export interface ITestSetupItem {
|
|
116
|
-
type: ItemType;
|
|
117
|
-
quality?: Quality;
|
|
118
|
-
}
|
|
119
56
|
export declare const APP_CONTEXT_KEY = "APP";
|
|
@@ -132,7 +132,7 @@ export declare class TestRunContext extends BaseContext {
|
|
|
132
132
|
private _output;
|
|
133
133
|
private readonly _errors;
|
|
134
134
|
private readonly _attachments;
|
|
135
|
-
|
|
135
|
+
protected readonly _data: Map<string, unknown>;
|
|
136
136
|
private readonly startTime;
|
|
137
137
|
private endTime;
|
|
138
138
|
private duration;
|
|
@@ -197,7 +197,7 @@ export declare class TestRunContext extends BaseContext {
|
|
|
197
197
|
getData<T = unknown>(key: string): T;
|
|
198
198
|
tryGetData<T = unknown>(key: string): T | undefined;
|
|
199
199
|
setData<T = unknown>(key: string, value: T): T;
|
|
200
|
-
start(): void;
|
|
200
|
+
start(suiteRunContext: TestRunContext): void;
|
|
201
201
|
/**
|
|
202
202
|
* Mark the context as being completed (finished running)
|
|
203
203
|
*/
|
|
@@ -21,7 +21,7 @@ export declare namespace EnumProperty {
|
|
|
21
21
|
const COMPUTE: unique symbol;
|
|
22
22
|
}
|
|
23
23
|
export type EnumObject<T> = T & {
|
|
24
|
-
[EnumProperty.NAME]?: string
|
|
24
|
+
[EnumProperty.NAME]?: ArrayOr<string>;
|
|
25
25
|
[EnumProperty.OFFICIAL_MAX]?: number;
|
|
26
26
|
[EnumProperty.MOD_START]?: number;
|
|
27
27
|
[EnumProperty.EXCLUDED]?: ReadonlySet<keyof T>;
|
|
@@ -17,26 +17,16 @@ export type UnWeakRefified<ARGS extends any[]> = {
|
|
|
17
17
|
[INDEX in keyof ARGS]: ARGS[INDEX] | (ARGS[INDEX] extends WeakKey ? undefined : never);
|
|
18
18
|
};
|
|
19
19
|
declare namespace Objects {
|
|
20
|
-
function mapOrRecordKeys<RK extends PropertyKey, MK>(o:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
function mapOrRecordValues<V>(o: {
|
|
24
|
-
[key in PropertyKey]?: V;
|
|
25
|
-
} | Map<any, V>): V[];
|
|
26
|
-
function mapOrRecordEntries<RK extends PropertyKey, MK, V>(o: {
|
|
27
|
-
[key in RK]?: V;
|
|
28
|
-
} | Map<MK, V>): Array<[RK | MK, V]>;
|
|
20
|
+
function mapOrRecordKeys<RK extends PropertyKey, MK>(o: Partial<Record<RK, any>> | Map<MK, any>): Array<RK | MK>;
|
|
21
|
+
function mapOrRecordValues<V>(o: Partial<Record<PropertyKey, V>> | Map<any, V>): V[];
|
|
22
|
+
function mapOrRecordEntries<RK extends PropertyKey, MK, V>(o: Partial<Record<RK, V>> | Map<MK, V>): Array<[RK | MK, V]>;
|
|
29
23
|
function keys<K>(o: Map<K, any>): MapIterator<K>;
|
|
30
|
-
function keys<K extends PropertyKey>(o:
|
|
31
|
-
[key in K]?: any;
|
|
32
|
-
}): K[];
|
|
24
|
+
function keys<K extends PropertyKey>(o: Partial<Record<K, any>>): K[];
|
|
33
25
|
function keys<O extends object>(o: O): Array<keyof O>;
|
|
34
26
|
function values<V>(o: Map<any, V>): MapIterator<V>;
|
|
35
27
|
function values<O extends object>(o: O): Array<O[keyof O]>;
|
|
36
28
|
function entries<K, V>(o: Map<K, V>): MapIterator<[K, V]>;
|
|
37
|
-
function entries<K extends PropertyKey, V>(o:
|
|
38
|
-
[key in K]?: V;
|
|
39
|
-
}): Array<[K, V]>;
|
|
29
|
+
function entries<K extends PropertyKey, V>(o: Partial<Record<K, V>>): Array<[K, V]>;
|
|
40
30
|
function entries<O extends object>(o: O): Array<[keyof O, O[keyof O]]>;
|
|
41
31
|
function fromEntries<K extends PropertyKey, V>(entriesIterable: Iterable<[K, V] | readonly [K, V]>): Record<K, V>;
|
|
42
32
|
function windowKeysToParentObject(windowKeys: string[]): unknown;
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
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 { BiomeType } from "@wayward/game/game/biome/IBiome";
|
|
12
|
-
import { CreatureType } from "@wayward/game/game/entity/creature/ICreature";
|
|
13
|
-
import WorldZ from "@wayward/utilities/game/WorldZ";
|
|
14
|
-
export type IBiomeGuardianZones = PartialRecord<`tier${number}`, IBiomeGuardianZoneTier>;
|
|
15
|
-
export type IBiomeGuardianZoneTier = PartialRecord<WorldZ, CreatureType[]>;
|
|
16
|
-
export declare const guardianZoneDescriptions: OptionalDescriptions<BiomeType, IBiomeGuardianZones>;
|