@wayward/types 2.11.4-beta.dev.20220209.1 → 2.11.4-beta.dev.20220210.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.
@@ -108,7 +108,10 @@ export default abstract class Human extends Entity implements IHasInsulation {
108
108
  */
109
109
  burn(fireType: FireType, skipMessage?: boolean, skipParry?: boolean, equipType?: EquipType, fromCombat?: boolean): number | undefined;
110
110
  setPosition(point: IVector3): void;
111
- setZ(z: number, updateFlowField?: boolean): void;
111
+ /**
112
+ * @param effects If true, adds a delay to the player, clears any particles, and updates the view. (Default: true)
113
+ */
114
+ setZ(z: number, effects?: boolean, updateFlowField?: boolean): void;
112
115
  getMovementIntent(): IMovementIntent;
113
116
  updateMovementIntent(movementIntent: IMovementIntent): boolean;
114
117
  hasWalkPath(): boolean;
@@ -91,6 +91,10 @@ export interface IHumanEvents extends Events<Entity>, ISkillEvents {
91
91
  * Called when the walk path of the player changes.
92
92
  */
93
93
  walkPathChange(walkPath: IVector2[] | undefined): any;
94
+ /**
95
+ * Called when the human changes their layer (z position)
96
+ */
97
+ changeZ(z: number, oldZ: number): any;
94
98
  /**
95
99
  * Called when a book is opened by a player
96
100
  * @param book The book that was opened
@@ -156,7 +156,6 @@ export interface IPlayerEvents extends Events<Human> {
156
156
  * Called when the player completes a movement
157
157
  */
158
158
  moveComplete(): any;
159
- changeZ(z: number, oldZ: number): any;
160
159
  /**
161
160
  * Called when the players weight is being updated
162
161
  * @param newWeight The new weight of the player
@@ -163,10 +163,6 @@ export default class Player extends Human implements IUnserializedCallback {
163
163
  setTamedCreatureEnemy(enemy: Player | Creature): void;
164
164
  setPosition(point: IVector3): void;
165
165
  getNextPosition(): IVector3;
166
- /**
167
- * @param effects If true, adds a delay to the player, clears any particles, and updates the view. (Default: true)
168
- */
169
- setZ(z: number, effects?: boolean): void;
170
166
  isGhost(): boolean;
171
167
  isDead(): boolean;
172
168
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wayward/types",
3
3
  "description": "TypeScript declarations for Wayward, used for modding.",
4
- "version": "2.11.4-beta.dev.20220209.1",
4
+ "version": "2.11.4-beta.dev.20220210.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",