@wayward/types 2.13.0-beta.dev.20230408.1 → 2.13.0-beta.dev.20230409.2

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.
Files changed (35) hide show
  1. package/definitions/game/audio/Audio.d.ts +22 -12
  2. package/definitions/game/audio/IAudio.d.ts +0 -15
  3. package/definitions/game/event/EventBuses.d.ts +2 -2
  4. package/definitions/game/event/EventEmitter.d.ts +2 -1
  5. package/definitions/game/game/entity/Entity.d.ts +1 -1
  6. package/definitions/game/game/entity/EntityMovable.d.ts +1 -1
  7. package/definitions/game/game/entity/Human.d.ts +1 -1
  8. package/definitions/game/game/entity/action/usable/actions/UsableActionsWorld.d.ts +1 -1
  9. package/definitions/game/game/entity/player/IMessageManager.d.ts +1 -1
  10. package/definitions/game/game/entity/player/MessageManager.d.ts +3 -3
  11. package/definitions/game/game/inspection/InfoProvider.d.ts +1 -1
  12. package/definitions/game/game/inspection/infoProviders/creature/CreatureTamedInfo.d.ts +1 -1
  13. package/definitions/game/game/inspection/infoProviders/item/ItemDetails.d.ts +1 -1
  14. package/definitions/game/game/inspection/infoProviders/stat/AttackInfo.d.ts +1 -1
  15. package/definitions/game/game/inspection/inspections/CorpseInspection.d.ts +1 -1
  16. package/definitions/game/game/item/IItem.d.ts +4 -0
  17. package/definitions/game/game/item/IItemManager.d.ts +0 -2
  18. package/definitions/game/game/item/ItemManager.d.ts +1 -1
  19. package/definitions/game/game/item/WorldContainer.d.ts +16 -0
  20. package/definitions/game/game/reference/ReferenceManager.d.ts +1 -1
  21. package/definitions/game/game/tile/Tile.d.ts +1 -1
  22. package/definitions/game/language/dictionary/UiTranslation.d.ts +878 -876
  23. package/definitions/game/renderer/world/WorldRenderer.d.ts +1 -1
  24. package/definitions/game/ui/old/OldUi.d.ts +3 -2
  25. package/definitions/game/ui/old/screens/InGameScreen.d.ts +11 -2
  26. package/definitions/game/ui/screen/screens/game/IMessages.d.ts +1 -1
  27. package/definitions/game/ui/screen/screens/game/component/Dialog.d.ts +0 -1
  28. package/definitions/game/ui/screen/screens/game/dialog/BookDialog.d.ts +1 -1
  29. package/definitions/game/ui/screen/screens/game/dialog/EquipmentDialog.d.ts +2 -1
  30. package/definitions/game/ui/screen/screens/game/dialog/IslandsSailDialog.d.ts +1 -0
  31. package/definitions/game/ui/screen/screens/game/dialog/MessagesEditFiltersDialog.d.ts +7 -0
  32. package/definitions/game/ui/screen/screens/game/static/Messages.d.ts +3 -2
  33. package/definitions/game/utilities/math/Rectangle.d.ts +3 -1
  34. package/definitions/hosts/electron/main/launchOptions.d.ts +2 -0
  35. package/package.json +1 -1
@@ -8,11 +8,10 @@
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 type IAudio from "audio/IAudio";
12
11
  import { Music, SfxType } from "audio/IAudio";
13
12
  import EventEmitter from "event/EventEmitter";
14
- import type Island from "game/island/Island";
15
13
  import type EnumCursor from "utilities/enum/EnumCursor";
