@wayward/types 2.14.0-beta.dev.20241005.1 → 2.14.0-beta.dev.20241007.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.
@@ -50,10 +50,6 @@ export default abstract class EntityMovable<DescriptionType = unknown, TypeType
50
50
  * Note: This might not be a whole number.
51
51
  */
52
52
  fromY?: number;
53
- /**
54
- * Not guaranteed to be synced between the server and client for Human entities
55
- */
56
- isMoving?: boolean;
57
53
  /**
58
54
  * Only used for Human entities
59
55
  */
@@ -165,6 +161,11 @@ export default abstract class EntityMovable<DescriptionType = unknown, TypeType
165
161
  getMovementProgress(timeStamp: number): number;
166
162
  protected onMovementCompleted(movingData: IMovingData): void;
167
163
  get isFlying(): boolean;
164
+ /**
165
+ * Checks if the entity is moving.
166
+ * This is based on the local client state (renderer).
167
+ */
168
+ get isMovingClientside(): boolean;
168
169
  getMoveType(): MoveType;
169
170
  setMoveType(moveType: MoveType): void;
170
171
  canSwapWith(entity: EntityMovable, source: string | undefined): boolean;
@@ -283,7 +283,6 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
283
283
  * Ordering is done via EmitHumanEventPacket
284
284
  */
285
285
  protected onNoInput(): void;
286
- protected onMoveComplete(): void;
287
286
  /**
288
287
  * This is only ran on the server
289
288
  */
@@ -12,7 +12,6 @@ import type { IslandId } from "@wayward/game/game/island/IIsland";
12
12
  import ClientPacket from "@wayward/game/multiplayer/packets/ClientPacket";
13
13
  export default class IslandTickPacket extends ClientPacket {
14
14
  islandId: IslandId;
15
- isMoving: boolean[];
16
15
  getDebugInfo(): string;
17
16
  process(): void;
18
17
  protected getInitialBufferSize(): number;
@@ -98,6 +98,7 @@ export interface ISteamworks {
98
98
  showFloatingGamepadTextInput(nTextFieldXPosition: number, nTextFieldYPosition: number, nTextFieldWidth: number, nTextFieldHeight: number): boolean;
99
99
  dismissFloatingGamepadTextInput(): boolean;
100
100
  setFloatingGamepadTextInputDismissedCallback(cb: () => void): void;
101
+ overlayNeedsPresent(): boolean;
101
102
  getInputType(): SteamInputType;
102
103
  setTimelineGameMode(timelineGameMode: SteamTimelineGameMode): void;
103
104
  addTimelineEvent(marker: SteamTimelineMarker, title: string, description: string, clipPriority: SteamTimelineEventClipPriority): void;
@@ -62,7 +62,10 @@ export default class ApplicationInteractions {
62
62
  isShowingPrompt(prompt: Prompt): Promise<boolean>;
63
63
  dismissPrompt(prompt: Prompt): Promise<void>;
64
64
  dismissPromptIfShown(prompt: Prompt): Promise<void>;
65
- clickUnpauseIconIfVisible(): Promise<void>;
65
+ /**
66
+ * Checks for a pause icon / if the game is caused
67
+ */
68
+ ensureUnpaused(): Promise<void>;
66
69
  clickNewGameCheckbox(name: string): Promise<void>;
67
70
  clickButtonIfClickable(name: string): Promise<boolean>;
68
71
  setNewGameSeed(seed: string | number): Promise<void>;
@@ -70,11 +73,12 @@ export default class ApplicationInteractions {
70
73
  private importGame;
71
74
  /**
72
75
  * Executes a Move action
73
- * @param direction Direction to move
76
+ * @param direction Direction to move. Direction.None to Idle
74
77
  * @param steps Number of movements (steps)
75
78
  * @param verifyMovement True to verify the players position changed. Don't use this if the player is moving into the edge
76
79
  */
77
- moveInDirection(direction: Direction.Cardinal, steps?: number, verifyMovement?: boolean): Promise<void>;
80
+ moveInDirection(direction: Direction.Cardinal | Direction.None, steps?: number, verifyMovement?: boolean): Promise<void>;
81
+ waitUntilCanMove(): Promise<void>;
78
82
  setSail(): Promise<void>;
79
83
  waitForGameEndScreen(isWinner: boolean): Promise<void>;
80
84
  returnToTitleScreen(): Promise<void>;
@@ -100,7 +104,7 @@ export default class ApplicationInteractions {
100
104
  logFailure: boolean;
101
105
  }>): Promise<void>;
102
106
  increaseStat(stat: Stat, value: number): Promise<void>;
103
- randomInput(count: number): Promise<void>;
107
+ randomMovement(count: number): Promise<void>;
104
108
  pressKey(key: string, modifier?: string, duration?: number): Promise<void>;
105
109
  screenshot(suffix: string): Promise<void>;
106
110
  }
@@ -71,7 +71,7 @@ export declare class ApplicationManager {
71
71
  returnToTitleScreen(): Promise<void>;
72
72
  waitUntilLoadingIsFinished(): Promise<void>;
73
73
  removeNearbyCreatures(): Promise<void>;
74
- randomInput(count: number): Promise<void>;
74
+ randomMovement(count: number): Promise<void>;
75
75
  moveToTowardsIsland(app: Application, direction: Direction.Cardinal, recoverStats?: boolean): Promise<void>;
76
76
  recoverStats(app: Application): Promise<void>;
77
77
  idle(app: Application, steps?: number): Promise<void>;
@@ -212,7 +212,6 @@ export declare class TestRunContext extends BaseContext {
212
212
  private getCommonNUnitXmlAttributes;
213
213
  private sanitizeXmlText;
214
214
  }
215
- export declare const rootContext: TestSetupContext;
216
215
  export declare const before: (executor: TestExecutor) => void;
217
216
  export declare const after: (executor: TestExecutor) => void;
218
217
  export declare const beforeEach: (executor: TestExecutor) => void;
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.14.0-beta.dev.20241005.1",
4
+ "version": "2.14.0-beta.dev.20241007.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",