@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.
- package/definitions/game/game/doodad/Doodad.d.ts +4 -0
- package/definitions/game/game/entity/IEntity.d.ts +1 -0
- package/definitions/game/game/entity/creature/CreatureManager.d.ts +1 -1
- package/definitions/game/game/entity/flowfield/FlowFieldManager.d.ts +1 -1
- package/definitions/game/game/island/Island.d.ts +1 -1
- package/definitions/game/ui/input/Bindable.d.ts +64 -63
- package/package.json +1 -1
|
@@ -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()
|
|
@@ -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
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
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