isaacscript-common 15.3.7 → 15.4.0
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.d.ts +190 -95
- package/dist/isaacscript-common.lua +399 -244
- package/dist/src/callbacks.d.ts +105 -95
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +16 -1
- package/dist/src/classes/callbacks/EntityTakeDmgFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/EntityTakeDmgFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/EntityTakeDmgFilter.lua +27 -0
- package/dist/src/classes/callbacks/PostGridEntityCollision.lua +1 -1
- package/dist/src/classes/callbacks/PostGridEntityCustomCollision.lua +1 -1
- package/dist/src/classes/callbacks/PostNPCDeathFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostNPCDeathFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostNPCDeathFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostNPCRenderFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostNPCRenderFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostNPCRenderFilter.lua +23 -0
- package/dist/src/classes/callbacks/PreNPCCollisionFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PreNPCCollisionFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PreNPCCollisionFilter.lua +21 -0
- package/dist/src/classes/callbacks/PreNPCUpdateFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PreNPCUpdateFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PreNPCUpdateFilter.lua +21 -0
- package/dist/src/enums/ModCallbackCustom.d.ts +160 -95
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +105 -95
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +30 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/src/shouldFire.d.ts +8 -1
- package/dist/src/shouldFire.d.ts.map +1 -1
- package/dist/src/shouldFire.lua +5 -0
- package/package.json +2 -2
- package/src/callbacks.ts +10 -0
- package/src/classes/callbacks/EntityTakeDmgFilter.ts +25 -0
- package/src/classes/callbacks/PostGridEntityCollision.ts +1 -1
- package/src/classes/callbacks/PostGridEntityCustomCollision.ts +1 -1
- package/src/classes/callbacks/PostNPCDeathFilter.ts +21 -0
- package/src/classes/callbacks/PostNPCRenderFilter.ts +21 -0
- package/src/classes/callbacks/PreNPCCollisionFilter.ts +20 -0
- package/src/classes/callbacks/PreNPCUpdateFilter.ts +19 -0
- package/src/enums/ModCallbackCustom.ts +70 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +45 -0
- package/src/shouldFire.ts +25 -1
|
@@ -7,6 +7,19 @@
|
|
|
7
7
|
* - You must upgrade your mod with the `upgradeMod` helper function before using a custom callback.
|
|
8
8
|
*/
|
|
9
9
|
export declare enum ModCallbackCustom {
|
|
10
|
+
/**
|
|
11
|
+
* The exact same thing as the vanilla `ENTITY_TAKE_DMG` callback, except this callback allows you
|
|
12
|
+
* to specify extra arguments for additional filtration.
|
|
13
|
+
*
|
|
14
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
15
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
16
|
+
* matches the `EntityType` provided.
|
|
17
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
18
|
+
* matches the variant provided.
|
|
19
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
20
|
+
* matches the sub-type provided.
|
|
21
|
+
*/
|
|
22
|
+
ENTITY_TAKE_DMG_FILTER = 0,
|
|
10
23
|
/**
|
|
11
24
|
* Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is started.
|
|
12
25
|
* Specifically, this happens on the first frame that `Room.IsAmbushDone` is true.
|
|
@@ -19,7 +32,7 @@ export declare enum ModCallbackCustom {
|
|
|
19
32
|
* function postAmbushFinished(ambushType: AmbushType): void {}
|
|
20
33
|
* ```
|
|
21
34
|
*/
|
|
22
|
-
POST_AMBUSH_FINISHED =
|
|
35
|
+
POST_AMBUSH_FINISHED = 1,
|
|
23
36
|
/**
|
|
24
37
|
* Fires from the `POST_UPDATE` callback when a Challenge Room or Boss Rush is completed.
|
|
25
38
|
* Specifically, this happens on the first frame that `Room.IsAmbushActive` is true.
|
|
@@ -32,7 +45,7 @@ export declare enum ModCallbackCustom {
|
|
|
32
45
|
* function postAmbushStarted(ambushType: AmbushType): void {}
|
|
33
46
|
* ```
|
|
34
47
|
*/
|
|
35
|
-
POST_AMBUSH_STARTED =
|
|
48
|
+
POST_AMBUSH_STARTED = 2,
|
|
36
49
|
/**
|
|
37
50
|
* Fires on the `POST_BOMB_UPDATE` callback that it explodes.
|
|
38
51
|
*
|
|
@@ -46,7 +59,7 @@ export declare enum ModCallbackCustom {
|
|
|
46
59
|
* function postBombDetonated(bomb: EntityBomb): void {}
|
|
47
60
|
* ```
|
|
48
61
|
*/
|
|
49
|
-
POST_BOMB_EXPLODED =
|
|
62
|
+
POST_BOMB_EXPLODED = 3,
|
|
50
63
|
/**
|
|
51
64
|
* Fires on the first `POST_BOMB_UPDATE` frame for each bomb.
|
|
52
65
|
*
|
|
@@ -63,7 +76,7 @@ export declare enum ModCallbackCustom {
|
|
|
63
76
|
* function postBombInitLate(bomb: EntityBomb): void {}
|
|
64
77
|
* ```
|
|
65
78
|
*/
|
|
66
|
-
POST_BOMB_INIT_LATE =
|
|
79
|
+
POST_BOMB_INIT_LATE = 4,
|
|
67
80
|
/**
|
|
68
81
|
* Fires from the `POST_RENDER` callback when one of Forgotten's bone clubs is swung or thrown.
|
|
69
82
|
*
|
|
@@ -71,7 +84,7 @@ export declare enum ModCallbackCustom {
|
|
|
71
84
|
* function postBoneSwing(boneClub: EntityKnife): void {}
|
|
72
85
|
* ```
|
|
73
86
|
*/
|
|
74
|
-
POST_BONE_SWING =
|
|
87
|
+
POST_BONE_SWING = 5,
|
|
75
88
|
/**
|
|
76
89
|
* Fires from the `POST_PICKUP_UPDATE` callback when a collectible goes from a non-zero sub-type
|
|
77
90
|
* to `CollectibleType.NULL` (i.e. an "empty" pedestal).
|
|
@@ -87,7 +100,7 @@ export declare enum ModCallbackCustom {
|
|
|
87
100
|
* ): void {}
|
|
88
101
|
* ```
|
|
89
102
|
*/
|
|
90
|
-
POST_COLLECTIBLE_EMPTY =
|
|
103
|
+
POST_COLLECTIBLE_EMPTY = 6,
|
|
91
104
|
/**
|
|
92
105
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
93
106
|
* respective collectible on the run. For more details on how this is calculated, see the
|
|
@@ -105,7 +118,7 @@ export declare enum ModCallbackCustom {
|
|
|
105
118
|
* function postCollectibleInitLate(collectible: EntityPickupCollectible): void {}
|
|
106
119
|
* ```
|
|
107
120
|
*/
|
|
108
|
-
POST_COLLECTIBLE_INIT_FIRST =
|
|
121
|
+
POST_COLLECTIBLE_INIT_FIRST = 7,
|
|
109
122
|
/**
|
|
110
123
|
* Fires from the `POST_PLAYER_RENDER` callback on the first frame that the "TeleportUp" animation
|
|
111
124
|
* begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
|
|
@@ -121,7 +134,7 @@ export declare enum ModCallbackCustom {
|
|
|
121
134
|
* function postCursedTeleport(player: EntityPlayer): void {}
|
|
122
135
|
* ```
|
|
123
136
|
*/
|
|
124
|
-
POST_CURSED_TELEPORT =
|
|
137
|
+
POST_CURSED_TELEPORT = 8,
|
|
125
138
|
/**
|
|
126
139
|
* Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
|
|
127
140
|
* has teleported to the previous room, and is ready to play the animation for the modded revival
|
|
@@ -139,7 +152,7 @@ export declare enum ModCallbackCustom {
|
|
|
139
152
|
* function postCustomRevive(player: EntityPlayer, revivalType: int): void {}
|
|
140
153
|
* ```
|
|
141
154
|
*/
|
|
142
|
-
POST_CUSTOM_REVIVE =
|
|
155
|
+
POST_CUSTOM_REVIVE = 9,
|
|
143
156
|
/**
|
|
144
157
|
* Fires from the `EFFECT_POST_UPDATE` callback after a player has entered the range of a Dice
|
|
145
158
|
* Room floor.
|
|
@@ -155,7 +168,7 @@ export declare enum ModCallbackCustom {
|
|
|
155
168
|
* ): void {}
|
|
156
169
|
* ```
|
|
157
170
|
*/
|
|
158
|
-
POST_DICE_ROOM_ACTIVATED =
|
|
171
|
+
POST_DICE_ROOM_ACTIVATED = 10,
|
|
159
172
|
/**
|
|
160
173
|
* Fires from the `POST_RENDER` callback on every frame that a door exists.
|
|
161
174
|
*
|
|
@@ -167,7 +180,7 @@ export declare enum ModCallbackCustom {
|
|
|
167
180
|
* function postDoorRender(door: GridEntityDoor): void {}
|
|
168
181
|
* ```
|
|
169
182
|
*/
|
|
170
|
-
POST_DOOR_RENDER =
|
|
183
|
+
POST_DOOR_RENDER = 11,
|
|
171
184
|
/**
|
|
172
185
|
* Fires from the `POST_UPDATE` callback on every frame that a door exists.
|
|
173
186
|
*
|
|
@@ -179,7 +192,7 @@ export declare enum ModCallbackCustom {
|
|
|
179
192
|
* function postDoorUpdate(door: GridEntityDoor): void {}
|
|
180
193
|
* ```
|
|
181
194
|
*/
|
|
182
|
-
POST_DOOR_UPDATE =
|
|
195
|
+
POST_DOOR_UPDATE = 12,
|
|
183
196
|
/**
|
|
184
197
|
* Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
|
|
185
198
|
*
|
|
@@ -196,7 +209,7 @@ export declare enum ModCallbackCustom {
|
|
|
196
209
|
* function postEffectInitLate(effect: EntityEffect): void {}
|
|
197
210
|
* ```
|
|
198
211
|
*/
|
|
199
|
-
POST_EFFECT_INIT_LATE =
|
|
212
|
+
POST_EFFECT_INIT_LATE = 13,
|
|
200
213
|
/**
|
|
201
214
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
202
215
|
* was on the previous frame. (In this context, "state" refers to the `EntityEffect.State` field.)
|
|
@@ -215,7 +228,7 @@ export declare enum ModCallbackCustom {
|
|
|
215
228
|
* ): void {}
|
|
216
229
|
* ```
|
|
217
230
|
*/
|
|
218
|
-
POST_EFFECT_STATE_CHANGED =
|
|
231
|
+
POST_EFFECT_STATE_CHANGED = 14,
|
|
219
232
|
/**
|
|
220
233
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
221
234
|
* updated to the new character until a game frame has passed.)
|
|
@@ -224,7 +237,7 @@ export declare enum ModCallbackCustom {
|
|
|
224
237
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
225
238
|
* ```
|
|
226
239
|
*/
|
|
227
|
-
POST_ESAU_JR =
|
|
240
|
+
POST_ESAU_JR = 15,
|
|
228
241
|
/**
|
|
229
242
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
230
243
|
*
|
|
@@ -241,7 +254,7 @@ export declare enum ModCallbackCustom {
|
|
|
241
254
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
242
255
|
* ```
|
|
243
256
|
*/
|
|
244
|
-
POST_FAMILIAR_INIT_LATE =
|
|
257
|
+
POST_FAMILIAR_INIT_LATE = 16,
|
|
245
258
|
/**
|
|
246
259
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
247
260
|
* was on the previous frame. (In this context, "state" refers to the `EntityFamiliar.State`
|
|
@@ -261,7 +274,7 @@ export declare enum ModCallbackCustom {
|
|
|
261
274
|
* ): void {}
|
|
262
275
|
* ```
|
|
263
276
|
*/
|
|
264
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
277
|
+
POST_FAMILIAR_STATE_CHANGED = 17,
|
|
265
278
|
/**
|
|
266
279
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
267
280
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -273,7 +286,7 @@ export declare enum ModCallbackCustom {
|
|
|
273
286
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
274
287
|
* ```
|
|
275
288
|
*/
|
|
276
|
-
POST_FIRST_ESAU_JR =
|
|
289
|
+
POST_FIRST_ESAU_JR = 18,
|
|
277
290
|
/**
|
|
278
291
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
279
292
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -286,7 +299,7 @@ export declare enum ModCallbackCustom {
|
|
|
286
299
|
* function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
287
300
|
* ```
|
|
288
301
|
*/
|
|
289
|
-
POST_FIRST_FLIP =
|
|
302
|
+
POST_FIRST_FLIP = 19,
|
|
290
303
|
/**
|
|
291
304
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
292
305
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -299,7 +312,7 @@ export declare enum ModCallbackCustom {
|
|
|
299
312
|
* function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
300
313
|
* ```
|
|
301
314
|
*/
|
|
302
|
-
POST_FLIP =
|
|
315
|
+
POST_FLIP = 20,
|
|
303
316
|
/**
|
|
304
317
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
305
318
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -310,7 +323,7 @@ export declare enum ModCallbackCustom {
|
|
|
310
323
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
311
324
|
* ```
|
|
312
325
|
*/
|
|
313
|
-
POST_GAME_STARTED_REORDERED =
|
|
326
|
+
POST_GAME_STARTED_REORDERED = 21,
|
|
314
327
|
/**
|
|
315
328
|
* Similar to the `POST_GAME_STARTED_REORDERED` callback, but fires after all of the subscribed
|
|
316
329
|
* callbacks have finished firing. Thus, you can use this callback to do perform things after a
|
|
@@ -321,7 +334,7 @@ export declare enum ModCallbackCustom {
|
|
|
321
334
|
* function postGameStartedReorderedLast(isContinued: boolean): void {}
|
|
322
335
|
* ```
|
|
323
336
|
*/
|
|
324
|
-
POST_GAME_STARTED_REORDERED_LAST =
|
|
337
|
+
POST_GAME_STARTED_REORDERED_LAST = 22,
|
|
325
338
|
/**
|
|
326
339
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
327
340
|
*
|
|
@@ -329,7 +342,7 @@ export declare enum ModCallbackCustom {
|
|
|
329
342
|
* function postGreedModeWave(oldWave: int, newWave: int): void {}
|
|
330
343
|
* ```
|
|
331
344
|
*/
|
|
332
|
-
POST_GREED_MODE_WAVE =
|
|
345
|
+
POST_GREED_MODE_WAVE = 23,
|
|
333
346
|
/**
|
|
334
347
|
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
335
348
|
* the broken state for the respective grid entity type. (For example, this will fire for a
|
|
@@ -348,7 +361,7 @@ export declare enum ModCallbackCustom {
|
|
|
348
361
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
349
362
|
* ```
|
|
350
363
|
*/
|
|
351
|
-
POST_GRID_ENTITY_BROKEN =
|
|
364
|
+
POST_GRID_ENTITY_BROKEN = 24,
|
|
352
365
|
/**
|
|
353
366
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity. (After
|
|
354
367
|
* this, the callback will not continue to fire. It will only fire again once the entity moves out
|
|
@@ -376,7 +389,7 @@ export declare enum ModCallbackCustom {
|
|
|
376
389
|
* ): void {}
|
|
377
390
|
* ```
|
|
378
391
|
*/
|
|
379
|
-
POST_GRID_ENTITY_COLLISION =
|
|
392
|
+
POST_GRID_ENTITY_COLLISION = 25,
|
|
380
393
|
/**
|
|
381
394
|
* The same as the `POST_GRID_ENTITY_BROKEN` callback, but only fires for grid entities created
|
|
382
395
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -393,7 +406,7 @@ export declare enum ModCallbackCustom {
|
|
|
393
406
|
* ): void {}
|
|
394
407
|
* ```
|
|
395
408
|
*/
|
|
396
|
-
POST_GRID_ENTITY_CUSTOM_BROKEN =
|
|
409
|
+
POST_GRID_ENTITY_CUSTOM_BROKEN = 26,
|
|
397
410
|
/**
|
|
398
411
|
* The same as the `POST_GRID_ENTITY_COLLISION` callback, but only fires for grid entities created
|
|
399
412
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -417,7 +430,7 @@ export declare enum ModCallbackCustom {
|
|
|
417
430
|
* ): void {}
|
|
418
431
|
* ```
|
|
419
432
|
*/
|
|
420
|
-
POST_GRID_ENTITY_CUSTOM_COLLISION =
|
|
433
|
+
POST_GRID_ENTITY_CUSTOM_COLLISION = 27,
|
|
421
434
|
/**
|
|
422
435
|
* The same as the `POST_GRID_ENTITY_INIT` callback, but only fires for grid entities created with
|
|
423
436
|
* the `spawnCustomGridEntity` helper function.
|
|
@@ -434,7 +447,7 @@ export declare enum ModCallbackCustom {
|
|
|
434
447
|
* ): void {}
|
|
435
448
|
* ```
|
|
436
449
|
*/
|
|
437
|
-
POST_GRID_ENTITY_CUSTOM_INIT =
|
|
450
|
+
POST_GRID_ENTITY_CUSTOM_INIT = 28,
|
|
438
451
|
/**
|
|
439
452
|
* The same as the `POST_GRID_ENTITY_REMOVE` callback, but only fires for grid entities created
|
|
440
453
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -451,7 +464,7 @@ export declare enum ModCallbackCustom {
|
|
|
451
464
|
* ): void {}
|
|
452
465
|
* ```
|
|
453
466
|
*/
|
|
454
|
-
POST_GRID_ENTITY_CUSTOM_REMOVE =
|
|
467
|
+
POST_GRID_ENTITY_CUSTOM_REMOVE = 29,
|
|
455
468
|
/**
|
|
456
469
|
* The same as the `POST_GRID_ENTITY_RENDER` callback, but only fires for grid entities created
|
|
457
470
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -468,7 +481,7 @@ export declare enum ModCallbackCustom {
|
|
|
468
481
|
* ): void {}
|
|
469
482
|
* ```
|
|
470
483
|
*/
|
|
471
|
-
POST_GRID_ENTITY_CUSTOM_RENDER =
|
|
484
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 30,
|
|
472
485
|
/**
|
|
473
486
|
* The same as the `POST_GRID_ENTITY_STATE_CHANGED` callback, but only fires for grid entities
|
|
474
487
|
* created with the `spawnCustomGridEntity` helper function.
|
|
@@ -487,7 +500,7 @@ export declare enum ModCallbackCustom {
|
|
|
487
500
|
* ): void {}
|
|
488
501
|
* ```
|
|
489
502
|
*/
|
|
490
|
-
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED =
|
|
503
|
+
POST_GRID_ENTITY_CUSTOM_STATE_CHANGED = 31,
|
|
491
504
|
/**
|
|
492
505
|
* The same as the `POST_GRID_ENTITY_UPDATE` callback, but only fires for grid entities created
|
|
493
506
|
* with the `spawnCustomGridEntity` helper function.
|
|
@@ -504,7 +517,7 @@ export declare enum ModCallbackCustom {
|
|
|
504
517
|
* ): void {}
|
|
505
518
|
* ```
|
|
506
519
|
*/
|
|
507
|
-
POST_GRID_ENTITY_CUSTOM_UPDATE =
|
|
520
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 32,
|
|
508
521
|
/**
|
|
509
522
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
510
523
|
*
|
|
@@ -526,7 +539,7 @@ export declare enum ModCallbackCustom {
|
|
|
526
539
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
527
540
|
* ```
|
|
528
541
|
*/
|
|
529
|
-
POST_GRID_ENTITY_INIT =
|
|
542
|
+
POST_GRID_ENTITY_INIT = 33,
|
|
530
543
|
/**
|
|
531
544
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
532
545
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -551,7 +564,7 @@ export declare enum ModCallbackCustom {
|
|
|
551
564
|
* ): void {}
|
|
552
565
|
* ```
|
|
553
566
|
*/
|
|
554
|
-
POST_GRID_ENTITY_REMOVE =
|
|
567
|
+
POST_GRID_ENTITY_REMOVE = 34,
|
|
555
568
|
/**
|
|
556
569
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
557
570
|
*
|
|
@@ -568,7 +581,7 @@ export declare enum ModCallbackCustom {
|
|
|
568
581
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
569
582
|
* ```
|
|
570
583
|
*/
|
|
571
|
-
POST_GRID_ENTITY_RENDER =
|
|
584
|
+
POST_GRID_ENTITY_RENDER = 35,
|
|
572
585
|
/**
|
|
573
586
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state. (In this context,
|
|
574
587
|
* "state" refers to the `GridEntity.State` field.)
|
|
@@ -590,7 +603,7 @@ export declare enum ModCallbackCustom {
|
|
|
590
603
|
* ): void {}
|
|
591
604
|
* ```
|
|
592
605
|
*/
|
|
593
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
606
|
+
POST_GRID_ENTITY_STATE_CHANGED = 36,
|
|
594
607
|
/**
|
|
595
608
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
596
609
|
*
|
|
@@ -607,7 +620,7 @@ export declare enum ModCallbackCustom {
|
|
|
607
620
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
608
621
|
* ```
|
|
609
622
|
*/
|
|
610
|
-
POST_GRID_ENTITY_UPDATE =
|
|
623
|
+
POST_GRID_ENTITY_UPDATE = 37,
|
|
611
624
|
/**
|
|
612
625
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses a Holy Mantle
|
|
613
626
|
* temporary collectible effect.
|
|
@@ -630,7 +643,7 @@ export declare enum ModCallbackCustom {
|
|
|
630
643
|
* ): void {}
|
|
631
644
|
* ```
|
|
632
645
|
*/
|
|
633
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
646
|
+
POST_HOLY_MANTLE_REMOVED = 38,
|
|
634
647
|
/**
|
|
635
648
|
* Fires from `POST_PEFFECT_UPDATE_REORDERED` callback when the player loses charge on their
|
|
636
649
|
* active collectible item, implying that the item was just used.
|
|
@@ -653,7 +666,7 @@ export declare enum ModCallbackCustom {
|
|
|
653
666
|
* ): void {}
|
|
654
667
|
* ```
|
|
655
668
|
*/
|
|
656
|
-
POST_ITEM_DISCHARGE =
|
|
669
|
+
POST_ITEM_DISCHARGE = 39,
|
|
657
670
|
/**
|
|
658
671
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item is no longer queued (i.e.
|
|
659
672
|
* when the animation of the player holding the item above their head is finished and the item is
|
|
@@ -674,7 +687,7 @@ export declare enum ModCallbackCustom {
|
|
|
674
687
|
* ): void {}
|
|
675
688
|
* ```
|
|
676
689
|
*/
|
|
677
|
-
POST_ITEM_PICKUP =
|
|
690
|
+
POST_ITEM_PICKUP = 40,
|
|
678
691
|
/**
|
|
679
692
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
680
693
|
*
|
|
@@ -691,7 +704,7 @@ export declare enum ModCallbackCustom {
|
|
|
691
704
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
692
705
|
* ```
|
|
693
706
|
*/
|
|
694
|
-
POST_KNIFE_INIT_LATE =
|
|
707
|
+
POST_KNIFE_INIT_LATE = 41,
|
|
695
708
|
/**
|
|
696
709
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
697
710
|
*
|
|
@@ -708,7 +721,7 @@ export declare enum ModCallbackCustom {
|
|
|
708
721
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
709
722
|
* ```
|
|
710
723
|
*/
|
|
711
|
-
POST_LASER_INIT_LATE =
|
|
724
|
+
POST_LASER_INIT_LATE = 42,
|
|
712
725
|
/**
|
|
713
726
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
714
727
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -725,7 +738,7 @@ export declare enum ModCallbackCustom {
|
|
|
725
738
|
* function postNewLevelReordered(): void {}
|
|
726
739
|
* ```
|
|
727
740
|
*/
|
|
728
|
-
POST_NEW_LEVEL_REORDERED =
|
|
741
|
+
POST_NEW_LEVEL_REORDERED = 43,
|
|
729
742
|
/**
|
|
730
743
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
731
744
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -736,7 +749,7 @@ export declare enum ModCallbackCustom {
|
|
|
736
749
|
* function postNewRoomEarly(): void {}
|
|
737
750
|
* ```
|
|
738
751
|
*/
|
|
739
|
-
POST_NEW_ROOM_EARLY =
|
|
752
|
+
POST_NEW_ROOM_EARLY = 44,
|
|
740
753
|
/**
|
|
741
754
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
742
755
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -753,7 +766,20 @@ export declare enum ModCallbackCustom {
|
|
|
753
766
|
* function postNewRoomReordered(): void {}
|
|
754
767
|
* ```
|
|
755
768
|
*/
|
|
756
|
-
POST_NEW_ROOM_REORDERED =
|
|
769
|
+
POST_NEW_ROOM_REORDERED = 45,
|
|
770
|
+
/**
|
|
771
|
+
* The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
|
|
772
|
+
* to specify extra arguments for additional filtration.
|
|
773
|
+
*
|
|
774
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
775
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
776
|
+
* matches the `EntityType` provided.
|
|
777
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
778
|
+
* matches the variant provided.
|
|
779
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
780
|
+
* matches the sub-type provided.
|
|
781
|
+
*/
|
|
782
|
+
POST_NPC_DEATH_FILTER = 46,
|
|
757
783
|
/**
|
|
758
784
|
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
759
785
|
* to specify extra arguments for additional filtration.
|
|
@@ -766,7 +792,7 @@ export declare enum ModCallbackCustom {
|
|
|
766
792
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
767
793
|
* matches the sub-type provided.
|
|
768
794
|
*/
|
|
769
|
-
POST_NPC_INIT_FILTER =
|
|
795
|
+
POST_NPC_INIT_FILTER = 47,
|
|
770
796
|
/**
|
|
771
797
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
772
798
|
*
|
|
@@ -785,7 +811,20 @@ export declare enum ModCallbackCustom {
|
|
|
785
811
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
786
812
|
* ```
|
|
787
813
|
*/
|
|
788
|
-
POST_NPC_INIT_LATE =
|
|
814
|
+
POST_NPC_INIT_LATE = 48,
|
|
815
|
+
/**
|
|
816
|
+
* The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
|
|
817
|
+
* to specify extra arguments for additional filtration.
|
|
818
|
+
*
|
|
819
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
820
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
821
|
+
* matches the `EntityType` provided.
|
|
822
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
823
|
+
* matches the variant provided.
|
|
824
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
825
|
+
* matches the sub-type provided.
|
|
826
|
+
*/
|
|
827
|
+
POST_NPC_RENDER_FILTER = 49,
|
|
789
828
|
/**
|
|
790
829
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
791
830
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -806,7 +845,7 @@ export declare enum ModCallbackCustom {
|
|
|
806
845
|
* ): void {}
|
|
807
846
|
* ```
|
|
808
847
|
*/
|
|
809
|
-
POST_NPC_STATE_CHANGED =
|
|
848
|
+
POST_NPC_STATE_CHANGED = 50,
|
|
810
849
|
/**
|
|
811
850
|
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
812
851
|
* to specify extra arguments for additional filtration.
|
|
@@ -819,7 +858,7 @@ export declare enum ModCallbackCustom {
|
|
|
819
858
|
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
820
859
|
* matches the sub-type provided.
|
|
821
860
|
*/
|
|
822
|
-
POST_NPC_UPDATE_FILTER =
|
|
861
|
+
POST_NPC_UPDATE_FILTER = 51,
|
|
823
862
|
/**
|
|
824
863
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
825
864
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -844,7 +883,7 @@ export declare enum ModCallbackCustom {
|
|
|
844
883
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
845
884
|
* ```
|
|
846
885
|
*/
|
|
847
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
886
|
+
POST_PEFFECT_UPDATE_REORDERED = 52,
|
|
848
887
|
/**
|
|
849
888
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
850
889
|
*
|
|
@@ -860,7 +899,7 @@ export declare enum ModCallbackCustom {
|
|
|
860
899
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
861
900
|
* ```
|
|
862
901
|
*/
|
|
863
|
-
POST_PICKUP_COLLECT =
|
|
902
|
+
POST_PICKUP_COLLECT = 53,
|
|
864
903
|
/**
|
|
865
904
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
866
905
|
* respective pickup on the run.
|
|
@@ -878,7 +917,7 @@ export declare enum ModCallbackCustom {
|
|
|
878
917
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
879
918
|
* ```
|
|
880
919
|
*/
|
|
881
|
-
POST_PICKUP_INIT_FIRST =
|
|
920
|
+
POST_PICKUP_INIT_FIRST = 54,
|
|
882
921
|
/**
|
|
883
922
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
884
923
|
*
|
|
@@ -895,7 +934,7 @@ export declare enum ModCallbackCustom {
|
|
|
895
934
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
896
935
|
* ```
|
|
897
936
|
*/
|
|
898
|
-
POST_PICKUP_INIT_LATE =
|
|
937
|
+
POST_PICKUP_INIT_LATE = 55,
|
|
899
938
|
/**
|
|
900
939
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
901
940
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -914,7 +953,7 @@ export declare enum ModCallbackCustom {
|
|
|
914
953
|
* ): void {}
|
|
915
954
|
* ```
|
|
916
955
|
*/
|
|
917
|
-
POST_PICKUP_STATE_CHANGED =
|
|
956
|
+
POST_PICKUP_STATE_CHANGED = 56,
|
|
918
957
|
/**
|
|
919
958
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
920
959
|
*
|
|
@@ -926,7 +965,7 @@ export declare enum ModCallbackCustom {
|
|
|
926
965
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
927
966
|
* ```
|
|
928
967
|
*/
|
|
929
|
-
POST_PIT_RENDER =
|
|
968
|
+
POST_PIT_RENDER = 57,
|
|
930
969
|
/**
|
|
931
970
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
932
971
|
*
|
|
@@ -938,7 +977,7 @@ export declare enum ModCallbackCustom {
|
|
|
938
977
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
939
978
|
* ```
|
|
940
979
|
*/
|
|
941
|
-
POST_PIT_UPDATE =
|
|
980
|
+
POST_PIT_UPDATE = 58,
|
|
942
981
|
/**
|
|
943
982
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
944
983
|
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
@@ -960,7 +999,7 @@ export declare enum ModCallbackCustom {
|
|
|
960
999
|
* ): void {}
|
|
961
1000
|
* ```
|
|
962
1001
|
*/
|
|
963
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
1002
|
+
POST_PLAYER_CHANGE_HEALTH = 59,
|
|
964
1003
|
/**
|
|
965
1004
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
966
1005
|
* from what they were on the previous frame.
|
|
@@ -990,7 +1029,7 @@ export declare enum ModCallbackCustom {
|
|
|
990
1029
|
* ) => void {}
|
|
991
1030
|
* ```
|
|
992
1031
|
*/
|
|
993
|
-
POST_PLAYER_CHANGE_STAT =
|
|
1032
|
+
POST_PLAYER_CHANGE_STAT = 60,
|
|
994
1033
|
/**
|
|
995
1034
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
996
1035
|
* type
|
|
@@ -1013,7 +1052,7 @@ export declare enum ModCallbackCustom {
|
|
|
1013
1052
|
* ): void {}
|
|
1014
1053
|
* ```
|
|
1015
1054
|
*/
|
|
1016
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
1055
|
+
POST_PLAYER_CHANGE_TYPE = 61,
|
|
1017
1056
|
/**
|
|
1018
1057
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
1019
1058
|
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -1030,7 +1069,7 @@ export declare enum ModCallbackCustom {
|
|
|
1030
1069
|
* ): void {}
|
|
1031
1070
|
* ```
|
|
1032
1071
|
*/
|
|
1033
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
1072
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 62,
|
|
1034
1073
|
/**
|
|
1035
1074
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
1036
1075
|
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -1047,7 +1086,7 @@ export declare enum ModCallbackCustom {
|
|
|
1047
1086
|
* ): void {}
|
|
1048
1087
|
* ```
|
|
1049
1088
|
*/
|
|
1050
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
1089
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 63,
|
|
1051
1090
|
/**
|
|
1052
1091
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
1053
1092
|
* prevent the fatal damage.
|
|
@@ -1065,7 +1104,7 @@ export declare enum ModCallbackCustom {
|
|
|
1065
1104
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
1066
1105
|
* ```
|
|
1067
1106
|
*/
|
|
1068
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
1107
|
+
POST_PLAYER_FATAL_DAMAGE = 64,
|
|
1069
1108
|
/**
|
|
1070
1109
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
1071
1110
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -1087,7 +1126,7 @@ export declare enum ModCallbackCustom {
|
|
|
1087
1126
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
1088
1127
|
* ```
|
|
1089
1128
|
*/
|
|
1090
|
-
POST_PLAYER_INIT_FIRST =
|
|
1129
|
+
POST_PLAYER_INIT_FIRST = 65,
|
|
1091
1130
|
/**
|
|
1092
1131
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
1093
1132
|
*
|
|
@@ -1107,7 +1146,7 @@ export declare enum ModCallbackCustom {
|
|
|
1107
1146
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
1108
1147
|
* ```
|
|
1109
1148
|
*/
|
|
1110
|
-
POST_PLAYER_INIT_LATE =
|
|
1149
|
+
POST_PLAYER_INIT_LATE = 66,
|
|
1111
1150
|
/**
|
|
1112
1151
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
1113
1152
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -1131,7 +1170,7 @@ export declare enum ModCallbackCustom {
|
|
|
1131
1170
|
* function postPlayerRenderReordered(player: EntityPlayer): void {}
|
|
1132
1171
|
* ```
|
|
1133
1172
|
*/
|
|
1134
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
1173
|
+
POST_PLAYER_RENDER_REORDERED = 67,
|
|
1135
1174
|
/**
|
|
1136
1175
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
1137
1176
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -1156,7 +1195,7 @@ export declare enum ModCallbackCustom {
|
|
|
1156
1195
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
1157
1196
|
* ```
|
|
1158
1197
|
*/
|
|
1159
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
1198
|
+
POST_PLAYER_UPDATE_REORDERED = 68,
|
|
1160
1199
|
/**
|
|
1161
1200
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
1162
1201
|
*
|
|
@@ -1168,7 +1207,7 @@ export declare enum ModCallbackCustom {
|
|
|
1168
1207
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
1169
1208
|
* ```
|
|
1170
1209
|
*/
|
|
1171
|
-
POST_POOP_RENDER =
|
|
1210
|
+
POST_POOP_RENDER = 69,
|
|
1172
1211
|
/**
|
|
1173
1212
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
1174
1213
|
*
|
|
@@ -1180,7 +1219,7 @@ export declare enum ModCallbackCustom {
|
|
|
1180
1219
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
1181
1220
|
* ```
|
|
1182
1221
|
*/
|
|
1183
|
-
POST_POOP_UPDATE =
|
|
1222
|
+
POST_POOP_UPDATE = 70,
|
|
1184
1223
|
/**
|
|
1185
1224
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
1186
1225
|
*
|
|
@@ -1192,7 +1231,7 @@ export declare enum ModCallbackCustom {
|
|
|
1192
1231
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
1193
1232
|
* ```
|
|
1194
1233
|
*/
|
|
1195
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
1234
|
+
POST_PRESSURE_PLATE_RENDER = 71,
|
|
1196
1235
|
/**
|
|
1197
1236
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
1198
1237
|
*
|
|
@@ -1204,7 +1243,7 @@ export declare enum ModCallbackCustom {
|
|
|
1204
1243
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
1205
1244
|
* ```
|
|
1206
1245
|
*/
|
|
1207
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
1246
|
+
POST_PRESSURE_PLATE_UPDATE = 72,
|
|
1208
1247
|
/**
|
|
1209
1248
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
1210
1249
|
*
|
|
@@ -1221,7 +1260,7 @@ export declare enum ModCallbackCustom {
|
|
|
1221
1260
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
1222
1261
|
* ```
|
|
1223
1262
|
*/
|
|
1224
|
-
POST_PROJECTILE_INIT_LATE =
|
|
1263
|
+
POST_PROJECTILE_INIT_LATE = 73,
|
|
1225
1264
|
/**
|
|
1226
1265
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
1227
1266
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -1237,7 +1276,7 @@ export declare enum ModCallbackCustom {
|
|
|
1237
1276
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
1238
1277
|
* ```
|
|
1239
1278
|
*/
|
|
1240
|
-
POST_PURCHASE =
|
|
1279
|
+
POST_PURCHASE = 74,
|
|
1241
1280
|
/**
|
|
1242
1281
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
1243
1282
|
*
|
|
@@ -1251,7 +1290,7 @@ export declare enum ModCallbackCustom {
|
|
|
1251
1290
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
1252
1291
|
* ```
|
|
1253
1292
|
*/
|
|
1254
|
-
POST_ROCK_RENDER =
|
|
1293
|
+
POST_ROCK_RENDER = 75,
|
|
1255
1294
|
/**
|
|
1256
1295
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
1257
1296
|
*
|
|
@@ -1265,7 +1304,7 @@ export declare enum ModCallbackCustom {
|
|
|
1265
1304
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
1266
1305
|
* ```
|
|
1267
1306
|
*/
|
|
1268
|
-
POST_ROCK_UPDATE =
|
|
1307
|
+
POST_ROCK_UPDATE = 76,
|
|
1269
1308
|
/**
|
|
1270
1309
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
1271
1310
|
* the `Room.IsClear` method).
|
|
@@ -1282,7 +1321,7 @@ export declare enum ModCallbackCustom {
|
|
|
1282
1321
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
1283
1322
|
* ```
|
|
1284
1323
|
*/
|
|
1285
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
1324
|
+
POST_ROOM_CLEAR_CHANGED = 77,
|
|
1286
1325
|
/**
|
|
1287
1326
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
1288
1327
|
* Room.
|
|
@@ -1297,7 +1336,7 @@ export declare enum ModCallbackCustom {
|
|
|
1297
1336
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
1298
1337
|
* ```
|
|
1299
1338
|
*/
|
|
1300
|
-
POST_SACRIFICE =
|
|
1339
|
+
POST_SACRIFICE = 78,
|
|
1301
1340
|
/**
|
|
1302
1341
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
1303
1342
|
*
|
|
@@ -1311,7 +1350,7 @@ export declare enum ModCallbackCustom {
|
|
|
1311
1350
|
* function postSlotAnimationChanged(slot: Entity): void {}
|
|
1312
1351
|
* ```
|
|
1313
1352
|
*/
|
|
1314
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
1353
|
+
POST_SLOT_ANIMATION_CHANGED = 79,
|
|
1315
1354
|
/**
|
|
1316
1355
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
1317
1356
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -1335,7 +1374,7 @@ export declare enum ModCallbackCustom {
|
|
|
1335
1374
|
* ): void {}
|
|
1336
1375
|
* ```
|
|
1337
1376
|
*/
|
|
1338
|
-
POST_SLOT_COLLISION =
|
|
1377
|
+
POST_SLOT_COLLISION = 80,
|
|
1339
1378
|
/**
|
|
1340
1379
|
* Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
|
|
1341
1380
|
* has broken.
|
|
@@ -1350,7 +1389,7 @@ export declare enum ModCallbackCustom {
|
|
|
1350
1389
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
1351
1390
|
* ```
|
|
1352
1391
|
*/
|
|
1353
|
-
POST_SLOT_DESTROYED =
|
|
1392
|
+
POST_SLOT_DESTROYED = 81,
|
|
1354
1393
|
/**
|
|
1355
1394
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
1356
1395
|
*
|
|
@@ -1369,7 +1408,7 @@ export declare enum ModCallbackCustom {
|
|
|
1369
1408
|
* function postSlotInit(slot: Entity): void {}
|
|
1370
1409
|
* ```
|
|
1371
1410
|
*/
|
|
1372
|
-
POST_SLOT_INIT =
|
|
1411
|
+
POST_SLOT_INIT = 82,
|
|
1373
1412
|
/**
|
|
1374
1413
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
1375
1414
|
*
|
|
@@ -1383,7 +1422,7 @@ export declare enum ModCallbackCustom {
|
|
|
1383
1422
|
* function postSlotRender(slot: Entity): void {}
|
|
1384
1423
|
* ```
|
|
1385
1424
|
*/
|
|
1386
|
-
POST_SLOT_RENDER =
|
|
1425
|
+
POST_SLOT_RENDER = 83,
|
|
1387
1426
|
/**
|
|
1388
1427
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
1389
1428
|
*
|
|
@@ -1397,7 +1436,7 @@ export declare enum ModCallbackCustom {
|
|
|
1397
1436
|
* function postSlotUpdate(slot: Entity): void {}
|
|
1398
1437
|
* ```
|
|
1399
1438
|
*/
|
|
1400
|
-
POST_SLOT_UPDATE =
|
|
1439
|
+
POST_SLOT_UPDATE = 84,
|
|
1401
1440
|
/**
|
|
1402
1441
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
1403
1442
|
*
|
|
@@ -1409,7 +1448,7 @@ export declare enum ModCallbackCustom {
|
|
|
1409
1448
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
1410
1449
|
* ```
|
|
1411
1450
|
*/
|
|
1412
|
-
POST_SPIKES_RENDER =
|
|
1451
|
+
POST_SPIKES_RENDER = 85,
|
|
1413
1452
|
/**
|
|
1414
1453
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
1415
1454
|
*
|
|
@@ -1421,7 +1460,7 @@ export declare enum ModCallbackCustom {
|
|
|
1421
1460
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
1422
1461
|
* ```
|
|
1423
1462
|
*/
|
|
1424
|
-
POST_SPIKES_UPDATE =
|
|
1463
|
+
POST_SPIKES_UPDATE = 86,
|
|
1425
1464
|
/**
|
|
1426
1465
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1427
1466
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -1439,7 +1478,7 @@ export declare enum ModCallbackCustom {
|
|
|
1439
1478
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
1440
1479
|
* ```
|
|
1441
1480
|
*/
|
|
1442
|
-
POST_TEAR_INIT_LATE =
|
|
1481
|
+
POST_TEAR_INIT_LATE = 87,
|
|
1443
1482
|
/**
|
|
1444
1483
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1445
1484
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -1456,7 +1495,7 @@ export declare enum ModCallbackCustom {
|
|
|
1456
1495
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
1457
1496
|
* ```
|
|
1458
1497
|
*/
|
|
1459
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
1498
|
+
POST_TEAR_INIT_VERY_LATE = 88,
|
|
1460
1499
|
/**
|
|
1461
1500
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
1462
1501
|
*
|
|
@@ -1468,7 +1507,7 @@ export declare enum ModCallbackCustom {
|
|
|
1468
1507
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
1469
1508
|
* ```
|
|
1470
1509
|
*/
|
|
1471
|
-
POST_TNT_RENDER =
|
|
1510
|
+
POST_TNT_RENDER = 89,
|
|
1472
1511
|
/**
|
|
1473
1512
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
1474
1513
|
*
|
|
@@ -1480,7 +1519,7 @@ export declare enum ModCallbackCustom {
|
|
|
1480
1519
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
1481
1520
|
* ```
|
|
1482
1521
|
*/
|
|
1483
|
-
POST_TNT_UPDATE =
|
|
1522
|
+
POST_TNT_UPDATE = 90,
|
|
1484
1523
|
/**
|
|
1485
1524
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
1486
1525
|
* transformation.
|
|
@@ -1499,7 +1538,7 @@ export declare enum ModCallbackCustom {
|
|
|
1499
1538
|
* ): void {}
|
|
1500
1539
|
* ```
|
|
1501
1540
|
*/
|
|
1502
|
-
POST_TRANSFORMATION =
|
|
1541
|
+
POST_TRANSFORMATION = 91,
|
|
1503
1542
|
/**
|
|
1504
1543
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
1505
1544
|
*
|
|
@@ -1514,7 +1553,7 @@ export declare enum ModCallbackCustom {
|
|
|
1514
1553
|
* ): void {}
|
|
1515
1554
|
* ```
|
|
1516
1555
|
*/
|
|
1517
|
-
POST_TRINKET_BREAK =
|
|
1556
|
+
POST_TRINKET_BREAK = 92,
|
|
1518
1557
|
/**
|
|
1519
1558
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
1520
1559
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -1530,7 +1569,7 @@ export declare enum ModCallbackCustom {
|
|
|
1530
1569
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
1531
1570
|
* ```
|
|
1532
1571
|
*/
|
|
1533
|
-
PRE_BERSERK_DEATH =
|
|
1572
|
+
PRE_BERSERK_DEATH = 93,
|
|
1534
1573
|
/**
|
|
1535
1574
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
1536
1575
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -1549,7 +1588,7 @@ export declare enum ModCallbackCustom {
|
|
|
1549
1588
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
1550
1589
|
* ```
|
|
1551
1590
|
*/
|
|
1552
|
-
PRE_CUSTOM_REVIVE =
|
|
1591
|
+
PRE_CUSTOM_REVIVE = 94,
|
|
1553
1592
|
/**
|
|
1554
1593
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
1555
1594
|
* meets all of the conditions to pick it up.
|
|
@@ -1569,7 +1608,7 @@ export declare enum ModCallbackCustom {
|
|
|
1569
1608
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
1570
1609
|
* ```
|
|
1571
1610
|
*/
|
|
1572
|
-
PRE_GET_PEDESTAL =
|
|
1611
|
+
PRE_GET_PEDESTAL = 95,
|
|
1573
1612
|
/**
|
|
1574
1613
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
1575
1614
|
* the player begins to hold the item above their head).
|
|
@@ -1589,7 +1628,7 @@ export declare enum ModCallbackCustom {
|
|
|
1589
1628
|
* ): void {}
|
|
1590
1629
|
* ```
|
|
1591
1630
|
*/
|
|
1592
|
-
PRE_ITEM_PICKUP =
|
|
1631
|
+
PRE_ITEM_PICKUP = 96,
|
|
1593
1632
|
/**
|
|
1594
1633
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
1595
1634
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -1603,6 +1642,32 @@ export declare enum ModCallbackCustom {
|
|
|
1603
1642
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
1604
1643
|
* ```
|
|
1605
1644
|
*/
|
|
1606
|
-
PRE_NEW_LEVEL =
|
|
1645
|
+
PRE_NEW_LEVEL = 97,
|
|
1646
|
+
/**
|
|
1647
|
+
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
1648
|
+
* you to specify extra arguments for additional filtration.
|
|
1649
|
+
*
|
|
1650
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
1651
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
1652
|
+
* matches the `EntityType` provided.
|
|
1653
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
1654
|
+
* matches the variant provided.
|
|
1655
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
1656
|
+
* matches the sub-type provided.
|
|
1657
|
+
*/
|
|
1658
|
+
PRE_NPC_COLLISION_FILTER = 98,
|
|
1659
|
+
/**
|
|
1660
|
+
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
1661
|
+
* to specify extra arguments for additional filtration.
|
|
1662
|
+
*
|
|
1663
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
1664
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
1665
|
+
* matches the `EntityType` provided.
|
|
1666
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
1667
|
+
* matches the variant provided.
|
|
1668
|
+
* - You can provide an optional fifth argument that will make the callback only fire if it
|
|
1669
|
+
* matches the sub-type provided.
|
|
1670
|
+
*/
|
|
1671
|
+
PRE_NPC_UPDATE_FILTER = 99
|
|
1607
1672
|
}
|
|
1608
1673
|
//# sourceMappingURL=ModCallbackCustom.d.ts.map
|