@wayward/types 2.13.2-beta.dev.20230607.1 → 2.13.2-beta.dev.20230608.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.
@@ -10,11 +10,11 @@
10
10
  */
11
11
  export type ICanLoadInfo = {
12
12
  name: string;
13
- loadable: true;
13
+ loadable: CanLoadState.Loadable;
14
14
  index: number;
15
15
  } | {
16
16
  name: string;
17
- loadable: false;
17
+ loadable: CanLoadState.NotFound | CanLoadState.ModLoadError;
18
18
  };
19
19
  export declare enum CanLoadState {
20
20
  Loadable = 0,
@@ -29,7 +29,8 @@ export declare enum CanLoadState {
29
29
  WorkshopModPrecedence = 9,
30
30
  IncompatibleVersion = 10,
31
31
  DisabledInMultiplayer = 11,
32
- ServerSideOnNonDedicatedServer = 12
32
+ ServerSideOnNonDedicatedServer = 12,
33
+ NotFound = 13
33
34
  }
34
35
  export declare enum ModLoadFailureReason {
35
36
  IsDisabled = 0,
@@ -122,14 +122,15 @@ export default class Steamworks extends EventEmitter.Host<ISteamworksEvents> {
122
122
  createArchive(id: string): Promise<void>;
123
123
  getPublishedItems(): Promise<IWorkshopItem[]>;
124
124
  openUrl(url: string): void;
125
- openWorkshop(publishId?: string): Promise<void>;
125
+ openWorkshop(publishFileId?: string): Promise<void>;
126
126
  openInviteDialog(): void;
127
127
  openSaveFolder(): void;
128
128
  openModsFolder(): Promise<void>;
129
129
  openModFolder(modIndex: number): Promise<void>;
130
130
  openLogsFolder(): void;
131
131
  openBackupsFolder(): void;
132
- unsubscribe(publishId: string): Promise<void>;
132
+ subscribe(publishFileIds: string[]): Promise<void>;
133
+ unsubscribe(publishFileId: string): Promise<void>;
133
134
  toggleDeveloperTools(): Promise<void>;
134
135
  getModPath(name: string, modType: ModType, file?: string, checkIfExists?: boolean): Promise<IModPath | undefined>;
135
136
  getModPathSync(name: string, modType: ModType, file?: string): IModPath | undefined;
@@ -14,8 +14,8 @@ import Component from "ui/component/Component";
14
14
  import type { IBindHandlerApi } from "ui/input/Bind";
15
15
  import Bindable from "ui/input/Bindable";
16
16
  import Dialog from "ui/screen/screens/game/component/Dialog";
17
- import type { IItemDropApi, IItemPickUpApi, ItemSlot } from "ui/screen/screens/game/component/Item";
18
- import ItemComponent, { ItemRefreshType } from "ui/screen/screens/game/component/Item";
17
+ import type { IItemDropApi, IItemPickUpApi, ItemSlot } from "ui/screen/screens/game/component/ItemComponent";
18
+ import ItemComponent, { ItemRefreshType } from "ui/screen/screens/game/component/ItemComponent";
19
19
  import EquipmentSlotTooltipHandler from "ui/screen/screens/game/dialog/equipment/EquipmentSlotTooltip";
20
20
  import { MenuBarButtonType } from "ui/screen/screens/game/static/menubar/IMenuBarButton";
21
21
  export declare enum EquipmentClasses {
@@ -24,8 +24,8 @@ import type { IRefreshable } from "ui/component/Refreshable";
24
24
  import Text from "ui/component/Text";
25
25
  import type { IBindHandlerApi } from "ui/input/Bind";
26
26
  import { Quadrant } from "ui/screen/screens/game/component/IQuadrantComponent";
27
- import type { IItemSlotEvents } from "ui/screen/screens/game/component/Item";
28
- import ItemComponent from "ui/screen/screens/game/component/Item";
27
+ import type { IItemSlotEvents } from "ui/screen/screens/game/component/ItemComponent";
28
+ import ItemComponent from "ui/screen/screens/game/component/ItemComponent";
29
29
  import QuadrantComponent from "ui/screen/screens/game/component/QuadrantComponent";
30
30
  import ActionsConfigurationDrawer from "ui/screen/screens/game/static/actions/ActionsDrawer";
31
31
  import ActionSlotTooltipHandler from "ui/screen/screens/game/static/actions/ActionSlotTooltip";
@@ -31,7 +31,7 @@ export declare class ServerRow extends Button implements IRefreshable, IGameIcon
31
31
  private _place;
32
32
  constructor(server: IServer, getFriend: (player: string) => ISteamFriend | undefined);
33
33
  refresh(): this;
34
- protected onActivate(): void;
34
+ protected onActivate(_: any, allowModDownloads?: boolean): void;
35
35
  /**
36
36
  * Check if the client can join the server
37
37
  */
@@ -14,6 +14,7 @@ export declare function startGame(gameOptions: IPlayOptions): void;
14
14
  export declare enum ModLoadability {
15
15
  NotEnabled = "notenabled",
16
16
  Enabled = "enabled",
17
+ NotFound = "notfound",
17
18
  Error = "error"
18
19
  }
19
20
  export declare function isModLoadable(publishId?: string): [string, ModLoadability];
@@ -70,7 +70,8 @@ export interface ISteamworks {
70
70
  getLobbyMembers(lobbyId: string): ISteamFriend[] | undefined;
71
71
  ugcGetUserItems(type: number, sort: number, listType: number, cb: (err: string | null, items: IWorkshopItem[]) => void): void;
72
72
  ugcSynchronizeItems(path: string, cb: (err: string | null, items: IWorkshopItem[]) => void): void;
73
- ugcUnsubscribe(publishId: string, cb: (err: string | null) => void): void;
73
+ ugcSubscribe(publishFileId: string, cb: (err: string | null) => void): void;
74
+ ugcUnsubscribe(publishFileId: string, cb: (err: string | null) => void): void;
74
75
  saveFilesToCloud(files: string[], cb: (err: string | null) => void): void;
75
76
  publishWorkshopFile(path: string, imagePath: string, title: string, description: string, tags: string[], cb: (err: string | null, publishedFileId2: string) => void): void;
76
77
  updatePublishedWorkshopFile(publishFileId: string, path: string, imagePath: string, title: string, description: string, tags: string[], cb: (err: string | null, publishedFileId2: string) => void): void;
@@ -249,7 +250,7 @@ export interface IServerGameDetails {
249
250
  export interface IServerMod {
250
251
  name: string;
251
252
  version: string;
252
- publishFileId: string | undefined;
253
+ publishFileId?: string;
253
254
  }
254
255
  export interface IServerIslandDetails {
255
256
  position: {
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.13.2-beta.dev.20230607.1",
4
+ "version": "2.13.2-beta.dev.20230608.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",