@wayward/types 2.14.0-beta.dev.20240904.1 → 2.14.0-beta.dev.20240905.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.
Files changed (34) hide show
  1. package/definitions/game/game/IObject.d.ts +1 -1
  2. package/definitions/game/game/doodad/DoodadManager.d.ts +1 -1
  3. package/definitions/game/game/entity/Entity.d.ts +1 -1
  4. package/definitions/game/game/entity/EntityWithStats.d.ts +1 -0
  5. package/definitions/game/game/entity/Human.d.ts +1 -0
  6. package/definitions/game/game/entity/ai/AI.d.ts +4 -2
  7. package/definitions/game/game/entity/creature/CreatureManager.d.ts +1 -1
  8. package/definitions/game/game/entity/creature/ICreature.d.ts +1 -1
  9. package/definitions/game/game/entity/creature/zone/CreatureZone.d.ts +1 -1
  10. package/definitions/game/game/entity/creature/zone/CreatureZoneManager.d.ts +1 -1
  11. package/definitions/game/game/entity/creature/zone/GuardianZones.d.ts +1 -1
  12. package/definitions/game/game/entity/creature/zone/ICreatureZone.d.ts +1 -1
  13. package/definitions/game/game/entity/flowfield/IFlowFieldManager.d.ts +1 -1
  14. package/definitions/game/game/item/ItemManager.d.ts +1 -1
  15. package/definitions/game/game/mapgen/IMapGen.d.ts +1 -1
  16. package/definitions/game/game/temperature/ITemperature.d.ts +1 -1
  17. package/definitions/game/game/temperature/TemperatureManager.d.ts +1 -1
  18. package/definitions/game/game/tile/Tile.d.ts +2 -1
  19. package/definitions/game/language/DictionaryMap.d.ts +1 -1
  20. package/definitions/game/language/english/game/WorldLayers.d.ts +1 -1
  21. package/definitions/game/mod/ModRegistry.d.ts +1 -1
  22. package/definitions/game/renderer/IRenderer.d.ts +59 -58
  23. package/definitions/game/renderer/world/World.d.ts +1 -1
  24. package/definitions/game/renderer/world/WorldLayer.d.ts +1 -1
  25. package/definitions/game/save/upgrade/versions/beta2.14.0/beta2.14.0-dev20240905.d.ts +2 -0
  26. package/definitions/game/ui/screen/screens/game/static/actions/ActionSlotConfigurationColumn.d.ts +3 -1
  27. package/definitions/game/utilities/math/IVector.d.ts +1 -1
  28. package/definitions/test/core/applicationManager.d.ts +3 -1
  29. package/definitions/test/interfaces.d.ts +22 -2
  30. package/definitions/test/suite/functionalTests/singleplayer/creature/PathThroughCaveEntrancesIfTamed.d.ts +2 -0
  31. package/definitions/test/util/Test.d.ts +2 -0
  32. package/definitions/test/util/template/templateEmpty32.d.ts +3 -0
  33. package/definitions/utilities/game/WorldZ.d.ts +2 -1
  34. package/package.json +2 -2
@@ -13,7 +13,7 @@ import type { SkillType } from "@wayward/game/game/entity/IHuman";
13
13
  import type { TerrainType } from "@wayward/game/game/tile/ITerrain";
14
14
  import type { ISerializedTranslation } from "@wayward/game/language/ITranslation";
15
15
  import type { IEventEmitter } from "@wayward/utilities/event/EventEmitter";
