@wayward/types 2.13.0-beta.dev.20230401.1 → 2.13.0-beta.dev.20230402.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 (25) hide show
  1. package/definitions/game/game/entity/EntityMovable.d.ts +2 -1
  2. package/definitions/game/game/entity/Human.d.ts +1 -1
  3. package/definitions/game/game/entity/IEntity.d.ts +11 -0
  4. package/definitions/game/game/entity/action/ActionsRegistration.d.ts +2 -2
  5. package/definitions/game/game/entity/action/actions/Build.d.ts +1 -1
  6. package/definitions/game/game/entity/action/actions/PlaceDown.d.ts +1 -1
  7. package/definitions/game/game/entity/action/actions/helper/TreasureGathering.d.ts +3 -3
  8. package/definitions/game/game/entity/player/IPlayer.d.ts +2 -1
  9. package/definitions/game/game/inspection/InspectionTypeMap.d.ts +2 -2
  10. package/definitions/game/game/island/Island.d.ts +0 -4
  11. package/definitions/game/language/Dictionary.d.ts +2 -2
  12. package/definitions/game/language/DictionaryMap.d.ts +4 -4
  13. package/definitions/game/language/dictionary/Message.d.ts +317 -316
  14. package/definitions/game/renderer/IRenderer.d.ts +53 -53
  15. package/definitions/game/renderer/particle/ParticleRenderer1.d.ts +2 -1
  16. package/definitions/game/renderer/particle/ParticleRenderer2.d.ts +2 -1
  17. package/definitions/game/renderer/spriteBatch/SpriteBatch1.d.ts +1 -0
  18. package/definitions/game/renderer/spriteBatch/SpriteBatch2.d.ts +1 -0
  19. package/definitions/game/renderer/spriteBatch/SpriteBatchBase.d.ts +1 -0
  20. package/definitions/game/renderer/tile/TileLayer.d.ts +4 -0
  21. package/definitions/game/renderer/world/IWorldLayerRenderer.d.ts +0 -1
  22. package/definitions/game/renderer/world/World.d.ts +1 -1
  23. package/definitions/game/ui/old/IOldUi.d.ts +2 -1
  24. package/definitions/game/ui/screen/screens/game/component/TileInspectionsList.d.ts +1 -1
  25. package/package.json +1 -1
@@ -12,6 +12,7 @@ import type { SfxType } from "audio/IAudio";
12
12
  import type { IEventEmitter } from "event/EventEmitter";
13
13
  import Entity from "game/entity/Entity";
14
14
  import type { IEntityConstructorOptions, IEntityEvents, IMoveToOptions } from "game/entity/IEntity";
15
+ import { MoveFlag } from "game/entity/IEntity";
15
16
  import { DamageType, MoveType } from "game/entity/IEntity";
16
17
  import { MovingClientSide } from "game/entity/IHuman";
17
18
  import type { IMovementTime } from "game/IGame";
@@ -34,7 +35,7 @@ export interface IEntityMovableEvents extends IEntityEvents {
34
35
  /**
35
36
  * Called after moving.
36
37
  */
37
- postMove(fromTile: Tile, toTile: Tile): void;
38
+ postMove(fromTile: Tile, toTile: Tile, flags: MoveFlag): void;
38
39
  }
39
40
  /**
40
41
  * Entity class that allows movement
@@ -249,7 +249,7 @@ export default abstract class Human<TypeType extends number = number> extends En
249
249
  unequip(item: Item, internal?: boolean, skipMessage?: boolean, skipRevertItem?: boolean): void;
250
250
  private updateOffHandState;
251
251
  unequipAll(): void;
252
- canJump(): boolean;
252
+ getJumpTile(): Tile | undefined;
253
253
  hasDelay(): boolean;
254
254
  addDelay(delay: number, replace?: boolean, addStaminaDelay?: boolean): void;
255
255
  /**
@@ -276,9 +276,20 @@ export interface IMoveToOptions {
276
276
  movementDelay?: Delay | number;
277
277
  animation?: MoveAnimation;
278
278
  onMoveCompletedParticles?: IRGB;
279
+ /**
280
+ * What caused the move?
281
+ */
282
+ flags?: MoveFlag;
279
283
  }
280
284
  export declare enum MoveAnimation {
281
285
  Normal = 0,
282
286
  Jump = 1
283
287
  }
288
+ export declare enum MoveFlag {
289
+ None = 0,
290
+ /**
291
+ * Skips damage due to movement
292
+ */
293
+ SkipEncumberedChecks = 1
294
+ }
284
295
  export {};
