isaacscript-common 28.6.0 → 28.7.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/dist/index.rollup.d.ts +213 -129
- package/dist/isaacscript-common.lua +259 -129
- package/dist/src/callbackClasses.d.ts +4 -0
- package/dist/src/callbackClasses.d.ts.map +1 -1
- package/dist/src/callbackClasses.lua +20 -0
- package/dist/src/callbacks.d.ts +131 -127
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +4 -0
- package/dist/src/classes/callbacks/PostBombInitFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostBombInitFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostBombInitFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostBombRenderFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostBombRenderFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostBombRenderFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostBombUpdateFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostBombUpdateFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostBombUpdateFilter.lua +23 -0
- package/dist/src/classes/callbacks/PreBombCollisionFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PreBombCollisionFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PreBombCollisionFilter.lua +21 -0
- package/dist/src/core/constants.d.ts +2 -2
- package/dist/src/core/constants.lua +2 -2
- package/dist/src/enums/ModCallbackCustom.d.ts +191 -127
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +135 -127
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +20 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/src/shouldFire.d.ts +1 -1
- package/dist/src/shouldFire.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/callbackClasses.ts +4 -0
- package/src/callbacks.ts +4 -0
- package/src/classes/callbacks/PostBombInitFilter.ts +22 -0
- package/src/classes/callbacks/PostBombRenderFilter.ts +22 -0
- package/src/classes/callbacks/PostBombUpdateFilter.ts +22 -0
- package/src/classes/callbacks/PreBombCollisionFilter.ts +24 -0
- package/src/core/constants.ts +2 -2
- package/src/enums/ModCallbackCustom.ts +68 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +28 -0
- package/src/shouldFire.ts +4 -1
|
@@ -133,6 +133,21 @@ export declare enum ModCallbackCustom {
|
|
|
133
133
|
* ```
|
|
134
134
|
*/
|
|
135
135
|
POST_BOMB_EXPLODED = 6,
|
|
136
|
+
/**
|
|
137
|
+
* The exact same thing as the vanilla `POST_BOMB_INIT` callback, except this callback allows you
|
|
138
|
+
* to specify extra arguments for additional filtration.
|
|
139
|
+
*
|
|
140
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
141
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
142
|
+
* matches the `BombVariant` provided.
|
|
143
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
144
|
+
* matches the sub-type provided.
|
|
145
|
+
*
|
|
146
|
+
* ```ts
|
|
147
|
+
* function postBombInitFilter(bomb: EntityBomb): void {}
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
POST_BOMB_INIT_FILTER = 7,
|
|
136
151
|
/**
|
|
137
152
|
* Fires on the first `POST_BOMB_UPDATE` frame for each bomb.
|
|
138
153
|
*
|
|
@@ -149,7 +164,37 @@ export declare enum ModCallbackCustom {
|
|
|
149
164
|
* function postBombInitLate(bomb: EntityBomb): void {}
|
|
150
165
|
* ```
|
|
151
166
|
*/
|
|
152
|
-
POST_BOMB_INIT_LATE =
|
|
167
|
+
POST_BOMB_INIT_LATE = 8,
|
|
168
|
+
/**
|
|
169
|
+
* The exact same thing as the vanilla `POST_BOMB_RENDER` callback, except this callback allows
|
|
170
|
+
* you to specify extra arguments for additional filtration.
|
|
171
|
+
*
|
|
172
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
173
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
174
|
+
* matches the `BombVariant` provided.
|
|
175
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
176
|
+
* matches the sub-type provided.
|
|
177
|
+
*
|
|
178
|
+
* ```ts
|
|
179
|
+
* function postBombRenderFilter(bomb: EntityBomb, renderOffset: Vector): void {}
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
POST_BOMB_RENDER_FILTER = 9,
|
|
183
|
+
/**
|
|
184
|
+
* The exact same thing as the vanilla `POST_BOMB_UPDATE` callback, except this callback allows
|
|
185
|
+
* you to specify extra arguments for additional filtration.
|
|
186
|
+
*
|
|
187
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
188
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
189
|
+
* matches the `BombVariant` provided.
|
|
190
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
191
|
+
* matches the sub-type provided.
|
|
192
|
+
*
|
|
193
|
+
* ```ts
|
|
194
|
+
* function postBombUpdateFilter(bomb: EntityBomb): void {}
|
|
195
|
+
* ```
|
|
196
|
+
*/
|
|
197
|
+
POST_BOMB_UPDATE_FILTER = 10,
|
|
153
198
|
/**
|
|
154
199
|
* Fires from the `POST_RENDER` callback when one of Forgotten's bone clubs is swung or thrown.
|
|
155
200
|
*
|
|
@@ -157,7 +202,7 @@ export declare enum ModCallbackCustom {
|
|
|
157
202
|
* function postBoneSwing(boneClub: EntityKnife): void {}
|
|
158
203
|
* ```
|
|
159
204
|
*/
|
|
160
|
-
POST_BONE_SWING =
|
|
205
|
+
POST_BONE_SWING = 11,
|
|
161
206
|
/**
|
|
162
207
|
* Fires from the `POST_PICKUP_UPDATE` callback when a collectible goes from a non-zero sub-type
|
|
163
208
|
* to `CollectibleType.NULL` (i.e. an "empty" pedestal).
|
|
@@ -173,7 +218,7 @@ export declare enum ModCallbackCustom {
|
|
|
173
218
|
* ): void {}
|
|
174
219
|
* ```
|
|
175
220
|
*/
|
|
176
|
-
POST_COLLECTIBLE_EMPTY =
|
|
221
|
+
POST_COLLECTIBLE_EMPTY = 12,
|
|
177
222
|
/**
|
|
178
223
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
179
224
|
* respective collectible on the run. For more details on how this is calculated, see the
|
|
@@ -191,7 +236,7 @@ export declare enum ModCallbackCustom {
|
|
|
191
236
|
* function postCollectibleInitLate(collectible: EntityPickupCollectible): void {}
|
|
192
237
|
* ```
|
|
193
238
|
*/
|
|
194
|
-
POST_COLLECTIBLE_INIT_FIRST =
|
|
239
|
+
POST_COLLECTIBLE_INIT_FIRST = 13,
|
|
195
240
|
/**
|
|
196
241
|
* Fires from the `POST_PLAYER_RENDER` callback on the first frame that the "TeleportUp" animation
|
|
197
242
|
* begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
|
|
@@ -207,7 +252,7 @@ export declare enum ModCallbackCustom {
|
|
|
207
252
|
* function postCursedTeleport(player: EntityPlayer): void {}
|
|
208
253
|
* ```
|
|
209
254
|
*/
|
|
210
|
-
POST_CURSED_TELEPORT =
|
|
255
|
+
POST_CURSED_TELEPORT = 14,
|
|
211
256
|
/**
|
|
212
257
|
* Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
|
|
213
258
|
* has teleported to the previous room, and is ready to play the animation for the modded revival
|
|
@@ -225,7 +270,7 @@ export declare enum ModCallbackCustom {
|
|
|
225
270
|
* function postCustomRevive(player: EntityPlayer, revivalType: int): void {}
|
|
226
271
|
* ```
|
|
227
272
|
*/
|
|
228
|
-
POST_CUSTOM_REVIVE =
|
|
273
|
+
POST_CUSTOM_REVIVE = 15,
|
|
229
274
|
/**
|
|
230
275
|
* Fires from the `EFFECT_POST_UPDATE` callback after a player has entered the range of a Dice
|
|
231
276
|
* Room floor.
|
|
@@ -241,7 +286,7 @@ export declare enum ModCallbackCustom {
|
|
|
241
286
|
* ): void {}
|
|
242
287
|
* ```
|
|
243
288
|
*/
|
|
244
|
-
POST_DICE_ROOM_ACTIVATED =
|
|
289
|
+
POST_DICE_ROOM_ACTIVATED = 16,
|
|
245
290
|
/**
|
|
246
291
|
* Fires from the `POST_RENDER` callback on every frame that a door exists.
|
|
247
292
|
*
|
|
@@ -253,7 +298,7 @@ export declare enum ModCallbackCustom {
|
|
|
253
298
|
* function postDoorRender(door: GridEntityDoor): void {}
|
|
254
299
|
* ```
|
|
255
300
|
*/
|
|
256
|
-
POST_DOOR_RENDER =
|
|
301
|
+
POST_DOOR_RENDER = 17,
|
|
257
302
|
/**
|
|
258
303
|
* Fires from the `POST_UPDATE` callback on every frame that a door exists.
|
|
259
304
|
*
|
|
@@ -265,7 +310,7 @@ export declare enum ModCallbackCustom {
|
|
|
265
310
|
* function postDoorUpdate(door: GridEntityDoor): void {}
|
|
266
311
|
* ```
|
|
267
312
|
*/
|
|
268
|
-
POST_DOOR_UPDATE =
|
|
313
|
+
POST_DOOR_UPDATE = 18,
|
|
269
314
|
/**
|
|
270
315
|
* The exact same thing as the vanilla `POST_EFFECT_INIT` callback, except this callback allows
|
|
271
316
|
* you to specify extra arguments for additional filtration.
|
|
@@ -280,7 +325,7 @@ export declare enum ModCallbackCustom {
|
|
|
280
325
|
* function postEffectInitFilter(effect: EntityEffect): void {}
|
|
281
326
|
* ```
|
|
282
327
|
*/
|
|
283
|
-
POST_EFFECT_INIT_FILTER =
|
|
328
|
+
POST_EFFECT_INIT_FILTER = 19,
|
|
284
329
|
/**
|
|
285
330
|
* Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
|
|
286
331
|
*
|
|
@@ -297,7 +342,7 @@ export declare enum ModCallbackCustom {
|
|
|
297
342
|
* function postEffectInitLate(effect: EntityEffect): void {}
|
|
298
343
|
* ```
|
|
299
344
|
*/
|
|
300
|
-
POST_EFFECT_INIT_LATE =
|
|
345
|
+
POST_EFFECT_INIT_LATE = 20,
|
|
301
346
|
/**
|
|
302
347
|
* The exact same thing as the vanilla `POST_EFFECT_RENDER` callback, except this callback allows
|
|
303
348
|
* you to specify extra arguments for additional filtration.
|
|
@@ -312,7 +357,7 @@ export declare enum ModCallbackCustom {
|
|
|
312
357
|
* function postEffectRenderFilter(effect: EntityEffect, renderOffset: Vector): void {}
|
|
313
358
|
* ```
|
|
314
359
|
*/
|
|
315
|
-
POST_EFFECT_RENDER_FILTER =
|
|
360
|
+
POST_EFFECT_RENDER_FILTER = 21,
|
|
316
361
|
/**
|
|
317
362
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
318
363
|
* was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
|
|
@@ -331,7 +376,7 @@ export declare enum ModCallbackCustom {
|
|
|
331
376
|
* ): void {}
|
|
332
377
|
* ```
|
|
333
378
|
*/
|
|
334
|
-
POST_EFFECT_STATE_CHANGED =
|
|
379
|
+
POST_EFFECT_STATE_CHANGED = 22,
|
|
335
380
|
/**
|
|
336
381
|
* The exact same thing as the vanilla `POST_EFFECT_UPDATE` callback, except this callback allows
|
|
337
382
|
* you to specify extra arguments for additional filtration.
|
|
@@ -346,7 +391,7 @@ export declare enum ModCallbackCustom {
|
|
|
346
391
|
* function postEffectUpdateFilter(effect: EntityEffect): void {}
|
|
347
392
|
* ```
|
|
348
393
|
*/
|
|
349
|
-
POST_EFFECT_UPDATE_FILTER =
|
|
394
|
+
POST_EFFECT_UPDATE_FILTER = 23,
|
|
350
395
|
/**
|
|
351
396
|
* The exact same thing as the vanilla `POST_ENTITY_KILL` callback, except this callback allows
|
|
352
397
|
* you to specify extra arguments for additional filtration.
|
|
@@ -363,7 +408,7 @@ export declare enum ModCallbackCustom {
|
|
|
363
408
|
* function postEntityKillFilter(entity: Entity): void {}
|
|
364
409
|
* ```
|
|
365
410
|
*/
|
|
366
|
-
POST_ENTITY_KILL_FILTER =
|
|
411
|
+
POST_ENTITY_KILL_FILTER = 24,
|
|
367
412
|
/**
|
|
368
413
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
369
414
|
* updated to the new character until a game frame has passed.)
|
|
@@ -372,7 +417,7 @@ export declare enum ModCallbackCustom {
|
|
|
372
417
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
373
418
|
* ```
|
|
374
419
|
*/
|
|
375
|
-
POST_ESAU_JR =
|
|
420
|
+
POST_ESAU_JR = 25,
|
|
376
421
|
/**
|
|
377
422
|
* The exact same thing as the vanilla `POST_FAMILIAR_INIT` callback, except this callback allows
|
|
378
423
|
* you to specify extra arguments for additional filtration.
|
|
@@ -387,7 +432,7 @@ export declare enum ModCallbackCustom {
|
|
|
387
432
|
* function postFamiliarInitFilter(familiar: EntityFamiliar): void {}
|
|
388
433
|
* ```
|
|
389
434
|
*/
|
|
390
|
-
POST_FAMILIAR_INIT_FILTER =
|
|
435
|
+
POST_FAMILIAR_INIT_FILTER = 26,
|
|
391
436
|
/**
|
|
392
437
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
393
438
|
*
|
|
@@ -404,7 +449,7 @@ export declare enum ModCallbackCustom {
|
|
|
404
449
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
405
450
|
* ```
|
|
406
451
|
*/
|
|
407
|
-
POST_FAMILIAR_INIT_LATE =
|
|
452
|
+
POST_FAMILIAR_INIT_LATE = 27,
|
|
408
453
|
/**
|
|
409
454
|
* The exact same thing as the vanilla `POST_FAMILIAR_RENDER` callback, except this callback
|
|
410
455
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -419,7 +464,7 @@ export declare enum ModCallbackCustom {
|
|
|
419
464
|
* function postFamiliarRenderFilter(familiar: EntityFamiliar, renderOffset: Vector): void {}
|
|
420
465
|
* ```
|
|
421
466
|
*/
|
|
422
|
-
POST_FAMILIAR_RENDER_FILTER =
|
|
467
|
+
POST_FAMILIAR_RENDER_FILTER = 28,
|
|
423
468
|
/**
|
|
424
469
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
425
470
|
* was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
|
|
@@ -439,7 +484,7 @@ export declare enum ModCallbackCustom {
|
|
|
439
484
|
* ): void {}
|
|
440
485
|
* ```
|
|
441
486
|
*/
|
|
442
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
487
|
+
POST_FAMILIAR_STATE_CHANGED = 29,
|
|
443
488
|
/**
|
|
444
489
|
* The exact same thing as the vanilla `POST_FAMILIAR_UPDATE` callback, except this callback
|
|
445
490
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -454,7 +499,7 @@ export declare enum ModCallbackCustom {
|
|
|
454
499
|
* function postFamiliarUpdateFilter(familiar: EntityFamiliar): void {}
|
|
455
500
|
* ```
|
|
456
501
|
*/
|
|
457
|
-
POST_FAMILIAR_UPDATE_FILTER =
|
|
502
|
+
POST_FAMILIAR_UPDATE_FILTER = 30,
|
|
458
503
|
/**
|
|
459
504
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
460
505
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -466,7 +511,7 @@ export declare enum ModCallbackCustom {
|
|
|
466
511
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
467
512
|
* ```
|
|
468
513
|
*/
|
|
469
|
-
POST_FIRST_ESAU_JR =
|
|
514
|
+
POST_FIRST_ESAU_JR = 31,
|
|
470
515
|
/**
|
|
471
516
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
472
517
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -479,7 +524,7 @@ export declare enum ModCallbackCustom {
|
|
|
479
524
|
* function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
480
525
|
* ```
|
|
481
526
|
*/
|
|
482
|
-
POST_FIRST_FLIP =
|
|
527
|
+
POST_FIRST_FLIP = 32,
|
|
483
528
|
/**
|
|
484
529
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
485
530
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -492,7 +537,7 @@ export declare enum ModCallbackCustom {
|
|
|
492
537
|
* function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
493
538
|
* ```
|
|
494
539
|
*/
|
|
495
|
-
POST_FLIP =
|
|
540
|
+
POST_FLIP = 33,
|
|
496
541
|
/**
|
|
497
542
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
498
543
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -511,7 +556,7 @@ export declare enum ModCallbackCustom {
|
|
|
511
556
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
512
557
|
* ```
|
|
513
558
|
*/
|
|
514
|
-
POST_GAME_STARTED_REORDERED =
|
|
559
|
+
POST_GAME_STARTED_REORDERED = 34,
|
|
515
560
|
/**
|
|
516
561
|
* Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
|
|
517
562
|
* callbacks have finished firing. Thus, you can use this callback to do perform things after a
|
|
@@ -530,7 +575,7 @@ export declare enum ModCallbackCustom {
|
|
|
530
575
|
* function postGameStartedReorderedLast(isContinued: boolean): void {}
|
|
531
576
|
* ```
|
|
532
577
|
*/
|
|
533
|
-
POST_GAME_STARTED_REORDERED_LAST =
|
|
578
|
+
POST_GAME_STARTED_REORDERED_LAST = 35,
|
|
534
579
|
/**
|
|
535
580
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
536
581
|
*
|
|
@@ -538,7 +583,7 @@ export declare enum ModCallbackCustom {
|
|
|
538
583
|
* function postGreedModeWave(oldWave: int, newWave: int): void {}
|
|
539
584
|
* ```
|
|
540
585
|
*/
|
|
541
|
-
POST_GREED_MODE_WAVE =
|
|
586
|
+
POST_GREED_MODE_WAVE = 36,
|
|
542
587
|
/**
|
|
543
588
|
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
544
589
|
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
@@ -557,7 +602,7 @@ export declare enum ModCallbackCustom {
|
|
|
557
602
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
558
603
|
* ```
|
|
559
604
|
*/
|
|
560
|
-
POST_GRID_ENTITY_BROKEN =
|
|
605
|
+
POST_GRID_ENTITY_BROKEN = 37,
|
|
561
606
|
/**
|
|
562
607
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
|
|
563
608
|
* this, the callback will not continue to fire. It will only fire again once the entity moves out
|
|
@@ -585,7 +630,7 @@ export declare enum ModCallbackCustom {
|
|
|
585
630
|
* ): void {}
|
|
586
631
|
* ```
|
|
587
632
|
*/
|
|
588
|
-
POST_GRID_ENTITY_COLLISION =
|
|
633
|
+
POST_GRID_ENTITY_COLLISION = 38,
|
|
589
634
|
/**
|
|
590
635
|
* The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
|
|
591
636
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -602,7 +647,7 @@ export declare enum ModCallbackCustom {
|
|
|
602
647
|
* ): void {}
|
|
603
648
|
* ```
|
|
604
649
|
*/
|
|
605
|
-
POST_GRID_ENTITY_CUSTOM_BROKEN =
|
|
650
|
+
POST_GRID_ENTITY_CUSTOM_BROKEN = 39,
|
|
606
651
|
/**
|
|
607
652
|
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
608
653
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -626,7 +671,7 @@ export declare enum ModCallbackCustom {
|
|
|
626
671
|
* ): void {}
|
|
627
672
|
* ```
|
|
628
673
|
*/
|
|
629
|
-
POST_GRID_ENTITY_CUSTOM_COLLISION =
|
|
674
|
+
POST_GRID_ENTITY_CUSTOM_COLLISION = 40,
|
|
630
675
|
/**
|
|
631
676
|
* The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
|
|
632
677
|
* the `spawnCustomGridEntity` helper function.
|
|
@@ -643,7 +688,7 @@ export declare enum ModCallbackCustom {
|
|
|
643
688
|
* ): void {}
|
|
644
689
|
* ```
|
|
645
690
|
*/
|
|
646
|
-
POST_GRID_ENTITY_CUSTOM_INIT =
|
|
691
|
+
POST_GRID_ENTITY_CUSTOM_INIT = 41,
|
|
647
692
|
/**
|
|
648
693
|
* The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
|
|
649
694
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -660,7 +705,7 @@ export declare enum ModCallbackCustom {
|
|
|
660
705
|
* ): void {}
|
|
661
706
|
* ```
|
|
662
707
|
*/
|
|
663
|
-
POST_GRID_ENTITY_CUSTOM_REMOVE =
|
|
708
|
+
POST_GRID_ENTITY_CUSTOM_REMOVE = 42,
|
|
664
709
|
/**
|
|
665
710
|
* The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
|
|
666
711
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -677,7 +722,7 @@ export declare enum ModCallbackCustom {
|
|
|
677
722
|
* ): void {}
|
|
678
723
|
* ```
|
|
679
724
|
*/
|
|
680
|
-
POST_GRID_ENTITY_CUSTOM_RENDER =
|
|
725
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 43,
|
|
681
726
|
/**
|
|
682
727
|
* The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
|
|
683
728
|
* created with the `spawnCustomGridEntity` helper function.
|
|
@@ -696,7 +741,7 @@ export declare enum ModCallbackCustom {
|
|
|
696
741
|
* ): void {}
|
|
697
742
|
* ```
|
|
698
743
|
*/
|
|
699
|
-
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED =
|
|
744
|
+
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 44,
|
|
700
745
|
/**
|
|
701
746
|
* The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
|
|
702
747
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -713,7 +758,7 @@ export declare enum ModCallbackCustom {
|
|
|
713
758
|
* ): void {}
|
|
714
759
|
* ```
|
|
715
760
|
*/
|
|
716
|
-
POST_GRID_ENTITY_CUSTOM_UPDATE =
|
|
761
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 45,
|
|
717
762
|
/**
|
|
718
763
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
719
764
|
*
|
|
@@ -735,7 +780,7 @@ export declare enum ModCallbackCustom {
|
|
|
735
780
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
736
781
|
* ```
|
|
737
782
|
*/
|
|
738
|
-
POST_GRID_ENTITY_INIT =
|
|
783
|
+
POST_GRID_ENTITY_INIT = 46,
|
|
739
784
|
/**
|
|
740
785
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
741
786
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -760,7 +805,7 @@ export declare enum ModCallbackCustom {
|
|
|
760
805
|
* ): void {}
|
|
761
806
|
* ```
|
|
762
807
|
*/
|
|
763
|
-
POST_GRID_ENTITY_REMOVE =
|
|
808
|
+
POST_GRID_ENTITY_REMOVE = 47,
|
|
764
809
|
/**
|
|
765
810
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
766
811
|
*
|
|
@@ -777,7 +822,7 @@ export declare enum ModCallbackCustom {
|
|
|
777
822
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
778
823
|
* ```
|
|
779
824
|
*/
|
|
780
|
-
POST_GRID_ENTITY_RENDER =
|
|
825
|
+
POST_GRID_ENTITY_RENDER = 48,
|
|
781
826
|
/**
|
|
782
827
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
783
828
|
* "state" refers to the `GridEntity.State` field.)
|
|
@@ -799,7 +844,7 @@ export declare enum ModCallbackCustom {
|
|
|
799
844
|
* ): void {}
|
|
800
845
|
* ```
|
|
801
846
|
*/
|
|
802
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
847
|
+
POST_GRID_ENTITY_STATE_CHANGED = 49,
|
|
803
848
|
/**
|
|
804
849
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
805
850
|
*
|
|
@@ -816,7 +861,7 @@ export declare enum ModCallbackCustom {
|
|
|
816
861
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
817
862
|
* ```
|
|
818
863
|
*/
|
|
819
|
-
POST_GRID_ENTITY_UPDATE =
|
|
864
|
+
POST_GRID_ENTITY_UPDATE = 50,
|
|
820
865
|
/**
|
|
821
866
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
|
|
822
867
|
* temporary collectible effect.
|
|
@@ -839,7 +884,7 @@ export declare enum ModCallbackCustom {
|
|
|
839
884
|
* ): void {}
|
|
840
885
|
* ```
|
|
841
886
|
*/
|
|
842
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
887
|
+
POST_HOLY_MANTLE_REMOVED = 51,
|
|
843
888
|
/**
|
|
844
889
|
* Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
|
|
845
890
|
* active collectible item, implying that the item was just used.
|
|
@@ -862,7 +907,7 @@ export declare enum ModCallbackCustom {
|
|
|
862
907
|
* ): void {}
|
|
863
908
|
* ```
|
|
864
909
|
*/
|
|
865
|
-
POST_ITEM_DISCHARGE =
|
|
910
|
+
POST_ITEM_DISCHARGE = 52,
|
|
866
911
|
/**
|
|
867
912
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
|
|
868
913
|
* when the animation of the player holding the item above their head is finished and the item is
|
|
@@ -883,7 +928,7 @@ export declare enum ModCallbackCustom {
|
|
|
883
928
|
* ): void {}
|
|
884
929
|
* ```
|
|
885
930
|
*/
|
|
886
|
-
POST_ITEM_PICKUP =
|
|
931
|
+
POST_ITEM_PICKUP = 53,
|
|
887
932
|
/**
|
|
888
933
|
* Fires on the first `POST_RENDER` frame after a key on the keyboard has been pressed or
|
|
889
934
|
* released. (In other words, the callback only fires when the "pressed" status is different than
|
|
@@ -899,7 +944,7 @@ export declare enum ModCallbackCustom {
|
|
|
899
944
|
* function postKeyboardChanged(keyboard: Keyboard, pressed: boolean): void {}
|
|
900
945
|
* ```
|
|
901
946
|
*/
|
|
902
|
-
POST_KEYBOARD_CHANGED =
|
|
947
|
+
POST_KEYBOARD_CHANGED = 54,
|
|
903
948
|
/**
|
|
904
949
|
* The exact same thing as the vanilla `POST_KNIFE_INIT` callback, except this callback allows you
|
|
905
950
|
* to specify extra arguments for additional filtration.
|
|
@@ -914,7 +959,7 @@ export declare enum ModCallbackCustom {
|
|
|
914
959
|
* function postKnifeInitFilter(knife: EntityKnife): void {}
|
|
915
960
|
* ```
|
|
916
961
|
*/
|
|
917
|
-
POST_KNIFE_INIT_FILTER =
|
|
962
|
+
POST_KNIFE_INIT_FILTER = 55,
|
|
918
963
|
/**
|
|
919
964
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
920
965
|
*
|
|
@@ -931,7 +976,7 @@ export declare enum ModCallbackCustom {
|
|
|
931
976
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
932
977
|
* ```
|
|
933
978
|
*/
|
|
934
|
-
POST_KNIFE_INIT_LATE =
|
|
979
|
+
POST_KNIFE_INIT_LATE = 56,
|
|
935
980
|
/**
|
|
936
981
|
* The exact same thing as the vanilla `POST_KNIFE_RENDER` callback, except this callback allows
|
|
937
982
|
* you to specify extra arguments for additional filtration.
|
|
@@ -946,7 +991,7 @@ export declare enum ModCallbackCustom {
|
|
|
946
991
|
* function postKnifeRenderFilter(knife: EntityKnife, renderOffset: Vector): void {}
|
|
947
992
|
* ```
|
|
948
993
|
*/
|
|
949
|
-
POST_KNIFE_RENDER_FILTER =
|
|
994
|
+
POST_KNIFE_RENDER_FILTER = 57,
|
|
950
995
|
/**
|
|
951
996
|
* The exact same thing as the vanilla `POST_KNIFE_UPDATE` callback, except this callback allows
|
|
952
997
|
* you to specify extra arguments for additional filtration.
|
|
@@ -961,7 +1006,7 @@ export declare enum ModCallbackCustom {
|
|
|
961
1006
|
* function postKnifeUpdateFilter(knife: EntityKnife): void {}
|
|
962
1007
|
* ```
|
|
963
1008
|
*/
|
|
964
|
-
POST_KNIFE_UPDATE_FILTER =
|
|
1009
|
+
POST_KNIFE_UPDATE_FILTER = 58,
|
|
965
1010
|
/**
|
|
966
1011
|
* The exact same thing as the vanilla `POST_LASER_INIT` callback, except this callback allows you
|
|
967
1012
|
* to specify extra arguments for additional filtration.
|
|
@@ -976,7 +1021,7 @@ export declare enum ModCallbackCustom {
|
|
|
976
1021
|
* function postLaserInitFilter(laser: EntityLaser): void {}
|
|
977
1022
|
* ```
|
|
978
1023
|
*/
|
|
979
|
-
POST_LASER_INIT_FILTER =
|
|
1024
|
+
POST_LASER_INIT_FILTER = 59,
|
|
980
1025
|
/**
|
|
981
1026
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
982
1027
|
*
|
|
@@ -993,7 +1038,7 @@ export declare enum ModCallbackCustom {
|
|
|
993
1038
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
994
1039
|
* ```
|
|
995
1040
|
*/
|
|
996
|
-
POST_LASER_INIT_LATE =
|
|
1041
|
+
POST_LASER_INIT_LATE = 60,
|
|
997
1042
|
/**
|
|
998
1043
|
* The exact same thing as the vanilla `POST_LASER_RENDER` callback, except this callback allows
|
|
999
1044
|
* you to specify extra arguments for additional filtration.
|
|
@@ -1008,7 +1053,7 @@ export declare enum ModCallbackCustom {
|
|
|
1008
1053
|
* function postLaserRenderFilter(laser: EntityLaser, renderOffset: Vector): void {}
|
|
1009
1054
|
* ```
|
|
1010
1055
|
*/
|
|
1011
|
-
POST_LASER_RENDER_FILTER =
|
|
1056
|
+
POST_LASER_RENDER_FILTER = 61,
|
|
1012
1057
|
/**
|
|
1013
1058
|
* The exact same thing as the vanilla `POST_LASER_UPDATE` callback, except this callback allows
|
|
1014
1059
|
* you to specify extra arguments for additional filtration.
|
|
@@ -1023,7 +1068,7 @@ export declare enum ModCallbackCustom {
|
|
|
1023
1068
|
* function postLaserUpdateFilter(laser: EntityLaser): void {}
|
|
1024
1069
|
* ```
|
|
1025
1070
|
*/
|
|
1026
|
-
POST_LASER_UPDATE_FILTER =
|
|
1071
|
+
POST_LASER_UPDATE_FILTER = 62,
|
|
1027
1072
|
/**
|
|
1028
1073
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
1029
1074
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -1049,7 +1094,7 @@ export declare enum ModCallbackCustom {
|
|
|
1049
1094
|
* function postNewLevelReordered(stage: LevelStage, stageType: StageType): void {}
|
|
1050
1095
|
* ```
|
|
1051
1096
|
*/
|
|
1052
|
-
POST_NEW_LEVEL_REORDERED =
|
|
1097
|
+
POST_NEW_LEVEL_REORDERED = 63,
|
|
1053
1098
|
/**
|
|
1054
1099
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
1055
1100
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -1066,7 +1111,7 @@ export declare enum ModCallbackCustom {
|
|
|
1066
1111
|
* function postNewRoomEarly(roomType: RoomType): void {}
|
|
1067
1112
|
* ```
|
|
1068
1113
|
*/
|
|
1069
|
-
POST_NEW_ROOM_EARLY =
|
|
1114
|
+
POST_NEW_ROOM_EARLY = 64,
|
|
1070
1115
|
/**
|
|
1071
1116
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
1072
1117
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -1089,7 +1134,7 @@ export declare enum ModCallbackCustom {
|
|
|
1089
1134
|
* function postNewRoomReordered(roomType: RoomType): void {}
|
|
1090
1135
|
* ```
|
|
1091
1136
|
*/
|
|
1092
|
-
POST_NEW_ROOM_REORDERED =
|
|
1137
|
+
POST_NEW_ROOM_REORDERED = 65,
|
|
1093
1138
|
/**
|
|
1094
1139
|
* The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
|
|
1095
1140
|
* to specify extra arguments for additional filtration.
|
|
@@ -1106,7 +1151,7 @@ export declare enum ModCallbackCustom {
|
|
|
1106
1151
|
* function postNPCDeathFilter(npc: EntityNPC): void {}
|
|
1107
1152
|
* ```
|
|
1108
1153
|
*/
|
|
1109
|
-
POST_NPC_DEATH_FILTER =
|
|
1154
|
+
POST_NPC_DEATH_FILTER = 66,
|
|
1110
1155
|
/**
|
|
1111
1156
|
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
1112
1157
|
* to specify extra arguments for additional filtration.
|
|
@@ -1123,7 +1168,7 @@ export declare enum ModCallbackCustom {
|
|
|
1123
1168
|
* function postNPCInitFilter(npc: EntityNPC): void {}
|
|
1124
1169
|
* ```
|
|
1125
1170
|
*/
|
|
1126
|
-
POST_NPC_INIT_FILTER =
|
|
1171
|
+
POST_NPC_INIT_FILTER = 67,
|
|
1127
1172
|
/**
|
|
1128
1173
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
1129
1174
|
*
|
|
@@ -1142,7 +1187,7 @@ export declare enum ModCallbackCustom {
|
|
|
1142
1187
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
1143
1188
|
* ```
|
|
1144
1189
|
*/
|
|
1145
|
-
POST_NPC_INIT_LATE =
|
|
1190
|
+
POST_NPC_INIT_LATE = 68,
|
|
1146
1191
|
/**
|
|
1147
1192
|
* The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
|
|
1148
1193
|
* to specify extra arguments for additional filtration.
|
|
@@ -1159,7 +1204,7 @@ export declare enum ModCallbackCustom {
|
|
|
1159
1204
|
* function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
|
|
1160
1205
|
* ```
|
|
1161
1206
|
*/
|
|
1162
|
-
POST_NPC_RENDER_FILTER =
|
|
1207
|
+
POST_NPC_RENDER_FILTER = 69,
|
|
1163
1208
|
/**
|
|
1164
1209
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
1165
1210
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -1180,7 +1225,7 @@ export declare enum ModCallbackCustom {
|
|
|
1180
1225
|
* ): void {}
|
|
1181
1226
|
* ```
|
|
1182
1227
|
*/
|
|
1183
|
-
POST_NPC_STATE_CHANGED =
|
|
1228
|
+
POST_NPC_STATE_CHANGED = 70,
|
|
1184
1229
|
/**
|
|
1185
1230
|
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
1186
1231
|
* to specify extra arguments for additional filtration.
|
|
@@ -1197,7 +1242,7 @@ export declare enum ModCallbackCustom {
|
|
|
1197
1242
|
* function postNPCUpdateFilter(npc: EntityNPC): void {}
|
|
1198
1243
|
* ```
|
|
1199
1244
|
*/
|
|
1200
|
-
POST_NPC_UPDATE_FILTER =
|
|
1245
|
+
POST_NPC_UPDATE_FILTER = 71,
|
|
1201
1246
|
/**
|
|
1202
1247
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
1203
1248
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -1222,7 +1267,7 @@ export declare enum ModCallbackCustom {
|
|
|
1222
1267
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
1223
1268
|
* ```
|
|
1224
1269
|
*/
|
|
1225
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
1270
|
+
POST_PEFFECT_UPDATE_REORDERED = 72,
|
|
1226
1271
|
/**
|
|
1227
1272
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup has a different variant or sub-type
|
|
1228
1273
|
* than what it was on the previous frame.
|
|
@@ -1243,7 +1288,7 @@ export declare enum ModCallbackCustom {
|
|
|
1243
1288
|
* ): void {}
|
|
1244
1289
|
* ```
|
|
1245
1290
|
*/
|
|
1246
|
-
POST_PICKUP_CHANGED =
|
|
1291
|
+
POST_PICKUP_CHANGED = 73,
|
|
1247
1292
|
/**
|
|
1248
1293
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
1249
1294
|
*
|
|
@@ -1262,7 +1307,7 @@ export declare enum ModCallbackCustom {
|
|
|
1262
1307
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
1263
1308
|
* ```
|
|
1264
1309
|
*/
|
|
1265
|
-
POST_PICKUP_COLLECT =
|
|
1310
|
+
POST_PICKUP_COLLECT = 74,
|
|
1266
1311
|
/**
|
|
1267
1312
|
* The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
|
|
1268
1313
|
* you to specify extra arguments for additional filtration.
|
|
@@ -1277,7 +1322,7 @@ export declare enum ModCallbackCustom {
|
|
|
1277
1322
|
* function postPickupInitFilter(pickup: EntityPickup): void {}
|
|
1278
1323
|
* ```
|
|
1279
1324
|
*/
|
|
1280
|
-
POST_PICKUP_INIT_FILTER =
|
|
1325
|
+
POST_PICKUP_INIT_FILTER = 75,
|
|
1281
1326
|
/**
|
|
1282
1327
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
1283
1328
|
* respective pickup on the run.
|
|
@@ -1295,7 +1340,7 @@ export declare enum ModCallbackCustom {
|
|
|
1295
1340
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
1296
1341
|
* ```
|
|
1297
1342
|
*/
|
|
1298
|
-
POST_PICKUP_INIT_FIRST =
|
|
1343
|
+
POST_PICKUP_INIT_FIRST = 76,
|
|
1299
1344
|
/**
|
|
1300
1345
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
1301
1346
|
*
|
|
@@ -1312,7 +1357,7 @@ export declare enum ModCallbackCustom {
|
|
|
1312
1357
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
1313
1358
|
* ```
|
|
1314
1359
|
*/
|
|
1315
|
-
POST_PICKUP_INIT_LATE =
|
|
1360
|
+
POST_PICKUP_INIT_LATE = 77,
|
|
1316
1361
|
/**
|
|
1317
1362
|
* The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
|
|
1318
1363
|
* you to specify extra arguments for additional filtration.
|
|
@@ -1327,7 +1372,7 @@ export declare enum ModCallbackCustom {
|
|
|
1327
1372
|
* function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
|
|
1328
1373
|
* ```
|
|
1329
1374
|
*/
|
|
1330
|
-
POST_PICKUP_RENDER_FILTER =
|
|
1375
|
+
POST_PICKUP_RENDER_FILTER = 78,
|
|
1331
1376
|
/**
|
|
1332
1377
|
* The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
|
|
1333
1378
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -1346,7 +1391,7 @@ export declare enum ModCallbackCustom {
|
|
|
1346
1391
|
* ): [PickupVariant, int] | undefined {}
|
|
1347
1392
|
* ```
|
|
1348
1393
|
*/
|
|
1349
|
-
POST_PICKUP_SELECTION_FILTER =
|
|
1394
|
+
POST_PICKUP_SELECTION_FILTER = 79,
|
|
1350
1395
|
/**
|
|
1351
1396
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
1352
1397
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -1365,7 +1410,7 @@ export declare enum ModCallbackCustom {
|
|
|
1365
1410
|
* ): void {}
|
|
1366
1411
|
* ```
|
|
1367
1412
|
*/
|
|
1368
|
-
POST_PICKUP_STATE_CHANGED =
|
|
1413
|
+
POST_PICKUP_STATE_CHANGED = 80,
|
|
1369
1414
|
/**
|
|
1370
1415
|
* The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
|
|
1371
1416
|
* you to specify extra arguments for additional filtration.
|
|
@@ -1380,7 +1425,7 @@ export declare enum ModCallbackCustom {
|
|
|
1380
1425
|
* function postPickupUpdateFilter(pickup: EntityPickup): void {}
|
|
1381
1426
|
* ```
|
|
1382
1427
|
*/
|
|
1383
|
-
POST_PICKUP_UPDATE_FILTER =
|
|
1428
|
+
POST_PICKUP_UPDATE_FILTER = 81,
|
|
1384
1429
|
/**
|
|
1385
1430
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
1386
1431
|
*
|
|
@@ -1392,7 +1437,7 @@ export declare enum ModCallbackCustom {
|
|
|
1392
1437
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
1393
1438
|
* ```
|
|
1394
1439
|
*/
|
|
1395
|
-
POST_PIT_RENDER =
|
|
1440
|
+
POST_PIT_RENDER = 82,
|
|
1396
1441
|
/**
|
|
1397
1442
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
1398
1443
|
*
|
|
@@ -1404,7 +1449,7 @@ export declare enum ModCallbackCustom {
|
|
|
1404
1449
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
1405
1450
|
* ```
|
|
1406
1451
|
*/
|
|
1407
|
-
POST_PIT_UPDATE =
|
|
1452
|
+
POST_PIT_UPDATE = 83,
|
|
1408
1453
|
/**
|
|
1409
1454
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
1410
1455
|
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
@@ -1426,7 +1471,7 @@ export declare enum ModCallbackCustom {
|
|
|
1426
1471
|
* ): void {}
|
|
1427
1472
|
* ```
|
|
1428
1473
|
*/
|
|
1429
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
1474
|
+
POST_PLAYER_CHANGE_HEALTH = 84,
|
|
1430
1475
|
/**
|
|
1431
1476
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
1432
1477
|
* from what they were on the previous frame.
|
|
@@ -1456,7 +1501,7 @@ export declare enum ModCallbackCustom {
|
|
|
1456
1501
|
* ) => void {}
|
|
1457
1502
|
* ```
|
|
1458
1503
|
*/
|
|
1459
|
-
POST_PLAYER_CHANGE_STAT =
|
|
1504
|
+
POST_PLAYER_CHANGE_STAT = 85,
|
|
1460
1505
|
/**
|
|
1461
1506
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
1462
1507
|
* type
|
|
@@ -1479,7 +1524,7 @@ export declare enum ModCallbackCustom {
|
|
|
1479
1524
|
* ): void {}
|
|
1480
1525
|
* ```
|
|
1481
1526
|
*/
|
|
1482
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
1527
|
+
POST_PLAYER_CHANGE_TYPE = 86,
|
|
1483
1528
|
/**
|
|
1484
1529
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
1485
1530
|
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -1496,7 +1541,7 @@ export declare enum ModCallbackCustom {
|
|
|
1496
1541
|
* ): void {}
|
|
1497
1542
|
* ```
|
|
1498
1543
|
*/
|
|
1499
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
1544
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 87,
|
|
1500
1545
|
/**
|
|
1501
1546
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
1502
1547
|
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -1513,7 +1558,7 @@ export declare enum ModCallbackCustom {
|
|
|
1513
1558
|
* ): void {}
|
|
1514
1559
|
* ```
|
|
1515
1560
|
*/
|
|
1516
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
1561
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 88,
|
|
1517
1562
|
/**
|
|
1518
1563
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
1519
1564
|
* prevent the fatal damage.
|
|
@@ -1531,7 +1576,7 @@ export declare enum ModCallbackCustom {
|
|
|
1531
1576
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
1532
1577
|
* ```
|
|
1533
1578
|
*/
|
|
1534
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
1579
|
+
POST_PLAYER_FATAL_DAMAGE = 89,
|
|
1535
1580
|
/**
|
|
1536
1581
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
1537
1582
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -1553,7 +1598,7 @@ export declare enum ModCallbackCustom {
|
|
|
1553
1598
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
1554
1599
|
* ```
|
|
1555
1600
|
*/
|
|
1556
|
-
POST_PLAYER_INIT_FIRST =
|
|
1601
|
+
POST_PLAYER_INIT_FIRST = 90,
|
|
1557
1602
|
/**
|
|
1558
1603
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
1559
1604
|
*
|
|
@@ -1573,7 +1618,7 @@ export declare enum ModCallbackCustom {
|
|
|
1573
1618
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
1574
1619
|
* ```
|
|
1575
1620
|
*/
|
|
1576
|
-
POST_PLAYER_INIT_LATE =
|
|
1621
|
+
POST_PLAYER_INIT_LATE = 91,
|
|
1577
1622
|
/**
|
|
1578
1623
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
1579
1624
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -1597,7 +1642,7 @@ export declare enum ModCallbackCustom {
|
|
|
1597
1642
|
* function postPlayerRenderReordered(player: EntityPlayer, renderOffset: Vector): void {}
|
|
1598
1643
|
* ```
|
|
1599
1644
|
*/
|
|
1600
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
1645
|
+
POST_PLAYER_RENDER_REORDERED = 92,
|
|
1601
1646
|
/**
|
|
1602
1647
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
1603
1648
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -1622,7 +1667,7 @@ export declare enum ModCallbackCustom {
|
|
|
1622
1667
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
1623
1668
|
* ```
|
|
1624
1669
|
*/
|
|
1625
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
1670
|
+
POST_PLAYER_UPDATE_REORDERED = 93,
|
|
1626
1671
|
/**
|
|
1627
1672
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
1628
1673
|
*
|
|
@@ -1634,7 +1679,7 @@ export declare enum ModCallbackCustom {
|
|
|
1634
1679
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
1635
1680
|
* ```
|
|
1636
1681
|
*/
|
|
1637
|
-
POST_POOP_RENDER =
|
|
1682
|
+
POST_POOP_RENDER = 94,
|
|
1638
1683
|
/**
|
|
1639
1684
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
1640
1685
|
*
|
|
@@ -1646,7 +1691,7 @@ export declare enum ModCallbackCustom {
|
|
|
1646
1691
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
1647
1692
|
* ```
|
|
1648
1693
|
*/
|
|
1649
|
-
POST_POOP_UPDATE =
|
|
1694
|
+
POST_POOP_UPDATE = 95,
|
|
1650
1695
|
/**
|
|
1651
1696
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
1652
1697
|
*
|
|
@@ -1658,7 +1703,7 @@ export declare enum ModCallbackCustom {
|
|
|
1658
1703
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
1659
1704
|
* ```
|
|
1660
1705
|
*/
|
|
1661
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
1706
|
+
POST_PRESSURE_PLATE_RENDER = 96,
|
|
1662
1707
|
/**
|
|
1663
1708
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
1664
1709
|
*
|
|
@@ -1670,7 +1715,7 @@ export declare enum ModCallbackCustom {
|
|
|
1670
1715
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
1671
1716
|
* ```
|
|
1672
1717
|
*/
|
|
1673
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
1718
|
+
POST_PRESSURE_PLATE_UPDATE = 97,
|
|
1674
1719
|
/**
|
|
1675
1720
|
* The exact same thing as the vanilla `POST_PROJECTILE_INIT` callback, except this callback
|
|
1676
1721
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -1685,7 +1730,7 @@ export declare enum ModCallbackCustom {
|
|
|
1685
1730
|
* function postProjectileInitFilter(tear: EntityTear): void {}
|
|
1686
1731
|
* ```
|
|
1687
1732
|
*/
|
|
1688
|
-
POST_PROJECTILE_INIT_FILTER =
|
|
1733
|
+
POST_PROJECTILE_INIT_FILTER = 98,
|
|
1689
1734
|
/**
|
|
1690
1735
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
1691
1736
|
*
|
|
@@ -1702,7 +1747,7 @@ export declare enum ModCallbackCustom {
|
|
|
1702
1747
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
1703
1748
|
* ```
|
|
1704
1749
|
*/
|
|
1705
|
-
POST_PROJECTILE_INIT_LATE =
|
|
1750
|
+
POST_PROJECTILE_INIT_LATE = 99,
|
|
1706
1751
|
/**
|
|
1707
1752
|
* The exact same thing as the vanilla `POST_PROJECTILE_RENDER` callback, except this callback
|
|
1708
1753
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -1717,7 +1762,7 @@ export declare enum ModCallbackCustom {
|
|
|
1717
1762
|
* function postProjectileRenderFilter(tear: EntityTear, renderOffset: Vector): void {}
|
|
1718
1763
|
* ```
|
|
1719
1764
|
*/
|
|
1720
|
-
POST_PROJECTILE_RENDER_FILTER =
|
|
1765
|
+
POST_PROJECTILE_RENDER_FILTER = 100,
|
|
1721
1766
|
/**
|
|
1722
1767
|
* The exact same thing as the vanilla `POST_PROJECTILE_INIT` callback, except this callback
|
|
1723
1768
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -1732,7 +1777,7 @@ export declare enum ModCallbackCustom {
|
|
|
1732
1777
|
* function postProjectileUpdateFilter(tear: EntityTear): void {}
|
|
1733
1778
|
* ```
|
|
1734
1779
|
*/
|
|
1735
|
-
POST_PROJECTILE_UPDATE_FILTER =
|
|
1780
|
+
POST_PROJECTILE_UPDATE_FILTER = 101,
|
|
1736
1781
|
/**
|
|
1737
1782
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
1738
1783
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -1748,7 +1793,7 @@ export declare enum ModCallbackCustom {
|
|
|
1748
1793
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
1749
1794
|
* ```
|
|
1750
1795
|
*/
|
|
1751
|
-
POST_PURCHASE =
|
|
1796
|
+
POST_PURCHASE = 102,
|
|
1752
1797
|
/**
|
|
1753
1798
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
1754
1799
|
*
|
|
@@ -1762,7 +1807,7 @@ export declare enum ModCallbackCustom {
|
|
|
1762
1807
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
1763
1808
|
* ```
|
|
1764
1809
|
*/
|
|
1765
|
-
POST_ROCK_RENDER =
|
|
1810
|
+
POST_ROCK_RENDER = 103,
|
|
1766
1811
|
/**
|
|
1767
1812
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
1768
1813
|
*
|
|
@@ -1776,7 +1821,7 @@ export declare enum ModCallbackCustom {
|
|
|
1776
1821
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
1777
1822
|
* ```
|
|
1778
1823
|
*/
|
|
1779
|
-
POST_ROCK_UPDATE =
|
|
1824
|
+
POST_ROCK_UPDATE = 104,
|
|
1780
1825
|
/**
|
|
1781
1826
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
1782
1827
|
* the `Room.IsClear` method).
|
|
@@ -1793,7 +1838,7 @@ export declare enum ModCallbackCustom {
|
|
|
1793
1838
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
1794
1839
|
* ```
|
|
1795
1840
|
*/
|
|
1796
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
1841
|
+
POST_ROOM_CLEAR_CHANGED = 105,
|
|
1797
1842
|
/**
|
|
1798
1843
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
1799
1844
|
* Room.
|
|
@@ -1808,7 +1853,7 @@ export declare enum ModCallbackCustom {
|
|
|
1808
1853
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
1809
1854
|
* ```
|
|
1810
1855
|
*/
|
|
1811
|
-
POST_SACRIFICE =
|
|
1856
|
+
POST_SACRIFICE = 106,
|
|
1812
1857
|
/**
|
|
1813
1858
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
1814
1859
|
*
|
|
@@ -1826,7 +1871,7 @@ export declare enum ModCallbackCustom {
|
|
|
1826
1871
|
* ): void {}
|
|
1827
1872
|
* ```
|
|
1828
1873
|
*/
|
|
1829
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
1874
|
+
POST_SLOT_ANIMATION_CHANGED = 107,
|
|
1830
1875
|
/**
|
|
1831
1876
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
1832
1877
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -1850,7 +1895,7 @@ export declare enum ModCallbackCustom {
|
|
|
1850
1895
|
* ): void {}
|
|
1851
1896
|
* ```
|
|
1852
1897
|
*/
|
|
1853
|
-
POST_SLOT_COLLISION =
|
|
1898
|
+
POST_SLOT_COLLISION = 108,
|
|
1854
1899
|
/**
|
|
1855
1900
|
* Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
|
|
1856
1901
|
* destroyed or a beggar is removed.
|
|
@@ -1892,7 +1937,7 @@ export declare enum ModCallbackCustom {
|
|
|
1892
1937
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
1893
1938
|
* ```
|
|
1894
1939
|
*/
|
|
1895
|
-
POST_SLOT_DESTROYED =
|
|
1940
|
+
POST_SLOT_DESTROYED = 109,
|
|
1896
1941
|
/**
|
|
1897
1942
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
1898
1943
|
*
|
|
@@ -1911,7 +1956,7 @@ export declare enum ModCallbackCustom {
|
|
|
1911
1956
|
* function postSlotInit(slot: Entity): void {}
|
|
1912
1957
|
* ```
|
|
1913
1958
|
*/
|
|
1914
|
-
POST_SLOT_INIT =
|
|
1959
|
+
POST_SLOT_INIT = 110,
|
|
1915
1960
|
/**
|
|
1916
1961
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
1917
1962
|
*
|
|
@@ -1925,7 +1970,7 @@ export declare enum ModCallbackCustom {
|
|
|
1925
1970
|
* function postSlotRender(slot: Entity): void {}
|
|
1926
1971
|
* ```
|
|
1927
1972
|
*/
|
|
1928
|
-
POST_SLOT_RENDER =
|
|
1973
|
+
POST_SLOT_RENDER = 111,
|
|
1929
1974
|
/**
|
|
1930
1975
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
1931
1976
|
*
|
|
@@ -1939,7 +1984,7 @@ export declare enum ModCallbackCustom {
|
|
|
1939
1984
|
* function postSlotUpdate(slot: Entity): void {}
|
|
1940
1985
|
* ```
|
|
1941
1986
|
*/
|
|
1942
|
-
POST_SLOT_UPDATE =
|
|
1987
|
+
POST_SLOT_UPDATE = 112,
|
|
1943
1988
|
/**
|
|
1944
1989
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
1945
1990
|
*
|
|
@@ -1951,7 +1996,7 @@ export declare enum ModCallbackCustom {
|
|
|
1951
1996
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
1952
1997
|
* ```
|
|
1953
1998
|
*/
|
|
1954
|
-
POST_SPIKES_RENDER =
|
|
1999
|
+
POST_SPIKES_RENDER = 113,
|
|
1955
2000
|
/**
|
|
1956
2001
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
1957
2002
|
*
|
|
@@ -1963,7 +2008,7 @@ export declare enum ModCallbackCustom {
|
|
|
1963
2008
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
1964
2009
|
* ```
|
|
1965
2010
|
*/
|
|
1966
|
-
POST_SPIKES_UPDATE =
|
|
2011
|
+
POST_SPIKES_UPDATE = 114,
|
|
1967
2012
|
/**
|
|
1968
2013
|
* The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
|
|
1969
2014
|
* to specify extra arguments for additional filtration.
|
|
@@ -1978,7 +2023,7 @@ export declare enum ModCallbackCustom {
|
|
|
1978
2023
|
* function postTearInitFilter(tear: EntityTear): void {}
|
|
1979
2024
|
* ```
|
|
1980
2025
|
*/
|
|
1981
|
-
POST_TEAR_INIT_FILTER =
|
|
2026
|
+
POST_TEAR_INIT_FILTER = 115,
|
|
1982
2027
|
/**
|
|
1983
2028
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1984
2029
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -1996,7 +2041,7 @@ export declare enum ModCallbackCustom {
|
|
|
1996
2041
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
1997
2042
|
* ```
|
|
1998
2043
|
*/
|
|
1999
|
-
POST_TEAR_INIT_LATE =
|
|
2044
|
+
POST_TEAR_INIT_LATE = 116,
|
|
2000
2045
|
/**
|
|
2001
2046
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
2002
2047
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -2013,7 +2058,7 @@ export declare enum ModCallbackCustom {
|
|
|
2013
2058
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
2014
2059
|
* ```
|
|
2015
2060
|
*/
|
|
2016
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
2061
|
+
POST_TEAR_INIT_VERY_LATE = 117,
|
|
2017
2062
|
/**
|
|
2018
2063
|
* The exact same thing as the vanilla `POST_TEAR_RENDER` callback, except this callback allows
|
|
2019
2064
|
* you to specify extra arguments for additional filtration.
|
|
@@ -2028,7 +2073,7 @@ export declare enum ModCallbackCustom {
|
|
|
2028
2073
|
* function postTearRenderFilter(tear: EntityTear, renderOffset: Vector): void {}
|
|
2029
2074
|
* ```
|
|
2030
2075
|
*/
|
|
2031
|
-
POST_TEAR_RENDER_FILTER =
|
|
2076
|
+
POST_TEAR_RENDER_FILTER = 118,
|
|
2032
2077
|
/**
|
|
2033
2078
|
* The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
|
|
2034
2079
|
* to specify extra arguments for additional filtration.
|
|
@@ -2043,7 +2088,7 @@ export declare enum ModCallbackCustom {
|
|
|
2043
2088
|
* function postTearUpdateFilter(tear: EntityTear): void {}
|
|
2044
2089
|
* ```
|
|
2045
2090
|
*/
|
|
2046
|
-
POST_TEAR_UPDATE_FILTER =
|
|
2091
|
+
POST_TEAR_UPDATE_FILTER = 119,
|
|
2047
2092
|
/**
|
|
2048
2093
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
2049
2094
|
*
|
|
@@ -2055,7 +2100,7 @@ export declare enum ModCallbackCustom {
|
|
|
2055
2100
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
2056
2101
|
* ```
|
|
2057
2102
|
*/
|
|
2058
|
-
POST_TNT_RENDER =
|
|
2103
|
+
POST_TNT_RENDER = 120,
|
|
2059
2104
|
/**
|
|
2060
2105
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
2061
2106
|
*
|
|
@@ -2067,7 +2112,7 @@ export declare enum ModCallbackCustom {
|
|
|
2067
2112
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
2068
2113
|
* ```
|
|
2069
2114
|
*/
|
|
2070
|
-
POST_TNT_UPDATE =
|
|
2115
|
+
POST_TNT_UPDATE = 121,
|
|
2071
2116
|
/**
|
|
2072
2117
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
2073
2118
|
* transformation.
|
|
@@ -2086,7 +2131,7 @@ export declare enum ModCallbackCustom {
|
|
|
2086
2131
|
* ): void {}
|
|
2087
2132
|
* ```
|
|
2088
2133
|
*/
|
|
2089
|
-
POST_TRANSFORMATION =
|
|
2134
|
+
POST_TRANSFORMATION = 122,
|
|
2090
2135
|
/**
|
|
2091
2136
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
2092
2137
|
*
|
|
@@ -2101,7 +2146,7 @@ export declare enum ModCallbackCustom {
|
|
|
2101
2146
|
* ): void {}
|
|
2102
2147
|
* ```
|
|
2103
2148
|
*/
|
|
2104
|
-
POST_TRINKET_BREAK =
|
|
2149
|
+
POST_TRINKET_BREAK = 123,
|
|
2105
2150
|
/**
|
|
2106
2151
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
2107
2152
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -2117,7 +2162,26 @@ export declare enum ModCallbackCustom {
|
|
|
2117
2162
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
2118
2163
|
* ```
|
|
2119
2164
|
*/
|
|
2120
|
-
PRE_BERSERK_DEATH =
|
|
2165
|
+
PRE_BERSERK_DEATH = 124,
|
|
2166
|
+
/**
|
|
2167
|
+
* The exact same thing as the vanilla `PRE_BOMB_COLLISION` callback, except this callback allows
|
|
2168
|
+
* you to specify extra arguments for additional filtration.
|
|
2169
|
+
*
|
|
2170
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
2171
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
2172
|
+
* matches the `BombVariant` provided.
|
|
2173
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
2174
|
+
* matches the sub-type provided.
|
|
2175
|
+
*
|
|
2176
|
+
* ```ts
|
|
2177
|
+
* function preBombCollisionFilter(
|
|
2178
|
+
* bomb: EntityBomb,
|
|
2179
|
+
* collider: Entity,
|
|
2180
|
+
* low: boolean,
|
|
2181
|
+
* ): void {}
|
|
2182
|
+
* ```
|
|
2183
|
+
*/
|
|
2184
|
+
PRE_BOMB_COLLISION_FILTER = 125,
|
|
2121
2185
|
/**
|
|
2122
2186
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
2123
2187
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -2136,7 +2200,7 @@ export declare enum ModCallbackCustom {
|
|
|
2136
2200
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
2137
2201
|
* ```
|
|
2138
2202
|
*/
|
|
2139
|
-
PRE_CUSTOM_REVIVE =
|
|
2203
|
+
PRE_CUSTOM_REVIVE = 126,
|
|
2140
2204
|
/**
|
|
2141
2205
|
* The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
|
|
2142
2206
|
* you to specify extra arguments for additional filtration.
|
|
@@ -2161,7 +2225,7 @@ export declare enum ModCallbackCustom {
|
|
|
2161
2225
|
* ): [EntityType, int, int, int] | undefined {}
|
|
2162
2226
|
* ```
|
|
2163
2227
|
*/
|
|
2164
|
-
PRE_ENTITY_SPAWN_FILTER =
|
|
2228
|
+
PRE_ENTITY_SPAWN_FILTER = 127,
|
|
2165
2229
|
/**
|
|
2166
2230
|
* The exact same thing as the vanilla `PRE_FAMILIAR_COLLISION` callback, except this callback
|
|
2167
2231
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -2180,7 +2244,7 @@ export declare enum ModCallbackCustom {
|
|
|
2180
2244
|
* ): void {}
|
|
2181
2245
|
* ```
|
|
2182
2246
|
*/
|
|
2183
|
-
PRE_FAMILIAR_COLLISION_FILTER =
|
|
2247
|
+
PRE_FAMILIAR_COLLISION_FILTER = 128,
|
|
2184
2248
|
/**
|
|
2185
2249
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
2186
2250
|
* meets all of the conditions to pick it up.
|
|
@@ -2200,7 +2264,7 @@ export declare enum ModCallbackCustom {
|
|
|
2200
2264
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
2201
2265
|
* ```
|
|
2202
2266
|
*/
|
|
2203
|
-
PRE_GET_PEDESTAL =
|
|
2267
|
+
PRE_GET_PEDESTAL = 129,
|
|
2204
2268
|
/**
|
|
2205
2269
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
2206
2270
|
* the player begins to hold the item above their head).
|
|
@@ -2220,7 +2284,7 @@ export declare enum ModCallbackCustom {
|
|
|
2220
2284
|
* ): void {}
|
|
2221
2285
|
* ```
|
|
2222
2286
|
*/
|
|
2223
|
-
PRE_ITEM_PICKUP =
|
|
2287
|
+
PRE_ITEM_PICKUP = 130,
|
|
2224
2288
|
/**
|
|
2225
2289
|
* The exact same thing as the vanilla `PRE_KNIFE_COLLISION` callback, except this callback allows
|
|
2226
2290
|
* you to specify extra arguments for additional filtration.
|
|
@@ -2239,7 +2303,7 @@ export declare enum ModCallbackCustom {
|
|
|
2239
2303
|
* ): void {}
|
|
2240
2304
|
* ```
|
|
2241
2305
|
*/
|
|
2242
|
-
PRE_KNIFE_COLLISION_FILTER =
|
|
2306
|
+
PRE_KNIFE_COLLISION_FILTER = 131,
|
|
2243
2307
|
/**
|
|
2244
2308
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
2245
2309
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -2253,7 +2317,7 @@ export declare enum ModCallbackCustom {
|
|
|
2253
2317
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
2254
2318
|
* ```
|
|
2255
2319
|
*/
|
|
2256
|
-
PRE_NEW_LEVEL =
|
|
2320
|
+
PRE_NEW_LEVEL = 132,
|
|
2257
2321
|
/**
|
|
2258
2322
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
2259
2323
|
* you to specify extra arguments for additional filtration.
|
|
@@ -2274,7 +2338,7 @@ export declare enum ModCallbackCustom {
|
|
|
2274
2338
|
* ): boolean | undefined {}
|
|
2275
2339
|
* ```
|
|
2276
2340
|
*/
|
|
2277
|
-
PRE_NPC_COLLISION_FILTER =
|
|
2341
|
+
PRE_NPC_COLLISION_FILTER = 133,
|
|
2278
2342
|
/**
|
|
2279
2343
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
2280
2344
|
* to specify extra arguments for additional filtration.
|
|
@@ -2291,7 +2355,7 @@ export declare enum ModCallbackCustom {
|
|
|
2291
2355
|
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
2292
2356
|
* ```
|
|
2293
2357
|
*/
|
|
2294
|
-
PRE_NPC_UPDATE_FILTER =
|
|
2358
|
+
PRE_NPC_UPDATE_FILTER = 134,
|
|
2295
2359
|
/**
|
|
2296
2360
|
* The exact same thing as the vanilla `PRE_PROJECTILE_COLLISION` callback, except this callback
|
|
2297
2361
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -2310,7 +2374,7 @@ export declare enum ModCallbackCustom {
|
|
|
2310
2374
|
* ): void {}
|
|
2311
2375
|
* ```
|
|
2312
2376
|
*/
|
|
2313
|
-
PRE_PROJECTILE_COLLISION_FILTER =
|
|
2377
|
+
PRE_PROJECTILE_COLLISION_FILTER = 135,
|
|
2314
2378
|
/**
|
|
2315
2379
|
* The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
|
|
2316
2380
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -2333,7 +2397,7 @@ export declare enum ModCallbackCustom {
|
|
|
2333
2397
|
* ): [EntityType | GridEntityXMLType, int, int] | undefined {}
|
|
2334
2398
|
* ```
|
|
2335
2399
|
*/
|
|
2336
|
-
PRE_ROOM_ENTITY_SPAWN_FILTER =
|
|
2400
|
+
PRE_ROOM_ENTITY_SPAWN_FILTER = 136,
|
|
2337
2401
|
/**
|
|
2338
2402
|
* The exact same thing as the vanilla `PRE_TEAR_COLLISION` callback, except this callback allows
|
|
2339
2403
|
* you to specify extra arguments for additional filtration.
|
|
@@ -2352,6 +2416,6 @@ export declare enum ModCallbackCustom {
|
|
|
2352
2416
|
* ): void {}
|
|
2353
2417
|
* ```
|
|
2354
2418
|
*/
|
|
2355
|
-
PRE_TEAR_COLLISION_FILTER =
|
|
2419
|
+
PRE_TEAR_COLLISION_FILTER = 137
|
|
2356
2420
|
}
|
|
2357
2421
|
//# sourceMappingURL=ModCallbackCustom.d.ts.map
|