@wayward/types 2.15.2-beta.dev.20251107.1 → 2.15.2-beta.dev.20251109.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/Init.d.ts +2 -1
- package/definitions/game/Uninit.d.ts +2 -1
- package/definitions/game/game/biome/template/Template.d.ts +1 -1
- package/definitions/game/game/entity/Human.d.ts +4 -0
- package/definitions/game/game/entity/action/actions/Attack.d.ts +2 -2
- package/definitions/game/game/entity/action/actions/Move.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/SetCreatureAiAll.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/ToggleVehicle.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/Uncage.d.ts +1 -1
- package/definitions/game/game/entity/action/actions/UpdateDirection.d.ts +1 -3
- package/definitions/game/game/entity/action/actions/Upgrade.d.ts +1 -1
- package/definitions/game/game/island/automation/Automation.d.ts +1 -0
- package/definitions/game/game/island/automation/IAutomation.d.ts +20 -0
- package/definitions/game/game/milestones/milestone/Runekeeper.d.ts +1 -1
- package/definitions/game/language/dictionary/Message.d.ts +839 -839
- package/package.json +1 -1
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { Game } from "@wayward/game/game/Game";
|
|
12
|
+
import type { SaveType } from "@wayward/game/game/IGame";
|
|
12
13
|
import "@wayward/game/game/entity/action/ActionsRegistration";
|
|
13
14
|
import "@wayward/game/game/entity/npc/NPCRegistration";
|
|
14
15
|
import "@wayward/game/game/item/Items";
|
|
15
16
|
export interface IInit {
|
|
16
17
|
game: Game;
|
|
17
|
-
onUnload(message?: string): Promise<void>;
|
|
18
|
+
onUnload(message?: string, saveType?: SaveType | false): Promise<void>;
|
|
18
19
|
}
|
|
19
20
|
export default function (): Promise<IInit | undefined>;
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { Game } from "@wayward/game/game/Game";
|
|
12
|
+
import { SaveType } from "@wayward/game/game/IGame";
|
|
12
13
|
export declare class Uninit {
|
|
13
14
|
private readonly game;
|
|
14
15
|
private unloading;
|
|
@@ -17,6 +18,6 @@ export declare class Uninit {
|
|
|
17
18
|
onBeforeUnloadAsynchronous(event?: {
|
|
18
19
|
preventDefault?: () => void;
|
|
19
20
|
returnValue?: boolean | string;
|
|
20
|
-
}): Promise<void>;
|
|
21
|
+
}, saveType?: SaveType | false): Promise<void>;
|
|
21
22
|
onBeforeUnloadSynchronous(event: Event): void;
|
|
22
23
|
}
|
|
@@ -22,7 +22,7 @@ declare const _default: {
|
|
|
22
22
|
readonly disableTravel: true;
|
|
23
23
|
readonly disableHeightMaps: true;
|
|
24
24
|
readonly disableWebWorker: true;
|
|
25
|
-
readonly disableTreasureMaps:
|
|
25
|
+
readonly disableTreasureMaps: false;
|
|
26
26
|
readonly disableLoadingScreen: true;
|
|
27
27
|
readonly defaultTerrainBackground: TerrainType.Dirt;
|
|
28
28
|
readonly defaultCaveEntranceFlooring: TerrainType.Dirt;
|
|
@@ -196,6 +196,10 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
|
|
|
196
196
|
get luck(): number;
|
|
197
197
|
get debug(): Debug.JIT<[]>;
|
|
198
198
|
updateDirection(tile: Tile | Direction.Cardinal, updateVehicleDirection?: boolean): Direction.Cardinal;
|
|
199
|
+
/**
|
|
200
|
+
* Not recommended for regular usage. Use the UpdateDirection action
|
|
201
|
+
*/
|
|
202
|
+
updateDirectionPropertiesInternal(direction: Direction.Cardinal): void;
|
|
199
203
|
protected onMovementCompleted(movingData: IMovingData): void;
|
|
200
204
|
moveTowardsIsland(direction: Direction.Cardinal | Direction.None, options?: Partial<IMoveToIslandOptions>): Promise<void>;
|
|
201
205
|
moveToIslandPosition(position: IVector2, options?: Partial<IMoveToIslandOptions>): Promise<void>;
|
|
@@ -14,8 +14,8 @@ import { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
|
14
14
|
import { Action } from "@wayward/game/game/entity/action/Action";
|
|
15
15
|
import type { IActionUsable } from "@wayward/game/game/entity/action/IAction";
|
|
16
16
|
import { ActionArgument, ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
17
|
-
import type { IItemDescription, IRangedDescription
|
|
18
|
-
import { ItemTypeGroup } from "@wayward/game/game/item/IItem";
|
|
17
|
+
import type { IItemDescription, IRangedDescription } from "@wayward/game/game/item/IItem";
|
|
18
|
+
import { ItemType, ItemTypeGroup } from "@wayward/game/game/item/IItem";
|
|
19
19
|
import type Item from "@wayward/game/game/item/Item";
|
|
20
20
|
import type Tile from "@wayward/game/game/tile/Tile";
|
|
21
21
|
export interface IBaseCanUse extends IActionUsable {
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { Action } from "@wayward/game/game/entity/action/Action";
|
|
12
12
|
import { ActionArgument, ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
+
import { Direction } from "@wayward/game/utilities/math/Direction";
|
|
13
14
|
declare const _default: Action<[ActionArgument.Direction], ActionType.Move, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, {
|
|
14
15
|
usable: true;
|
|
15
|
-
}, [
|
|
16
|
+
}, [Direction.None | Direction.East | Direction.North | Direction.West | Direction.South]>;
|
|
16
17
|
export default _default;
|
|
@@ -9,5 +9,6 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
12
|
-
|
|
12
|
+
import { AiType } from "@wayward/game/game/entity/ai/AI";
|
|
13
|
+
declare const _default: import("../Action").Action<[[arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.Creature], [arg1: import("@wayward/game/game/entity/action/IAction").ActionArgument.Undefined, import("@wayward/game/game/entity/action/IAction").ActionArgument.ItemInventory], import("../argument/ActionArgumentEnum").default<AiType, "None" | "Attack" | "Idle" | "Neutral" | "Scared" | "Hostile" | "Fearless" | "HostileFearless" | "Alerted" | "Waiting" | "Hidden" | "Pacified" | "CanSwapWith" | "CanSwapLayers" | "FollowClose" | "FollowFar" | "Stay" | "AttackAdjacent" | "AttackInSight" | "Defend" | "Heel">], ActionType.SetCreatureAiAll, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, import("@wayward/game/game/entity/action/actions/SetCreatureAi").ISetCreatureAiCanUse, [import("../../creature/Creature").default | undefined, import("../../../item/Item").default | undefined, AiType]>;
|
|
13
14
|
export default _default;
|
|
@@ -12,7 +12,7 @@ import type Doodad from "@wayward/game/game/doodad/Doodad";
|
|
|
12
12
|
import { Action } from "@wayward/game/game/entity/action/Action";
|
|
13
13
|
import type { IActionUsable } from "@wayward/game/game/entity/action/IAction";
|
|
14
14
|
import { ActionArgument, ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
15
|
-
import
|
|
15
|
+
import { ItemType } from "@wayward/game/game/item/IItem";
|
|
16
16
|
import Item from "@wayward/game/game/item/Item";
|
|
17
17
|
import type Tile from "@wayward/game/game/tile/Tile";
|
|
18
18
|
export interface ToggleVehicleDoodadCanUse extends IActionUsable {
|
|
@@ -12,7 +12,7 @@ import { Action } from "@wayward/game/game/entity/action/Action";
|
|
|
12
12
|
import type { IActionUsable } from "@wayward/game/game/entity/action/IAction";
|
|
13
13
|
import { ActionArgument, ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
14
14
|
import type Creature from "@wayward/game/game/entity/creature/Creature";
|
|
15
|
-
import
|
|
15
|
+
import { ItemType } from "@wayward/game/game/item/IItem";
|
|
16
16
|
import type Tile from "@wayward/game/game/tile/Tile";
|
|
17
17
|
export interface IUncageCanUse extends IActionUsable {
|
|
18
18
|
tile: Tile;
|
|
@@ -10,10 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { Action } from "@wayward/game/game/entity/action/Action";
|
|
12
12
|
import { ActionArgument, ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
13
|
-
import type Human from "@wayward/game/game/entity/Human";
|
|
14
13
|
import { Direction } from "@wayward/game/utilities/math/Direction";
|
|
15
|
-
declare const _default: Action<[ActionArgument.Direction, [arg1: ActionArgument.Undefined, ActionArgument.Integer32], [arg1: ActionArgument.Undefined, ActionArgument.Boolean]], ActionType.UpdateDirection, Human<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, {
|
|
14
|
+
declare const _default: Action<[ActionArgument.Direction, [arg1: ActionArgument.Undefined, ActionArgument.Integer32], [arg1: ActionArgument.Undefined, ActionArgument.Boolean]], ActionType.UpdateDirection, import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, {
|
|
16
15
|
usable: true;
|
|
17
16
|
}, [Direction.None | Direction.East | Direction.North | Direction.West | Direction.South, (number | undefined)?, (boolean | undefined)?]>;
|
|
18
17
|
export default _default;
|
|
19
|
-
export declare function UpdateDirectionInternal(human: Human, direction: Direction.Cardinal): void;
|
|
@@ -13,7 +13,7 @@ import type { IActionUsable } from "@wayward/game/game/entity/action/IAction";
|
|
|
13
13
|
import { ActionArgument, ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
14
14
|
import type { IMagicalPropertyInfo } from "@wayward/game/game/item/IItem";
|
|
15
15
|
import type Item from "@wayward/game/game/item/Item";
|
|
16
|
-
import
|
|
16
|
+
import MagicalPropertyType from "@wayward/game/game/magic/MagicalPropertyType";
|
|
17
17
|
export interface IUpgradeCanUse extends IActionUsable {
|
|
18
18
|
upgrades: IUpgradeable[];
|
|
19
19
|
upgradeTarget: Item;
|
|
@@ -26,6 +26,7 @@ export declare class Automation {
|
|
|
26
26
|
* @param setup The setup
|
|
27
27
|
*/
|
|
28
28
|
static applySetup(human: Human, setup: Readonly<IAutomationSetup>): IAutomationSetupResult;
|
|
29
|
+
private static createItem;
|
|
29
30
|
setRepeat(repeat: boolean, delay?: number): this;
|
|
30
31
|
setStartDelay(delay: number): this;
|
|
31
32
|
setSetup(setup: IAutomationSetup): this;
|
|
@@ -14,13 +14,17 @@ import type { CreatureType } from "@wayward/game/game/entity/creature/ICreature"
|
|
|
14
14
|
import type Human from "@wayward/game/game/entity/Human";
|
|
15
15
|
import type { MoveType } from "@wayward/game/game/entity/IEntity";
|
|
16
16
|
import type { EquipType } from "@wayward/game/game/entity/IHuman";
|
|
17
|
+
import type { Stat } from "@wayward/game/game/entity/IStats";
|
|
17
18
|
import type { NPCType } from "@wayward/game/game/entity/npc/INPCs";
|
|
19
|
+
import type { SkillType } from "@wayward/game/game/entity/skill/ISkills";
|
|
18
20
|
import type { StatusType } from "@wayward/game/game/entity/status/IStatus";
|
|
19
21
|
import type { Quality } from "@wayward/game/game/IObject";
|
|
20
22
|
import type { IslandId } from "@wayward/game/game/island/IIsland";
|
|
21
23
|
import type { ContainerSort, ItemType, ItemTypeGroup } from "@wayward/game/game/item/IItem";
|
|
22
24
|
import type Item from "@wayward/game/game/item/Item";
|
|
25
|
+
import type MagicalPropertyType from "@wayward/game/game/magic/MagicalPropertyType";
|
|
23
26
|
import type { TerrainType } from "@wayward/game/game/tile/ITerrain";
|
|
27
|
+
import type { TileEventType } from "@wayward/game/game/tile/ITileEvent";
|
|
24
28
|
import type { IOptions } from "@wayward/game/save/data/ISaveDataGlobal";
|
|
25
29
|
import type { SortDirection } from "@wayward/game/save/ISaveManager";
|
|
26
30
|
import type { DialogId } from "@wayward/game/ui/screen/screens/game/Dialogs";
|
|
@@ -76,8 +80,10 @@ export interface IAutomationSetupWorld {
|
|
|
76
80
|
y?: number;
|
|
77
81
|
z?: WorldZ;
|
|
78
82
|
items?: IAutomationSetupItem[];
|
|
83
|
+
events?: TileEventType[];
|
|
79
84
|
tilled?: boolean;
|
|
80
85
|
fishAvailable?: number;
|
|
86
|
+
depth?: number;
|
|
81
87
|
}>;
|
|
82
88
|
doodads?: Array<{
|
|
83
89
|
type: DoodadType;
|
|
@@ -96,6 +102,7 @@ export interface IAutomationSetupWorld {
|
|
|
96
102
|
tamed?: true;
|
|
97
103
|
/** Defaults to a massive number */
|
|
98
104
|
happiness?: number;
|
|
105
|
+
timesPetted?: number;
|
|
99
106
|
aberrant?: true;
|
|
100
107
|
}>;
|
|
101
108
|
corpses?: Array<{
|
|
@@ -110,6 +117,7 @@ export interface IAutomationSetupWorld {
|
|
|
110
117
|
x?: number;
|
|
111
118
|
y?: number;
|
|
112
119
|
z?: number;
|
|
120
|
+
stats?: IAutomationSetupHumanStat[];
|
|
113
121
|
inventory?: IAutomationSetupItemContainer;
|
|
114
122
|
moveType?: MoveType;
|
|
115
123
|
}>;
|
|
@@ -118,9 +126,19 @@ export interface IAutomationSetupPlayer {
|
|
|
118
126
|
alwaysPassSkillChecks?: boolean;
|
|
119
127
|
position?: Partial<IVector3>;
|
|
120
128
|
direction?: Direction.Cardinal;
|
|
129
|
+
skills?: IAutomationSetupHumanSkill[];
|
|
130
|
+
stats?: IAutomationSetupHumanStat[];
|
|
121
131
|
inventory?: IAutomationSetupItemContainer;
|
|
122
132
|
status?: StatusType[];
|
|
123
133
|
}
|
|
134
|
+
export interface IAutomationSetupHumanSkill {
|
|
135
|
+
type: SkillType;
|
|
136
|
+
value: number;
|
|
137
|
+
}
|
|
138
|
+
export interface IAutomationSetupHumanStat {
|
|
139
|
+
type: Stat;
|
|
140
|
+
value: number;
|
|
141
|
+
}
|
|
124
142
|
export interface IAutomationSetupItemContainer {
|
|
125
143
|
sort?: ContainerSort;
|
|
126
144
|
sortDirection?: SortDirection;
|
|
@@ -131,4 +149,6 @@ export interface IAutomationSetupItem {
|
|
|
131
149
|
type: ItemType | ItemTypeGroup;
|
|
132
150
|
equip?: EquipType;
|
|
133
151
|
quality?: Quality;
|
|
152
|
+
magics?: MagicalPropertyType[];
|
|
153
|
+
durability?: number;
|
|
134
154
|
}
|
|
@@ -29,7 +29,7 @@ declare namespace Runekeeper {
|
|
|
29
29
|
CurseEvent = 9
|
|
30
30
|
}
|
|
31
31
|
type DomainName = Lowercase<keyof typeof Domain>;
|
|
32
|
-
const DOMAINS: ("action" | "event" | "
|
|
32
|
+
const DOMAINS: ("action" | "event" | "dismantle" | "craft" | "curseevent" | "skill" | "disassemble" | "killcreature" | "tamecreature" | "killnpc")[];
|
|
33
33
|
type DomainData = `${DomainName}:${number}`;
|
|
34
34
|
function domainName(domain: Domain | DomainData): DomainName;
|
|
35
35
|
function isDiscovered(domain: DomainData): boolean;
|