@@ -19,7 +19,7 @@ export declare const actionDescriptionsSlow: {
19
19
  75: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../Human").default<number>, void, import("./actions/ConsumeItem").IConsumeItemCanUse, [import("../../item/Item").default]>;
20
20
  78: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../Human").default<number>, void, import("game/entity/action/actions/AttachContainer").IAttachContainerCanUse, [import("../../item/Item").default]>;
21
21
  3: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemInventory, import("game/entity/action/IAction").ActionArgument.Undefined], [import("game/entity/action/IAction").ActionArgument.AttackType, import("game/entity/action/IAction").ActionArgument.Undefined], [import("game/entity/action/IAction").ActionArgument.ItemInventory, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Attack").IAttackCanUse, [(import("../../item/Item").default | undefined)?, (import("../IEntity").AttackType | undefined)?, (import("../../item/Item").default | undefined)?]>;
22
- 28: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.Vector3, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Build").IBuildCanUse, [import("../../item/Item").default, (import("../../../utilities/math/IVector").IVector3 | undefined)?]>;
22
+ 28: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.Tile, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Build").IBuildCanUse, [import("../../item/Item").default, (import("../../tile/Tile").default | undefined)?]>;
23
23
  5: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<number>, void, import("game/entity/action/actions/Butcher").IButcherCanUse, [import("../../item/Item").default]>;
24
24
  120: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<number>, void, import("game/entity/action/actions/CageCreature").ICageCreature, [import("../../item/Item").default]>;
25
25
  16: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<number>, void, import("game/entity/action/actions/Cast").ICastCanUse, [import("../../item/Item").default]>;
@@ -91,7 +91,7 @@ export declare const actionDescriptionsSlow: {
91
91
  54: import("./Action").Action<[], import("../Human").default<number>, void, import("game/entity/action/actions/PickUpAllItems").IPickUpAllItemsCanUse, []>;
92
92
  81: import("./Action").Action<[[import("game/entity/action/IAction").ActionArgument.ItemInventory, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/PickUpExcrement").IPickUpExcrementCanUse, [(import("../../item/Item").default | undefined)?]>;
93
93
  53: import("./Action").Action<[], import("../Human").default<number>, void, import("game/entity/action/IAction").IActionUsable, []>;
94
- 74: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.Vector3, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Build").IBuildCanUse, [import("../../item/Item").default, (import("../../../utilities/math/IVector").IVector3 | undefined)?]>;
94
+ 74: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby, [import("game/entity/action/IAction").ActionArgument.Tile, import("game/entity/action/IAction").ActionArgument.Undefined]], import("../Human").default<number>, void, import("game/entity/action/actions/Build").IBuildCanUse, [import("../../item/Item").default, (import("../../tile/Tile").default | undefined)?]>;
95
95
  25: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemInventory], import("../Human").default<number>, void, import("game/entity/action/actions/Plant").IPlantCanUse, [import("../../item/Item").default]>;
96
96
  24: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../Human").default<number>, void, import("game/entity/action/actions/Pour").IPourCanUse, [import("../../item/Item").default]>;
97
97
  41: import("./Action").Action<[import("game/entity/action/IAction").ActionArgument.ItemNearby], import("../Human").default<number>, void, import("game/entity/action/actions/PourOnYourself").IPourOnYourselfCanUse, [import("../../item/Item").default]>;
@@ -18,5 +18,5 @@ export interface IBuildCanUse extends IActionUsable {
18
18
  tile: Tile;
19
19
  buildInfo: IItemBuild;
20
20
  }
21
- declare const _default: Action<[ActionArgument.ItemNearby, [ActionArgument.Vector3, ActionArgument.Undefined]], import("../../Human").default<number>, void, IBuildCanUse, [import("../../../item/Item").default, (import("../../../../utilities/math/IVector").IVector3 | undefined)?]>;
21
+ declare const _default: Action<[ActionArgument.ItemNearby, [ActionArgument.Tile, ActionArgument.Undefined]], import("../../Human").default<number>, void, IBuildCanUse, [import("../../../item/Item").default, (Tile | undefined)?]>;
22
22
  export default _default;
@@ -8,5 +8,5 @@
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
- declare const _default: import("../Action").Action<[import("../IAction").ActionArgument.ItemNearby, [import("../IAction").ActionArgument.Vector3, import("../IAction").ActionArgument.Undefined]], import("../../Human").default<number>, void, import("game/entity/action/actions/Build").IBuildCanUse, [import("../../../item/Item").default, (import("../../../../utilities/math/IVector").IVector3 | undefined)?]>;
11
+ declare const _default: import("../Action").Action<[import("../IAction").ActionArgument.ItemNearby, [import("../IAction").ActionArgument.Tile, import("../IAction").ActionArgument.Undefined]], import("../../Human").default<number>, void, import("game/entity/action/actions/Build").IBuildCanUse, [import("../../../item/Item").default, (import("../../../tile/Tile").default | undefined)?]>;
12
12
  export default _default;
@@ -13,7 +13,7 @@ import type Human from "game/entity/Human";
13
13
  import type Item from "game/item/Item";
14
14
  import type DrawnMap from "game/mapping/DrawnMap";
15
15
  import type { ITreasure } from "game/mapping/DrawnMap";
16
- import type { IVector3 } from "utilities/math/IVector";
16
+ import type Tile from "game/tile/Tile";
17
17
  declare namespace TreasureGathering {
18
18
  interface IGatherable {
19
19
  map: DrawnMap;
@@ -21,7 +21,7 @@ declare namespace TreasureGathering {
21
21
  toolRange?: number;
22
22
  maxRange?: number;
23
23
  treasure: ITreasure;
24
- position: IVector3;
24
+ gatherPointTile: Tile;
25
25
  }
26
26
  enum GatherablesResult {
27
27
  Blocked = 0,
@@ -40,7 +40,7 @@ declare namespace TreasureGathering {
40
40
  }
41
41
  interface IGatherResult {
42
42
  result: Result;
43
- position?: IVector3;
43
+ tile?: Tile;
44
44
  treasure?: ITreasure;
45
45
  }
46
46
  function gather(action: IActionHandlerApi<Human>, itemRange: number, requireMap: boolean, tool?: Item, canGather?: ICanGather): IGatherResult;
@@ -117,7 +117,8 @@ export declare enum TurnTypeFlag {
117
117
  /**
118
118
  * Indicates the turn is passing due to a movement
119
119
  */
120
- Movement = 8
120
+ Movement = 8,
121
+ DontTickAnim = 16
121
122
  }
122
123
  export interface IAttackHand {
123
124
  mainHand: number;
@@ -29,7 +29,7 @@ import SkillInspection from "game/inspection/inspections/SkillInspection";
29
29
  import StatInspection from "game/inspection/inspections/StatInspection";
30
30
  import TileEventInspection from "game/inspection/inspections/TileEventInspection";
31
31
  import TileInspection from "game/inspection/inspections/TileInspection";
32
- import type { IVector3 } from "utilities/math/IVector";
32
+ import type Tile from "game/tile/Tile";
33
33
  declare const inspectionTypeMap: {
34
34
  12: typeof ActionInspection;
35
35
  14: typeof CorpseInspection;
@@ -56,7 +56,7 @@ declare const inspectionTypeMap: {
56
56
  };
57
57
  export type InspectionClass = Class<Inspection<any>> & {
58
58
  isWorldInspection?(inspectType: InspectType): boolean;
59
- getFromTile?(position: IVector3, context: InfoProviderContext, inspectType: InspectType): ArrayOr<Inspection<any>>;
59
+ getFromTile?(tile: Tile, context: InfoProviderContext, inspectType: InspectType): ArrayOr<Inspection<any>>;
60
60
  /**
61
61
  * Whether or not this inspection class can handle the given arguments.
62
62
  * @param args A list of arguments that an inspection can be provided
@@ -172,10 +172,6 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
172
172
  * @returns The default terrain type with a fallback to dirt (which shouldn't happen without mods or bugs).
173
173
  */
174
174
  getDefaultTerrainType(tile: Tile): TerrainType;
175
- /**
176
- * Ensures a point is valid and is not the edge of the map
177
- */
178
- ensureValidPoint<T extends IVector2>(point?: T): T | undefined;
179
175
  getDirectionFromMovement(x: number, y: number): Direction.East | Direction.North | Direction.West | Direction.South;
180
176
  getTileFromPoint(point: IVector3): Tile;
181
177
  getTile(x: number, y: number, z: number, disableLog?: boolean): Tile;
@@ -22,8 +22,8 @@ declare enum Dictionary {
22
22
  Challenge = 10,
23
23
  ChangelogChangeType = 11,
24
24
  CharacterSort = 12,
25
- CombatStrength = 13,
26
- CombatDangerLevel = 14,
25
+ CombatDangerLevel = 13,
26
+ CombatStrength = 14,
27
27
  Command = 15,
28
28
  Corpse = 16,
29
29
  CraftEfficacy = 17,
@@ -100,8 +100,8 @@ declare const dictionaryMap: {
100
100
  10: typeof Challenge;
101
101
  11: typeof ChangeType;
102
102
  12: typeof CharacterSort;
103
- 13: typeof CombatStrength;
104
- 14: typeof CombatDangerLevel;
103
+ 13: typeof CombatDangerLevel;
104
+ 14: typeof CombatStrength;
105
105
  15: typeof Command;
106
106
  16: typeof CreatureType;
107
107
  17: typeof CraftEfficacy;
@@ -209,8 +209,8 @@ export declare const strictDictionaries: {
209
209
  10: typeof Challenge;
210
210
  11: typeof ChangeType;
211
211
  12: typeof CharacterSort;
212
- 13: typeof CombatStrength;
213
- 14: typeof CombatDangerLevel;
212
+ 13: typeof CombatDangerLevel;
213
+ 14: typeof CombatStrength;
214
214
  15: typeof Command;
215
215
  16: typeof CreatureType;
216
216
  17: typeof CraftEfficacy;
@@ -79,90 +79,90 @@ declare enum Message {
79
79
  ActionSetCreatureAiCannotCommand = 67,
80
80
  ActionSetCreatureAiNotEnoughSkill = 68,
81
81
  ActionSetCreatureAiNotEnoughTames = 69,
82
- ActionTameCreatureTamed = 70,
83
- ActionTameNoCreature = 71,
84
- ActionTestDepthNothingToTest = 72,
85
- ActionTestDepthWell = 73,
86
- ActionToggleContainerNoContainer = 74,
87
- ActionToggleDoorNoDoor = 75,
88
- ActionToggleHitchAlreadyHitched = 76,
89
- ActionToggleHitchAlreadyUnhitched = 77,
90
- ActionToggleHitchNoCreature = 78,
91
- ActionToggleHitchNoHitch = 79,
92
- ActionToggleTilledAlreadyPacked = 80,
93
- ActionToggleTilledAlreadyTilled = 81,
94
- ActionUncageCannotUncageHere = 82,
95
- ActionUpgrade = 83,
96
- ActionUpgradeFailed = 84,
97
- ActionUpgradeNotMagical = 85,
98
- ActionUpgradeNotPossible = 86,
99
- ActionUpgradeUpgraded = 87,
100
- ActionUseItemWeaponNeeded = 88,
101
- ActionWith = 89,
102
- AddedFuelToFire = 90,
103
- AddedFuelToTorch = 91,
104
- AddToQuickslot = 92,
105
- AllEquipmentUnEquipped = 93,
106
- AlreadyDesalinatedWaterInStill = 94,
107
- AlreadyFullyRefined = 95,
108
- AlreadyFullyRepaired = 96,
109
- AlreadyPreserved = 97,
110
- Alter = 98,
111
- AnotherIsland = 99,
112
- AnUnknownItem = 100,
113
- AppearedNotEffectiveForGathering = 101,
114
- AppearsToBeAberrant = 102,
115
- ArmorAppeared = 103,
116
- ArmorProtectedFromInjuryAgainst = 104,
117
- Attack = 105,
118
- AttemptedToDropAllIntoFire = 106,
119
- AttemptedToPlaceAllOnGround = 107,
120
- AttemptToSoothBurnInWater = 108,
121
- AttemptToTill = 109,
122
- AutoActionsNoItem = 110,
123
- BadlyBurnedLostHealth = 111,
124
- BarteringSkillsProvided = 112,
125
- BasedOnItSeems = 113,
126
- BeenPoisoned = 114,
127
- BeginSleeping = 115,
128
- BeginUsingVehicle = 116,
129
- BestForCrafting = 117,
130
- BleedingHasStopped = 118,
131
- BleedingProfusely = 119,
132
- BleedingToDeathLostHealth = 120,
133
- BookBlank = 121,
134
- BookContains = 122,
135
- BookCrumbles = 123,
136
- BookDiagrams = 124,
137
- BookEmpty = 125,
138
- BookNothing = 126,
139
- BookOpen = 127,
140
- BookScribbles = 128,
141
- BothEffectiveIneffective = 129,
142
- BrokeIntoPieces = 130,
143
- BrokenOnImpact = 131,
144
- BrokenWhileFiring = 132,
145
- Build = 133,
146
- Burned = 134,
147
- CannotAddAnyMoreFuel = 135,
148
- CannotBeCrafted = 136,
149
- CannotBePerformedOverWater = 137,
150
- CannotBePlacedHere = 138,
151
- CannotBePreserved = 139,
152
- CannotBeRefined = 140,
153
- CannotBeRefinedReinforcementNeeded = 141,
154
- CannotBeReinforced = 142,
155
- CannotBeRepaired = 143,
156
- CannotBuildHere = 144,
157
- CannotDoThatHere = 145,
158
- CannotDropHere = 146,
159
- CannotEquipThatThere = 147,
160
- CannotFishFor = 148,
161
- CannotHere = 149,
162
- CannotInWater = 150,
163
- CannotLeave = 151,
164
- CannotNoTreasure = 152,
165
- ActionShipToIslandNoDestination = 153,
82
+ ActionShipToIslandNoDestination = 70,
83
+ ActionTameCreatureTamed = 71,
84
+ ActionTameNoCreature = 72,
85
+ ActionTestDepthNothingToTest = 73,
86
+ ActionTestDepthWell = 74,
87
+ ActionToggleContainerNoContainer = 75,
88
+ ActionToggleDoorNoDoor = 76,
89
+ ActionToggleHitchAlreadyHitched = 77,
90
+ ActionToggleHitchAlreadyUnhitched = 78,
91
+ ActionToggleHitchNoCreature = 79,
92
+ ActionToggleHitchNoHitch = 80,
93
+ ActionToggleTilledAlreadyPacked = 81,
94
+ ActionToggleTilledAlreadyTilled = 82,
95
+ ActionUncageCannotUncageHere = 83,
96
+ ActionUpgrade = 84,
97
+ ActionUpgradeFailed = 85,
98
+ ActionUpgradeNotMagical = 86,
99
+ ActionUpgradeNotPossible = 87,
100
+ ActionUpgradeUpgraded = 88,
101
+ ActionUseItemWeaponNeeded = 89,
102
+ ActionWith = 90,
103
+ AddedFuelToFire = 91,
104
+ AddedFuelToTorch = 92,
105
+ AddToQuickslot = 93,
106
+ AllEquipmentUnEquipped = 94,
107
+ AlreadyDesalinatedWaterInStill = 95,
108
+ AlreadyFullyRefined = 96,
109
+ AlreadyFullyRepaired = 97,
110
+ AlreadyPreserved = 98,
111
+ Alter = 99,
112
+ AnotherIsland = 100,
113
+ AnUnknownItem = 101,
114
+ AppearedNotEffectiveForGathering = 102,
115
+ AppearsToBeAberrant = 103,
116
+ ArmorAppeared = 104,
117
+ ArmorProtectedFromInjuryAgainst = 105,
118
+ Attack = 106,
119
+ AttemptedToDropAllIntoFire = 107,
120
+ AttemptedToPlaceAllOnGround = 108,
121
+ AttemptToSoothBurnInWater = 109,
122
+ AttemptToTill = 110,
123
+ AutoActionsNoItem = 111,
124
+ BadlyBurnedLostHealth = 112,
125
+ BarteringSkillsProvided = 113,
126
+ BasedOnItSeems = 114,
127
+ BeenPoisoned = 115,
128
+ BeginSleeping = 116,
129
+ BeginUsingVehicle = 117,
130
+ BestForCrafting = 118,
131
+ BleedingHasStopped = 119,
132
+ BleedingProfusely = 120,
133
+ BleedingToDeathLostHealth = 121,
134
+ BookBlank = 122,
135
+ BookContains = 123,
136
+ BookCrumbles = 124,
137
+ BookDiagrams = 125,
138
+ BookEmpty = 126,
139
+ BookNothing = 127,
140
+ BookOpen = 128,
141
+ BookScribbles = 129,
142
+ BothEffectiveIneffective = 130,
143
+ BrokeIntoPieces = 131,
144
+ BrokenOnImpact = 132,
145
+ BrokenWhileFiring = 133,
146
+ Build = 134,
147
+ Burned = 135,
148
+ CannotAddAnyMoreFuel = 136,
149
+ CannotBeCrafted = 137,
150
+ CannotBePerformedOverWater = 138,
151
+ CannotBePlacedHere = 139,
152
+ CannotBePreserved = 140,
153
+ CannotBeRefined = 141,
154
+ CannotBeRefinedReinforcementNeeded = 142,
155
+ CannotBeReinforced = 143,
156
+ CannotBeRepaired = 144,
157
+ CannotBuildHere = 145,
158
+ CannotDoThatHere = 146,
159
+ CannotDropHere = 147,
160
+ CannotEquipThatThere = 148,
161
+ CannotFishFor = 149,
162
+ CannotHere = 150,
163
+ CannotInWater = 151,
164
+ CannotLeave = 152,
165
+ CannotNoTreasure = 153,
166
166
  CannotPickUpLockedContainer = 154,
167
167
  CannotPickUpWhileLit = 155,
168
168
  CannotPlaceContainerInItself = 156,
@@ -181,8 +181,8 @@ declare enum Message {
181
181
  CannotToTellTime = 169,
182
182
  CannotUseCommand = 170,
183
183
  CannotWhenProtected = 171,
184
- CannotWhenProtectedDurability = 172,
185
- CannotWhenProtectedDangerousAction = 173,
184
+ CannotWhenProtectedDangerousAction = 172,
185
+ CannotWhenProtectedDurability = 173,
186
186
  CarryingTooMuchWeight = 174,
187
187
  CarvedUpCorpse = 175,
188
188
  Carving = 176,
@@ -743,235 +743,236 @@ declare enum Message {
743
743
  SortedByBestCraftingConsumables = 731,
744
744
  SortedByBestCraftingRequirements = 732,
745
745
  SortedByCategory = 733,
746
- SortedByDecay = 734,
747
- SortedByDurability = 735,
748
- SortedByGroup = 736,
749
- SortedByMagical = 737,
750
- SortedByName = 738,
751
- SortedByQuality = 739,
752
- SortedByRecent = 740,
753
- SortedBySkill = 741,
754
- SortedByUnlockedTime = 742,
755
- SortedByWeight = 743,
756
- SortedByWorth = 744,
757
- South = 745,
758
- Southeast = 746,
759
- SouthSoutheast = 747,
760
- SouthSouthwest = 748,
761
- Southwest = 749,
762
- StaminaIsFull = 750,
763
- StartedFire = 751,
764
- StartTravelInWater = 752,
765
- StarvingToDeath = 753,
766
- StatAmount = 754,
767
- StatGained = 755,
768
- StatIncreasing = 756,
769
- StatLost = 757,
770
- StatQuenched = 758,
771
- StatRegained = 759,
772
- StatSated = 760,
773
- SteppingOn = 761,
774
- StillHasNoWaterToPurify = 762,
775
- StirredUpClawWorm = 763,
776
- StirredUpCreature = 764,
777
- StoppedYourBleeding = 765,
778
- StopUsingVehicle = 766,
779
- Strength = 767,
780
- SummonedGuardiansByDiggingTreasure = 768,
781
- SummonedGuardiansByLockpicking = 769,
782
- SummonVoidDwellerItem = 770,
783
- SummonVoidDwellerRinging = 771,
784
- SummonVoidDwellerShiver = 772,
785
- SunNotBrightEnoughToStartFire = 773,
786
- SwampWater = 774,
787
- Swimming = 775,
788
- TakenFromGroundBecomeTamed = 776,
789
- Tame = 777,
790
- TamedCreature = 778,
791
- TeleportBlocked = 779,
792
- Teleported = 780,
793
- ThanksBuying = 781,
794
- ThanksSelling = 782,
795
- TheCreature = 783,
796
- TheirFist = 784,
797
- ThePlant = 785,
798
- ThereIsNoContainerOnTheStill = 786,
799
- ThereIsNoSunToStartFire = 787,
800
- ThisCannotBeMilked = 788,
801
- Throw = 789,
802
- ThrownIntoDepths = 790,
803
- ThrownIntoObstacle = 791,
804
- ThrownIntoVoid = 792,
805
- Tier = 793,
806
- TierGroup = 794,
807
- Till = 795,
808
- Tilling = 796,
809
- TillWithHands = 797,
810
- TimeIs = 798,
811
- TimeIsDawn = 799,
812
- TimeIsDaytime = 800,
813
- TimeIsDusk = 801,
814
- TimeIsNighttime = 802,
815
- TimeIsSunrise = 803,
816
- TimeIsSunset = 804,
817
- ToDamageAChest = 805,
818
- ToFight = 806,
819
- TooDamaged = 807,
820
- TooExhaustedToJump = 808,
821
- Touching = 809,
822
- TradeBarterCreditForItem = 810,
823
- TradeItemForBarterCredit = 811,
824
- TradingWith = 812,
825
- TrampledFire = 813,
826
- TrampledIntoGround = 814,
827
- TrampleIntoGround = 815,
828
- Trampling = 816,
829
- TransmogrificationNotPossible = 817,
830
- Transmogrified = 818,
831
- Transmogrify = 819,
832
- TrapMissed = 820,
833
- TrapStoppedYou = 821,
834
- Traveling = 822,
835
- TreasureIsBlocked = 823,
836
- UiActionCannotUseMissingSlottedItem = 824,
837
- UiActionCannotUseRequiresCreature = 825,
838
- UiActionCannotUseRequiresDoodad = 826,
839
- UiActionCannotUseRequiresItem = 827,
840
- UnEquip = 828,
841
- UnEquipAll = 829,
842
- Unhitch = 830,
843
- UnhitchCreature = 831,
844
- Unknown = 832,
845
- UnknownItem = 833,
846
- Unlimited = 834,
847
- UnlockedChest = 835,
848
- UnlockedTime = 836,
849
- UnpurifiedFreshWater = 837,
850
- UnpurifiedWaterInStill = 838,
851
- Use = 839,
852
- UsingBareHands = 840,
853
- VehicleDefense = 841,
854
- Vulnerable = 842,
855
- Water = 843,
856
- WaterGathering = 844,
857
- WaterPutOutFire = 845,
858
- Weight = 846,
859
- WellIsDry = 847,
860
- WellIsFull = 848,
861
- West = 849,
862
- WestNorthwest = 850,
863
- WestSouthwest = 851,
864
- WildGoatRefusedToBeMilked = 852,
865
- WillNotTrade = 853,
866
- WithYouSee = 854,
867
- WorkingYourselfIntoExhaustion = 855,
868
- WorkingYourselfIntoExhaustionAndDrowning = 856,
869
- Worth = 857,
870
- You = 858,
871
- YouAbsorb = 859,
872
- YouApplied = 860,
873
- YouAreAlready = 861,
874
- YouAte = 862,
875
- YouBeginResting = 863,
876
- YouCannotDoThatYet = 864,
877
- YouCanNowCombatTheTides = 865,
878
- YouCooledLava = 866,
879
- YouCrafted = 867,
880
- YouDied = 868,
881
- YouDoNotFindTreasureYet = 869,
882
- YouDrank = 870,
883
- YouDropTheTorch = 871,
884
- YouEnchant = 872,
885
- YouEquip = 873,
886
- YouExude = 874,
887
- YouExudeSome = 875,
888
- YouExudeSomeReasonConflicting = 876,
889
- YouExudeSomeReasonMax = 877,
890
- YouExudeSomeReasonProperties = 878,
891
- YouFailedTo = 879,
892
- YouFailedToExtinguishedFireFully = 880,
893
- YouFailedToHeal = 881,
894
- YouFailedToHealOther = 882,
895
- YouFire = 883,
896
- YouGathered = 884,
897
- YouGatheredAndDropped = 885,
898
- YouHarvested = 886,
899
- YouHarvestedAndDropped = 887,
900
- YouHave = 888,
901
- YouHaveAlreadyLearned = 889,
902
- YouHaveBeenCut = 890,
903
- YouHaveCommanded = 891,
904
- YouHaveDied = 892,
905
- YouHaveEnabledDisabled = 893,
906
- YouHaveHealedOther = 894,
907
- YouHaveKilled = 895,
908
- YouHaveReleased = 896,
909
- YouHaveSummoned = 897,
910
- YouHaveTamed = 898,
911
- YouHaveUncaged = 899,
912
- YouNeedMoreCredit = 900,
913
- YouNeedXToY = 901,
914
- YouNoticeBarren = 902,
915
- YouNoticeBecomeEnraged = 903,
916
- YouNoticeDying = 904,
917
- YouNoticeFertilityDecreasing = 905,
918
- YouNoticeFertilityIncreasing = 906,
919
- YouNoticeGrowing = 907,
920
- YouNoticeLavaCooling = 908,
921
- YouNoticeLavaHardening = 909,
922
- YouNoticePerish = 910,
923
- YouNoticePlantDamage = 911,
924
- YouNoticePlantRegenerated = 912,
925
- YouNoticeRegrowing = 913,
926
- YouNoticeStumbleInjureItself = 914,
927
- YouNoticeTakeFromGround = 915,
928
- YouNoticeWoundsClosing = 916,
929
- YouNoticeZombieHorde = 917,
930
- YouOfferedToCreature = 918,
931
- YouOfferedToCreatureRejects = 919,
932
- YouOpen = 920,
933
- YouOpenShip = 921,
934
- YouPacked = 922,
935
- YouPickedUp = 923,
936
- YouRefine = 924,
937
- YouReinforce = 925,
938
- YouRepair = 926,
939
- YouReturnFromCivilizationWith = 927,
940
- YourFist = 928,
941
- YourHands = 929,
942
- YourHighSkill = 930,
943
- YourInventory = 931,
944
- YourIsland = 932,
945
- YourLowSkill = 933,
946
- YourModerateSkill = 934,
947
- YourRubbingNoEffect = 935,
948
- YouRub = 936,
949
- YouSee = 937,
950
- YouSeeALivingMushroomSpore = 938,
951
- YouSeeAnAberrant = 939,
952
- YouSeeASkeletonCollapse = 940,
953
- YouSeeASlimeCombine = 941,
954
- YouSeeAZombieBleeding = 942,
955
- YouSeeCoolDown = 943,
956
- YouSeeDrop = 944,
957
- YouSeeEngulfFire = 945,
958
- YouSeeFireSpread = 946,
959
- YouSeeHelpingPlant = 947,
960
- YouSeeLay = 948,
961
- YouSeeLayingTrap = 949,
962
- YouSeeSpewLava = 950,
963
- YouSeeSpitAcid = 951,
964
- YouSeeSpringForth = 952,
965
- YouSeeSummon = 953,
966
- YouSeeSwampFlood = 954,
967
- YouSeeTrampling = 955,
968
- YouSetTheTrapOff = 956,
969
- YouStokeTheCreature = 957,
970
- YouSwapMainHandAndOffHand = 958,
971
- YouThrew = 959,
972
- YouTilled = 960,
973
- YouUnequip = 961,
974
- YouUsed = 962,
975
- YouWhileTraveling = 963
746
+ SortedByCraftableOnly = 734,
747
+ SortedByDecay = 735,
748
+ SortedByDurability = 736,
749
+ SortedByGroup = 737,
750
+ SortedByMagical = 738,
751
+ SortedByName = 739,
752
+ SortedByQuality = 740,
753
+ SortedByRecent = 741,
754
+ SortedBySkill = 742,
755
+ SortedByUnlockedTime = 743,
756
+ SortedByWeight = 744,
757
+ SortedByWorth = 745,
758
+ South = 746,
759
+ Southeast = 747,
760
+ SouthSoutheast = 748,
761
+ SouthSouthwest = 749,
762
+ Southwest = 750,
763
+ StaminaIsFull = 751,
764
+ StartedFire = 752,
765
+ StartTravelInWater = 753,
766
+ StarvingToDeath = 754,
767
+ StatAmount = 755,
768
+ StatGained = 756,
769
+ StatIncreasing = 757,
770
+ StatLost = 758,
771
+ StatQuenched = 759,
772
+ StatRegained = 760,
773
+ StatSated = 761,
774
+ SteppingOn = 762,
775
+ StillHasNoWaterToPurify = 763,
776
+ StirredUpClawWorm = 764,
777
+ StirredUpCreature = 765,
778
+ StoppedYourBleeding = 766,
779
+ StopUsingVehicle = 767,
780
+ Strength = 768,
781
+ SummonedGuardiansByDiggingTreasure = 769,
782
+ SummonedGuardiansByLockpicking = 770,
783
+ SummonVoidDwellerItem = 771,
784
+ SummonVoidDwellerRinging = 772,
785
+ SummonVoidDwellerShiver = 773,
786
+ SunNotBrightEnoughToStartFire = 774,
787
+ SwampWater = 775,
788
+ Swimming = 776,
789
+ TakenFromGroundBecomeTamed = 777,
790
+ Tame = 778,
791
+ TamedCreature = 779,
792
+ TeleportBlocked = 780,
793
+ Teleported = 781,
794
+ ThanksBuying = 782,
795
+ ThanksSelling = 783,
796
+ TheCreature = 784,
797
+ TheirFist = 785,
798
+ ThePlant = 786,
799
+ ThereIsNoContainerOnTheStill = 787,
800
+ ThereIsNoSunToStartFire = 788,
801
+ ThisCannotBeMilked = 789,
802
+ Throw = 790,
803
+ ThrownIntoDepths = 791,
804
+ ThrownIntoObstacle = 792,
805
+ ThrownIntoVoid = 793,
806
+ Tier = 794,
807
+ TierGroup = 795,
808
+ Till = 796,
809
+ Tilling = 797,
810
+ TillWithHands = 798,
811
+ TimeIs = 799,
812
+ TimeIsDawn = 800,
813
+ TimeIsDaytime = 801,
814
+ TimeIsDusk = 802,
815
+ TimeIsNighttime = 803,
816
+ TimeIsSunrise = 804,
817
+ TimeIsSunset = 805,
818
+ ToDamageAChest = 806,
819
+ ToFight = 807,
820
+ TooDamaged = 808,
821
+ TooExhaustedToJump = 809,
822
+ Touching = 810,
823
+ TradeBarterCreditForItem = 811,
824
+ TradeItemForBarterCredit = 812,
825
+ TradingWith = 813,
826
+ TrampledFire = 814,
827
+ TrampledIntoGround = 815,
828
+ TrampleIntoGround = 816,
829
+ Trampling = 817,
830
+ TransmogrificationNotPossible = 818,
831
+ Transmogrified = 819,
832
+ Transmogrify = 820,
833
+ TrapMissed = 821,
834
+ TrapStoppedYou = 822,
835
+ Traveling = 823,
836
+ TreasureIsBlocked = 824,
837
+ UiActionCannotUseMissingSlottedItem = 825,
838
+ UiActionCannotUseRequiresCreature = 826,
839
+ UiActionCannotUseRequiresDoodad = 827,
840
+ UiActionCannotUseRequiresItem = 828,
841
+ UnEquip = 829,
842
+ UnEquipAll = 830,
843
+ Unhitch = 831,
844
+ UnhitchCreature = 832,
845
+ Unknown = 833,
846
+ UnknownItem = 834,
847
+ Unlimited = 835,
848
+ UnlockedChest = 836,
849
+ UnlockedTime = 837,
850
+ UnpurifiedFreshWater = 838,
851
+ UnpurifiedWaterInStill = 839,
852
+ Use = 840,
853
+ UsingBareHands = 841,
854
+ VehicleDefense = 842,
855
+ Vulnerable = 843,
856
+ Water = 844,
857
+ WaterGathering = 845,
858
+ WaterPutOutFire = 846,
859
+ Weight = 847,
860
+ WellIsDry = 848,
861
+ WellIsFull = 849,
862
+ West = 850,
863
+ WestNorthwest = 851,
864
+ WestSouthwest = 852,
865
+ WildGoatRefusedToBeMilked = 853,
866
+ WillNotTrade = 854,
867
+ WithYouSee = 855,
868
+ WorkingYourselfIntoExhaustion = 856,
869
+ WorkingYourselfIntoExhaustionAndDrowning = 857,
870
+ Worth = 858,
871
+ You = 859,
872
+ YouAbsorb = 860,
873
+ YouApplied = 861,
874
+ YouAreAlready = 862,
875
+ YouAte = 863,
876
+ YouBeginResting = 864,
877
+ YouCannotDoThatYet = 865,
878
+ YouCanNowCombatTheTides = 866,
879
+ YouCooledLava = 867,
880
+ YouCrafted = 868,
881
+ YouDied = 869,
882
+ YouDoNotFindTreasureYet = 870,
883
+ YouDrank = 871,
884
+ YouDropTheTorch = 872,
885
+ YouEnchant = 873,
886
+ YouEquip = 874,
887
+ YouExude = 875,
888
+ YouExudeSome = 876,
889
+ YouExudeSomeReasonConflicting = 877,
890
+ YouExudeSomeReasonMax = 878,
891
+ YouExudeSomeReasonProperties = 879,
892
+ YouFailedTo = 880,
893
+ YouFailedToExtinguishedFireFully = 881,
894
+ YouFailedToHeal = 882,
895
+ YouFailedToHealOther = 883,
896
+ YouFire = 884,
897
+ YouGathered = 885,
898
+ YouGatheredAndDropped = 886,
899
+ YouHarvested = 887,
900
+ YouHarvestedAndDropped = 888,
901
+ YouHave = 889,
902
+ YouHaveAlreadyLearned = 890,
903
+ YouHaveBeenCut = 891,
904
+ YouHaveCommanded = 892,
905
+ YouHaveDied = 893,
906
+ YouHaveEnabledDisabled = 894,
907
+ YouHaveHealedOther = 895,
908
+ YouHaveKilled = 896,
909
+ YouHaveReleased = 897,
910
+ YouHaveSummoned = 898,
911
+ YouHaveTamed = 899,
912
+ YouHaveUncaged = 900,
913
+ YouNeedMoreCredit = 901,
914
+ YouNeedXToY = 902,
915
+ YouNoticeBarren = 903,
916
+ YouNoticeBecomeEnraged = 904,
917
+ YouNoticeDying = 905,
918
+ YouNoticeFertilityDecreasing = 906,
919
+ YouNoticeFertilityIncreasing = 907,
920
+ YouNoticeGrowing = 908,
921
+ YouNoticeLavaCooling = 909,
922
+ YouNoticeLavaHardening = 910,
923
+ YouNoticePerish = 911,
924
+ YouNoticePlantDamage = 912,
925
+ YouNoticePlantRegenerated = 913,
926
+ YouNoticeRegrowing = 914,
927
+ YouNoticeStumbleInjureItself = 915,
928
+ YouNoticeTakeFromGround = 916,
929
+ YouNoticeWoundsClosing = 917,
930
+ YouNoticeZombieHorde = 918,
931
+ YouOfferedToCreature = 919,
932
+ YouOfferedToCreatureRejects = 920,
933
+ YouOpen = 921,
934
+ YouOpenShip = 922,
935
+ YouPacked = 923,
936
+ YouPickedUp = 924,
937
+ YouRefine = 925,
938
+ YouReinforce = 926,
939
+ YouRepair = 927,
940
+ YouReturnFromCivilizationWith = 928,
941
+ YourFist = 929,
942
+ YourHands = 930,
943
+ YourHighSkill = 931,
944
+ YourInventory = 932,
945
+ YourIsland = 933,
946
+ YourLowSkill = 934,
947
+ YourModerateSkill = 935,
948
+ YourRubbingNoEffect = 936,
949
+ YouRub = 937,
950
+ YouSee = 938,
951
+ YouSeeALivingMushroomSpore = 939,
952
+ YouSeeAnAberrant = 940,
953
+ YouSeeASkeletonCollapse = 941,
954
+ YouSeeASlimeCombine = 942,
955
+ YouSeeAZombieBleeding = 943,
956
+ YouSeeCoolDown = 944,
957
+ YouSeeDrop = 945,
958
+ YouSeeEngulfFire = 946,
959
+ YouSeeFireSpread = 947,
960
+ YouSeeHelpingPlant = 948,
961
+ YouSeeLay = 949,
962
+ YouSeeLayingTrap = 950,
963
+ YouSeeSpewLava = 951,
964
+ YouSeeSpitAcid = 952,
965
+ YouSeeSpringForth = 953,
966
+ YouSeeSummon = 954,
967
+ YouSeeSwampFlood = 955,
968
+ YouSeeTrampling = 956,
969
+ YouSetTheTrapOff = 957,
970
+ YouStokeTheCreature = 958,
971
+ YouSwapMainHandAndOffHand = 959,
972
+ YouThrew = 960,
973
+ YouTilled = 961,
974
+ YouUnequip = 962,
975
+ YouUsed = 963,
976
+ YouWhileTraveling = 964
976
977
  }
977
978
  export default Message;
@@ -72,59 +72,59 @@ export declare enum RenderSource {
72
72
  GamePassTurn = 10,
73
73
  GameResumed = 11,
74
74
  GameTick = 12,
75
- HiddenMob = 13,
76
- HumanRest = 14,
77
- HumanRestStart = 15,
78
- HumanRestStop = 16,
79
- HumanSetPosition = 17,
80
- HumanVehicle = 18,
81
- InspectOverlay = 19,
82
- IslandLoad = 20,
83
- IslandTravel = 21,
84
- ItemEquip = 22,
85
- ItemEquipEffect = 23,
86
- ItemMovement = 24,
87
- ItemUnequip = 25,
88
- Loop = 26,
89
- Mod = 27,
90
- MovementCreature = 28,
91
- MovementNPC = 29,
92
- MovementPlayer = 30,
93
- MovementPlayerPost = 31,
94
- MovementPlayerZPost = 32,
95
- MovementTileEvent = 33,
96
- MultiplayerDisconnect = 34,
97
- Notifier = 35,
98
- NotifierAddCreature = 36,
99
- NotifierAddItem = 37,
100
- NotifierAddNotifierIcon = 38,
101
- NotifierAddStat = 39,
102
- NotifierAddStatusType = 40,
103
- OptionEquipment = 41,
104
- OptionVisionMode = 42,
105
- OptionZoomLevel = 43,
106
- Particles = 44,
107
- ParticleSpawn = 45,
108
- PlayerAdd = 46,
109
- PlayerKill = 47,
110
- PlayerNoclip = 48,
111
- PlayerProcessMovement = 49,
112
- PlayerReady = 50,
113
- PlayerRemove = 51,
114
- PlayerRespawn = 52,
115
- PlayerWalkToTilePath = 53,
116
- PlayerWalkToTilePathOverburdened = 54,
117
- PlayerWalkToTilePathPreview = 55,
118
- PlayerWalkToTilePathReset = 56,
119
- RemoveBlood = 57,
120
- Resize = 58,
121
- SetupGl = 59,
122
- SpawnAnimationStart = 60,
123
- StartGame = 61,
124
- Steamworks = 62,
125
- Thumbnail = 63,
126
- WorldLayerRendererFlush = 64,
127
- GenericOverlay = 65
75
+ GenericOverlay = 13,
76
+ HiddenMob = 14,
77
+ HumanRest = 15,
78
+ HumanRestStart = 16,
79
+ HumanRestStop = 17,
80
+ HumanSetPosition = 18,
81
+ HumanVehicle = 19,
82
+ InspectOverlay = 20,
83
+ IslandLoad = 21,
84
+ IslandTravel = 22,
85
+ ItemEquip = 23,
86
+ ItemEquipEffect = 24,
87
+ ItemMovement = 25,
88
+ ItemUnequip = 26,
89
+ Loop = 27,
90
+ Mod = 28,
91
+ MovementCreature = 29,
92
+ MovementNPC = 30,
93
+ MovementPlayer = 31,
94
+ MovementPlayerPost = 32,
95
+ MovementPlayerZPost = 33,
96
+ MovementTileEvent = 34,
97
+ MultiplayerDisconnect = 35,
98
+ Notifier = 36,
99
+ NotifierAddCreature = 37,
100
+ NotifierAddItem = 38,
101
+ NotifierAddNotifierIcon = 39,
102
+ NotifierAddStat = 40,
103
+ NotifierAddStatusType = 41,
104
+ OptionEquipment = 42,
105
+ OptionVisionMode = 43,
106
+ OptionZoomLevel = 44,
107
+ Particles = 45,
108
+ ParticleSpawn = 46,
109
+ PlayerAdd = 47,
110
+ PlayerKill = 48,
111
+ PlayerNoclip = 49,
112
+ PlayerProcessMovement = 50,
113
+ PlayerReady = 51,
114
+ PlayerRemove = 52,
115
+ PlayerRespawn = 53,
116
+ PlayerWalkToTilePath = 54,
117
+ PlayerWalkToTilePathOverburdened = 55,
118
+ PlayerWalkToTilePathPreview = 56,
119
+ PlayerWalkToTilePathReset = 57,
120
+ RemoveBlood = 58,
121
+ Resize = 59,
122
+ SetupGl = 60,
123
+ SpawnAnimationStart = 61,
124
+ StartGame = 62,
125
+ Steamworks = 63,
126
+ Thumbnail = 64,
127
+ WorldLayerRendererFlush = 65
128
128
  }
129
129
  export declare function calculateAmbientLightLevel(origin: IFieldOfViewOrigin, z: number): number;
130
130
  export declare const ZOOM_LEVEL_MIN = 1;
@@ -9,10 +9,11 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import type RendererContext from "renderer/context/RendererContext";
12
+ import type { IParticleRenderer } from "renderer/particle/IParticleRenderer";
12
13
  /**
13
14
  * Particle renderer for webgl 1
14
15
  */
15
- export declare class ParticleRenderer1 {
16
+ export declare class ParticleRenderer1 implements IParticleRenderer {
16
17
  private readonly context;
17
18
  private readonly positionSizeData;
18
19
  private readonly colorData;
@@ -9,10 +9,11 @@
9
9
  * https://github.com/WaywardGame/types/wiki
10
10
  */
11
11
  import type RendererContext from "renderer/context/RendererContext";
12
+ import type { IParticleRenderer } from "renderer/particle/IParticleRenderer";
12
13
  /**
13
14
  * Particle renderer for webgl 2
14
15
  */
15
- export declare class ParticleRenderer2 {
16
+ export declare class ParticleRenderer2 implements IParticleRenderer {
16
17
  private readonly context;
17
18
  private readonly dataArray;
18
19
  private readonly colorArray;
@@ -14,5 +14,6 @@ import { SpriteBatchBase } from "renderer/spriteBatch/SpriteBatchBase";
14
14
  */
15
15
  export default class SpriteBatch1 extends SpriteBatchBase {
16
16
  setup(): void;
17
+ bindBuffers(): void;
17
18
  render(x: number, y: number, tileScale: number, viewportWidth: number, viewportHeight: number): void;
18
19
  }
@@ -18,5 +18,6 @@ export default class SpriteBatch2 extends SpriteBatchBase {
18
18
  constructor(context: RendererContext, capacity: number, depthOffset: number, yOffset: number, enableAlphaMultiplcation: boolean, enforceBeginAndEnd: boolean);
19
19
  setup(): void;
20
20
  delete(): void;
21
+ bindBuffers(): void;
21
22
  render(x: number, y: number, tileScale: number, viewportWidth: number, viewportHeight: number): void;
22
23
  }
@@ -39,6 +39,7 @@ export declare abstract class SpriteBatchBase implements ISpriteBatch {
39
39
  static initializePrograms(webGlContext: WebGlContext): Promise<void>;
40
40
  constructor(context: RendererContext, capacity: number, depthOffset: number, yOffset: number, enableAlphaMultiplcation: boolean, enforceBeginAndEnd: boolean);
41
41
  abstract setup(): void;
42
+ protected abstract bindBuffers(): void;
42
43
  abstract render(x: number, y: number, tileScale: number, viewportWidth: number, viewportHeight: number): void;
43
44
  delete(): void;
44
45
  begin(): void;
@@ -32,6 +32,10 @@ export default class TileLayer {
32
32
  static initializePrograms(webGlContext: WebGlContext): Promise<void>;
33
33
  private readonly texTileSprites;
34
34
  private readonly inverseTileSpriteTextureSize;
35
+ /**
36
+ * Allow overriding the tile layer ticks, used for animation frames
37
+ */
38
+ ticks?: number;
35
39
  readonly renderLayerFlag: RenderLayerFlag;
36
40
  private readonly tileShaderProgram;
37
41
  private readonly singleTileData;
@@ -12,7 +12,6 @@ import type RendererContext from "renderer/context/RendererContext";
12
12
  import type { RenderLayerFlag } from "renderer/world/IWorldRenderer";
13
13
  export declare const jitRenderingExtraRenderRange = 2;
14
14
  export declare const jitRenderingMaxTileUpdates = 4096;
15
- export declare const jitRenderingPerTileFlush = false;
16
15
  export interface IWorldLayerRendererEvents {
17
16
  /**
18
17
  * Called when rendering the world
@@ -34,7 +34,7 @@ export default class World extends EventEmitter.Host<IWorldEvents> implements IS
34
34
  load(): void;
35
35
  suspendLayerUpdates(): void;
36
36
  resumeLayerUpdates(): void;
37
- updateTile(tile: Tile, tileUpdateType: TileUpdateType, updateNeighbors?: boolean, flush?: boolean): void;
37
+ updateTile(tile: Tile, tileUpdateType: TileUpdateType, updateNeighbors?: boolean, flush?: boolean, skipFlowFieldUpdate?: boolean): void;
38
38
  updateTileLayer(tile: Tile, updateNeighbors?: boolean, flush?: boolean): void;
39
39
  startUpdateTileBatch(): void;
40
40
  endUpdateTileBatch(): void;
@@ -54,7 +54,8 @@ export declare enum SortType {
54
54
  DiscoveredTime = 9,
55
55
  Worth = 10,
56
56
  BestForCrafting = 11,
57
- Magical = 12
57
+ Magical = 12,
58
+ CraftableOnly = 13
58
59
  }
59
60
  export interface IContainerSortInfo {
60
61
  sortType: SortType;
@@ -15,7 +15,7 @@ import InspectionsList from "ui/screen/screens/game/component/InspectionsList";
15
15
  export default class TileInspectionsList extends InspectionsList<TilePositionInspection> {
16
16
  private tile?;
17
17
  getTile(): Tile | undefined;
18
- setTile(tile: Tile): this;
18
+ setTile(tile: Tile | undefined): this;
19
19
  isValid(): boolean;
20
20
  protected getInvalidTranslation(): UiTranslation;
21
21
  protected initializeInspections(): TilePositionInspection;
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.0-beta.dev.20230401.1",
4
+ "version": "2.13.0-beta.dev.20230402.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",