isaacscript-common 6.0.1 → 6.2.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/callbacks/postCollectibleEmpty.d.ts +1 -0
- package/callbacks/postCollectibleEmpty.lua +40 -0
- package/callbacks/subscriptions/postCollectibleEmpty.d.ts +5 -0
- package/callbacks/subscriptions/postCollectibleEmpty.lua +29 -0
- package/classes/DefaultMap.lua +2 -2
- package/enums/ModCallbackCustom.d.ts +92 -77
- package/enums/ModCallbackCustom.lua +79 -77
- package/features/customStage/exports.d.ts +3 -9
- package/features/customStage/exports.lua +86 -15
- package/features/customStage/init.d.ts +1 -0
- package/features/customStage/init.lua +48 -0
- package/features/customStage/metadata.lua +1 -0
- package/features/customStage/util.d.ts +11 -0
- package/features/customStage/util.lua +51 -0
- package/features/customStage/v.d.ts +6 -2
- package/features/customStage/v.lua +4 -1
- package/features/deployJSONRoom.d.ts +1 -1
- package/functions/boss.d.ts +2 -2
- package/functions/doors.d.ts +4 -0
- package/functions/doors.lua +14 -0
- package/functions/entity.d.ts +2 -2
- package/functions/entitySpecific.d.ts +20 -20
- package/functions/familiars.d.ts +2 -0
- package/functions/familiars.lua +16 -0
- package/functions/jsonRoom.d.ts +26 -4
- package/functions/jsonRoom.lua +64 -2
- package/functions/pickups.d.ts +16 -16
- package/functions/playerCenter.d.ts +6 -0
- package/functions/playerCenter.lua +57 -0
- package/functions/rooms.d.ts +1 -1
- package/functions/rooms.lua +2 -2
- package/functions/stage.d.ts +3 -3
- package/functions/stage.lua +5 -4
- package/functions/trinkets.lua +1 -1
- package/index.d.ts +1 -5
- package/initCustomCallbacks.lua +3 -0
- package/initFeatures.lua +3 -0
- package/interfaces/AddCallbackParameterCustom.d.ts +2 -0
- package/interfaces/CustomStage.d.ts +10 -0
- package/interfaces/{CustomStageData.lua → CustomStage.lua} +0 -0
- package/interfaces/CustomStageLua.d.ts +118 -0
- package/interfaces/{JSONDoor.lua → CustomStageLua.lua} +0 -0
- package/interfaces/JSONRoomsFile.d.ts +75 -0
- package/interfaces/{JSONEntity.lua → JSONRoomsFile.lua} +0 -0
- package/objects/callbackRegisterFunctions.lua +3 -0
- package/objects/roomTypeGotoPrefixes.lua +29 -29
- package/package.json +1 -1
- package/features/customStage/constants.d.ts +0 -18
- package/features/customStage/constants.lua +0 -29
- package/features/customStage/scripts/generateCustomStageRooms.d.ts +0 -27
- package/features/customStage/scripts/generateCustomStageRooms.lua +0 -126
- package/interfaces/CustomStageData.d.ts +0 -5
- package/interfaces/JSONDoor.d.ts +0 -11
- package/interfaces/JSONEntity.d.ts +0 -13
- package/interfaces/JSONRoom.d.ts +0 -26
- package/interfaces/JSONRoom.lua +0 -2
- package/interfaces/JSONRooms.d.ts +0 -11
- package/interfaces/JSONRooms.lua +0 -2
- package/interfaces/JSONSpawn.d.ts +0 -11
- package/interfaces/JSONSpawn.lua +0 -2
|
@@ -64,6 +64,21 @@ export declare enum ModCallbackCustom {
|
|
|
64
64
|
* ```
|
|
65
65
|
*/
|
|
66
66
|
POST_BONE_SWING = 4,
|
|
67
|
+
/**
|
|
68
|
+
* Fires from the `POST_PICKUP_UPDATE` callback when a collectible goes from a non-zero sub-type
|
|
69
|
+
* to `CollectibleType.NULL` (i.e. an "empty" pedestal).
|
|
70
|
+
*
|
|
71
|
+
* When registering the callback, takes an optional second argument that will make the callback
|
|
72
|
+
* only fire if the collectible type changed from the `CollectibleType` provided.
|
|
73
|
+
*
|
|
74
|
+
* ```ts
|
|
75
|
+
* function postCollectibleEmpty(
|
|
76
|
+
* collectible: EntityPickupCollectible,
|
|
77
|
+
* oldCollectibleType: CollectibleType,
|
|
78
|
+
* ): void {}
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
POST_COLLECTIBLE_EMPTY = 5,
|
|
67
82
|
/**
|
|
68
83
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
69
84
|
* respective collectible on the run. For more details on how this is calculated, see the
|
|
@@ -80,7 +95,7 @@ export declare enum ModCallbackCustom {
|
|
|
80
95
|
* function postCollectibleInitLate(collectible: EntityPickup): void {}
|
|
81
96
|
* ```
|
|
82
97
|
*/
|
|
83
|
-
POST_COLLECTIBLE_INIT_FIRST =
|
|
98
|
+
POST_COLLECTIBLE_INIT_FIRST = 6,
|
|
84
99
|
/**
|
|
85
100
|
* Fires from the `POST_PLAYER_RENDER` callback on the first frame that the "TeleportUp" animation
|
|
86
101
|
* begins playing after a player triggers a Cursed Eye teleport or a Cursed Skull teleport. (Both
|
|
@@ -90,7 +105,7 @@ export declare enum ModCallbackCustom {
|
|
|
90
105
|
* function postCursedTeleport(player: EntityPlayer): void {}
|
|
91
106
|
* ```
|
|
92
107
|
*/
|
|
93
|
-
POST_CURSED_TELEPORT =
|
|
108
|
+
POST_CURSED_TELEPORT = 7,
|
|
94
109
|
/**
|
|
95
110
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player enters the loading zone of a custom
|
|
96
111
|
* door created with the `spawnCustomDoor` helper function.
|
|
@@ -107,7 +122,7 @@ export declare enum ModCallbackCustom {
|
|
|
107
122
|
* ): void {}
|
|
108
123
|
* ```
|
|
109
124
|
*/
|
|
110
|
-
POST_CUSTOM_DOOR_ENTER =
|
|
125
|
+
POST_CUSTOM_DOOR_ENTER = 8,
|
|
111
126
|
/**
|
|
112
127
|
* Fires from the `POST_PLAYER_UPDATE` callback after the player has finished the death animation,
|
|
113
128
|
* has teleported to the previous room, and is ready to play the animation for the modded revival
|
|
@@ -124,7 +139,7 @@ export declare enum ModCallbackCustom {
|
|
|
124
139
|
* function postCustomRevive(player: EntityPlayer, revivalType: int): void {}
|
|
125
140
|
* ```
|
|
126
141
|
*/
|
|
127
|
-
POST_CUSTOM_REVIVE =
|
|
142
|
+
POST_CUSTOM_REVIVE = 9,
|
|
128
143
|
/**
|
|
129
144
|
* Fires from the `EFFECT_POST_UPDATE` callback after a player has entered the range of a Dice
|
|
130
145
|
* Room floor.
|
|
@@ -139,7 +154,7 @@ export declare enum ModCallbackCustom {
|
|
|
139
154
|
* ): void {}
|
|
140
155
|
* ```
|
|
141
156
|
*/
|
|
142
|
-
POST_DICE_ROOM_ACTIVATED =
|
|
157
|
+
POST_DICE_ROOM_ACTIVATED = 10,
|
|
143
158
|
/**
|
|
144
159
|
* Fires from the `POST_RENDER` callback on every frame that a door exists.
|
|
145
160
|
*
|
|
@@ -150,7 +165,7 @@ export declare enum ModCallbackCustom {
|
|
|
150
165
|
* function postDoorRender(door: GridEntityDoor): void {}
|
|
151
166
|
* ```
|
|
152
167
|
*/
|
|
153
|
-
POST_DOOR_RENDER =
|
|
168
|
+
POST_DOOR_RENDER = 11,
|
|
154
169
|
/**
|
|
155
170
|
* Fires from the `POST_UPDATE` callback on every frame that a door exists.
|
|
156
171
|
*
|
|
@@ -161,7 +176,7 @@ export declare enum ModCallbackCustom {
|
|
|
161
176
|
* function postDoorUpdate(door: GridEntityDoor): void {}
|
|
162
177
|
* ```
|
|
163
178
|
*/
|
|
164
|
-
POST_DOOR_UPDATE =
|
|
179
|
+
POST_DOOR_UPDATE = 12,
|
|
165
180
|
/**
|
|
166
181
|
* Fires on the first `POST_EFFECT_UPDATE` frame for each effect.
|
|
167
182
|
*
|
|
@@ -175,7 +190,7 @@ export declare enum ModCallbackCustom {
|
|
|
175
190
|
* function postEffectInitLate(effect: EntityEffect): void {}
|
|
176
191
|
* ```
|
|
177
192
|
*/
|
|
178
|
-
POST_EFFECT_INIT_LATE =
|
|
193
|
+
POST_EFFECT_INIT_LATE = 13,
|
|
179
194
|
/**
|
|
180
195
|
* Fires from the `POST_EFFECT_UPDATE` callback when an effect's state has changed from what it
|
|
181
196
|
* was on the previous frame.
|
|
@@ -191,7 +206,7 @@ export declare enum ModCallbackCustom {
|
|
|
191
206
|
* ): void {}
|
|
192
207
|
* ```
|
|
193
208
|
*/
|
|
194
|
-
POST_EFFECT_STATE_CHANGED =
|
|
209
|
+
POST_EFFECT_STATE_CHANGED = 14,
|
|
195
210
|
/**
|
|
196
211
|
* Fires one `POST_UPDATE` frame after the player has used the Esau Jr. item. (The player is not
|
|
197
212
|
* updated to the new character until a game frame has passed.)
|
|
@@ -200,7 +215,7 @@ export declare enum ModCallbackCustom {
|
|
|
200
215
|
* function postEsauJr(player: EntityPlayer): void {}
|
|
201
216
|
* ```
|
|
202
217
|
*/
|
|
203
|
-
POST_ESAU_JR =
|
|
218
|
+
POST_ESAU_JR = 15,
|
|
204
219
|
/**
|
|
205
220
|
* Fires on the first `FAMILIAR_UPDATE` frame for each familiar.
|
|
206
221
|
*
|
|
@@ -214,7 +229,7 @@ export declare enum ModCallbackCustom {
|
|
|
214
229
|
* function postFamiliarInitLate(familiar: EntityFamiliar): void {}
|
|
215
230
|
* ```
|
|
216
231
|
*/
|
|
217
|
-
POST_FAMILIAR_INIT_LATE =
|
|
232
|
+
POST_FAMILIAR_INIT_LATE = 16,
|
|
218
233
|
/**
|
|
219
234
|
* Fires from the `POST_FAMILIAR_UPDATE` callback when a familiar's state has changed from what it
|
|
220
235
|
* was on the previous frame.
|
|
@@ -230,7 +245,7 @@ export declare enum ModCallbackCustom {
|
|
|
230
245
|
* ): void {}
|
|
231
246
|
* ```
|
|
232
247
|
*/
|
|
233
|
-
POST_FAMILIAR_STATE_CHANGED =
|
|
248
|
+
POST_FAMILIAR_STATE_CHANGED = 17,
|
|
234
249
|
/**
|
|
235
250
|
* Fires one `POST_UPDATE` frame after the player has first used the Esau Jr. item. (The player is
|
|
236
251
|
* not updated to the new character until a game frame has passed.)
|
|
@@ -242,7 +257,7 @@ export declare enum ModCallbackCustom {
|
|
|
242
257
|
* function postFirstEsauJr(player: EntityPlayer): void {}
|
|
243
258
|
* ```
|
|
244
259
|
*/
|
|
245
|
-
POST_FIRST_ESAU_JR =
|
|
260
|
+
POST_FIRST_ESAU_JR = 18,
|
|
246
261
|
/**
|
|
247
262
|
* Fires after the player has used the Flip item for the first time. Unlike the vanilla `USE_ITEM`
|
|
248
263
|
* callback, this callback will return the player object for the new Lazarus (not the one who used
|
|
@@ -255,7 +270,7 @@ export declare enum ModCallbackCustom {
|
|
|
255
270
|
* function postFirstFlip(player: EntityPlayer): void {}
|
|
256
271
|
* ```
|
|
257
272
|
*/
|
|
258
|
-
POST_FIRST_FLIP =
|
|
273
|
+
POST_FIRST_FLIP = 19,
|
|
259
274
|
/**
|
|
260
275
|
* Fires after the player has used the Flip item. Unlike the vanilla `USE_ITEM` callback, this
|
|
261
276
|
* callback will return the player object for the new Lazarus (not the one who used the Flip
|
|
@@ -268,7 +283,7 @@ export declare enum ModCallbackCustom {
|
|
|
268
283
|
* function postFlip(player: EntityPlayer): void {}
|
|
269
284
|
* ```
|
|
270
285
|
*/
|
|
271
|
-
POST_FLIP =
|
|
286
|
+
POST_FLIP = 20,
|
|
272
287
|
/**
|
|
273
288
|
* Similar to the vanilla callback of the same name, but fires in the correct order with respect
|
|
274
289
|
* to the `POST_NEW_LEVEL` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -279,7 +294,7 @@ export declare enum ModCallbackCustom {
|
|
|
279
294
|
* function postGameStartedReordered(isContinued: boolean): void {}
|
|
280
295
|
* ```
|
|
281
296
|
*/
|
|
282
|
-
POST_GAME_STARTED_REORDERED =
|
|
297
|
+
POST_GAME_STARTED_REORDERED = 21,
|
|
283
298
|
/**
|
|
284
299
|
* Fires from the `POST_UPDATE` callback when the Greed Mode wave increases.
|
|
285
300
|
*
|
|
@@ -287,7 +302,7 @@ export declare enum ModCallbackCustom {
|
|
|
287
302
|
* function postGreedModeWave(oldWave: int, newWave: int): void {}
|
|
288
303
|
* ```
|
|
289
304
|
*/
|
|
290
|
-
POST_GREED_MODE_WAVE =
|
|
305
|
+
POST_GREED_MODE_WAVE = 22,
|
|
291
306
|
/**
|
|
292
307
|
* Fires from the `POST_UPDATE` update when a grid entity changes to a state that corresponds to
|
|
293
308
|
* the broken state for the respective grid entity type.
|
|
@@ -299,7 +314,7 @@ export declare enum ModCallbackCustom {
|
|
|
299
314
|
* function postGridEntityBroken(gridEntity: GridEntity): void {}
|
|
300
315
|
* ```
|
|
301
316
|
*/
|
|
302
|
-
POST_GRID_ENTITY_BROKEN =
|
|
317
|
+
POST_GRID_ENTITY_BROKEN = 23,
|
|
303
318
|
/**
|
|
304
319
|
* Fires from the `POST_UPDATE` callback when a new entity collides with a grid entity.
|
|
305
320
|
*
|
|
@@ -313,7 +328,7 @@ export declare enum ModCallbackCustom {
|
|
|
313
328
|
* ): void {}
|
|
314
329
|
* ```
|
|
315
330
|
*/
|
|
316
|
-
POST_GRID_ENTITY_COLLISION =
|
|
331
|
+
POST_GRID_ENTITY_COLLISION = 24,
|
|
317
332
|
/**
|
|
318
333
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
319
334
|
*
|
|
@@ -329,7 +344,7 @@ export declare enum ModCallbackCustom {
|
|
|
329
344
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
330
345
|
* ```
|
|
331
346
|
*/
|
|
332
|
-
POST_GRID_ENTITY_INIT =
|
|
347
|
+
POST_GRID_ENTITY_INIT = 25,
|
|
333
348
|
/**
|
|
334
349
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
335
350
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -344,7 +359,7 @@ export declare enum ModCallbackCustom {
|
|
|
344
359
|
* ): void {}
|
|
345
360
|
* ```
|
|
346
361
|
*/
|
|
347
|
-
POST_GRID_ENTITY_REMOVE =
|
|
362
|
+
POST_GRID_ENTITY_REMOVE = 26,
|
|
348
363
|
/**
|
|
349
364
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
350
365
|
*
|
|
@@ -357,7 +372,7 @@ export declare enum ModCallbackCustom {
|
|
|
357
372
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
358
373
|
* ```
|
|
359
374
|
*/
|
|
360
|
-
POST_GRID_ENTITY_RENDER =
|
|
375
|
+
POST_GRID_ENTITY_RENDER = 27,
|
|
361
376
|
/**
|
|
362
377
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state.
|
|
363
378
|
*
|
|
@@ -372,7 +387,7 @@ export declare enum ModCallbackCustom {
|
|
|
372
387
|
* ): void {}
|
|
373
388
|
* ```
|
|
374
389
|
*/
|
|
375
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
390
|
+
POST_GRID_ENTITY_STATE_CHANGED = 28,
|
|
376
391
|
/**
|
|
377
392
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
378
393
|
*
|
|
@@ -385,7 +400,7 @@ export declare enum ModCallbackCustom {
|
|
|
385
400
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
386
401
|
* ```
|
|
387
402
|
*/
|
|
388
|
-
POST_GRID_ENTITY_UPDATE =
|
|
403
|
+
POST_GRID_ENTITY_UPDATE = 29,
|
|
389
404
|
/**
|
|
390
405
|
* Fires from the `POST_PEFFECT_UPDATE` callback when the player loses a Holy Mantle temporary
|
|
391
406
|
* collectible effect.
|
|
@@ -407,7 +422,7 @@ export declare enum ModCallbackCustom {
|
|
|
407
422
|
* ): void {}
|
|
408
423
|
* ```
|
|
409
424
|
*/
|
|
410
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
425
|
+
POST_HOLY_MANTLE_REMOVED = 30,
|
|
411
426
|
/**
|
|
412
427
|
* Fires from `POST_PEFFECT_UPDATE` callback when the player loses charge on their active
|
|
413
428
|
* collectible item, implying that the item was just used.
|
|
@@ -429,7 +444,7 @@ export declare enum ModCallbackCustom {
|
|
|
429
444
|
* ): void {}
|
|
430
445
|
* ```
|
|
431
446
|
*/
|
|
432
|
-
POST_ITEM_DISCHARGE =
|
|
447
|
+
POST_ITEM_DISCHARGE = 31,
|
|
433
448
|
/**
|
|
434
449
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item is no longer queued (i.e. when the
|
|
435
450
|
* animation of the player holding the item above their head is finished and the item is actually
|
|
@@ -449,7 +464,7 @@ export declare enum ModCallbackCustom {
|
|
|
449
464
|
* ): void {}
|
|
450
465
|
* ```
|
|
451
466
|
*/
|
|
452
|
-
POST_ITEM_PICKUP =
|
|
467
|
+
POST_ITEM_PICKUP = 32,
|
|
453
468
|
/**
|
|
454
469
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
455
470
|
*
|
|
@@ -463,7 +478,7 @@ export declare enum ModCallbackCustom {
|
|
|
463
478
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
464
479
|
* ```
|
|
465
480
|
*/
|
|
466
|
-
POST_KNIFE_INIT_LATE =
|
|
481
|
+
POST_KNIFE_INIT_LATE = 33,
|
|
467
482
|
/**
|
|
468
483
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
469
484
|
*
|
|
@@ -477,7 +492,7 @@ export declare enum ModCallbackCustom {
|
|
|
477
492
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
478
493
|
* ```
|
|
479
494
|
*/
|
|
480
|
-
POST_LASER_INIT_LATE =
|
|
495
|
+
POST_LASER_INIT_LATE = 34,
|
|
481
496
|
/**
|
|
482
497
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
483
498
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -494,7 +509,7 @@ export declare enum ModCallbackCustom {
|
|
|
494
509
|
* function postNewLevelReordered(): void {}
|
|
495
510
|
* ```
|
|
496
511
|
*/
|
|
497
|
-
POST_NEW_LEVEL_REORDERED =
|
|
512
|
+
POST_NEW_LEVEL_REORDERED = 35,
|
|
498
513
|
/**
|
|
499
514
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
500
515
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -505,7 +520,7 @@ export declare enum ModCallbackCustom {
|
|
|
505
520
|
* function postNewRoomEarly(): void {}
|
|
506
521
|
* ```
|
|
507
522
|
*/
|
|
508
|
-
POST_NEW_ROOM_EARLY =
|
|
523
|
+
POST_NEW_ROOM_EARLY = 36,
|
|
509
524
|
/**
|
|
510
525
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
511
526
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -522,7 +537,7 @@ export declare enum ModCallbackCustom {
|
|
|
522
537
|
* function postNewRoomReordered(): void {}
|
|
523
538
|
* ```
|
|
524
539
|
*/
|
|
525
|
-
POST_NEW_ROOM_REORDERED =
|
|
540
|
+
POST_NEW_ROOM_REORDERED = 37,
|
|
526
541
|
/**
|
|
527
542
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
528
543
|
*
|
|
@@ -536,7 +551,7 @@ export declare enum ModCallbackCustom {
|
|
|
536
551
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
537
552
|
* ```
|
|
538
553
|
*/
|
|
539
|
-
POST_NPC_INIT_LATE =
|
|
554
|
+
POST_NPC_INIT_LATE = 38,
|
|
540
555
|
/**
|
|
541
556
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
542
557
|
* the previous frame.
|
|
@@ -554,7 +569,7 @@ export declare enum ModCallbackCustom {
|
|
|
554
569
|
* ): void {}
|
|
555
570
|
* ```
|
|
556
571
|
*/
|
|
557
|
-
POST_NPC_STATE_CHANGED =
|
|
572
|
+
POST_NPC_STATE_CHANGED = 39,
|
|
558
573
|
/**
|
|
559
574
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
560
575
|
* callback fires (if the player is being updated on the 0th game frame of the run).
|
|
@@ -577,7 +592,7 @@ export declare enum ModCallbackCustom {
|
|
|
577
592
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
578
593
|
* ```
|
|
579
594
|
*/
|
|
580
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
595
|
+
POST_PEFFECT_UPDATE_REORDERED = 40,
|
|
581
596
|
/**
|
|
582
597
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
583
598
|
*
|
|
@@ -590,7 +605,7 @@ export declare enum ModCallbackCustom {
|
|
|
590
605
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
591
606
|
* ```
|
|
592
607
|
*/
|
|
593
|
-
POST_PICKUP_COLLECT =
|
|
608
|
+
POST_PICKUP_COLLECT = 41,
|
|
594
609
|
/**
|
|
595
610
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
596
611
|
* respective pickup on the run.
|
|
@@ -612,7 +627,7 @@ export declare enum ModCallbackCustom {
|
|
|
612
627
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
613
628
|
* ```
|
|
614
629
|
*/
|
|
615
|
-
POST_PICKUP_INIT_FIRST =
|
|
630
|
+
POST_PICKUP_INIT_FIRST = 42,
|
|
616
631
|
/**
|
|
617
632
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
618
633
|
*
|
|
@@ -626,7 +641,7 @@ export declare enum ModCallbackCustom {
|
|
|
626
641
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
627
642
|
* ```
|
|
628
643
|
*/
|
|
629
|
-
POST_PICKUP_INIT_LATE =
|
|
644
|
+
POST_PICKUP_INIT_LATE = 43,
|
|
630
645
|
/**
|
|
631
646
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
632
647
|
* on the previous frame.
|
|
@@ -642,7 +657,7 @@ export declare enum ModCallbackCustom {
|
|
|
642
657
|
* ): void {}
|
|
643
658
|
* ```
|
|
644
659
|
*/
|
|
645
|
-
POST_PICKUP_STATE_CHANGED =
|
|
660
|
+
POST_PICKUP_STATE_CHANGED = 44,
|
|
646
661
|
/**
|
|
647
662
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
648
663
|
*
|
|
@@ -653,7 +668,7 @@ export declare enum ModCallbackCustom {
|
|
|
653
668
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
654
669
|
* ```
|
|
655
670
|
*/
|
|
656
|
-
POST_PIT_RENDER =
|
|
671
|
+
POST_PIT_RENDER = 45,
|
|
657
672
|
/**
|
|
658
673
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
659
674
|
*
|
|
@@ -664,7 +679,7 @@ export declare enum ModCallbackCustom {
|
|
|
664
679
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
665
680
|
* ```
|
|
666
681
|
*/
|
|
667
|
-
POST_PIT_UPDATE =
|
|
682
|
+
POST_PIT_UPDATE = 46,
|
|
668
683
|
/**
|
|
669
684
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player entity gains or loses any health
|
|
670
685
|
* (i.e. hearts). For more information, see the `PlayerHealth` enum.
|
|
@@ -682,7 +697,7 @@ export declare enum ModCallbackCustom {
|
|
|
682
697
|
* ): void {}
|
|
683
698
|
* ```
|
|
684
699
|
*/
|
|
685
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
700
|
+
POST_PLAYER_CHANGE_HEALTH = 47,
|
|
686
701
|
/**
|
|
687
702
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player entity changes its player type
|
|
688
703
|
* (i.e. character). For example, it will fire after using Clicker, after dying with the Judas'
|
|
@@ -700,7 +715,7 @@ export declare enum ModCallbackCustom {
|
|
|
700
715
|
* ): void {}
|
|
701
716
|
* ```
|
|
702
717
|
*/
|
|
703
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
718
|
+
POST_PLAYER_CHANGE_TYPE = 48,
|
|
704
719
|
/**
|
|
705
720
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is higher than
|
|
706
721
|
* what it was on the previous frame.
|
|
@@ -715,7 +730,7 @@ export declare enum ModCallbackCustom {
|
|
|
715
730
|
* ): void {}
|
|
716
731
|
* ```
|
|
717
732
|
*/
|
|
718
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
733
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 49,
|
|
719
734
|
/**
|
|
720
735
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is lower than
|
|
721
736
|
* what it was on the previous frame.
|
|
@@ -730,7 +745,7 @@ export declare enum ModCallbackCustom {
|
|
|
730
745
|
* ): void {}
|
|
731
746
|
* ```
|
|
732
747
|
*/
|
|
733
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
748
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 50,
|
|
734
749
|
/**
|
|
735
750
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
736
751
|
* prevent the fatal damage.
|
|
@@ -747,7 +762,7 @@ export declare enum ModCallbackCustom {
|
|
|
747
762
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
748
763
|
* ```
|
|
749
764
|
*/
|
|
750
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
765
|
+
POST_PLAYER_FATAL_DAMAGE = 51,
|
|
751
766
|
/**
|
|
752
767
|
* Fires on the first `POST_PLAYER_UPDATE` frame for each player.
|
|
753
768
|
*
|
|
@@ -763,7 +778,7 @@ export declare enum ModCallbackCustom {
|
|
|
763
778
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
764
779
|
* ```
|
|
765
780
|
*/
|
|
766
|
-
POST_PLAYER_INIT_LATE =
|
|
781
|
+
POST_PLAYER_INIT_LATE = 52,
|
|
767
782
|
/**
|
|
768
783
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
769
784
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -785,7 +800,7 @@ export declare enum ModCallbackCustom {
|
|
|
785
800
|
* function postPlayerInitReordered(player: EntityPlayer): void {}
|
|
786
801
|
* ```
|
|
787
802
|
*/
|
|
788
|
-
POST_PLAYER_INIT_REORDERED =
|
|
803
|
+
POST_PLAYER_INIT_REORDERED = 53,
|
|
789
804
|
/**
|
|
790
805
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
791
806
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -808,7 +823,7 @@ export declare enum ModCallbackCustom {
|
|
|
808
823
|
* function postPlayerRenderReordered(player: EntityPlayer): void {}
|
|
809
824
|
* ```
|
|
810
825
|
*/
|
|
811
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
826
|
+
POST_PLAYER_RENDER_REORDERED = 54,
|
|
812
827
|
/**
|
|
813
828
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
814
829
|
* callback fires (if the player is being updated on the 0th game frame of the run).
|
|
@@ -831,7 +846,7 @@ export declare enum ModCallbackCustom {
|
|
|
831
846
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
832
847
|
* ```
|
|
833
848
|
*/
|
|
834
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
849
|
+
POST_PLAYER_UPDATE_REORDERED = 55,
|
|
835
850
|
/**
|
|
836
851
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
837
852
|
*
|
|
@@ -842,7 +857,7 @@ export declare enum ModCallbackCustom {
|
|
|
842
857
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
843
858
|
* ```
|
|
844
859
|
*/
|
|
845
|
-
POST_POOP_RENDER =
|
|
860
|
+
POST_POOP_RENDER = 56,
|
|
846
861
|
/**
|
|
847
862
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
848
863
|
*
|
|
@@ -853,7 +868,7 @@ export declare enum ModCallbackCustom {
|
|
|
853
868
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
854
869
|
* ```
|
|
855
870
|
*/
|
|
856
|
-
POST_POOP_UPDATE =
|
|
871
|
+
POST_POOP_UPDATE = 57,
|
|
857
872
|
/**
|
|
858
873
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
859
874
|
*
|
|
@@ -864,7 +879,7 @@ export declare enum ModCallbackCustom {
|
|
|
864
879
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
865
880
|
* ```
|
|
866
881
|
*/
|
|
867
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
882
|
+
POST_PRESSURE_PLATE_RENDER = 58,
|
|
868
883
|
/**
|
|
869
884
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
870
885
|
*
|
|
@@ -875,7 +890,7 @@ export declare enum ModCallbackCustom {
|
|
|
875
890
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
876
891
|
* ```
|
|
877
892
|
*/
|
|
878
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
893
|
+
POST_PRESSURE_PLATE_UPDATE = 59,
|
|
879
894
|
/**
|
|
880
895
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
881
896
|
*
|
|
@@ -889,7 +904,7 @@ export declare enum ModCallbackCustom {
|
|
|
889
904
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
890
905
|
* ```
|
|
891
906
|
*/
|
|
892
|
-
POST_PROJECTILE_INIT_LATE =
|
|
907
|
+
POST_PROJECTILE_INIT_LATE = 60,
|
|
893
908
|
/**
|
|
894
909
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player first picks up a new item. The
|
|
895
910
|
* pickup returned in the callback is assumed to be the first pickup that no longer exists.
|
|
@@ -903,7 +918,7 @@ export declare enum ModCallbackCustom {
|
|
|
903
918
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
904
919
|
* ```
|
|
905
920
|
*/
|
|
906
|
-
POST_PURCHASE =
|
|
921
|
+
POST_PURCHASE = 61,
|
|
907
922
|
/**
|
|
908
923
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
909
924
|
*
|
|
@@ -914,7 +929,7 @@ export declare enum ModCallbackCustom {
|
|
|
914
929
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
915
930
|
* ```
|
|
916
931
|
*/
|
|
917
|
-
POST_ROCK_RENDER =
|
|
932
|
+
POST_ROCK_RENDER = 62,
|
|
918
933
|
/**
|
|
919
934
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
920
935
|
*
|
|
@@ -925,7 +940,7 @@ export declare enum ModCallbackCustom {
|
|
|
925
940
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
926
941
|
* ```
|
|
927
942
|
*/
|
|
928
|
-
POST_ROCK_UPDATE =
|
|
943
|
+
POST_ROCK_UPDATE = 63,
|
|
929
944
|
/**
|
|
930
945
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes.
|
|
931
946
|
*
|
|
@@ -936,7 +951,7 @@ export declare enum ModCallbackCustom {
|
|
|
936
951
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
937
952
|
* ```
|
|
938
953
|
*/
|
|
939
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
954
|
+
POST_ROOM_CLEAR_CHANGED = 64,
|
|
940
955
|
/**
|
|
941
956
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
942
957
|
* Room.
|
|
@@ -950,7 +965,7 @@ export declare enum ModCallbackCustom {
|
|
|
950
965
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
951
966
|
* ```
|
|
952
967
|
*/
|
|
953
|
-
POST_SACRIFICE =
|
|
968
|
+
POST_SACRIFICE = 65,
|
|
954
969
|
/**
|
|
955
970
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
956
971
|
*
|
|
@@ -961,7 +976,7 @@ export declare enum ModCallbackCustom {
|
|
|
961
976
|
* function postSlotAnimationChanged(slot: Entity): void {}
|
|
962
977
|
* ```
|
|
963
978
|
*/
|
|
964
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
979
|
+
POST_SLOT_ANIMATION_CHANGED = 66,
|
|
965
980
|
/**
|
|
966
981
|
* Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
|
|
967
982
|
* has broken.
|
|
@@ -975,7 +990,7 @@ export declare enum ModCallbackCustom {
|
|
|
975
990
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
976
991
|
* ```
|
|
977
992
|
*/
|
|
978
|
-
POST_SLOT_DESTROYED =
|
|
993
|
+
POST_SLOT_DESTROYED = 67,
|
|
979
994
|
/**
|
|
980
995
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
981
996
|
*
|
|
@@ -991,7 +1006,7 @@ export declare enum ModCallbackCustom {
|
|
|
991
1006
|
* function postSlotInit(slot: Entity): void {}
|
|
992
1007
|
* ```
|
|
993
1008
|
*/
|
|
994
|
-
POST_SLOT_INIT =
|
|
1009
|
+
POST_SLOT_INIT = 68,
|
|
995
1010
|
/**
|
|
996
1011
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
997
1012
|
*
|
|
@@ -1002,7 +1017,7 @@ export declare enum ModCallbackCustom {
|
|
|
1002
1017
|
* function postSlotRender(slot: Entity): void {}
|
|
1003
1018
|
* ```
|
|
1004
1019
|
*/
|
|
1005
|
-
POST_SLOT_RENDER =
|
|
1020
|
+
POST_SLOT_RENDER = 69,
|
|
1006
1021
|
/**
|
|
1007
1022
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
1008
1023
|
*
|
|
@@ -1013,7 +1028,7 @@ export declare enum ModCallbackCustom {
|
|
|
1013
1028
|
* function postSlotUpdate(slot: Entity): void {}
|
|
1014
1029
|
* ```
|
|
1015
1030
|
*/
|
|
1016
|
-
POST_SLOT_UPDATE =
|
|
1031
|
+
POST_SLOT_UPDATE = 70,
|
|
1017
1032
|
/**
|
|
1018
1033
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
1019
1034
|
*
|
|
@@ -1024,7 +1039,7 @@ export declare enum ModCallbackCustom {
|
|
|
1024
1039
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
1025
1040
|
* ```
|
|
1026
1041
|
*/
|
|
1027
|
-
POST_SPIKES_RENDER =
|
|
1042
|
+
POST_SPIKES_RENDER = 71,
|
|
1028
1043
|
/**
|
|
1029
1044
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
1030
1045
|
*
|
|
@@ -1035,7 +1050,7 @@ export declare enum ModCallbackCustom {
|
|
|
1035
1050
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
1036
1051
|
* ```
|
|
1037
1052
|
*/
|
|
1038
|
-
POST_SPIKES_UPDATE =
|
|
1053
|
+
POST_SPIKES_UPDATE = 72,
|
|
1039
1054
|
/**
|
|
1040
1055
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1041
1056
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -1050,7 +1065,7 @@ export declare enum ModCallbackCustom {
|
|
|
1050
1065
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
1051
1066
|
* ```
|
|
1052
1067
|
*/
|
|
1053
|
-
POST_TEAR_INIT_LATE =
|
|
1068
|
+
POST_TEAR_INIT_LATE = 73,
|
|
1054
1069
|
/**
|
|
1055
1070
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1056
1071
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -1064,7 +1079,7 @@ export declare enum ModCallbackCustom {
|
|
|
1064
1079
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
1065
1080
|
* ```
|
|
1066
1081
|
*/
|
|
1067
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
1082
|
+
POST_TEAR_INIT_VERY_LATE = 74,
|
|
1068
1083
|
/**
|
|
1069
1084
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
1070
1085
|
*
|
|
@@ -1075,7 +1090,7 @@ export declare enum ModCallbackCustom {
|
|
|
1075
1090
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
1076
1091
|
* ```
|
|
1077
1092
|
*/
|
|
1078
|
-
POST_TNT_RENDER =
|
|
1093
|
+
POST_TNT_RENDER = 75,
|
|
1079
1094
|
/**
|
|
1080
1095
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
1081
1096
|
*
|
|
@@ -1086,7 +1101,7 @@ export declare enum ModCallbackCustom {
|
|
|
1086
1101
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
1087
1102
|
* ```
|
|
1088
1103
|
*/
|
|
1089
|
-
POST_TNT_UPDATE =
|
|
1104
|
+
POST_TNT_UPDATE = 76,
|
|
1090
1105
|
/**
|
|
1091
1106
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player gains or loses a new
|
|
1092
1107
|
* transformation.
|
|
@@ -1104,7 +1119,7 @@ export declare enum ModCallbackCustom {
|
|
|
1104
1119
|
* ): void {}
|
|
1105
1120
|
* ```
|
|
1106
1121
|
*/
|
|
1107
|
-
POST_TRANSFORMATION =
|
|
1122
|
+
POST_TRANSFORMATION = 77,
|
|
1108
1123
|
/**
|
|
1109
1124
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
1110
1125
|
*
|
|
@@ -1118,7 +1133,7 @@ export declare enum ModCallbackCustom {
|
|
|
1118
1133
|
* ): void {}
|
|
1119
1134
|
* ```
|
|
1120
1135
|
*/
|
|
1121
|
-
POST_TRINKET_BREAK =
|
|
1136
|
+
POST_TRINKET_BREAK = 78,
|
|
1122
1137
|
/**
|
|
1123
1138
|
* Fires from the `POST_PEFFECT_UPDATE` callback on the frame before a Berserk effect ends when
|
|
1124
1139
|
* the player is predicted to die (e.g. they currently have no health left or they took damage in
|
|
@@ -1133,7 +1148,7 @@ export declare enum ModCallbackCustom {
|
|
|
1133
1148
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
1134
1149
|
* ```
|
|
1135
1150
|
*/
|
|
1136
|
-
PRE_BERSERK_DEATH =
|
|
1151
|
+
PRE_BERSERK_DEATH = 79,
|
|
1137
1152
|
/**
|
|
1138
1153
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
1139
1154
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -1151,7 +1166,7 @@ export declare enum ModCallbackCustom {
|
|
|
1151
1166
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
1152
1167
|
* ```
|
|
1153
1168
|
*/
|
|
1154
|
-
PRE_CUSTOM_REVIVE =
|
|
1169
|
+
PRE_CUSTOM_REVIVE = 80,
|
|
1155
1170
|
/**
|
|
1156
1171
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item becomes queued (i.e. when the player
|
|
1157
1172
|
* begins to hold the item above their head).
|
|
@@ -1170,7 +1185,7 @@ export declare enum ModCallbackCustom {
|
|
|
1170
1185
|
* ): void {}
|
|
1171
1186
|
* ```
|
|
1172
1187
|
*/
|
|
1173
|
-
PRE_ITEM_PICKUP =
|
|
1188
|
+
PRE_ITEM_PICKUP = 81,
|
|
1174
1189
|
/**
|
|
1175
1190
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
1176
1191
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -1184,5 +1199,5 @@ export declare enum ModCallbackCustom {
|
|
|
1184
1199
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
1185
1200
|
* ```
|
|
1186
1201
|
*/
|
|
1187
|
-
PRE_NEW_LEVEL =
|
|
1202
|
+
PRE_NEW_LEVEL = 82
|
|
1188
1203
|
}
|