@wayward/types 2.14.0-beta.dev.20240403.1 → 2.14.0-beta.dev.20240405.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.
@@ -16,6 +16,8 @@ import type Bindable from "@wayward/game/ui/input/Bindable";
16
16
  import type { Binding } from "@wayward/game/ui/input/Bindings";
17
17
  import type { FontStyle } from "@wayward/game/ui/IUi";
18
18
  import type UiExperiment from "@wayward/game/ui/UiExperiments";
19
+ import type { TurnMode } from "@wayward/game/game/IGame";
20
+ import type { IMultiplayerOptions } from "@wayward/game/multiplayer/IMultiplayer";
19
21
  export interface IOptions {
20
22
  alternatingDirectionMovement: boolean;
21
23
  autoAttack: boolean;
@@ -140,6 +142,9 @@ export interface IHighscore {
140
142
  characterName: string;
141
143
  seed?: string | number;
142
144
  difficultyOptions?: IGameOptions;
145
+ turnMode: TurnMode;
146
+ multiplayerOptions?: ImmutableObject<IMultiplayerOptions>;
147
+ customMilestoneModifiersAllowed?: boolean;
143
148
  }
144
149
  export type IHighscoreOld = Partial<IHighscore> & Partial<{
145
150
  dailyChallenge: boolean;
@@ -8,9 +8,11 @@
8
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
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
+ import { TurnMode } from "@wayward/game/game/IGame";
11
12
  import type { Milestone } from "@wayward/game/game/milestones/IMilestone";
12
13
  import type { IGameOptions } from "@wayward/game/game/options/IGameOptions";
13
14
  import { GameMode } from "@wayward/game/game/options/IGameOptions";
15
+ import type { IMultiplayerOptions } from "@wayward/game/multiplayer/IMultiplayer";
14
16
  import InputRow from "@wayward/game/ui/component/InputRow";
15
17
  import Menu from "@wayward/game/ui/screen/screens/menu/component/Menu";
16
18
  import MilestonesNotUnlockableWarning from "@wayward/game/ui/screen/screens/menu/component/MilestonesNotUnlockableWarning";
@@ -25,13 +27,17 @@ export default class NewGameMenu extends Menu {
25
27
  readonly tabMultiplayer: TabMultiplayer;
26
28
  readonly tabGameplayModifiers: TabGameplayModifiers;
27
29
  difficultyOptions?: IGameOptions;
30
+ multiplayerOptions?: IMultiplayerOptions;
28
31
  readonly milestones: Set<Milestone>;
29
32
  private slot;
30
33
  private editedPreShown;
31
34
  constructor();
32
35
  setSeed(seed: string | number, lock?: boolean): this;
36
+ setTurnMode(turnMode: TurnMode): this;
33
37
  setDifficulty(difficulty: GameMode, lock?: boolean): this;
34
38
  setDifficultyOptions(options: IGameOptions): this;
39
+ setMultiplayerOptions(options: ImmutableObject<IMultiplayerOptions>): this;
40
+ setGamePlayModifierOption(customMilestoneModifiersAllowed?: boolean): this;
35
41
  setMultiplayer(): this;
36
42
  getDifficultyOptions(): IGameOptions;
37
43
  setWasEditedPreShown(): 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.20240403.1",
4
+ "version": "2.14.0-beta.dev.20240405.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",