16
- import type { WorldZ } from "@wayward/utilities/game/WorldZ";
16
+ import type WorldZ from "@wayward/utilities/game/WorldZ";
17
17
  export interface IObject<T> {
18
18
  type: T;
19
19
  id: number;
@@ -20,7 +20,7 @@ import Tile from "@wayward/game/game/tile/Tile";
20
20
  import type { Article } from "@wayward/game/language/Translation";
21
21
  import Translation from "@wayward/game/language/Translation";
22
22
  import type { Events, IEventEmitter } from "@wayward/utilities/event/EventEmitter";
23
- import type { WorldZ } from "@wayward/utilities/game/WorldZ";
23
+ import type WorldZ from "@wayward/utilities/game/WorldZ";
24
24
  export interface IDoodadManagerEvents extends Events<EntityManager<Doodad>> {
25
25
  /**
26
26
  * Called when a doodad is about to be spawned
@@ -38,7 +38,7 @@ import type { INotificationLocation, ItemNotifierType, MarkerIconType, StatNotif
38
38
  import type { IVector3 } from "@wayward/game/utilities/math/IVector";
39
39
  import type { IVector4 } from "@wayward/game/utilities/math/Vector4";
40
40
  import EventEmitter from "@wayward/utilities/event/EventEmitter";
41
- import type { WorldZ } from "@wayward/utilities/game/WorldZ";
41
+ import type WorldZ from "@wayward/utilities/game/WorldZ";
42
42
  export default abstract class Entity<DescriptionType = unknown, TypeType extends number = number, EntityReferenceType extends EntityReferenceTypes = EntityReferenceTypes, TagType = unknown> extends EventEmitter.Host<IEntityEvents> implements IReferenceable, ITemperatureSource, INotificationLocation, IVector4, ICastable {
43
43
  abstract readonly entityType: EntityType;
44
44
  abstract readonly tileUpdateType: TileUpdateType;
@@ -27,6 +27,7 @@ export interface IEntityWithStatsEvents extends IEntityMovableEvents, IStatEvent
27
27
  * @param reason The reason for the change
28
28
  */
29
29
  statusChange(status: StatusType, level: number, reason: StatusChangeReason, oldLevel: number): void;
30
+ refreshStatuses(): any;
30
31
  }
31
32
  /**
32
33
  * Entity class that includes stats/status system.
@@ -118,6 +118,7 @@ export default abstract class Human<DescriptionType = unknown, TypeType extends
118
118
  lastReceivedRune?: Deity;
119
119
  lastGainedStat?: Stat;
120
120
  invocations?: PartialRecord<ItemType, number>;
121
+ lastUsedCaveEntrance?: IVector3;
121
122
  readonly movementIntent: IMovementIntent;
122
123
  walkToInProgress?: IWalkToPathInProgress;
123
124
  identifier: string;
@@ -72,7 +72,8 @@ export declare enum AiMaskType {
72
72
  Angered = 11,
73
73
  RecentlyAlerted = 12,
74
74
  WrongLayerForZone = 13,
75
- RecentlySwappedLayers = 14
75
+ RecentlySwappedLayers = 14,
76
+ CanSwapLayersIfTamed = 15
76
77
  }
77
78
  export declare enum AiMaskOrder {
78
79
  NeutralIfScaredDisabled = 0,
@@ -89,7 +90,8 @@ export declare enum AiMaskOrder {
89
90
  Angered = 11,
90
91
  RecentlyAlerted = 12,
91
92
  WrongLayerForZone = 13,
92
- RecentlySwappedLayers = 14
93
+ RecentlySwappedLayers = 14,
94
+ CanSwapLayersIfTamed = 15
93
95
  }
94
96
  export interface IAiMaskDescription {
95
97
  /**
@@ -51,7 +51,7 @@ export default class CreatureManager extends EntityManager<Creature, {
51
51
  * @param spawnTiles If set, this will overwrite the creature's description for which tiles it can spawn on
52
52
  * @param bypassCreatureLimit If set, the creature limit will be ignored and spawn the creature over the set limit
53
53
  */
54
- spawn(type: CreatureType, tile: Tile, bypass?: boolean, forceAberrant?: boolean, spawnTiles?: TileGroup, bypassCreatureLimit?: boolean): Creature | undefined;
54
+ spawn(type: CreatureType, tile: Tile, bypass?: boolean, forceAberrant?: boolean, spawnTiles?: TileGroup, bypassCreatureLimit?: boolean, bypassAll?: boolean): Creature | undefined;
55
55
  spawnFromZone(tile: Tile, bypassCreatureLimit?: boolean, checkTerrainType?: boolean): Creature | undefined;
56
56
  createFake(type: CreatureType, aberrant: boolean, tile?: Tile, id?: number): Creature;
57
57
  exists(creature: Creature): boolean;
@@ -34,7 +34,7 @@ import type TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
34
34
  import type { IModdable } from "@wayward/game/mod/ModRegistry";
35
35
  import type { StatNotificationType } from "@wayward/game/renderer/notifier/INotifier";
36
36
  import type { IRGB } from "@wayward/utilities/Color";
37
- import type { WorldZ } from "@wayward/utilities/game/WorldZ";
37
+ import type WorldZ from "@wayward/utilities/game/WorldZ";
38
38
  import type { IRange } from "@wayward/utilities/math/Range";
39
39
  export declare enum CreatureType {
40
40
  Slime = 0,
@@ -18,7 +18,7 @@ import type Island from "@wayward/game/game/island/Island";
18
18
  import type Tile from "@wayward/game/game/tile/Tile";
19
19
  import type { IVector3 } from "@wayward/game/utilities/math/IVector";
20
20
  import type Rectangle from "@wayward/game/utilities/math/shapes/Rectangle";
21
- import { WorldZ } from "@wayward/utilities/game/WorldZ";
21
+ import WorldZ from "@wayward/utilities/game/WorldZ";
22
22
  import type { Random } from "@wayward/utilities/random/Random";
23
23
  export declare const DEFAULT_ATTEMPTED_CREATURE_SPAWNS = 10;
24
24
  export declare class CreatureZone {
@@ -15,7 +15,7 @@ import type Human from "@wayward/game/game/entity/Human";
15
15
  import type Island from "@wayward/game/game/island/Island";
16
16
  import type { IVector2, IVector3 } from "@wayward/game/utilities/math/IVector";
17
17
  import EventEmitter from "@wayward/utilities/event/EventEmitter";
18
- import { WorldZ } from "@wayward/utilities/game/WorldZ";
18
+ import WorldZ from "@wayward/utilities/game/WorldZ";
19
19
  export interface ICreatureZoneManagerEvents {
20
20
  initialize(): any;
21
21
  load(): any;
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import { BiomeType } from "@wayward/game/game/biome/IBiome";
12
12
  import { CreatureType } from "@wayward/game/game/entity/creature/ICreature";
13
- import { WorldZ } from "@wayward/utilities/game/WorldZ";
13
+ import WorldZ from "@wayward/utilities/game/WorldZ";
14
14
  export type IBiomeGuardianZones = PartialRecord<`tier${number}`, IBiomeGuardianZoneTier>;
15
15
  export type IBiomeGuardianZoneTier = PartialRecord<WorldZ, CreatureType[]>;
16
16
  export declare const guardianZoneDescriptions: OptionalDescriptions<BiomeType, IBiomeGuardianZones>;
@@ -11,7 +11,7 @@
11
11
  import type { CreatureType } from "@wayward/game/game/entity/creature/ICreature";
12
12
  import type { PartOfDay } from "@wayward/game/game/time/ITimeManager";
13
13
  import type { IVector2, IVector3 } from "@wayward/game/utilities/math/IVector";
14
- import type { WorldZ } from "@wayward/utilities/game/WorldZ";
14
+ import type WorldZ from "@wayward/utilities/game/WorldZ";
15
15
  export declare namespace ZoneId {
16
16
  function make(x: number, y: number, axisCount: number): number;
17
17
  function resolve(id: number, axisCount: number): IVector2;
@@ -8,7 +8,7 @@
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 { WorldZ } from "@wayward/utilities/game/WorldZ";
11
+ import type WorldZ from "@wayward/utilities/game/WorldZ";
12
12
  import type { MoveType } from "@wayward/game/game/entity/IEntity";
13
13
  /**
14
14
  * This penalty equals the maximum tiles a creature will pathfind before giving up.
@@ -33,7 +33,7 @@ import type TranslationImpl from "@wayward/game/language/impl/TranslationImpl";
33
33
  import type { IRGB } from "@wayward/utilities/Color";
34
34
  import type { ISorter } from "@wayward/utilities/collection/sort/Sorter";
35
35
  import type { Events, IEventEmitter } from "@wayward/utilities/event/EventEmitter";
36
- import { WorldZ } from "@wayward/utilities/game/WorldZ";
36
+ import WorldZ from "@wayward/utilities/game/WorldZ";
37
37
  import type { Random } from "@wayward/utilities/random/Random";
38
38
  export interface IItemManagerEvents extends Events<EntityManager<Item>> {
39
39
  /**
@@ -16,7 +16,7 @@ import type { Load, MultiplayerLoadingDescription } from "@wayward/game/game/met
16
16
  import type { ITemplate, TileTemplateType } from "@wayward/game/game/tile/ITerrain";
17
17
  import type Version from "@wayward/game/utilities/Version";
18
18
  import type { IVector3 } from "@wayward/game/utilities/math/IVector";
19
- import type { WorldZ } from "@wayward/utilities/game/WorldZ";
19
+ import type WorldZ from "@wayward/utilities/game/WorldZ";
20
20
  import type { Random } from "@wayward/utilities/random/Random";
21
21
  export type MapGenVersions<T> = Descriptions<Version.String, T>;
22
22
  export interface IMapGenGenerateWorldOptions {
@@ -10,7 +10,7 @@
10
10
  */
11
11
  import type Island from "@wayward/game/game/island/Island";
12
12
  import type TimeManager from "@wayward/game/game/time/TimeManager";
13
- import type { WorldZ } from "@wayward/utilities/game/WorldZ";
13
+ import type WorldZ from "@wayward/utilities/game/WorldZ";
14
14
  import type { IRange } from "@wayward/utilities/math/Range";
15
15
  export declare enum Temperature {
16
16
  Coldest = -100,
@@ -9,7 +9,7 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import EventEmitter from "@wayward/utilities/event/EventEmitter";
12
- import { WorldZ } from "@wayward/utilities/game/WorldZ";
12
+ import WorldZ from "@wayward/utilities/game/WorldZ";
13
13
  import type Doodad from "@wayward/game/game/doodad/Doodad";
14
14
  import type { DoodadType } from "@wayward/game/game/doodad/IDoodad";
15
15
  import type EntityMovable from "@wayward/game/game/entity/EntityMovable";
@@ -40,7 +40,7 @@ import type { Direction } from "@wayward/game/utilities/math/Direction";
40
40
  import type { IVector2, IVector3 } from "@wayward/game/utilities/math/IVector";
41
41
  import type { IVector4 } from "@wayward/game/utilities/math/Vector4";
42
42
  import type { IRGB } from "@wayward/utilities/Color";
43
- import { WorldZ } from "@wayward/utilities/game/WorldZ";
43
+ import WorldZ from "@wayward/utilities/game/WorldZ";
44
44
  export interface ICanSailAwayResult {
45
45
  canSailAway: boolean;
46
46
  message?: Message;
@@ -463,6 +463,7 @@ export default class Tile implements IVector4, Partial<ITileContainer>, IFieldOf
463
463
  * Returns the penalty of the given tile (just how much we *don't* want to step there)
464
464
  */
465
465
  private getTilePenalty;
466
+ asType(type: TerrainType): Tile | undefined;
466
467
  get asCorpse(): undefined;
467
468
  get asCreature(): undefined;
468
469
  get asDoodad(): undefined;
@@ -94,7 +94,7 @@ import { Website } from "@wayward/game/ui/screen/screens/menu/menus/main/compone
94
94
  import { ModSort } from "@wayward/game/ui/screen/screens/menu/menus/mods/IModsMenu";
95
95
  import { Direction } from "@wayward/game/utilities/math/Direction";
96
96
  import { ChangeType } from "@wayward/game/utilities/trello/ITrello";
97
- import { WorldZ } from "@wayward/utilities/game/WorldZ";
97
+ import WorldZ from "@wayward/utilities/game/WorldZ";
98
98
  export type Enum = Record<string, number> & Record<number, string>;
99
99
  export declare const SYMBOL_ANY_DICTIONARY: unique symbol;
100
100
  declare const dictionaryMap: {
@@ -8,6 +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 { WorldZ } from "@wayward/utilities/game/WorldZ";
11
+ import WorldZ from "@wayward/utilities/game/WorldZ";
12
12
  declare const worldLayers: Map<WorldZ.Cave | WorldZ.Surface, string>;
13
13
  export default worldLayers;
@@ -69,7 +69,7 @@ import type { IMenuBarButtonDescription, MenuBarButtonType } from "@wayward/game
69
69
  import type { IStatDisplayDescription } from "@wayward/game/ui/screen/screens/game/static/stats/IStatDisplayDescription";
70
70
  import type { HelpArticle, IHelpArticle } from "@wayward/game/ui/screen/screens/menu/menus/help/IHelpArticle";
71
71
  import type { ModOptionSectionInitializer } from "@wayward/game/ui/screen/screens/menu/menus/options/TabMods";
72
- import type { WorldZ } from "@wayward/utilities/game/WorldZ";
72
+ import type WorldZ from "@wayward/utilities/game/WorldZ";
73
73
  export interface IModdable {
74
74
  /**
75
75
  * Do not provide or modify this value, only reference it. This is set by the modding system during the process of registration.
@@ -64,64 +64,65 @@ export declare enum RenderSource {
64
64
  AmbientLightLevelUpdate = 2,
65
65
  AttackAnimationStart = 3,
66
66
  Automation = 4,
67
- DoodadChangeType = 5,
68
- FadeIn = 6,
69
- FovTransition = 7,
70
- FovUpdate = 8,
71
- FovUpdateRadius = 9,
72
- GameAnimating = 10,
73
- GamePassTurn = 11,
74
- GameResumed = 12,
75
- GameTick = 13,
76
- GameTickPacket = 14,
77
- GenericOverlay = 15,
78
- HiddenMob = 16,
79
- HumanRest = 17,
80
- HumanRestStart = 18,
81
- HumanRestStop = 19,
82
- HumanSetPosition = 20,
83
- HumanVehicle = 21,
84
- InspectOverlay = 22,
85
- IslandLoad = 23,
86
- IslandTravel = 24,
87
- ItemEquip = 25,
88
- ItemEquipEffect = 26,
89
- ItemMovement = 27,
90
- ItemUnequip = 28,
91
- Mod = 29,
92
- MovementPlayerPost = 30,
93
- MovementPlayerZPost = 31,
94
- MultiplayerDisconnect = 32,
95
- Notifier = 33,
96
- NotifierAddCreature = 34,
97
- NotifierAddItem = 35,
98
- NotifierAddNotifierIcon = 36,
99
- NotifierAddStat = 37,
100
- NotifierAddStatusType = 38,
101
- OptionEquipment = 39,
102
- OptionVisionMode = 40,
103
- OptionZoomLevel = 41,
104
- Particles = 42,
105
- PlayerAdd = 43,
106
- PlayerKill = 44,
107
- PlayerNoclip = 45,
108
- PlayerProcessMovement = 46,
109
- PlayerReady = 47,
110
- PlayerRemove = 48,
111
- PlayerRespawn = 49,
112
- PlayerWalkToTilePath = 50,
113
- PlayerWalkToTilePathOverburdened = 51,
114
- PlayerWalkToTilePathPreview = 52,
115
- PlayerWalkToTilePathReset = 53,
116
- RendererReinitialize = 54,
117
- Resize = 55,
118
- Sacrifice = 56,
119
- SetupGl = 57,
120
- SpawnAnimationStart = 58,
121
- StartGame = 59,
122
- Steamworks = 60,
123
- Thumbnail = 61,
124
- WorldLayerRendererFlush = 62
67
+ ContainerBucketItemList = 5,
68
+ DoodadChangeType = 6,
69
+ FadeIn = 7,
70
+ FovTransition = 8,
71
+ FovUpdate = 9,
72
+ FovUpdateRadius = 10,
73
+ GameAnimating = 11,
74
+ GamePassTurn = 12,
75
+ GameResumed = 13,
76
+ GameTick = 14,
77
+ GameTickPacket = 15,
78
+ GenericOverlay = 16,
79
+ HiddenMob = 17,
80
+ HumanRest = 18,
81
+ HumanRestStart = 19,
82
+ HumanRestStop = 20,
83
+ HumanSetPosition = 21,
84
+ HumanVehicle = 22,
85
+ InspectOverlay = 23,
86
+ IslandLoad = 24,
87
+ IslandTravel = 25,
88
+ ItemEquip = 26,
89
+ ItemEquipEffect = 27,
90
+ ItemMovement = 28,
91
+ ItemUnequip = 29,
92
+ Mod = 30,
93
+ MovementPlayerPost = 31,
94
+ MovementPlayerZPost = 32,
95
+ MultiplayerDisconnect = 33,
96
+ Notifier = 34,
97
+ NotifierAddCreature = 35,
98
+ NotifierAddItem = 36,
99
+ NotifierAddNotifierIcon = 37,
100
+ NotifierAddStat = 38,
101
+ NotifierAddStatusType = 39,
102
+ OptionEquipment = 40,
103
+ OptionVisionMode = 41,
104
+ OptionZoomLevel = 42,
105
+ Particles = 43,
106
+ PlayerAdd = 44,
107
+ PlayerKill = 45,
108
+ PlayerNoclip = 46,
109
+ PlayerProcessMovement = 47,
110
+ PlayerReady = 48,
111
+ PlayerRemove = 49,
112
+ PlayerRespawn = 50,
113
+ PlayerWalkToTilePath = 51,
114
+ PlayerWalkToTilePathOverburdened = 52,
115
+ PlayerWalkToTilePathPreview = 53,
116
+ PlayerWalkToTilePathReset = 54,
117
+ RendererReinitialize = 55,
118
+ Resize = 56,
119
+ Sacrifice = 57,
120
+ SetupGl = 58,
121
+ SpawnAnimationStart = 59,
122
+ StartGame = 60,
123
+ Steamworks = 61,
124
+ Thumbnail = 62,
125
+ WorldLayerRendererFlush = 63
125
126
  }
126
127
  export declare function calculateAmbientLightLevel(origin: IFieldOfViewOrigin, z: number): number;
127
128
  export declare const ZOOM_LEVEL_MIN = 1;
@@ -12,7 +12,7 @@ import EventEmitter from "@wayward/utilities/event/EventEmitter";
12
12
  import { TileUpdateType } from "@wayward/game/game/IGame";
13
13
  import type Island from "@wayward/game/game/island/Island";
14
14
  import type Tile from "@wayward/game/game/tile/Tile";
15
- import { WorldZ } from "@wayward/utilities/game/WorldZ";
15
+ import WorldZ from "@wayward/utilities/game/WorldZ";
16
16
  import { WorldLayer } from "@wayward/game/renderer/world/WorldLayer";
17
17
  import { type ISerializable, type ISerializer } from "@wayward/game/save/serializer/ISerializer";
18
18
  export interface IWorldEvents {
@@ -12,7 +12,7 @@ import type { IColorGrid, IWorldLayerCPP } from "@wayward/cplusplus/index";
12
12
  import type Island from "@wayward/game/game/island/Island";
13
13
  import { TerrainType } from "@wayward/game/game/tile/ITerrain";
14
14
  import type Tile from "@wayward/game/game/tile/Tile";
15
- import { WorldZ } from "@wayward/utilities/game/WorldZ";
15
+ import WorldZ from "@wayward/utilities/game/WorldZ";
16
16
  import type { IByteGrid } from "@wayward/game/renderer/fieldOfView/IByteGrid";
17
17
  import type { ITileUpdate, onDoodadUpdateDelegate, onTileUpdateDelegate, TerrainData } from "@wayward/game/renderer/world/IWorldLayer";
18
18
  import { TerrainMask } from "@wayward/game/renderer/world/IWorldLayer";
@@ -0,0 +1,2 @@
1
+ declare const _default: import("@wayward/game/save/upgrade/UpgradeVersion").IUpgradeVersion;
2
+ export default _default;
@@ -12,6 +12,8 @@ import { Quality } from "@wayward/game/game/IObject";
12
12
  import type { IUsableActionPossibleUsing } from "@wayward/game/game/entity/action/usable/IUsableAction";
13
13
  import type UsableAction from "@wayward/game/game/entity/action/usable/UsableAction";
14
14
  import type Item from "@wayward/game/game/item/Item";
15
+ import { Milestone } from "@wayward/game/game/milestones/IMilestone";
16
+ import type { MilestoneManager } from "@wayward/game/game/milestones/MilestoneManager";
15
17
  import Button from "@wayward/game/ui/component/Button";
16
18
  import { CheckButton } from "@wayward/game/ui/component/CheckButton";
17
19
  import ChoiceList, { Choice } from "@wayward/game/ui/component/ChoiceList";
@@ -89,7 +91,7 @@ export default class ActionSlotConfigurationColumn extends Component {
89
91
  private refresh;
90
92
  private setMode;
91
93
  private ensureModeValidity;
92
- protected onUpdateMilestone(): void;
94
+ protected onUpdateMilestone(manager: MilestoneManager, milestone: Milestone): void;
93
95
  private onChangeItemType;
94
96
  private onChangeQualities;
95
97
  private onChangeItem;
@@ -8,7 +8,7 @@
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 { WorldZ } from "@wayward/utilities/game/WorldZ";
11
+ import type WorldZ from "@wayward/utilities/game/WorldZ";
12
12
  export interface IVector2 {
13
13
  x: number;
14
14
  y: number;
@@ -74,7 +74,9 @@ export declare class ApplicationManager {
74
74
  randomInput(count: number): Promise<void>;
75
75
  moveToTowardsIsland(app: Application, direction: Direction.Cardinal, recoverStats?: boolean): Promise<void>;
76
76
  recoverStats(app: Application): Promise<void>;
77
- moveAndVerifyTicks(app: Application, direction: Direction.Cardinal): Promise<void>;
77
+ idle(app: Application, steps?: number): Promise<void>;
78
+ moveInDirection(app: Application, direction: Direction.Cardinal, steps?: number): Promise<void>;
79
+ executeAndWaitForNextTick(app: Application, executor: () => Promise<void>): Promise<void>;
78
80
  waitForClientConsistency(): Promise<void>;
79
81
  createInteraction(application: Application): ApplicationInteraction;
80
82
  sailToCivilization(winnerApp: Application): Promise<void>;
@@ -10,11 +10,13 @@
10
10
  */
11
11
  import type { DoodadType, GrowingStage } from "@wayward/game/game/doodad/IDoodad";
12
12
  import type { ActionType } from "@wayward/game/game/entity/action/IAction";
13
+ import type { CreatureType } from "@wayward/game/game/entity/creature/ICreature";
13
14
  import type { Quality } from "@wayward/game/game/IObject";
14
15
  import type { INewIslandOverrides } from "@wayward/game/game/island/IIsland";
15
16
  import type { ContainerSort, ItemType } from "@wayward/game/game/item/IItem";
16
17
  import type { Milestone } from "@wayward/game/game/milestones/IMilestone";
17
18
  import type { GameMode } from "@wayward/game/game/options/IGameOptions";
19
+ import type { TerrainType } from "@wayward/game/game/tile/ITerrain";
18
20
  import type { IOptions } from "@wayward/game/save/data/ISaveDataGlobal";
19
21
  import type { SortDirection } from "@wayward/game/save/ISaveManager";
20
22
  import type { DialogId } from "@wayward/game/ui/screen/screens/game/Dialogs";
@@ -73,13 +75,30 @@ export interface ITestSetup {
73
75
  }>;
74
76
  };
75
77
  world?: {
78
+ tiles?: Array<{
79
+ type: TerrainType;
80
+ x?: number;
81
+ y?: number;
82
+ z?: number;
83
+ }>;
76
84
  doodads?: Array<{
77
85
  type: DoodadType;
78
86
  growingStage?: GrowingStage;
79
- x: number;
80
- y: number;
87
+ x?: number;
88
+ y?: number;
89
+ z?: number;
81
90
  inventory?: ITestSetupItemContainer;
82
91
  }>;
92
+ creatures?: Array<{
93
+ type: CreatureType;
94
+ x?: number;
95
+ y?: number;
96
+ z?: number;
97
+ tamed?: true;
98
+ /** Defaults to a massive number */
99
+ happiness?: number;
100
+ aberrant?: true;
101
+ }>;
83
102
  };
84
103
  player?: {
85
104
  position?: IVector3;
@@ -97,3 +116,4 @@ export interface ITestSetupItem {
97
116
  type: ItemType;
98
117
  quality?: Quality;
99
118
  }
119
+ export declare const APP_CONTEXT_KEY = "APP";
@@ -0,0 +1,2 @@
1
+ declare const _default: [string, import("../../../../testRunner").TestExecutor];
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import type { TestExecutor } from "@wayward/test/testRunner";
2
+ export default function (ensure: string, test: TestExecutor): [string, TestExecutor];
@@ -0,0 +1,3 @@
1
+ import type { INewIslandOverrides } from "@wayward/game/game/island/IIsland";
2
+ declare const templateEmpty32: INewIslandOverrides;
3
+ export default templateEmpty32;
@@ -8,9 +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
- export declare enum WorldZ {
11
+ declare enum WorldZ {
12
12
  Min = -1,
13
13
  Max = -1,
14
14
  Cave = 0,
15
15
  Surface = 1
16
16
  }
17
+ export default WorldZ;
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.20240904.1",
4
+ "version": "2.14.0-beta.dev.20240905.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -11,7 +11,7 @@
11
11
  "clean": "rimraf ./definitions ./*.tsbuildinfo"
12
12
  },
13
13
  "dependencies": {
14
- "@types/node": "20.16.3",
14
+ "@types/node": "20.16.5",
15
15
  "@wayward/goodstream": "0.10.0"
16
16
  },
17
17
  "devDependencies": {