14
+ import type { IVector4 } from "utilities/math/Vector4";
16
15
  export declare enum Fading {
17
16
  None = 0,
18
17
  In = 1,
@@ -21,20 +20,24 @@ export declare enum Fading {
21
20
  export interface IAudioEvents {
22
21
  init(): any;
23
22
  /**
24
- * Called when a sound effect is queued
23
+ * Called when a ui sound effect is played
25
24
  * @param type The sound effect type
26
- * @param x The x location in the world for the effect
27
- * @param y The y location in the world for the effect
28
- * @param z The z location in the world for the effect
29
25
  * @returns False to cancel the sound effect, a sound effect to play instead of the given one, or undefined to use the default logic
30
26
  */
31
- queueSoundEffect?(type: SfxType, x: number, y: number, z: number): SfxType | boolean | undefined;
27
+ playUiSoundEffect?(type: SfxType): SfxType | boolean | undefined;
28
+ /**
29
+ * Called when a game sound effect is queued
30
+ * @param type The sound effect type
31
+ * @param position The position of the sound effect
32
+ * @returns False to cancel the sound effect, a sound effect to play instead of the given one, or undefined to use the default logic
33
+ */
34
+ queueGameSoundEffect?(type: SfxType, position: IVector4): SfxType | boolean | undefined;
32
35
  }
33
- export default class WAudio extends EventEmitter.Host<IAudioEvents> implements IAudio {
36
+ export default class WAudio extends EventEmitter.Host<IAudioEvents> {
34
37
  private readonly _musicInfo;
35
38
  private readonly _sfxInfo;
36
39
  private readonly _soundQueue;
37
- private readonly _recentlyPlayedSounds;
40
+ private readonly _recentlyPlayedGameSounds;
38
41
  private readonly _fileFormat;
39
42
  private _onInitializedPromise;
40
43
  private _audioContext;
@@ -67,11 +70,18 @@ export default class WAudio extends EventEmitter.Host<IAudioEvents> implements I
67
70
  updateMusicSpeed(speed: number): Promise<void>;
68
71
  updateVolume(): void;
69
72
  updatePosition(): Promise<void>;
70
- queueEffect(type: SfxType, island: Island | undefined, x: number, y: number, z: number, delay?: number, speed?: number, noPosition?: boolean, force?: boolean): void;
71
- processEffects(): void;
73
+ /**
74
+ * Plays a ui sound effect (a sound effect with no position)
75
+ */
76
+ playUiSoundEffect(sfxType: SfxType, speed?: number): Promise<void>;
77
+ /**
78
+ * Plays a sound effect (game / location based)
79
+ */
80
+ queueGameSoundEffect(type: SfxType, position: IVector4, delay?: number, speed?: number): void;
81
+ processGameSounds(): void;
72
82
  private _stopMusic;
73
83
  private _playMusic;
74
- private _playEffect;
84
+ private _playSound;
75
85
  private _isComparableSound;
76
86
  private _getAudioBuffer;
77
87
  private initializeAudio;
@@ -8,21 +8,6 @@
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 type Island from "game/island/Island";
12
- import type EnumCursor from "utilities/enum/EnumCursor";
13
- export interface IAudio {
14
- resetMusicHandler(): void;
15
- getMusicHandler(): EnumCursor<Music>;
16
- setMusicHandler(handler: EnumCursor<Music>): void;
17
- playMusic(): void;
18
- stopMusic(): void;
19
- processEffects(): void;
20
- queueEffect(soundEffect: SfxType, island: Island | undefined, x: number, y: number, z: number, delay?: number, speed?: number, noPosition?: boolean): void;
21
- updateMusicSpeed(speed: number): void;
22
- updatePosition(): void;
23
- updateVolume(): void;
24
- }
25
- export default IAudio;
26
11
  export declare enum SfxType {
27
12
  Boat = 0,
28
13
  Bow = 1,
@@ -127,8 +127,8 @@ export interface IEventBusRegistration {
127
127
  export default eventBuses;
128
128
  export declare module EventBus {
129
129
  function register<E extends EventBus>(eventBus: E, classOrHost: ReturnType<(typeof eventBuses)[E]>): void;
130
- function register(eventBus: EventBus): (constructor: AbstractNullaryClass<any>) => void;
131
- function unregister(eventBus: EventBus): void;
130
+ function register(eventBus: EventBus): (constructor: AbstractNullaryClass<any>) => any;
131
+ function unregister(eventBus: EventBus): boolean;
132
132
  function onEventBusRegistration(eventBus: EventBus, registration: IEventBusRegistration): void;
133
133
  }
134
134
  export type EventBusHost<E extends EventBus> = ReturnType<(typeof eventBuses)[E]>;
@@ -41,6 +41,7 @@ export interface ISelfSubscribedEmitter<E> {
41
41
  type ArgsOf<F> = ArgumentsOf<Extract<F, AnyFunction>>;
42
42
  type ReturnOf<F> = ReturnType<Extract<F, AnyFunction>>;
43
43
  type Handler<H, F> = (host: H, ...args: ArgsOf<F>) => ReturnOf<F>;
44
+ type WeakHandler<H, F> = WeakRef<Handler<H, F>>;
44
45
  type UndefinedFromVoid<V> = V extends void ? undefined : V;
45
46
  export interface IEventEmitter<H = any, E = any> {
46
47
  event: IEventEmitter<this, IEventEmitterEvents<H, E>>;
@@ -98,7 +99,7 @@ declare class EventEmitter<H, E> implements IEventEmitter<H, E> {
98
99
  hasHandlersForEvent(...events: Array<keyof E>): boolean;
99
100
  private copyFrom;
100
101
  private readonly cachedClassHandlers;
101
- protected handlersForEvent<K extends keyof E>(event: K, ignoreClassSubscriptions?: true): Array<keyof H | Handler<any, any>>;
102
+ protected handlersForEvent<K extends keyof E>(event: K, ignoreClassSubscriptions?: true): Array<keyof H | WeakHandler<any, any>>;
102
103
  }
103
104
  declare module EventEmitter {
104
105
  class Host<E> implements IEventEmitterHost<E> {
@@ -95,7 +95,7 @@ export default abstract class Entity<DescriptionType = unknown, TypeType extends
95
95
  isInFov(): boolean;
96
96
  setInFov(inFov: boolean): void;
97
97
  isOnFire(): FireType;
98
- queueSoundEffect(type: SfxType, delay?: number, speed?: number, noPosition?: boolean): void;
98
+ queueSoundEffect(type: SfxType, delay?: number, speed?: number): void;
99
99
  updateRender(source: RenderSource, flag: UpdateRenderFlag): void;
100
100
  updateView(source: RenderSource, updateFov?: boolean | UpdateRenderFlag.FieldOfView | UpdateRenderFlag.FieldOfViewSkipTransition): void;
101
101
  notifyItem(itemNotifierType: ItemNotifierType, item: Item): void;
@@ -95,7 +95,7 @@ export default abstract class EntityMovable<DescriptionType = unknown, TypeType
95
95
  }, fieldOfView?: FieldOfView, customRadius?: number): boolean;
96
96
  canSeeTile(type: CanASeeBType, tile: Tile, fieldOfView?: FieldOfView, customRadius?: number): boolean;
97
97
  canSeePosition(type: CanASeeBType, islandId: IslandId, x: number, y: number, z: number, fieldOfView?: FieldOfView | undefined, customRadius?: number): boolean;
98
- queueSoundEffectInFront(type: SfxType, delay?: number, speed?: number, noPosition?: boolean): void;
98
+ queueSoundEffectInFront(type: SfxType, delay?: number, speed?: number): void;
99
99
  getMovementDelay(): number;
100
100
  moveTo(tile: Tile, options?: IMoveToOptions): boolean;
101
101
  /**
@@ -180,7 +180,7 @@ export default abstract class Human<TypeType extends number = number> extends En
180
180
  addTamedCreature(creature: Creature): void;
181
181
  removeTamedCreature(creature: Creature): boolean;
182
182
  resetMovementIntent(): void;
183
- createItemInInventory(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, quality?: Quality, updateTables?: boolean, movingMultiple?: boolean): Item;
183
+ createItemInInventory(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, quality?: Quality, updateTables?: boolean): Item;
184
184
  damageRandomEquipment(): void;
185
185
  getDamageModifier(): number;
186
186
  calculateDamageAmount(attackType: AttackType, weapon?: Item, ammoItem?: Item): number;
@@ -17,7 +17,7 @@ export declare enum WorldContextMenuClasses {
17
17
  OptionText = "world-context-menu-option-text"
18
18
  }
19
19
  export declare namespace WorldContextMenuClasses {
20
- const OptionSpecific: (enumValue: UsableActionType) => "world-context-menu-option-none" | "world-context-menu-option-actions" | "world-context-menu-option-use" | "world-context-menu-option-move" | "world-context-menu-option-quickslotremove" | "world-context-menu-option-quickslotadd" | "world-context-menu-option-quickslotaddtofree" | "world-context-menu-option-quickslotaddtoslot" | "world-context-menu-option-movetoinventory" | "world-context-menu-option-dropmenu" | "world-context-menu-option-dropall" | "world-context-menu-option-dropallofsamequality" | "world-context-menu-option-repairwithitem" | "world-context-menu-option-reinforcewithitem" | "world-context-menu-option-enhancewithitem" | "world-context-menu-option-enchantwithitem" | "world-context-menu-option-transmogrifywithitem" | "world-context-menu-option-upgradewithitem" | "world-context-menu-option-alterwithitem" | "world-context-menu-option-refinewithitem" | "world-context-menu-option-preservewithitem" | "world-context-menu-option-addfuelwithitem" | "world-context-menu-option-ignitewithitem" | "world-context-menu-option-absorbwithitem" | "world-context-menu-option-exudewithitem" | "world-context-menu-option-movetoinventorymenu" | "world-context-menu-option-movetoactivecontainermenu" | "world-context-menu-option-movetofacingcontainermenu" | "world-context-menu-option-moveall" | "world-context-menu-option-moveallofsamequality" | "world-context-menu-option-tradetradersell" | "world-context-menu-option-tradetraderbuy" | "world-context-menu-option-itemactions" | "world-context-menu-option-gatherwithhands" | "world-context-menu-option-harvestwithhands" | "world-context-menu-option-digwithhands" | "world-context-menu-option-tillwithhands" | "world-context-menu-option-pickupexcrementwithhands" | "world-context-menu-option-equipheld" | "world-context-menu-option-equiplegs" | "world-context-menu-option-equipchest" | "world-context-menu-option-equiphead" | "world-context-menu-option-equipwaist" | "world-context-menu-option-equipfeet" | "world-context-menu-option-equipneck" | "world-context-menu-option-equiphands" | "world-context-menu-option-equipback" | "world-context-menu-option-equipmainhand" | "world-context-menu-option-equipoffhand" | "world-context-menu-option-restonground" | "world-context-menu-option-sleeponground" | "world-context-menu-option-commandmenu" | "world-context-menu-option-commandfollowclose" | "world-context-menu-option-commandfollowfar" | "world-context-menu-option-commandstay" | "world-context-menu-option-commanddefend" | "world-context-menu-option-commandattack";
20
+ const OptionSpecific: (enumValue: UsableActionType) => "world-context-menu-option-none" | "world-context-menu-option-actions" | "world-context-menu-option-use" | "world-context-menu-option-move" | "world-context-menu-option-commandattack" | "world-context-menu-option-commanddefend" | "world-context-menu-option-commandfollowclose" | "world-context-menu-option-commandfollowfar" | "world-context-menu-option-commandstay" | "world-context-menu-option-digwithhands" | "world-context-menu-option-dropall" | "world-context-menu-option-dropallofsamequality" | "world-context-menu-option-gatherwithhands" | "world-context-menu-option-harvestwithhands" | "world-context-menu-option-movetoinventory" | "world-context-menu-option-pickupexcrementwithhands" | "world-context-menu-option-restonground" | "world-context-menu-option-tillwithhands" | "world-context-menu-option-quickslotremove" | "world-context-menu-option-quickslotadd" | "world-context-menu-option-quickslotaddtofree" | "world-context-menu-option-quickslotaddtoslot" | "world-context-menu-option-dropmenu" | "world-context-menu-option-repairwithitem" | "world-context-menu-option-reinforcewithitem" | "world-context-menu-option-enhancewithitem" | "world-context-menu-option-enchantwithitem" | "world-context-menu-option-transmogrifywithitem" | "world-context-menu-option-upgradewithitem" | "world-context-menu-option-alterwithitem" | "world-context-menu-option-refinewithitem" | "world-context-menu-option-preservewithitem" | "world-context-menu-option-addfuelwithitem" | "world-context-menu-option-ignitewithitem" | "world-context-menu-option-absorbwithitem" | "world-context-menu-option-exudewithitem" | "world-context-menu-option-movetoinventorymenu" | "world-context-menu-option-movetoactivecontainermenu" | "world-context-menu-option-movetofacingcontainermenu" | "world-context-menu-option-moveall" | "world-context-menu-option-moveallofsamequality" | "world-context-menu-option-tradetradersell" | "world-context-menu-option-tradetraderbuy" | "world-context-menu-option-itemactions" | "world-context-menu-option-equipheld" | "world-context-menu-option-equiplegs" | "world-context-menu-option-equipchest" | "world-context-menu-option-equiphead" | "world-context-menu-option-equipwaist" | "world-context-menu-option-equipfeet" | "world-context-menu-option-equipneck" | "world-context-menu-option-equiphands" | "world-context-menu-option-equipback" | "world-context-menu-option-equipmainhand" | "world-context-menu-option-equipoffhand" | "world-context-menu-option-sleeponground" | "world-context-menu-option-commandmenu";
21
21
  }
22
22
  export declare const UsableActionsWorldActions: UsableActionGenerator<[]>;
23
23
  export declare const UsableActionsWorldItemActions: UsableActionGenerator<[]>;
@@ -118,7 +118,7 @@ export interface IMessageManager {
118
118
  ifOnIsland(island: Island): this;
119
119
  send(message: Message | Translation, ...args: TranslationArg[]): boolean;
120
120
  sendPacked(pack: Partial<IPackedMessage>, ...extraSources: Source[]): boolean;
121
- pruneMessageHistory(): boolean;
121
+ pruneMessageHistory(isLocalPlayer: boolean): boolean;
122
122
  ifIs(human: Human): this;
123
123
  ifIsNot(human: Human): this;
124
124
  addToHistory(messageHistoryItem: IMessageHistoryItem): void;
@@ -31,13 +31,13 @@ export declare class MessageManagerNoOp implements IMessageManager {
31
31
  send(): boolean;
32
32
  sendPacked(): boolean;
33
33
  sentToAll(sentToAll?: boolean): this;
34
- pruneMessageHistory(): boolean;
34
+ pruneMessageHistory(isLocalPlayer: boolean): boolean;
35
35
  addToHistory(messageHistoryItem: IMessageHistoryItem): void;
36
36
  }
37
37
  export interface IMessageManagerOptions {
38
38
  shouldDisplayMessage(message: IMessage, id: number): boolean | undefined;
39
39
  onDisplayMessage(message: IMessage): void;
40
- getMessageStorageMax(): number;
40
+ getMessageStorageMax(isLocalPlayer: boolean): number;
41
41
  }
42
42
  export default class MessageManager implements IMessageManager {
43
43
  private readonly options;
@@ -71,7 +71,7 @@ export default class MessageManager implements IMessageManager {
71
71
  /**
72
72
  * Cuts the message history down to the correct bounds (preferring the more recent messages)
73
73
  */
74
- pruneMessageHistory(): boolean;
74
+ pruneMessageHistory(isLocalPlayer: boolean): boolean;
75
75
  /**
76
76
  * Clears the entire message history.
77
77
  */
@@ -141,7 +141,7 @@ export declare class SimpleInfoProvider extends InfoProvider {
141
141
  private childComponentClass;
142
142
  private validWhen?;
143
143
  constructor(...translations: Array<TranslationGenerator | InfoProvider>);
144
- get(): (import("../../language/ITranslation").ISerializedTranslation | import("../../language/impl/TranslationImpl").default | import("../../language/dictionary/UiTranslation").default | (() => import("../../language/ITranslation").ISerializedTranslation | import("../../language/impl/TranslationImpl").default | import("../../language/dictionary/UiTranslation").default | Iterable<import("../../utilities/string/Interpolator").IStringSection> | undefined) | InfoProvider)[];
144
+ get(): (import("../../language/ITranslation").ISerializedTranslation | import("../../language/impl/TranslationImpl").default | import("../../language/dictionary/UiTranslation").default | (() => import("../../language/ITranslation").ISerializedTranslation | import("../../language/impl/TranslationImpl").default | Iterable<import("../../utilities/string/Interpolator").IStringSection> | import("../../language/dictionary/UiTranslation").default | undefined) | InfoProvider)[];
145
145
  add(...translations: Array<TranslationGenerator | InfoProvider | Falsy>): this;
146
146
  onlyIfHasContents(): this | undefined;
147
147
  addInfoGetter(provider: () => InfoProvider | undefined): this;
@@ -18,7 +18,7 @@ export default class CreatureTamedInfoProvider extends InfoProvider {
18
18
  constructor(creature: Creature);
19
19
  getClass(): string[];
20
20
  hasContent(): boolean;
21
- get(): (LabelledValue | import("game/inspection/InfoProvider").SimpleInfoProvider)[];
21
+ get(): (import("game/inspection/InfoProvider").SimpleInfoProvider | LabelledValue)[];
22
22
  onTickEnd(): void;
23
23
  private getHappinessMessage;
24
24
  }
@@ -19,7 +19,7 @@ export default class ItemDetailsInfoProvider extends InfoProvider {
19
19
  private readonly description;
20
20
  constructor(item: Item | ItemType);
21
21
  getClass(): string[];
22
- get(): (0 | LabelledValue | import("game/inspection/InfoProvider").SimpleInfoProvider | ItemWorthInfoProvider)[];
22
+ get(): (0 | import("game/inspection/InfoProvider").SimpleInfoProvider | LabelledValue | ItemWorthInfoProvider)[];
23
23
  private getInsulation;
24
24
  private getPreservation;
25
25
  private getGroupings;
@@ -15,7 +15,7 @@ export default class AttackInfo extends InfoProvider {
15
15
  private readonly human?;
16
16
  constructor(human?: Human<number> | undefined);
17
17
  getClass(): string[];
18
- get(): (LabelledValue | import("game/inspection/InfoProvider").SimpleInfoProvider)[];
18
+ get(): (import("game/inspection/InfoProvider").SimpleInfoProvider | LabelledValue)[];
19
19
  private getTactics;
20
20
  private getMainHand;
21
21
  private getOffHand;
@@ -19,7 +19,7 @@ export default class CorpseInspection extends Inspection<Corpse> {
19
19
  static getFromTile(tile: Tile): CorpseInspection[];
20
20
  static handles(type: InspectType, corpse: unknown): boolean;
21
21
  constructor(corpse: Corpse);
22
- get(context: InfoProviderContext): (0 | LabelledValue | import("game/inspection/InfoProvider").SimpleInfoProvider)[];
22
+ get(context: InfoProviderContext): (0 | import("game/inspection/InfoProvider").SimpleInfoProvider | LabelledValue)[];
23
23
  private getDecay;
24
24
  private decay;
25
25
  private shouldRefreshDecay;
@@ -502,6 +502,10 @@ export interface IMagicalPropertyInfo {
502
502
  * Generates the random sub-property to use for this magical property, if this magical property is a magical property with subtypes.
503
503
  */
504
504
  subType?: MagicalSubPropertySubTypes | (() => MagicalSubPropertySubTypes);
505
+ /**
506
+ * Set to true if the value can be expanded beyond its normal maximum (in the case of relic items).
507
+ */
508
+ expandable?: boolean;
505
509
  }
506
510
  export interface IItemUsed {
507
511
  usedBy?: string[];
@@ -90,13 +90,11 @@ export interface IDoodadsUsed {
90
90
  group: DoodadType | DoodadTypeGroup;
91
91
  }
92
92
  export interface IAddToContainerOptions {
93
- movingMultiple?: boolean;
94
93
  skipMessage?: boolean;
95
94
  skipUpdateTables?: boolean;
96
95
  skipTileUpdate?: boolean;
97
96
  }
98
97
  export interface IPlaceOnTileOptions {
99
- movingMultiple?: boolean;
100
98
  force?: boolean;
101
99
  skipMessage?: boolean;
102
100
  skipTileUpdate?: boolean;
@@ -137,7 +137,7 @@ export default class ItemManager extends ObjectManager<Item, IItemManagerEvents>
137
137
  getDisassemblyComponents(description: IItemDescription, quality: Quality | undefined): Item[];
138
138
  getDisassemblyComponentsAsItemTypes(description: IItemDescription): Array<ItemType | ItemTypeGroup>;
139
139
  getWeightCapacity(container: IContainer, includeMagic?: boolean): number | undefined;
140
- create(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, container: IContainer | undefined, quality?: Quality, human?: Human, movingMultiple?: boolean, updateTables?: boolean): Item;
140
+ create(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, container: IContainer | undefined, quality?: Quality, human?: Human, updateTables?: boolean): Item;
141
141
  createFake(itemType: ItemType | ItemTypeGroup | Array<ItemType | ItemTypeGroup>, quality?: Quality, human?: Human): Item;
142
142
  getContainedContainers(container: IContainer): IContainer[];
143
143
  moveAllFromContainerToInventory(human: Human, container: IContainer, ofQuality?: Quality): Item[];
@@ -0,0 +1,16 @@
1
+ /*!
2
+ * Copyright 2011-2021 Unlok
3
+ * https://www.unlok.ca
4
+ *
5
+ * Credits & Thanks:
6
+ * https://www.unlok.ca/credits-thanks/
7
+ *
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
+ * https://github.com/WaywardGame/types/wiki
10
+ */
11
+ import type { IContainer } from "game/item/IItem";
12
+ import type Item from "game/item/Item";
13
+ export declare class WorldContainer implements IContainer {
14
+ readonly containedItems: Item[];
15
+ toString(): string;
16
+ }
@@ -33,7 +33,7 @@ export default class ReferenceManager {
33
33
  constructor(game: Game);
34
34
  create(): number;
35
35
  reset(): void;
36
- getList(type: ReferenceType, gameIsland?: Island): import("../entity/creature/corpse/CorpseManager").default | import("../entity/creature/CreatureManager").default | import("../doodad/DoodadManager").default | import("../item/ItemManager").default | import("../entity/npc/NPCManager").default | import("../tile/TileEventManager").default | Player[] | import("game/entity/IHuman").EquipType[] | readonly SkillType[] | readonly Milestone[] | readonly ItemType[] | IterableIterator<Island> | readonly Stat[] | (string | ActionType)[];
36
+ getList(type: ReferenceType, gameIsland?: Island): import("../entity/creature/corpse/CorpseManager").default | import("../entity/creature/CreatureManager").default | import("../doodad/DoodadManager").default | import("../item/ItemManager").default | import("../entity/npc/NPCManager").default | import("../tile/TileEventManager").default | Player[] | import("game/entity/IHuman").EquipType[] | readonly Milestone[] | readonly SkillType[] | IterableIterator<Island> | readonly Stat[] | readonly ItemType[] | (string | ActionType)[];
37
37
  get(thing: Item): Reference<ReferenceType.Item> | undefined;
38
38
  get(thing: Doodad): Reference<ReferenceType.Doodad> | undefined;
39
39
  get(thing: Creature): Reference<ReferenceType.Creature> | undefined;
@@ -206,7 +206,7 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
206
206
  * @returns TerrainType that we should switch the tile into.
207
207
  */
208
208
  private canSwitchCave;
209
- queueSoundEffect(type: SfxType, delay?: number, speed?: number, noPosition?: boolean, force?: boolean): void;
209
+ queueSoundEffect(type: SfxType, delay?: number, speed?: number): void;
210
210
  createParticles(particle: IRGB | undefined, count?: number, intensity?: number): void;
211
211
  /**
212
212
  * Finds either lava or water ajacent to either lava or water, and cools the lava down based its findings.