@wayward/types 2.15.5-beta.dev.20260427.1 → 2.15.5-beta.dev.20260428.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/Game.d.ts +2 -0
- package/definitions/game/game/doodad/Doodad.d.ts +2 -0
- package/definitions/game/game/entity/Entity.d.ts +3 -2
- package/definitions/game/game/entity/EntityManager.d.ts +1 -0
- package/definitions/game/game/entity/IEntityManager.d.ts +1 -0
- 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/ai/AI.d.ts +3 -1
- package/definitions/game/game/entity/ai/AiManager.d.ts +6 -0
- package/definitions/game/game/entity/creature/Creature.d.ts +2 -0
- package/definitions/game/game/entity/creature/CreatureManager.d.ts +0 -1
- package/definitions/game/game/entity/creature/corpse/Corpse.d.ts +2 -0
- package/definitions/game/game/entity/npc/NPC.d.ts +2 -0
- package/definitions/game/game/entity/player/Player.d.ts +2 -0
- package/definitions/game/game/entity/player/PlayerManager.d.ts +6 -1
- package/definitions/game/game/item/Item.d.ts +2 -0
- package/definitions/game/game/item/ItemManager.d.ts +0 -1
- package/definitions/game/game/tile/Tile.d.ts +9 -0
- package/definitions/game/game/tile/TileEvent.d.ts +2 -0
- package/definitions/game/language/dictionary/UiTranslation.d.ts +60 -59
- package/definitions/game/multiplayer/Multiplayer.d.ts +1 -0
- package/definitions/test/core/applicationManager.d.ts +1 -1
- package/package.json +1 -1
|
@@ -51,6 +51,7 @@ import type { IVector2 } from "@wayward/game/utilities/math/IVector";
|
|
|
51
51
|
import { WebWorkerManager } from "@wayward/game/webWorker/WebWorkerManager";
|
|
52
52
|
import EventEmitter from "@wayward/utilities/event/EventEmitter";
|
|
53
53
|
import type { Random } from "@wayward/utilities/random/Random";
|
|
54
|
+
import MessageManager from "@wayward/game/game/entity/player/MessageManager";
|
|
54
55
|
export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
55
56
|
get isChallenge(): boolean;
|
|
56
57
|
private difficultyOptions;
|
|
@@ -90,6 +91,7 @@ export declare class Game extends EventEmitter.Host<IGameEvents> {
|
|
|
90
91
|
*/
|
|
91
92
|
readonly tickHelper: TickHelper;
|
|
92
93
|
get actionExecutor(): typeof ActionExecutor;
|
|
94
|
+
get messageManager(): typeof MessageManager;
|
|
93
95
|
readonly islands: IslandManager;
|
|
94
96
|
readonly playerManager: PlayerManager;
|
|
95
97
|
readonly references: ReferenceManager;
|
|
@@ -47,6 +47,7 @@ import type { IUnserializedCallback } from "@wayward/game/save/serializer/ISeria
|
|
|
47
47
|
import type { IVector3 } from "@wayward/game/utilities/math/IVector";
|
|
48
48
|
import type { IRGB } from "@wayward/utilities/Color";
|
|
49
49
|
import type { IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
50
|
+
import type DoodadManager from "@wayward/game/game/doodad/DoodadManager";
|
|
50
51
|
type DoodadMagicEvents = {
|
|
51
52
|
[EVENT in keyof IMagicalPropertyManagerEvents as `magic${Capitalize<EVENT>}`]: IMagicalPropertyManagerEvents[EVENT];
|
|
52
53
|
};
|
|
@@ -98,6 +99,7 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
|
|
|
98
99
|
get entityType(): EntityType.Doodad;
|
|
99
100
|
get tileUpdateType(): TileUpdateType;
|
|
100
101
|
get reference(): Reference<ReferenceType.Doodad> | undefined;
|
|
102
|
+
get manager(): DoodadManager;
|
|
101
103
|
event: IEventEmitter<this, IDoodadEvents>;
|
|
102
104
|
maxDur: number;
|
|
103
105
|
minDur: number;
|
|
@@ -17,7 +17,7 @@ import type EntityWithStats from "@wayward/game/game/entity/EntityWithStats";
|
|
|
17
17
|
import type Human from "@wayward/game/game/entity/Human";
|
|
18
18
|
import type { EntityTag, ICastable, IEntityConstructorOptions, IEntityEvents } from "@wayward/game/game/entity/IEntity";
|
|
19
19
|
import { EntityType } from "@wayward/game/game/entity/IEntity";
|
|
20
|
-
import type { IHumanBound } from "@wayward/game/game/entity/IEntityManager";
|
|
20
|
+
import type { IEntityManager, IHumanBound } from "@wayward/game/game/entity/IEntityManager";
|
|
21
21
|
import type { ActionType } from "@wayward/game/game/entity/action/IAction";
|
|
22
22
|
import type Creature from "@wayward/game/game/entity/creature/Creature";
|
|
23
23
|
import type Corpse from "@wayward/game/game/entity/creature/corpse/Corpse";
|
|
@@ -29,7 +29,7 @@ import type { IUncastableContainer } from "@wayward/game/game/item/IItem";
|
|
|
29
29
|
import type Item from "@wayward/game/game/item/Item";
|
|
30
30
|
import { type EntityReferenceTypes, type IReferenceable, type Reference } from "@wayward/game/game/reference/IReferenceManager";
|
|
31
31
|
import type { ITemperatureSource } from "@wayward/game/game/temperature/ITemperature";
|
|
32
|
-
import
|
|
32
|
+
import Tile from "@wayward/game/game/tile/Tile";
|
|
33
33
|
import type TileEvent from "@wayward/game/game/tile/TileEvent";
|
|
34
34
|
import { type ISerializedTranslation } from "@wayward/game/language/ITranslation";
|
|
35
35
|
import type Translation from "@wayward/game/language/Translation";
|
|
@@ -88,6 +88,7 @@ export default abstract class Entity<DescriptionType = unknown, TypeType extends
|
|
|
88
88
|
* Called when filling out the entities description for the first time
|
|
89
89
|
*/
|
|
90
90
|
protected abstract getDescription(): DescriptionType | undefined;
|
|
91
|
+
protected abstract get manager(): IEntityManager<Entity>;
|
|
91
92
|
toString(): string;
|
|
92
93
|
/**
|
|
93
94
|
* Location of the entity on the world.
|
|
@@ -40,6 +40,7 @@ export default abstract class EntityManager<T extends Entity, RemoveOptions exte
|
|
|
40
40
|
protected abstract onRemove(entity: T, options?: RemoveOptions & IEntityRemoveOptions): boolean;
|
|
41
41
|
protected abstract loadEntity?(entity: T): void;
|
|
42
42
|
load(): void;
|
|
43
|
+
exists(entity: T): boolean;
|
|
43
44
|
/**
|
|
44
45
|
* Restores a previous removed entity
|
|
45
46
|
*/
|
|
@@ -12,6 +12,7 @@ import type Entity from "@wayward/game/game/entity/Entity";
|
|
|
12
12
|
import type Human from "@wayward/game/game/entity/Human";
|
|
13
13
|
import type { IBound3 } from "@wayward/game/utilities/math/Bound3";
|
|
14
14
|
export interface IEntityManager<T extends Entity> {
|
|
15
|
+
exists(entity: T): boolean;
|
|
15
16
|
remove(entity: T): void;
|
|
16
17
|
updateFov(humanBounds: IHumanBound[]): void;
|
|
17
18
|
}
|
|
@@ -19,5 +19,5 @@ export interface ISetCreatureAiCanUse extends IActionUsable {
|
|
|
19
19
|
creatures: Creature[];
|
|
20
20
|
}
|
|
21
21
|
export declare function hasSkillToSetCreatureAi(human: Human, creatureDescription: ICreatureDescription | undefined, ai: AiType): boolean;
|
|
22
|
-
declare const _default: Action<[[arg1: ActionArgument.Undefined, ActionArgument.Creature], [arg1: ActionArgument.Undefined, 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.SetCreatureAi, Human<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, ISetCreatureAiCanUse, [Creature | undefined, import("../../../item/Item").default | undefined, AiType]>;
|
|
22
|
+
declare const _default: Action<[[arg1: ActionArgument.Undefined, ActionArgument.Creature], [arg1: ActionArgument.Undefined, 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" | "AiDisabled">], ActionType.SetCreatureAi, Human<unknown, number, import("../../../reference/IReferenceManager").ReferenceType.NPC | import("../../../reference/IReferenceManager").ReferenceType.Player, unknown>, void, ISetCreatureAiCanUse, [Creature | undefined, import("../../../item/Item").default | undefined, AiType]>;
|
|
23
23
|
export default _default;
|
|
@@ -10,5 +10,5 @@
|
|
|
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("@wayward/game/game/entity/action/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
|
+
declare const _default: import("@wayward/game/game/entity/action/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" | "AiDisabled">], 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]>;
|
|
14
14
|
export default _default;
|
|
@@ -49,7 +49,9 @@ export declare enum AiType {
|
|
|
49
49
|
/** Follows the owner and never attacks, even when attacked itself or sees owner attacked */
|
|
50
50
|
Heel = 16384,
|
|
51
51
|
/** Not currently wandering. This AI type is managed by the wander system. Do not put it in AI masks. */
|
|
52
|
-
Idle = 128
|
|
52
|
+
Idle = 128,
|
|
53
|
+
/** All AI mask checks are disabled. Used for caged creatures */
|
|
54
|
+
AiDisabled = 131072
|
|
53
55
|
}
|
|
54
56
|
declare namespace AI {
|
|
55
57
|
function debugString(ai: AiType): string;
|
|
@@ -38,6 +38,8 @@ export default class AiManager<ENTITY extends EntityMovable = EntityMovable> {
|
|
|
38
38
|
get entity(): ENTITY | undefined;
|
|
39
39
|
protected get entityEvent(): IEventEmitter<EntityMovable, IEntityMovableEvents & IEntityAiEvents> | undefined;
|
|
40
40
|
protected get island(): Island | undefined;
|
|
41
|
+
/** Whether AI masks are disabled */
|
|
42
|
+
get disabled(): boolean;
|
|
41
43
|
/**
|
|
42
44
|
* Gets the latest synced state of the ai.
|
|
43
45
|
* This should only be used clientside.
|
|
@@ -45,6 +47,10 @@ export default class AiManager<ENTITY extends EntityMovable = EntityMovable> {
|
|
|
45
47
|
get lastCalculatedAiClientSide(): AiType;
|
|
46
48
|
calculate(): AiType;
|
|
47
49
|
private emitChange;
|
|
50
|
+
/** Disables AI masks */
|
|
51
|
+
disable(): void;
|
|
52
|
+
/** Enables AI masks */
|
|
53
|
+
enable(): void;
|
|
48
54
|
has(aiType: AiType): boolean;
|
|
49
55
|
hasAny(aiTypes: AiType[]): boolean;
|
|
50
56
|
hasBase(aiType: AiType): boolean;
|
|
@@ -43,11 +43,13 @@ import type { IVector2, IVector3 } from "@wayward/game/utilities/math/IVector";
|
|
|
43
43
|
import Vector2 from "@wayward/game/utilities/math/Vector2";
|
|
44
44
|
import type { IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
45
45
|
import { IRange } from "@wayward/utilities/math/Range";
|
|
46
|
+
import type CreatureManager from "@wayward/game/game/entity/creature/CreatureManager";
|
|
46
47
|
export default class Creature extends EntityWithStats<ICreatureDescription, CreatureType, ReferenceType.Creature, CreatureTag> implements IUnserializedCallback, IObject<CreatureType> {
|
|
47
48
|
static is(value: any): value is Creature;
|
|
48
49
|
get entityType(): EntityType.Creature;
|
|
49
50
|
get tileUpdateType(): TileUpdateType;
|
|
50
51
|
get reference(): Reference<ReferenceType.Creature> | undefined;
|
|
52
|
+
get manager(): CreatureManager;
|
|
51
53
|
event: IEventEmitter<this, ICreatureEvents>;
|
|
52
54
|
anim: number;
|
|
53
55
|
direction: Vector2;
|
|
@@ -56,7 +56,6 @@ export default class CreatureManager extends EntityManager<Creature, IEntityRemo
|
|
|
56
56
|
spawnFromZone(tile: Tile, bypassCreatureLimit?: boolean, checkTerrainType?: boolean): Creature | undefined;
|
|
57
57
|
getAberrantChance(tile: Tile): number;
|
|
58
58
|
createFake(type: CreatureType, aberrant: boolean, tile?: Tile, id?: number): Creature;
|
|
59
|
-
exists(creature: Creature): boolean;
|
|
60
59
|
maybeSpawnClawWorm(target: Human | Creature): void;
|
|
61
60
|
/**
|
|
62
61
|
* Maybe spawns a Dryad based on target's skill, zone tier, plants around target, and chance.
|
|
@@ -31,6 +31,7 @@ import type Translation from "@wayward/game/language/Translation";
|
|
|
31
31
|
import type { Article } from "@wayward/game/language/ITranslation";
|
|
32
32
|
import type { IVector3 } from "@wayward/game/utilities/math/IVector";
|
|
33
33
|
import type { IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
34
|
+
import type CorpseManager from "@wayward/game/game/entity/creature/corpse/CorpseManager";
|
|
34
35
|
export interface ICorpseEvents extends IEntityEvents {
|
|
35
36
|
/**
|
|
36
37
|
* Called when the entity is created in the game
|
|
@@ -47,6 +48,7 @@ export default class Corpse extends Entity<ICorpseDescription, CreatureType, Ref
|
|
|
47
48
|
get entityType(): EntityType.Corpse;
|
|
48
49
|
get tileUpdateType(): TileUpdateType;
|
|
49
50
|
get reference(): Reference<ReferenceType.Corpse> | undefined;
|
|
51
|
+
get manager(): CorpseManager;
|
|
50
52
|
event: IEventEmitter<this, ICorpseEvents>;
|
|
51
53
|
aberrant?: boolean | undefined;
|
|
52
54
|
decay?: number | undefined;
|
|
@@ -22,6 +22,7 @@ import type { IEntityAiEvents } from "@wayward/game/game/entity/ai/AiManager";
|
|
|
22
22
|
import AiManager from "@wayward/game/game/entity/ai/AiManager";
|
|
23
23
|
import type { INPCDescription, NPCTag } from "@wayward/game/game/entity/npc/INPC";
|
|
24
24
|
import { NPCType } from "@wayward/game/game/entity/npc/INPCs";
|
|
25
|
+
import type NPCManager from "@wayward/game/game/entity/npc/NPCManager";
|
|
25
26
|
import type MerchantNPC from "@wayward/game/game/entity/npc/npcs/Merchant";
|
|
26
27
|
import type ShipperNPC from "@wayward/game/game/entity/npc/npcs/Shipper";
|
|
27
28
|
import { MessageManagerNoOp } from "@wayward/game/game/entity/player/MessageManager";
|
|
@@ -58,6 +59,7 @@ export default abstract class NPC extends Human<INPCDescription, NPCType, Refere
|
|
|
58
59
|
get entityType(): EntityType.NPC;
|
|
59
60
|
get tileUpdateType(): TileUpdateType;
|
|
60
61
|
get reference(): Reference<ReferenceType.NPC> | undefined;
|
|
62
|
+
get manager(): NPCManager;
|
|
61
63
|
event: IEventEmitter<this, INPCEvents>;
|
|
62
64
|
private weightCapacity;
|
|
63
65
|
ai: AiManager<this>;
|
|
@@ -38,10 +38,12 @@ import type { IContainerSortInfo, IDialogInfo } from "@wayward/game/ui/old/IOldU
|
|
|
38
38
|
import { IActionBarSlotData } from "@wayward/game/ui/screen/screens/game/static/actions/IActionBar";
|
|
39
39
|
import { Direction } from "@wayward/game/utilities/math/Direction";
|
|
40
40
|
import { type IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
41
|
+
import type PlayerManager from "@wayward/game/game/entity/player/PlayerManager";
|
|
41
42
|
export default class Player extends Human<undefined, number, ReferenceType.Player, PlayerTag> implements IPreSerializeCallback, IUnserializedCallback {
|
|
42
43
|
get entityType(): EntityType.Player;
|
|
43
44
|
get tileUpdateType(): TileUpdateType;
|
|
44
45
|
get reference(): Reference<ReferenceType.Player> | undefined;
|
|
46
|
+
get manager(): PlayerManager;
|
|
45
47
|
event: IEventEmitter<this, IPlayerEvents>;
|
|
46
48
|
absentLastUsedTime: number;
|
|
47
49
|
containerSortInfo: Record<string | number, IContainerSortInfo | undefined>;
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://github.com/WaywardGame/types/wiki
|
|
10
10
|
*/
|
|
11
11
|
import type { IEntityManagerEvents } from "@wayward/game/game/entity/EntityManager";
|
|
12
|
+
import type { IHumanBound } from "@wayward/game/game/entity/IEntityManager";
|
|
13
|
+
import type IEntityManager from "@wayward/game/game/entity/IEntityManager";
|
|
12
14
|
import Player from "@wayward/game/game/entity/player/Player";
|
|
13
15
|
import type { Game } from "@wayward/game/game/Game";
|
|
14
16
|
import type { IPlayerOptions, IPlayOptions } from "@wayward/game/game/IGame";
|
|
@@ -40,11 +42,14 @@ export interface IPlayerManagerEvents extends IEntityManagerEvents<Player> {
|
|
|
40
42
|
*/
|
|
41
43
|
removePlayingEntity(entity: Player): any;
|
|
42
44
|
}
|
|
43
|
-
export default class PlayerManager extends EventEmitter.Host<IPlayerManagerEvents> {
|
|
45
|
+
export default class PlayerManager extends EventEmitter.Host<IPlayerManagerEvents> implements IEntityManager<Player> {
|
|
44
46
|
private readonly game;
|
|
45
47
|
readonly players: Array<Player | undefined>;
|
|
46
48
|
readonly absentPlayers: Array<Player | undefined>;
|
|
47
49
|
constructor(game: Game);
|
|
50
|
+
exists(player: Player): boolean;
|
|
51
|
+
/** No-op */
|
|
52
|
+
updateFov(humanBounds: IHumanBound[]): void;
|
|
48
53
|
reset(): void;
|
|
49
54
|
/**
|
|
50
55
|
* Get players. Parameters include additional players that may not be relevant, such as ghosts, connecting players, absent players, the dedicated server fake player.
|
|
@@ -54,6 +54,7 @@ import Debug from "@wayward/game/utilities/dev/Debug";
|
|
|
54
54
|
import type { Direction } from "@wayward/game/utilities/math/Direction";
|
|
55
55
|
import type { IVector3 } from "@wayward/game/utilities/math/IVector";
|
|
56
56
|
import type { IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
57
|
+
import type ItemManager from "@wayward/game/game/item/ItemManager";
|
|
57
58
|
export interface IItemAttackContributionBreakdown {
|
|
58
59
|
baseDamage: number;
|
|
59
60
|
qualityBonus: number;
|
|
@@ -110,6 +111,7 @@ export default class Item extends EntityMovable<IItemDescription, ItemType, Refe
|
|
|
110
111
|
get entityType(): EntityType.Item;
|
|
111
112
|
get tileUpdateType(): TileUpdateType;
|
|
112
113
|
get reference(): Reference<ReferenceType.Item> | undefined;
|
|
114
|
+
get manager(): ItemManager;
|
|
113
115
|
event: IEventEmitter<this, IItemEvents>;
|
|
114
116
|
private maxDur;
|
|
115
117
|
private minDur;
|
|
@@ -220,7 +220,6 @@ export default class ItemManager extends EntityManager<Item, IItemRemoveOptions>
|
|
|
220
220
|
*/
|
|
221
221
|
getItemInsertIndexInContainer(container: IContainer, item: Item, sorter?: ISorter<Item | undefined>): number | undefined;
|
|
222
222
|
removeContainerItems(container: IContainer, options?: IItemRemoveOptions): void;
|
|
223
|
-
exists(item: Item): boolean;
|
|
224
223
|
remove(item: Item, options?: IItemRemoveOptions): void;
|
|
225
224
|
/**
|
|
226
225
|
* No need to run special logic when loading items
|
|
@@ -123,6 +123,15 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
|
|
|
123
123
|
*/
|
|
124
124
|
private _minDur?;
|
|
125
125
|
private _maxDur?;
|
|
126
|
+
/**
|
|
127
|
+
* Whether this is not a real tile in the world, instead just an ephemeral instance.
|
|
128
|
+
*
|
|
129
|
+
* Note that fake tiles can still be pointing to a real position in the world,
|
|
130
|
+
* and as such *can* affect the real world with their methods.
|
|
131
|
+
*
|
|
132
|
+
* The concept mostly just exists to stop a class of errors.
|
|
133
|
+
*/
|
|
134
|
+
readonly isFake?: true;
|
|
126
135
|
get zone(): CreatureZone;
|
|
127
136
|
/**
|
|
128
137
|
* Gets the tier of the zone the tile is in
|
|
@@ -32,6 +32,7 @@ import type { Article } from "@wayward/game/language/ITranslation";
|
|
|
32
32
|
import type TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
|
|
33
33
|
import type { IVector3 } from "@wayward/game/utilities/math/IVector";
|
|
34
34
|
import type { IEventEmitter } from "@wayward/utilities/event/EventEmitter";
|
|
35
|
+
import type TileEventManager from "@wayward/game/game/tile/TileEventManager";
|
|
35
36
|
export interface ITileEventEvents extends IEntityMovableEvents {
|
|
36
37
|
/**
|
|
37
38
|
* Emitted when the fire stage of this tile event changes.
|
|
@@ -45,6 +46,7 @@ export default class TileEvent extends EntityMovable<ITileEventDescription, Tile
|
|
|
45
46
|
get entityType(): EntityType.TileEvent;
|
|
46
47
|
get tileUpdateType(): TileUpdateType;
|
|
47
48
|
get reference(): Reference<ReferenceType.TileEvent> | undefined;
|
|
49
|
+
get manager(): TileEventManager;
|
|
48
50
|
event: IEventEmitter<this, ITileEventEvents>;
|
|
49
51
|
anim: number;
|
|
50
52
|
fromX: number;
|
|
@@ -878,64 +878,65 @@ declare enum UiTranslation {
|
|
|
878
878
|
MenuMultiplayerOptionsConnectedPlayersHeading = 863,
|
|
879
879
|
MenuMultiplayerOptionsAbsentPlayersHeading = 864,
|
|
880
880
|
MenuMultiplayerOptionsDeletePlayerTooltip = 865,
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
881
|
+
MenuMultiplayerOptionsCopyPlayerInfoTooltip = 866,
|
|
882
|
+
MenuJoinServerTitle = 867,
|
|
883
|
+
MenuJoinServerDescription = 868,
|
|
884
|
+
MenuJoinServerInputPlaceholder = 869,
|
|
885
|
+
MenuJoinServerChooseModifiersTitle = 870,
|
|
886
|
+
MenuJoinServerChooseModifiersDescription = 871,
|
|
887
|
+
MenuSharedMultiplayerChoiceLobbyTypeFriends = 872,
|
|
888
|
+
MenuSharedMultiplayerChoiceLobbyTypeFriendsDescription = 873,
|
|
889
|
+
MenuSharedMultiplayerChoiceLobbyTypePublic = 874,
|
|
890
|
+
MenuSharedMultiplayerChoiceLobbyTypePublicDescription = 875,
|
|
891
|
+
MenuSharedMultiplayerChoiceLobbyTypePrivate = 876,
|
|
892
|
+
MenuSharedMultiplayerChoiceLobbyTypePrivateDescription = 877,
|
|
893
|
+
MenuSharedMultiplayerChoicePVP = 878,
|
|
894
|
+
MenuSharedMultiplayerChoicePVPDescription = 879,
|
|
895
|
+
MenuSharedMultiplayerChoiceAllowTraveling = 880,
|
|
896
|
+
MenuSharedMultiplayerChoiceAllowTravelingDescription = 881,
|
|
897
|
+
MenuSharedMultiplayerChoiceAllowHardcoreRespawns = 882,
|
|
898
|
+
MenuSharedMultiplayerChoiceAllowHardcoreRespawnsDescription = 883,
|
|
899
|
+
MenuSharedMultiplayerChoicePauseOnDesync = 884,
|
|
900
|
+
MenuSharedMultiplayerChoicePauseOnDesyncDescription = 885,
|
|
901
|
+
MenuSharedMultiplayerDescription = 886,
|
|
902
|
+
MenuSharedMultiplayerMessageOfTheDay = 887,
|
|
903
|
+
MenuSharedMultiplayerMaxPlayers = 888,
|
|
904
|
+
MenuSharedRealTimeTickSpeedTooltip = 889,
|
|
905
|
+
MenuSharedRealTimeTickSpeedLabel = 890,
|
|
906
|
+
MenuSharedButtonDefault = 891,
|
|
907
|
+
MenuSharedValueSeconds = 892,
|
|
908
|
+
MenuSharedValueMilliseconds = 893,
|
|
909
|
+
MenuSharedValuePercentage = 894,
|
|
910
|
+
MenuSharedMilestonesNotUnlockable = 895,
|
|
911
|
+
MenuSharedMilestonesNotUnlockableDescription = 896,
|
|
912
|
+
MenuSharedMilestonesNotUnlockableButtonShowMods = 897,
|
|
913
|
+
MenuSharedButtonDisableAll = 898,
|
|
914
|
+
MenuSharedButtonEnableAll = 899,
|
|
915
|
+
MenuSharedMilestoneModifiersSelected = 900,
|
|
916
|
+
MiscSortBy = 901,
|
|
917
|
+
MiscSortCustom = 902,
|
|
918
|
+
MiscSortDirection = 903,
|
|
919
|
+
MiscFilter = 904,
|
|
920
|
+
MiscNone = 905,
|
|
921
|
+
MiscPlayerNameDefault = 906,
|
|
922
|
+
MiscPlayerNameServer = 907,
|
|
923
|
+
MiscSaveNameDefault = 908,
|
|
924
|
+
MiscSaveNameDailyChallenge = 909,
|
|
925
|
+
MiscSaveNameChallenge = 910,
|
|
926
|
+
MiscSaveVersionUnknown = 911,
|
|
927
|
+
MiscVersion = 912,
|
|
928
|
+
MiscVersionBuildInfoTooltip = 913,
|
|
929
|
+
MiscVersionUpdate = 914,
|
|
930
|
+
MiscTime = 915,
|
|
931
|
+
MiscTimeMeridiem = 916,
|
|
932
|
+
MiscError = 917,
|
|
933
|
+
MiscContextMenuCopyTooltip = 918,
|
|
934
|
+
MiscBindableNoBindings = 919,
|
|
935
|
+
MiscBindingIcon = 920,
|
|
936
|
+
MiscBindingIconThen = 921,
|
|
937
|
+
TabCrafting = 922,
|
|
938
|
+
TabDismantle = 923,
|
|
939
|
+
WindowTitleContainer = 924,
|
|
940
|
+
WindowTitleInventory = 925
|
|
940
941
|
}
|
|
941
942
|
export default UiTranslation;
|
|
@@ -74,6 +74,7 @@ export default class Multiplayer extends EventEmitter.Host<IMultiplayerEvents> {
|
|
|
74
74
|
get areSyncChecksSuppressed(): boolean;
|
|
75
75
|
getPlayerIdentifier(): string;
|
|
76
76
|
setPlayerIdentifier(identifier: string): void;
|
|
77
|
+
getPlayAsPlayerUrl(...playerNames: string[]): string[];
|
|
77
78
|
get options(): ImmutableObject<IMultiplayerOptions>;
|
|
78
79
|
setOptions(options: IMultiplayerOptions, updateGame?: boolean): void;
|
|
79
80
|
updateOptions(updates: Partial<IMultiplayerOptions>): void;
|
|
@@ -73,7 +73,7 @@ export declare class ApplicationManager {
|
|
|
73
73
|
waitUntilLoadingIsFinished(): Promise<void>;
|
|
74
74
|
removeNearbyCreatures(): Promise<void>;
|
|
75
75
|
randomMovement(count: number): Promise<void>;
|
|
76
|
-
moveToTowardsIsland(app: Application, direction: Direction.Cardinal, recoverStats?: boolean): Promise<void>;
|
|
76
|
+
moveToTowardsIsland(app: Application, direction: Direction.Cardinal, recoverStats?: boolean, distance?: number): Promise<void>;
|
|
77
77
|
recoverStats(app: Application): Promise<void>;
|
|
78
78
|
ascendDesend(app: Application): Promise<void>;
|
|
79
79
|
moveInDirection(app: Application, direction: Direction.Cardinal | Direction.None, steps?: number): Promise<void>;
|
package/package.json
CHANGED