@wayward/types 2.14.0-beta.dev.20241118.1 → 2.14.0-beta.dev.20241119.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/cplusplus/index.d.ts +1 -0
- package/definitions/game/game/entity/EntityMovable.d.ts +1 -1
- package/definitions/game/game/entity/IHuman.d.ts +0 -1
- package/definitions/game/game/entity/action/ActionsRegistration.d.ts +1 -0
- package/definitions/game/game/entity/action/IAction.d.ts +2 -1
- package/definitions/game/game/entity/action/actions/AscendDescend.d.ts +13 -0
- package/definitions/game/game/entity/action/usable/actions/UsableActionsDynamic.d.ts +3 -0
- package/definitions/game/game/entity/ai/AI.d.ts +7 -7
- package/definitions/game/game/entity/player/IPlayer.d.ts +3 -4
- package/definitions/game/game/tile/Tile.d.ts +5 -4
- package/definitions/game/language/dictionary/Message.d.ts +683 -682
- package/definitions/game/ui/input/Bindable.d.ts +222 -221
- package/definitions/game/ui/screen/screens/GameScreen.d.ts +1 -0
- package/definitions/game/utilities/math/Direction.d.ts +1 -1
- package/package.json +1 -1
|
@@ -110,6 +110,7 @@ export interface INavigationNode {
|
|
|
110
110
|
disabled: boolean;
|
|
111
111
|
penalty: number;
|
|
112
112
|
connectTo(node: INavigationNode, direction: number): void;
|
|
113
|
+
disconnectFrom(direction: number): void;
|
|
113
114
|
getConnection(direction: number): INavigationNode | undefined;
|
|
114
115
|
}
|
|
115
116
|
export interface IKDTree {
|
|
@@ -151,7 +151,7 @@ export default abstract class EntityMovable<DescriptionType = unknown, TypeType
|
|
|
151
151
|
* Animates the entity between a specific set of positions
|
|
152
152
|
*/
|
|
153
153
|
animate(fromX: number, fromY: number, toX: number, toY: number, delay: Delay): void;
|
|
154
|
-
|
|
154
|
+
setMoving(fromX: number, fromY: number, toZ?: number, options?: IMoveToOptions): void;
|
|
155
155
|
protected setFromPosition(fromX?: number, fromY?: number): void;
|
|
156
156
|
animateAttack(damageType: DamageType[] | undefined): void;
|
|
157
157
|
getMovementPoint(timeStamp: number): IVector2;
|
|
@@ -180,4 +180,5 @@ export declare const actionDescriptionsSlow: {
|
|
|
180
180
|
138: import("./Action").Action<[import("@wayward/game/game/entity/action/IAction").ActionArgument.Tile], import("../Human").default<unknown, number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, {
|
|
181
181
|
usable: true;
|
|
182
182
|
}, [import("../../tile/Tile").default]>;
|
|
183
|
+
139: import("./Action").Action<[], import("../Human").default<unknown, number, import("../../reference/IReferenceManager").ReferenceType.NPC | import("../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, []>;
|
|
183
184
|
};
|
|
@@ -182,7 +182,8 @@ export declare enum ActionType {
|
|
|
182
182
|
Unstack = 135,
|
|
183
183
|
SetCreatureAiAll = 136,
|
|
184
184
|
CraftingIngredient = 137,
|
|
185
|
-
ViewItems = 138
|
|
185
|
+
ViewItems = 138,
|
|
186
|
+
AscendDescend = 139
|
|
186
187
|
}
|
|
187
188
|
export declare const ACTIONS_RECOMMENDED: ActionType[];
|
|
188
189
|
export declare enum ActionUsability {
|
|
@@ -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 { Action } from "@wayward/game/game/entity/action/Action";
|
|
12
|
+
declare const _default: Action<[], import("../../Human").default<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player>, void, import("@wayward/game/game/entity/action/IAction").IActionUsable, []>;
|
|
13
|
+
export default _default;
|
|
@@ -20,6 +20,9 @@ export interface IUsableActionDynamicDefinition {
|
|
|
20
20
|
bindable: Bindable;
|
|
21
21
|
displayLevel?: ActionDisplayLevel;
|
|
22
22
|
priority?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the action is visible in the action drawer by default (without using it normally first).
|
|
25
|
+
*/
|
|
23
26
|
discoveredByDefault?: true | (() => boolean);
|
|
24
27
|
translate?: (translator: UsableActionTranslator) => UsableActionTranslator;
|
|
25
28
|
/**
|
|
@@ -76,13 +76,13 @@ export declare enum AiMaskType {
|
|
|
76
76
|
CanSwapLayersIfTamed = 15
|
|
77
77
|
}
|
|
78
78
|
export declare enum AiMaskOrder {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
Released = 0,
|
|
80
|
+
NeutralIfScaredDisabled = 1,
|
|
81
|
+
ScaredIfLowHealth = 2,
|
|
82
|
+
HostileIfAberrant = 3,
|
|
83
|
+
ScaredInDaylight = 4,
|
|
84
|
+
LostInterest = 5,
|
|
85
|
+
IfTamed = 6,
|
|
86
86
|
Hidden = 7,
|
|
87
87
|
Frenzied = 8,
|
|
88
88
|
Pacified = 9,
|
|
@@ -120,13 +120,12 @@ export interface IPlayerEvents extends Events<Human> {
|
|
|
120
120
|
}
|
|
121
121
|
export declare enum TurnTypeFlag {
|
|
122
122
|
CheckUnderPlayer = 1,
|
|
123
|
-
|
|
124
|
-
Idle = 4,
|
|
123
|
+
Idle = 2,
|
|
125
124
|
/**
|
|
126
125
|
* Indicates the turn is passing due to a movement
|
|
127
126
|
*/
|
|
128
|
-
Movement =
|
|
129
|
-
DontTickAnim =
|
|
127
|
+
Movement = 4,
|
|
128
|
+
DontTickAnim = 8
|
|
130
129
|
}
|
|
131
130
|
export interface IAttackHand {
|
|
132
131
|
mainHand: number;
|
|
@@ -36,7 +36,7 @@ import type { IRendererOrigin } from "@wayward/game/renderer/context/RendererOri
|
|
|
36
36
|
import { FieldOfView } from "@wayward/game/renderer/fieldOfView/FieldOfView";
|
|
37
37
|
import type { IFieldOfViewOrigin } from "@wayward/game/renderer/fieldOfView/IFieldOfView";
|
|
38
38
|
import { CanASeeBType } from "@wayward/game/renderer/fieldOfView/IFieldOfView";
|
|
39
|
-
import
|
|
39
|
+
import { Direction } from "@wayward/game/utilities/math/Direction";
|
|
40
40
|
import type { IVector2, IVector3 } from "@wayward/game/utilities/math/IVector";
|
|
41
41
|
import type { IVector4 } from "@wayward/game/utilities/math/Vector4";
|
|
42
42
|
import type { IRGB } from "@wayward/utilities/Color";
|
|
@@ -398,8 +398,9 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
|
|
|
398
398
|
/**
|
|
399
399
|
* Checks things can slip on this tile
|
|
400
400
|
* @param isClientSide When true, it will assume puddles do not cause slipping
|
|
401
|
+
* @param assumeEntitySlips When entity is undefined, set this to true to assume slippery tiles trigger for the entity
|
|
401
402
|
*/
|
|
402
|
-
canSlip(entity: EntityMovable | undefined, isClientSide?: boolean): boolean;
|
|
403
|
+
canSlip(entity: EntityMovable | undefined, isClientSide?: boolean, assumeEntitySlips?: boolean): boolean;
|
|
403
404
|
isAt(otherTile: Tile | IVector3): boolean;
|
|
404
405
|
isAdjacent(otherTile: Tile | IVector3): boolean;
|
|
405
406
|
isAround(otherTile: Tile | IVector3): boolean;
|
|
@@ -407,7 +408,7 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
|
|
|
407
408
|
/**
|
|
408
409
|
* Gets the direction from this tile to the target tile
|
|
409
410
|
*/
|
|
410
|
-
getDirectionToTile(tile: Tile): Direction.Cardinal;
|
|
411
|
+
getDirectionToTile(tile: Tile): Direction.Cardinal | Direction.None;
|
|
411
412
|
/**
|
|
412
413
|
* Gets the adjacent tile in the direction
|
|
413
414
|
*/
|
|
@@ -458,7 +459,7 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
|
|
|
458
459
|
/**
|
|
459
460
|
* Returns whether the tile is blocked (completely impassible) for the human
|
|
460
461
|
*/
|
|
461
|
-
isWalkToTileBlocked(human: Human, clientSide: boolean): boolean;
|
|
462
|
+
isWalkToTileBlocked(human: Human, clientSide: boolean, forceDangerous?: boolean): boolean;
|
|
462
463
|
/**
|
|
463
464
|
* Returns the penalty of the given tile (just how much we *don't* want to step there)
|
|
464
465
|
*/
|