@wayward/types 2.13.2-beta.dev.20230520.1 → 2.13.2-beta.dev.20230522.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/entity/EntityMovable.d.ts +11 -1
- package/definitions/game/game/entity/creature/Creature.d.ts +0 -4
- package/definitions/game/game/entity/npc/NPC.d.ts +0 -3
- package/definitions/game/game/tile/Tile.d.ts +2 -2
- package/definitions/game/multiplayer/IMultiplayer.d.ts +8 -8
- package/package.json +1 -1
|
@@ -54,7 +54,8 @@ export default abstract class EntityMovable<DescriptionType = unknown, TypeType
|
|
|
54
54
|
movementCompleteZ?: number;
|
|
55
55
|
anim?: number;
|
|
56
56
|
moveType?: MoveType;
|
|
57
|
-
|
|
57
|
+
shouldSkipNextMovement?: true;
|
|
58
|
+
protected shouldSkipNextUpdate?: true;
|
|
58
59
|
/**
|
|
59
60
|
* undefined = Vector2.ZERO for this
|
|
60
61
|
*/
|
|
@@ -98,6 +99,15 @@ export default abstract class EntityMovable<DescriptionType = unknown, TypeType
|
|
|
98
99
|
queueSoundEffectInFront(type: SfxType, delay?: number, speed?: number): void;
|
|
99
100
|
getMovementDelay(): number;
|
|
100
101
|
moveTo(tile: Tile, options?: IMoveToOptions): boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Skips the next update for this creature / npc
|
|
104
|
+
*/
|
|
105
|
+
skipNextUpdate(): void;
|
|
106
|
+
/**
|
|
107
|
+
* Skips the next movement for this creature / npc
|
|
108
|
+
*/
|
|
109
|
+
skipNextMovement(): void;
|
|
110
|
+
overrideNextMovement(tile: Tile): void;
|
|
101
111
|
/**
|
|
102
112
|
* Faces the target tile
|
|
103
113
|
*/
|
|
@@ -55,7 +55,6 @@ export default class Creature extends EntityWithStats<ICreatureDescription, Crea
|
|
|
55
55
|
id: number;
|
|
56
56
|
};
|
|
57
57
|
respawned?: number;
|
|
58
|
-
shouldSkipNextUpdate?: true;
|
|
59
58
|
tameTime?: number;
|
|
60
59
|
spawnAnimationTime: IMovementTime | undefined;
|
|
61
60
|
constructor(entityOptions?: IEntityConstructorOptions<CreatureType>, aberrant?: boolean);
|
|
@@ -89,9 +88,6 @@ export default class Creature extends EntityWithStats<ICreatureDescription, Crea
|
|
|
89
88
|
canTarget(target: Human | Creature | undefined): boolean;
|
|
90
89
|
moveToIsland(targetTile: Tile, owner: Human): void;
|
|
91
90
|
restore(targetTile: Tile, preventRendering?: boolean): void;
|
|
92
|
-
skipNextUpdate(): void;
|
|
93
|
-
overrideNextMovement(tile: Tile): void;
|
|
94
|
-
preventNextMovement(): void;
|
|
95
91
|
checkForBurn(moveType?: MoveType): boolean;
|
|
96
92
|
private setOwner;
|
|
97
93
|
tame(human: Human, bonus?: number): boolean;
|
|
@@ -55,7 +55,6 @@ export default abstract class NPC extends Human<NPCType> {
|
|
|
55
55
|
properties?: IProperties;
|
|
56
56
|
talked?: Map<string, number>;
|
|
57
57
|
interactions?: Map<string, Set<number>>;
|
|
58
|
-
private shouldSkipNextUpdate?;
|
|
59
58
|
static getRegistrarId(): number;
|
|
60
59
|
static setRegistrarId(id: number): void;
|
|
61
60
|
constructor(entityOptions?: IEntityConstructorOptions<NPCType>);
|
|
@@ -96,8 +95,6 @@ export default abstract class NPC extends Human<NPCType> {
|
|
|
96
95
|
* Allow swapping with npcs
|
|
97
96
|
*/
|
|
98
97
|
canSwapWith(human: Human, source: string | undefined): boolean;
|
|
99
|
-
skipNextUpdate(): void;
|
|
100
|
-
overrideNextMovement(tile: Tile): void;
|
|
101
98
|
getPublicContainer(): IContainer | undefined;
|
|
102
99
|
/**
|
|
103
100
|
* The actions available to use with this npc
|
|
@@ -164,8 +164,8 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
|
|
|
164
164
|
message: Message;
|
|
165
165
|
object: Translation;
|
|
166
166
|
} | false;
|
|
167
|
-
isPlayerOnTile(includeGhosts?: boolean, includeConnecting?: boolean): boolean;
|
|
168
|
-
getPlayersOnTile(includeGhosts?: boolean, includeConnecting?: boolean): Human[];
|
|
167
|
+
isPlayerOnTile(includeGhosts?: boolean, includeConnecting?: boolean, includeZMovement?: boolean): boolean;
|
|
168
|
+
getPlayersOnTile(includeGhosts?: boolean, includeConnecting?: boolean, includeZMovement?: boolean): Human[];
|
|
169
169
|
getPlayersThatSeeTile(): Human[];
|
|
170
170
|
/**
|
|
171
171
|
* Gets the nearest player based.
|
|
@@ -48,14 +48,14 @@ export declare enum MultiplayerSyncCheck {
|
|
|
48
48
|
CreatureMovement = 8,
|
|
49
49
|
CreatureNearestPlayer = 9,
|
|
50
50
|
CreatureOffer = 10,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
CreatureStatChange = 11,
|
|
52
|
+
Damage = 12,
|
|
53
|
+
Dismantle = 13,
|
|
54
|
+
Doodad = 14,
|
|
55
|
+
DoodadManager = 15,
|
|
56
|
+
EncumberedStatus = 16,
|
|
57
|
+
Entity = 17,
|
|
58
|
+
EntityPosition = 18,
|
|
59
59
|
ExhaustedPreMove = 19,
|
|
60
60
|
FlowFieldHashCode = 20,
|
|
61
61
|
FlowFieldPenalty = 21,
|
package/package.json
CHANGED