@wayward/types 2.14.0-beta.dev.20240429.1 → 2.14.0-beta.dev.20240501.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.
@@ -121,6 +121,10 @@ export default class Doodad extends EntityMovable<IDoodadDescription, DoodadType
121
121
  stillContainer?: Item;
122
122
  tradedFrom?: string[];
123
123
  weight?: number;
124
+ /**
125
+ * Used to store protection status for built doodads
126
+ */
127
+ protected?: boolean;
124
128
  private _tileId?;
125
129
  /**
126
130
  * Separate property just for wells because isInGroup is still expensive for processWell()
@@ -230,6 +230,7 @@ export declare enum MoveType {
230
230
  WetLand = 256,
231
231
  Void = 512,
232
232
  LandBlind = 1024,// Will not attempt to move towards targets on land
233
+ Hole = 2048,
233
234
  Flying = 15
234
235
  }
235
236
  export declare enum AttackType {
@@ -78,7 +78,7 @@ export default class CreatureManager extends EntityManager<Creature, {
78
78
  * @param willMove Set to true if the object is about to move to this tile. This method will confirm if there's an existing npc/creature there and return false if so
79
79
  * @return Blocked penalty - Do no return 0!
80
80
  */
81
- getMovePenalty(moveType: MoveType, tile: Tile, willMove: boolean, options?: Partial<ICreatureCheckMoveOptions>): number;
81
+ getMovePenalty(moveType: MoveType, tile: Tile, willMove: boolean, options?: Partial<ICreatureCheckMoveOptions>, creature?: Creature): number;
82
82
  /**
83
83
  * wasm calls this when calculating penalties for flow fields
84
84
  */
@@ -22,7 +22,7 @@ interface IFlowFieldHuman {
22
22
  export default class FlowFieldManager {
23
23
  private readonly island;
24
24
  private readonly size;
25
- flowFields: Map<"-1-0" | "-1-1" | "-1-2" | "-1-4" | "-1-8" | "-1-16" | "-1-32" | "-1-64" | "-1-128" | "-1-256" | "-1-512" | "-1-1024" | "-1-15" | "0-0" | "0-1" | "0-2" | "0-4" | "0-8" | "0-16" | "0-32" | "0-64" | "0-128" | "0-256" | "0-512" | "0-1024" | "0-15" | "1-0" | "1-1" | "1-2" | "1-4" | "1-8" | "1-16" | "1-32" | "1-64" | "1-128" | "1-256" | "1-512" | "1-1024" | "1-15", FlowField>;
25
+ flowFields: Map<"-1-0" | "-1-1" | "-1-2" | "-1-4" | "-1-8" | "-1-16" | "-1-32" | "-1-64" | "-1-128" | "-1-256" | "-1-512" | "-1-1024" | "-1-2048" | "-1-15" | "0-0" | "0-1" | "0-2" | "0-4" | "0-8" | "0-16" | "0-32" | "0-64" | "0-128" | "0-256" | "0-512" | "0-1024" | "0-2048" | "0-15" | "1-0" | "1-1" | "1-2" | "1-4" | "1-8" | "1-16" | "1-32" | "1-64" | "1-128" | "1-256" | "1-512" | "1-1024" | "1-2048" | "1-15", FlowField>;
26
26
  humans: IFlowFieldHuman[];
27
27
  private _flowFieldHumans;
28
28
  constructor(island: Island, size: number);
@@ -120,7 +120,7 @@ export default class Island extends EventEmitter.Host<IIslandEvents> implements
120
120
  /**
121
121
  * Entity move types in fov on this island
122
122
  */
123
- readonly moveTypesInFov: Map<"-1-0" | "-1-1" | "-1-2" | "-1-4" | "-1-8" | "-1-16" | "-1-32" | "-1-64" | "-1-128" | "-1-256" | "-1-512" | "-1-1024" | "-1-15" | "0-0" | "0-1" | "0-2" | "0-4" | "0-8" | "0-16" | "0-32" | "0-64" | "0-128" | "0-256" | "0-512" | "0-1024" | "0-15" | "1-0" | "1-1" | "1-2" | "1-4" | "1-8" | "1-16" | "1-32" | "1-64" | "1-128" | "1-256" | "1-512" | "1-1024" | "1-15", Set<Human<number, import("@wayward/game/game/reference/IReferenceManager").ReferenceType.NPC | import("@wayward/game/game/reference/IReferenceManager").ReferenceType.Player>>>;
123
+ readonly moveTypesInFov: Map<"-1-0" | "-1-1" | "-1-2" | "-1-4" | "-1-8" | "-1-16" | "-1-32" | "-1-64" | "-1-128" | "-1-256" | "-1-512" | "-1-1024" | "-1-2048" | "-1-15" | "0-0" | "0-1" | "0-2" | "0-4" | "0-8" | "0-16" | "0-32" | "0-64" | "0-128" | "0-256" | "0-512" | "0-1024" | "0-2048" | "0-15" | "1-0" | "1-1" | "1-2" | "1-4" | "1-8" | "1-16" | "1-32" | "1-64" | "1-128" | "1-256" | "1-512" | "1-1024" | "1-2048" | "1-15", Set<Human<number, import("@wayward/game/game/reference/IReferenceManager").ReferenceType.NPC | import("@wayward/game/game/reference/IReferenceManager").ReferenceType.Player>>>;
124
124
  /**
125
125
  * Helps instruct when to tick when in simulated turn mode
126
126
  */
@@ -176,69 +176,70 @@ declare enum Bindable {
176
176
  GameActionEnhance = 157,
177
177
  GameActionAlter = 158,
178
178
  GameActionSummon = 159,
179
- GameActionExudeWithItem = 160,
180
- GameActionAbsorbWithItem = 161,
181
- GameActionIgniteWithItem = 162,
182
- GameActionAddFuelWithItem = 163,
183
- GameActionPreserveWithItem = 164,
184
- GameActionRefineWithItem = 165,
185
- GameActionAlterWithItem = 166,
186
- GameActionUpgradeWithItem = 167,
187
- GameActionTransmogrifyWithItem = 168,
188
- GameActionEnchantWithItem = 169,
189
- GameActionEnhanceWithItem = 170,
190
- GameActionReinforceWithItem = 171,
191
- GameActionRepairWithItem = 172,
192
- GameActionItemMove = 173,
193
- GameActionItemMoveAll = 174,
194
- GameActionItemMoveAllOfSameQuality = 175,
195
- GameActionItemMoveToInventory = 176,
196
- GameActionTradeBuyFromTrader = 177,
197
- GameActionTradeSellToTrader = 178,
198
- GameActionItemMoveToActiveContainer = 179,
199
- GameActionItemMoveToFacingContainer = 180,
200
- GameActionMoveContents = 181,
201
- GameActionOpenDoor = 182,
202
- GameActionCloseDoor = 183,
203
- DialogCloseAll = 184,
204
- DialogOptions = 185,
205
- DialogHelp = 186,
206
- DialogMilestones = 187,
207
- DialogNotes = 188,
208
- DialogMessages = 189,
209
- DialogMessagesChatFocus = 190,
210
- DialogInventory = 191,
211
- DialogCrafting = 192,
212
- DialogDismantle = 193,
213
- DialogEquipment = 194,
214
- DialogSkills = 195,
215
- DialogQuests = 196,
216
- DialogIslands = 197,
217
- MenuEnter = 198,
218
- MenuSubmit = 199,
219
- MenuNext = 200,
220
- MenuPrevious = 201,
221
- MenuUp = 202,
222
- MenuDown = 203,
223
- MenuLeft = 204,
224
- MenuRight = 205,
225
- MenuCancel = 206,
226
- MenuNextOption = 207,
227
- MenuMoreInformation = 208,
228
- MenuPreviousOption = 209,
229
- MenuContextMenu = 210,
230
- MenuSelect = 211,
231
- DeveloperToggleDeveloperMode = 212,
232
- DeveloperToggleDeveloperTools = 213,
233
- DeveloperReloadGame = 214,
234
- DeveloperReloadAndContinueGame = 215,
235
- DeveloperReloadStylesheets = 216,
236
- DeveloperReloadTextures = 217,
237
- GameActionReshape = 218,
238
- GameActionReshapeWithItem = 219,
239
- GameActionCreatureHeelAi = 220,
240
- GameActionOpenTileContainer = 221,
241
- GameActionCommandCreatureAll = 222
179
+ GameActionInvoke = 160,
180
+ GameActionExudeWithItem = 161,
181
+ GameActionAbsorbWithItem = 162,
182
+ GameActionIgniteWithItem = 163,
183
+ GameActionAddFuelWithItem = 164,
184
+ GameActionPreserveWithItem = 165,
185
+ GameActionRefineWithItem = 166,
186
+ GameActionAlterWithItem = 167,
187
+ GameActionUpgradeWithItem = 168,
188
+ GameActionTransmogrifyWithItem = 169,
189
+ GameActionEnchantWithItem = 170,
190
+ GameActionEnhanceWithItem = 171,
191
+ GameActionReinforceWithItem = 172,
192
+ GameActionRepairWithItem = 173,
193
+ GameActionItemMove = 174,
194
+ GameActionItemMoveAll = 175,
195
+ GameActionItemMoveAllOfSameQuality = 176,
196
+ GameActionItemMoveToInventory = 177,
197
+ GameActionTradeBuyFromTrader = 178,
198
+ GameActionTradeSellToTrader = 179,
199
+ GameActionItemMoveToActiveContainer = 180,
200
+ GameActionItemMoveToFacingContainer = 181,
201
+ GameActionMoveContents = 182,
202
+ GameActionOpenDoor = 183,
203
+ GameActionCloseDoor = 184,
204
+ DialogCloseAll = 185,
205
+ DialogOptions = 186,
206
+ DialogHelp = 187,
207
+ DialogMilestones = 188,
208
+ DialogNotes = 189,
209
+ DialogMessages = 190,
210
+ DialogMessagesChatFocus = 191,
211
+ DialogInventory = 192,
212
+ DialogCrafting = 193,
213
+ DialogDismantle = 194,
214
+ DialogEquipment = 195,
215
+ DialogSkills = 196,
216
+ DialogQuests = 197,
217
+ DialogIslands = 198,
218
+ MenuEnter = 199,
219
+ MenuSubmit = 200,
220
+ MenuNext = 201,
221
+ MenuPrevious = 202,
222
+ MenuUp = 203,
223
+ MenuDown = 204,
224
+ MenuLeft = 205,
225
+ MenuRight = 206,
226
+ MenuCancel = 207,
227
+ MenuNextOption = 208,
228
+ MenuMoreInformation = 209,
229
+ MenuPreviousOption = 210,
230
+ MenuContextMenu = 211,
231
+ MenuSelect = 212,
232
+ DeveloperToggleDeveloperMode = 213,
233
+ DeveloperToggleDeveloperTools = 214,
234
+ DeveloperReloadGame = 215,
235
+ DeveloperReloadAndContinueGame = 216,
236
+ DeveloperReloadStylesheets = 217,
237
+ DeveloperReloadTextures = 218,
238
+ GameActionReshape = 219,
239
+ GameActionReshapeWithItem = 220,
240
+ GameActionCreatureHeelAi = 221,
241
+ GameActionOpenTileContainer = 222,
242
+ GameActionCommandCreatureAll = 223
242
243
  }
243
244
  export default Bindable;
244
245
  export declare enum BindableType {
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.20240429.1",
4
+ "version": "2.14.0-beta.dev.20240501.1",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",