isaacscript-common 6.11.0 → 6.12.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/callbacks/postFlip.lua +2 -2
- package/dist/callbacks/postGridEntityCustomRender.d.ts +2 -0
- package/dist/callbacks/postGridEntityCustomRender.d.ts.map +1 -0
- package/dist/callbacks/postGridEntityCustomRender.lua +36 -0
- package/dist/callbacks/postGridEntityCustomUpdate.d.ts +2 -0
- package/dist/callbacks/postGridEntityCustomUpdate.d.ts.map +1 -0
- package/dist/callbacks/postGridEntityCustomUpdate.lua +36 -0
- package/dist/callbacks/postNewRoomEarly.lua +2 -2
- package/dist/callbacks/postPickupInitFirst.lua +1 -20
- package/dist/callbacks/postPlayerFatalDamage.lua +1 -1
- package/dist/callbacks/postPlayerInitFirst.d.ts +2 -0
- package/dist/callbacks/postPlayerInitFirst.d.ts.map +1 -0
- package/dist/callbacks/postPlayerInitFirst.lua +42 -0
- package/dist/callbacks/postPlayerInitLate.lua +5 -5
- package/dist/callbacks/postPlayerReorderedCallbacks.d.ts +2 -0
- package/dist/callbacks/postPlayerReorderedCallbacks.d.ts.map +1 -0
- package/dist/callbacks/{postPlayerReordered.lua → postPlayerReorderedCallbacks.lua} +11 -37
- package/dist/callbacks/reorderedCallbacks.d.ts +5 -5
- package/dist/callbacks/reorderedCallbacks.d.ts.map +1 -1
- package/dist/callbacks/reorderedCallbacks.lua +5 -5
- package/dist/callbacks/subscriptions/postFirstFlip.d.ts +1 -1
- package/dist/callbacks/subscriptions/postFirstFlip.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postFirstFlip.lua +2 -2
- package/dist/callbacks/subscriptions/postFlip.d.ts +1 -1
- package/dist/callbacks/subscriptions/postFlip.d.ts.map +1 -1
- package/dist/callbacks/subscriptions/postFlip.lua +2 -2
- package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts +6 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRender.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomRender.lua +29 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts +6 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/postGridEntityCustomUpdate.lua +29 -0
- package/dist/callbacks/subscriptions/{postPlayerInitReordered.d.ts → postPlayerInitFirst.d.ts} +2 -2
- package/dist/callbacks/subscriptions/postPlayerInitFirst.d.ts.map +1 -0
- package/dist/callbacks/subscriptions/{postPlayerInitReordered.lua → postPlayerInitFirst.lua} +3 -3
- package/dist/constants.d.ts +1 -5
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.lua +0 -7
- package/dist/constantsFirstLast.d.ts +5 -1
- package/dist/constantsFirstLast.d.ts.map +1 -1
- package/dist/constantsFirstLast.lua +6 -0
- package/dist/enums/ModCallbackCustom.d.ts +106 -81
- package/dist/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/enums/ModCallbackCustom.lua +63 -59
- package/dist/enums/private/StageTravelState.d.ts +9 -0
- package/dist/enums/private/StageTravelState.d.ts.map +1 -0
- package/dist/enums/private/StageTravelState.lua +15 -0
- package/dist/enums/private/TrapdoorAnimation.d.ts +6 -0
- package/dist/enums/private/TrapdoorAnimation.d.ts.map +1 -0
- package/dist/enums/private/TrapdoorAnimation.lua +6 -0
- package/dist/features/customGridEntity.d.ts +17 -5
- package/dist/features/customGridEntity.d.ts.map +1 -1
- package/dist/features/customGridEntity.lua +86 -17
- package/dist/features/customStage/exports.d.ts.map +1 -1
- package/dist/features/customStage/exports.lua +0 -13
- package/dist/features/customStage/init.d.ts.map +1 -1
- package/dist/features/customStage/init.lua +24 -2
- package/dist/features/customStage/streakText.d.ts +6 -0
- package/dist/features/customStage/streakText.d.ts.map +1 -1
- package/dist/features/customStage/streakText.lua +16 -12
- package/dist/features/customStage/versusScreen.d.ts +6 -0
- package/dist/features/customStage/versusScreen.d.ts.map +1 -1
- package/dist/features/customStage/versusScreen.lua +10 -5
- package/dist/features/customTrapdoor/blackSprite.d.ts +2 -0
- package/dist/features/customTrapdoor/blackSprite.d.ts.map +1 -0
- package/dist/features/customTrapdoor/blackSprite.lua +19 -0
- package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts +15 -0
- package/dist/features/customTrapdoor/customTrapdoorConstants.d.ts.map +1 -0
- package/dist/features/customTrapdoor/customTrapdoorConstants.lua +16 -0
- package/dist/features/customTrapdoor/exports.d.ts +29 -0
- package/dist/features/customTrapdoor/exports.d.ts.map +1 -0
- package/dist/features/customTrapdoor/exports.lua +93 -0
- package/dist/features/customTrapdoor/init.d.ts +3 -0
- package/dist/features/customTrapdoor/init.d.ts.map +1 -0
- package/dist/features/customTrapdoor/init.lua +174 -0
- package/dist/features/customTrapdoor/openClose.d.ts +5 -0
- package/dist/features/customTrapdoor/openClose.d.ts.map +1 -0
- package/dist/features/customTrapdoor/openClose.lua +60 -0
- package/dist/features/customTrapdoor/touched.d.ts +4 -0
- package/dist/features/customTrapdoor/touched.d.ts.map +1 -0
- package/dist/features/customTrapdoor/touched.lua +159 -0
- package/dist/features/customTrapdoor/v.d.ts +18 -0
- package/dist/features/customTrapdoor/v.d.ts.map +1 -0
- package/dist/features/customTrapdoor/v.lua +17 -0
- package/dist/features/deployJSONRoom.d.ts +2 -2
- package/dist/features/deployJSONRoom.d.ts.map +1 -1
- package/dist/features/deployJSONRoom.lua +3 -3
- package/dist/features/extraConsoleCommands/init.d.ts.map +1 -1
- package/dist/features/extraConsoleCommands/init.lua +3 -1
- package/dist/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
- package/dist/features/extraConsoleCommands/listCommands.lua +6 -6
- package/dist/features/pause.d.ts +1 -1
- package/dist/features/pause.d.ts.map +1 -1
- package/dist/features/pause.lua +87 -8
- package/dist/features/persistentEntities.d.ts.map +1 -1
- package/dist/features/persistentEntities.lua +7 -7
- package/dist/features/pickupIndex.d.ts +19 -0
- package/dist/features/pickupIndex.d.ts.map +1 -0
- package/dist/features/pickupIndex.lua +197 -0
- package/dist/features/roomHistory.d.ts +24 -0
- package/dist/features/roomHistory.d.ts.map +1 -0
- package/dist/features/roomHistory.lua +89 -0
- package/dist/features/taintedLazarusPlayers.d.ts.map +1 -1
- package/dist/features/taintedLazarusPlayers.lua +13 -21
- package/dist/functions/{character.d.ts → characters.d.ts} +3 -1
- package/dist/functions/characters.d.ts.map +1 -0
- package/dist/functions/{character.lua → characters.lua} +12 -0
- package/dist/functions/collectibles.d.ts +26 -13
- package/dist/functions/collectibles.d.ts.map +1 -1
- package/dist/functions/collectibles.lua +26 -13
- package/dist/functions/entities.d.ts +3 -3
- package/dist/functions/entities.d.ts.map +1 -1
- package/dist/functions/entities.lua +8 -3
- package/dist/functions/gridEntities.d.ts +2 -2
- package/dist/functions/gridEntities.lua +2 -2
- package/dist/functions/isaacAPIClass.d.ts +64 -0
- package/dist/functions/isaacAPIClass.d.ts.map +1 -1
- package/dist/functions/isaacAPIClass.lua +84 -1
- package/dist/functions/log.lua +3 -3
- package/dist/functions/pickupVariants.d.ts +2 -2
- package/dist/functions/pickupVariants.d.ts.map +1 -1
- package/dist/functions/pickupVariants.lua +2 -2
- package/dist/functions/playerCenter.lua +2 -2
- package/dist/functions/playerIndex.d.ts +11 -5
- package/dist/functions/playerIndex.d.ts.map +1 -1
- package/dist/functions/playerIndex.lua +19 -26
- package/dist/functions/players.lua +4 -4
- package/dist/functions/revive.lua +2 -2
- package/dist/functions/roomData.d.ts +3 -2
- package/dist/functions/roomData.d.ts.map +1 -1
- package/dist/functions/roomData.lua +3 -2
- package/dist/functions/rooms.d.ts +6 -6
- package/dist/functions/rooms.lua +6 -6
- package/dist/functions/stage.d.ts +1 -0
- package/dist/functions/stage.d.ts.map +1 -1
- package/dist/functions/stage.lua +4 -0
- package/dist/functions/table.d.ts +1 -1
- package/dist/functions/table.d.ts.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.lua +33 -2
- package/dist/initCustomCallbacks.d.ts.map +1 -1
- package/dist/initCustomCallbacks.lua +11 -2
- package/dist/initFeatures.d.ts +1 -2
- package/dist/initFeatures.d.ts.map +1 -1
- package/dist/initFeatures.lua +16 -2
- package/dist/interfaces/AddCallbackParameterCustom.d.ts +6 -2
- package/dist/interfaces/AddCallbackParameterCustom.d.ts.map +1 -1
- package/dist/interfaces/CustomGridEntityData.d.ts +6 -2
- package/dist/interfaces/CustomGridEntityData.d.ts.map +1 -1
- package/dist/interfaces/RoomDescription.d.ts +14 -0
- package/dist/interfaces/RoomDescription.d.ts.map +1 -0
- package/dist/interfaces/RoomDescription.lua +2 -0
- package/dist/interfaces/private/CustomTrapdoorDescription.d.ts +7 -0
- package/dist/interfaces/private/CustomTrapdoorDescription.d.ts.map +1 -0
- package/dist/interfaces/private/CustomTrapdoorDescription.lua +2 -0
- package/dist/lib/jsonLua.lua +2 -0
- package/dist/objects/callbackRegisterFunctions.d.ts.map +1 -1
- package/dist/objects/callbackRegisterFunctions.lua +9 -3
- package/dist/objects/characterDamageMultipliers.d.ts +6 -0
- package/dist/objects/characterDamageMultipliers.d.ts.map +1 -0
- package/dist/objects/characterDamageMultipliers.lua +49 -0
- package/dist/types/CollectibleIndex.d.ts +1 -1
- package/dist/types/PickupIndex.d.ts +17 -0
- package/dist/types/PickupIndex.d.ts.map +1 -0
- package/dist/types/PickupIndex.lua +2 -0
- package/dist/types/PlayerIndex.d.ts +1 -1
- package/dist/upgradeMod.lua +2 -4
- package/package.json +2 -2
- package/src/callbacks/customRevive.ts +3 -3
- package/src/callbacks/itemPickup.ts +3 -3
- package/src/callbacks/postAmbush.ts +3 -3
- package/src/callbacks/postEsauJr.ts +3 -3
- package/src/callbacks/postFlip.ts +6 -5
- package/src/callbacks/postGridEntity.ts +5 -5
- package/src/callbacks/postGridEntityCustomRender.ts +44 -0
- package/src/callbacks/postGridEntityCustomUpdate.ts +44 -0
- package/src/callbacks/postNewRoomEarly.ts +2 -2
- package/src/callbacks/postPickupInitFirst.ts +1 -32
- package/src/callbacks/postPlayerCollectible.ts +2 -2
- package/src/callbacks/postPlayerFatalDamage.ts +5 -0
- package/src/callbacks/postPlayerInitFirst.ts +57 -0
- package/src/callbacks/postPlayerInitLate.ts +9 -5
- package/src/callbacks/{postPlayerReordered.ts → postPlayerReorderedCallbacks.ts} +12 -32
- package/src/callbacks/postSlotInitUpdate.ts +5 -2
- package/src/callbacks/postSlotRender.ts +2 -2
- package/src/callbacks/reorderedCallbacks.ts +10 -9
- package/src/callbacks/subscriptions/postFirstFlip.ts +6 -3
- package/src/callbacks/subscriptions/postFlip.ts +6 -3
- package/src/callbacks/subscriptions/postGridEntityCustomRender.ts +41 -0
- package/src/callbacks/subscriptions/postGridEntityCustomUpdate.ts +41 -0
- package/src/callbacks/subscriptions/{postPlayerInitReordered.ts → postPlayerInitFirst.ts} +6 -6
- package/src/constants.ts +1 -9
- package/src/constantsFirstLast.ts +16 -0
- package/src/enums/ModCallbackCustom.ts +52 -25
- package/src/enums/private/StageTravelState.ts +8 -0
- package/src/enums/private/TrapdoorAnimation.ts +5 -0
- package/src/features/customGridEntity.ts +118 -12
- package/src/features/customStage/exports.ts +3 -22
- package/src/features/customStage/init.ts +30 -1
- package/src/features/customStage/streakText.ts +13 -5
- package/src/features/customStage/versusScreen.ts +20 -12
- package/src/features/customTrapdoor/blackSprite.ts +16 -0
- package/src/features/customTrapdoor/customTrapdoorConstants.ts +23 -0
- package/src/features/customTrapdoor/exports.ts +99 -0
- package/src/features/customTrapdoor/init.ts +217 -0
- package/src/features/customTrapdoor/openClose.ts +103 -0
- package/src/features/customTrapdoor/touched.ts +195 -0
- package/src/features/customTrapdoor/v.ts +26 -0
- package/src/features/deployJSONRoom.ts +10 -5
- package/src/features/extraConsoleCommands/init.ts +5 -2
- package/src/features/extraConsoleCommands/listCommands.ts +6 -8
- package/src/features/pause.ts +97 -7
- package/src/features/persistentEntities.ts +9 -8
- package/src/features/pickupIndex.ts +257 -0
- package/src/features/playerInventory.ts +2 -2
- package/src/features/roomHistory.ts +113 -0
- package/src/features/saveDataManager/main.ts +3 -3
- package/src/features/taintedLazarusPlayers.ts +37 -36
- package/src/functions/{character.ts → characters.ts} +13 -0
- package/src/functions/collectibles.ts +26 -13
- package/src/functions/deepCopy.ts +2 -2
- package/src/functions/entities.ts +7 -4
- package/src/functions/gridEntities.ts +2 -2
- package/src/functions/isaacAPIClass.ts +106 -1
- package/src/functions/pickupVariants.ts +2 -2
- package/src/functions/playerCenter.ts +2 -2
- package/src/functions/playerIndex.ts +26 -23
- package/src/functions/players.ts +1 -1
- package/src/functions/revive.ts +1 -1
- package/src/functions/rng.ts +1 -1
- package/src/functions/roomData.ts +3 -2
- package/src/functions/rooms.ts +6 -6
- package/src/functions/stage.ts +10 -1
- package/src/functions/table.ts +2 -2
- package/src/index.ts +9 -2
- package/src/initCustomCallbacks.ts +7 -1
- package/src/initFeatures.ts +13 -2
- package/src/interfaces/AddCallbackParameterCustom.ts +6 -2
- package/src/interfaces/CustomGridEntityData.ts +7 -2
- package/src/interfaces/RoomDescription.ts +19 -0
- package/src/interfaces/private/CustomTrapdoorDescription.ts +7 -0
- package/src/lib/jsonLua.lua +2 -0
- package/src/objects/callbackRegisterFunctions.ts +8 -3
- package/src/objects/characterDamageMultipliers.ts +49 -0
- package/src/types/CollectibleIndex.ts +1 -1
- package/src/types/PickupIndex.ts +15 -0
- package/src/types/PlayerIndex.ts +1 -1
- package/src/upgradeMod.ts +4 -4
- package/dist/callbacks/postPlayerReordered.d.ts +0 -2
- package/dist/callbacks/postPlayerReordered.d.ts.map +0 -1
- package/dist/callbacks/subscriptions/postPlayerInitReordered.d.ts.map +0 -1
- package/dist/functions/character.d.ts.map +0 -1
|
@@ -267,7 +267,7 @@ export declare enum ModCallbackCustom {
|
|
|
267
267
|
* before the player has actually used the Flip item.
|
|
268
268
|
*
|
|
269
269
|
* ```ts
|
|
270
|
-
* function postFirstFlip(
|
|
270
|
+
* function postFirstFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
271
271
|
* ```
|
|
272
272
|
*/
|
|
273
273
|
POST_FIRST_FLIP = 19,
|
|
@@ -280,7 +280,7 @@ export declare enum ModCallbackCustom {
|
|
|
280
280
|
* before the player has actually used the Flip item.
|
|
281
281
|
*
|
|
282
282
|
* ```ts
|
|
283
|
-
* function postFlip(
|
|
283
|
+
* function postFlip(newLazarus: EntityPlayer, oldLazarus: EntityPlayer): void {}
|
|
284
284
|
* ```
|
|
285
285
|
*/
|
|
286
286
|
POST_FLIP = 20,
|
|
@@ -304,7 +304,7 @@ export declare enum ModCallbackCustom {
|
|
|
304
304
|
*/
|
|
305
305
|
POST_GREED_MODE_WAVE = 22,
|
|
306
306
|
/**
|
|
307
|
-
* Fires from the `POST_UPDATE`
|
|
307
|
+
* Fires from the `POST_UPDATE` callback when a grid entity changes to a state that corresponds to
|
|
308
308
|
* the broken state for the respective grid entity type.
|
|
309
309
|
*
|
|
310
310
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
@@ -329,6 +329,36 @@ export declare enum ModCallbackCustom {
|
|
|
329
329
|
* ```
|
|
330
330
|
*/
|
|
331
331
|
POST_GRID_ENTITY_COLLISION = 24,
|
|
332
|
+
/**
|
|
333
|
+
* Fires from the `POST_RENDER` callback on every frame that a grid entity created with the
|
|
334
|
+
* `spawnCustomGridEntity` helper function exists.
|
|
335
|
+
*
|
|
336
|
+
* When registering the callback, takes an optional second argument that will make the callback
|
|
337
|
+
* only fire if it matches the `GridEntityType` provided.
|
|
338
|
+
*
|
|
339
|
+
* ```ts
|
|
340
|
+
* function postGridEntityRenderCustom(
|
|
341
|
+
* gridEntity: GridEntity,
|
|
342
|
+
* gridEntityTypeCustom: GridEntityType,
|
|
343
|
+
* ): void {}
|
|
344
|
+
* ```
|
|
345
|
+
*/
|
|
346
|
+
POST_GRID_ENTITY_CUSTOM_RENDER = 25,
|
|
347
|
+
/**
|
|
348
|
+
* Fires from the `POST_UPDATE` callback on every frame that a grid entity created with the
|
|
349
|
+
* `spawnCustomGridEntity` helper function exists.
|
|
350
|
+
*
|
|
351
|
+
* When registering the callback, takes an optional second argument that will make the callback
|
|
352
|
+
* only fire if it matches the `GridEntityType` provided.
|
|
353
|
+
*
|
|
354
|
+
* ```ts
|
|
355
|
+
* function postGridEntityUpdateCustom(
|
|
356
|
+
* gridEntity: GridEntity,
|
|
357
|
+
* gridEntityTypeCustom: GridEntityType,
|
|
358
|
+
* ): void {}
|
|
359
|
+
* ```
|
|
360
|
+
*/
|
|
361
|
+
POST_GRID_ENTITY_CUSTOM_UPDATE = 26,
|
|
332
362
|
/**
|
|
333
363
|
* Fires when a new grid entity is initialized. Specifically, this is either:
|
|
334
364
|
*
|
|
@@ -344,7 +374,7 @@ export declare enum ModCallbackCustom {
|
|
|
344
374
|
* function postGridEntityInit(gridEntity: GridEntity): void {}
|
|
345
375
|
* ```
|
|
346
376
|
*/
|
|
347
|
-
POST_GRID_ENTITY_INIT =
|
|
377
|
+
POST_GRID_ENTITY_INIT = 27,
|
|
348
378
|
/**
|
|
349
379
|
* Fires from the `POST_UPDATE` callback when a new grid entity is removed. Specifically, this on
|
|
350
380
|
* the frame after it no longer exists (where it did exist a frame ago).
|
|
@@ -359,7 +389,7 @@ export declare enum ModCallbackCustom {
|
|
|
359
389
|
* ): void {}
|
|
360
390
|
* ```
|
|
361
391
|
*/
|
|
362
|
-
POST_GRID_ENTITY_REMOVE =
|
|
392
|
+
POST_GRID_ENTITY_REMOVE = 28,
|
|
363
393
|
/**
|
|
364
394
|
* Fires from the `POST_RENDER` callback on every frame that a grid entity exists.
|
|
365
395
|
*
|
|
@@ -372,7 +402,7 @@ export declare enum ModCallbackCustom {
|
|
|
372
402
|
* function postGridEntityRender(gridEntity: GridEntity): void {}
|
|
373
403
|
* ```
|
|
374
404
|
*/
|
|
375
|
-
POST_GRID_ENTITY_RENDER =
|
|
405
|
+
POST_GRID_ENTITY_RENDER = 29,
|
|
376
406
|
/**
|
|
377
407
|
* Fires from the `POST_UPDATE` callback when a grid entity changes its state.
|
|
378
408
|
*
|
|
@@ -387,7 +417,7 @@ export declare enum ModCallbackCustom {
|
|
|
387
417
|
* ): void {}
|
|
388
418
|
* ```
|
|
389
419
|
*/
|
|
390
|
-
POST_GRID_ENTITY_STATE_CHANGED =
|
|
420
|
+
POST_GRID_ENTITY_STATE_CHANGED = 30,
|
|
391
421
|
/**
|
|
392
422
|
* Fires from the `POST_UPDATE` callback on every frame that a grid entity exists.
|
|
393
423
|
*
|
|
@@ -400,7 +430,7 @@ export declare enum ModCallbackCustom {
|
|
|
400
430
|
* function postGridEntityUpdate(gridEntity: GridEntity): void {}
|
|
401
431
|
* ```
|
|
402
432
|
*/
|
|
403
|
-
POST_GRID_ENTITY_UPDATE =
|
|
433
|
+
POST_GRID_ENTITY_UPDATE = 31,
|
|
404
434
|
/**
|
|
405
435
|
* Fires from the `POST_PEFFECT_UPDATE` callback when the player loses a Holy Mantle temporary
|
|
406
436
|
* collectible effect.
|
|
@@ -422,7 +452,7 @@ export declare enum ModCallbackCustom {
|
|
|
422
452
|
* ): void {}
|
|
423
453
|
* ```
|
|
424
454
|
*/
|
|
425
|
-
POST_HOLY_MANTLE_REMOVED =
|
|
455
|
+
POST_HOLY_MANTLE_REMOVED = 32,
|
|
426
456
|
/**
|
|
427
457
|
* Fires from `POST_PEFFECT_UPDATE` callback when the player loses charge on their active
|
|
428
458
|
* collectible item, implying that the item was just used.
|
|
@@ -444,7 +474,7 @@ export declare enum ModCallbackCustom {
|
|
|
444
474
|
* ): void {}
|
|
445
475
|
* ```
|
|
446
476
|
*/
|
|
447
|
-
POST_ITEM_DISCHARGE =
|
|
477
|
+
POST_ITEM_DISCHARGE = 33,
|
|
448
478
|
/**
|
|
449
479
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item is no longer queued (i.e. when the
|
|
450
480
|
* animation of the player holding the item above their head is finished and the item is actually
|
|
@@ -464,7 +494,7 @@ export declare enum ModCallbackCustom {
|
|
|
464
494
|
* ): void {}
|
|
465
495
|
* ```
|
|
466
496
|
*/
|
|
467
|
-
POST_ITEM_PICKUP =
|
|
497
|
+
POST_ITEM_PICKUP = 34,
|
|
468
498
|
/**
|
|
469
499
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
470
500
|
*
|
|
@@ -478,7 +508,7 @@ export declare enum ModCallbackCustom {
|
|
|
478
508
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
479
509
|
* ```
|
|
480
510
|
*/
|
|
481
|
-
POST_KNIFE_INIT_LATE =
|
|
511
|
+
POST_KNIFE_INIT_LATE = 35,
|
|
482
512
|
/**
|
|
483
513
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
484
514
|
*
|
|
@@ -492,7 +522,7 @@ export declare enum ModCallbackCustom {
|
|
|
492
522
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
493
523
|
* ```
|
|
494
524
|
*/
|
|
495
|
-
POST_LASER_INIT_LATE =
|
|
525
|
+
POST_LASER_INIT_LATE = 36,
|
|
496
526
|
/**
|
|
497
527
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
498
528
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -509,7 +539,7 @@ export declare enum ModCallbackCustom {
|
|
|
509
539
|
* function postNewLevelReordered(): void {}
|
|
510
540
|
* ```
|
|
511
541
|
*/
|
|
512
|
-
POST_NEW_LEVEL_REORDERED =
|
|
542
|
+
POST_NEW_LEVEL_REORDERED = 37,
|
|
513
543
|
/**
|
|
514
544
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
515
545
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -520,7 +550,7 @@ export declare enum ModCallbackCustom {
|
|
|
520
550
|
* function postNewRoomEarly(): void {}
|
|
521
551
|
* ```
|
|
522
552
|
*/
|
|
523
|
-
POST_NEW_ROOM_EARLY =
|
|
553
|
+
POST_NEW_ROOM_EARLY = 38,
|
|
524
554
|
/**
|
|
525
555
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
526
556
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -537,7 +567,7 @@ export declare enum ModCallbackCustom {
|
|
|
537
567
|
* function postNewRoomReordered(): void {}
|
|
538
568
|
* ```
|
|
539
569
|
*/
|
|
540
|
-
POST_NEW_ROOM_REORDERED =
|
|
570
|
+
POST_NEW_ROOM_REORDERED = 39,
|
|
541
571
|
/**
|
|
542
572
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
543
573
|
*
|
|
@@ -551,7 +581,7 @@ export declare enum ModCallbackCustom {
|
|
|
551
581
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
552
582
|
* ```
|
|
553
583
|
*/
|
|
554
|
-
POST_NPC_INIT_LATE =
|
|
584
|
+
POST_NPC_INIT_LATE = 40,
|
|
555
585
|
/**
|
|
556
586
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
557
587
|
* the previous frame.
|
|
@@ -569,7 +599,7 @@ export declare enum ModCallbackCustom {
|
|
|
569
599
|
* ): void {}
|
|
570
600
|
* ```
|
|
571
601
|
*/
|
|
572
|
-
POST_NPC_STATE_CHANGED =
|
|
602
|
+
POST_NPC_STATE_CHANGED = 41,
|
|
573
603
|
/**
|
|
574
604
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
575
605
|
* callback fires (if the player is being updated on the 0th game frame of the run).
|
|
@@ -592,7 +622,7 @@ export declare enum ModCallbackCustom {
|
|
|
592
622
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
593
623
|
* ```
|
|
594
624
|
*/
|
|
595
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
625
|
+
POST_PEFFECT_UPDATE_REORDERED = 42,
|
|
596
626
|
/**
|
|
597
627
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
598
628
|
*
|
|
@@ -605,7 +635,7 @@ export declare enum ModCallbackCustom {
|
|
|
605
635
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
606
636
|
* ```
|
|
607
637
|
*/
|
|
608
|
-
POST_PICKUP_COLLECT =
|
|
638
|
+
POST_PICKUP_COLLECT = 43,
|
|
609
639
|
/**
|
|
610
640
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
611
641
|
* respective pickup on the run.
|
|
@@ -613,13 +643,6 @@ export declare enum ModCallbackCustom {
|
|
|
613
643
|
* This callback is useful because pickups will despawn upon leaving the room and respawn upon
|
|
614
644
|
* re-entering the room.
|
|
615
645
|
*
|
|
616
|
-
* For most cases, this callback will simply fire when `POST_PICKUP_INIT` fires and the player is
|
|
617
|
-
* not re-entering a previously visited room.
|
|
618
|
-
*
|
|
619
|
-
* The special case is when a player enters a post-Ascent Treasure Room or Boss Room. For these
|
|
620
|
-
* cases, the `InitSeed` of any pickups seen from previous floors is kept track of to prevent the
|
|
621
|
-
* callback from firing when re-entering the room.
|
|
622
|
-
*
|
|
623
646
|
* When registering the callback, takes an optional second argument that will make the callback
|
|
624
647
|
* only fire if the collectible type matches the `PickupVariant` provided.
|
|
625
648
|
*
|
|
@@ -627,7 +650,7 @@ export declare enum ModCallbackCustom {
|
|
|
627
650
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
628
651
|
* ```
|
|
629
652
|
*/
|
|
630
|
-
POST_PICKUP_INIT_FIRST =
|
|
653
|
+
POST_PICKUP_INIT_FIRST = 44,
|
|
631
654
|
/**
|
|
632
655
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
633
656
|
*
|
|
@@ -641,7 +664,7 @@ export declare enum ModCallbackCustom {
|
|
|
641
664
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
642
665
|
* ```
|
|
643
666
|
*/
|
|
644
|
-
POST_PICKUP_INIT_LATE =
|
|
667
|
+
POST_PICKUP_INIT_LATE = 45,
|
|
645
668
|
/**
|
|
646
669
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
647
670
|
* on the previous frame.
|
|
@@ -657,7 +680,7 @@ export declare enum ModCallbackCustom {
|
|
|
657
680
|
* ): void {}
|
|
658
681
|
* ```
|
|
659
682
|
*/
|
|
660
|
-
POST_PICKUP_STATE_CHANGED =
|
|
683
|
+
POST_PICKUP_STATE_CHANGED = 46,
|
|
661
684
|
/**
|
|
662
685
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
663
686
|
*
|
|
@@ -668,7 +691,7 @@ export declare enum ModCallbackCustom {
|
|
|
668
691
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
669
692
|
* ```
|
|
670
693
|
*/
|
|
671
|
-
POST_PIT_RENDER =
|
|
694
|
+
POST_PIT_RENDER = 47,
|
|
672
695
|
/**
|
|
673
696
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
674
697
|
*
|
|
@@ -679,7 +702,7 @@ export declare enum ModCallbackCustom {
|
|
|
679
702
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
680
703
|
* ```
|
|
681
704
|
*/
|
|
682
|
-
POST_PIT_UPDATE =
|
|
705
|
+
POST_PIT_UPDATE = 48,
|
|
683
706
|
/**
|
|
684
707
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player entity gains or loses any health
|
|
685
708
|
* (i.e. hearts). For more information, see the `PlayerHealth` enum.
|
|
@@ -697,7 +720,7 @@ export declare enum ModCallbackCustom {
|
|
|
697
720
|
* ): void {}
|
|
698
721
|
* ```
|
|
699
722
|
*/
|
|
700
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
723
|
+
POST_PLAYER_CHANGE_HEALTH = 49,
|
|
701
724
|
/**
|
|
702
725
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player entity changes its player type
|
|
703
726
|
* (i.e. character). For example, it will fire after using Clicker, after dying with the Judas'
|
|
@@ -715,7 +738,7 @@ export declare enum ModCallbackCustom {
|
|
|
715
738
|
* ): void {}
|
|
716
739
|
* ```
|
|
717
740
|
*/
|
|
718
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
741
|
+
POST_PLAYER_CHANGE_TYPE = 50,
|
|
719
742
|
/**
|
|
720
743
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is higher than
|
|
721
744
|
* what it was on the previous frame.
|
|
@@ -730,7 +753,7 @@ export declare enum ModCallbackCustom {
|
|
|
730
753
|
* ): void {}
|
|
731
754
|
* ```
|
|
732
755
|
*/
|
|
733
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
756
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 51,
|
|
734
757
|
/**
|
|
735
758
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player's collectible count is lower than
|
|
736
759
|
* what it was on the previous frame.
|
|
@@ -745,7 +768,7 @@ export declare enum ModCallbackCustom {
|
|
|
745
768
|
* ): void {}
|
|
746
769
|
* ```
|
|
747
770
|
*/
|
|
748
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
771
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 52,
|
|
749
772
|
/**
|
|
750
773
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
751
774
|
* prevent the fatal damage.
|
|
@@ -762,12 +785,17 @@ export declare enum ModCallbackCustom {
|
|
|
762
785
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
763
786
|
* ```
|
|
764
787
|
*/
|
|
765
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
788
|
+
POST_PLAYER_FATAL_DAMAGE = 53,
|
|
766
789
|
/**
|
|
767
|
-
* Fires on the first `
|
|
790
|
+
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
791
|
+
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
768
792
|
*
|
|
769
|
-
* This
|
|
770
|
-
*
|
|
793
|
+
* - This will not fire for "child" players (e.g. non-real players like the Strawman Keeper).
|
|
794
|
+
* - This will fire when the player enters a Genesis room and all of their items are taken away.
|
|
795
|
+
*
|
|
796
|
+
* You should use this callback for any player-related initialization logic, like giving the
|
|
797
|
+
* character their starting items for the run. (You do not want to use the vanilla
|
|
798
|
+
* `POST_PLAYER_INIT` callback for this because it fires when a run is continued.)
|
|
771
799
|
*
|
|
772
800
|
* - When registering the callback, takes an optional second argument that will make the callback
|
|
773
801
|
* only fire if the player matches the `PlayerVariant` provided.
|
|
@@ -775,21 +803,18 @@ export declare enum ModCallbackCustom {
|
|
|
775
803
|
* only fire if the player matches the `PlayerType` provided.
|
|
776
804
|
*
|
|
777
805
|
* ```ts
|
|
778
|
-
* function
|
|
806
|
+
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
779
807
|
* ```
|
|
780
808
|
*/
|
|
781
|
-
|
|
809
|
+
POST_PLAYER_INIT_FIRST = 54,
|
|
782
810
|
/**
|
|
783
|
-
*
|
|
784
|
-
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
811
|
+
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
785
812
|
*
|
|
786
|
-
* This callback is useful
|
|
813
|
+
* This callback is useful because many attributes cannot be set or retrieved properly in the
|
|
814
|
+
* normal `POST_PLAYER_INIT` callback.
|
|
787
815
|
*
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
* 1. Some functions do not work (or crash the game) when called before the `POST_NEW_ROOM`
|
|
791
|
-
* callback. For example, since the level is not generated yet, you will not be able to access
|
|
792
|
-
* any rooms.
|
|
816
|
+
* For initializing a player with custom items and so forth, use the `POST_PLAYER_INIT_FIRST`
|
|
817
|
+
* callback instead to handle the case of a Genesis room.
|
|
793
818
|
*
|
|
794
819
|
* - When registering the callback, takes an optional second argument that will make the callback
|
|
795
820
|
* only fire if the player matches the `PlayerVariant` provided.
|
|
@@ -797,10 +822,10 @@ export declare enum ModCallbackCustom {
|
|
|
797
822
|
* only fire if the player matches the `PlayerType` provided.
|
|
798
823
|
*
|
|
799
824
|
* ```ts
|
|
800
|
-
* function
|
|
825
|
+
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
801
826
|
* ```
|
|
802
827
|
*/
|
|
803
|
-
|
|
828
|
+
POST_PLAYER_INIT_LATE = 55,
|
|
804
829
|
/**
|
|
805
830
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
806
831
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -823,7 +848,7 @@ export declare enum ModCallbackCustom {
|
|
|
823
848
|
* function postPlayerRenderReordered(player: EntityPlayer): void {}
|
|
824
849
|
* ```
|
|
825
850
|
*/
|
|
826
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
851
|
+
POST_PLAYER_RENDER_REORDERED = 56,
|
|
827
852
|
/**
|
|
828
853
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
829
854
|
* callback fires (if the player is being updated on the 0th game frame of the run).
|
|
@@ -846,7 +871,7 @@ export declare enum ModCallbackCustom {
|
|
|
846
871
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
847
872
|
* ```
|
|
848
873
|
*/
|
|
849
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
874
|
+
POST_PLAYER_UPDATE_REORDERED = 57,
|
|
850
875
|
/**
|
|
851
876
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
852
877
|
*
|
|
@@ -857,7 +882,7 @@ export declare enum ModCallbackCustom {
|
|
|
857
882
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
858
883
|
* ```
|
|
859
884
|
*/
|
|
860
|
-
POST_POOP_RENDER =
|
|
885
|
+
POST_POOP_RENDER = 58,
|
|
861
886
|
/**
|
|
862
887
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
863
888
|
*
|
|
@@ -868,7 +893,7 @@ export declare enum ModCallbackCustom {
|
|
|
868
893
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
869
894
|
* ```
|
|
870
895
|
*/
|
|
871
|
-
POST_POOP_UPDATE =
|
|
896
|
+
POST_POOP_UPDATE = 59,
|
|
872
897
|
/**
|
|
873
898
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
874
899
|
*
|
|
@@ -879,7 +904,7 @@ export declare enum ModCallbackCustom {
|
|
|
879
904
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
880
905
|
* ```
|
|
881
906
|
*/
|
|
882
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
907
|
+
POST_PRESSURE_PLATE_RENDER = 60,
|
|
883
908
|
/**
|
|
884
909
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
885
910
|
*
|
|
@@ -890,7 +915,7 @@ export declare enum ModCallbackCustom {
|
|
|
890
915
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
891
916
|
* ```
|
|
892
917
|
*/
|
|
893
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
918
|
+
POST_PRESSURE_PLATE_UPDATE = 61,
|
|
894
919
|
/**
|
|
895
920
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
896
921
|
*
|
|
@@ -904,7 +929,7 @@ export declare enum ModCallbackCustom {
|
|
|
904
929
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
905
930
|
* ```
|
|
906
931
|
*/
|
|
907
|
-
POST_PROJECTILE_INIT_LATE =
|
|
932
|
+
POST_PROJECTILE_INIT_LATE = 62,
|
|
908
933
|
/**
|
|
909
934
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player first picks up a new item. The
|
|
910
935
|
* pickup returned in the callback is assumed to be the first pickup that no longer exists.
|
|
@@ -918,7 +943,7 @@ export declare enum ModCallbackCustom {
|
|
|
918
943
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
919
944
|
* ```
|
|
920
945
|
*/
|
|
921
|
-
POST_PURCHASE =
|
|
946
|
+
POST_PURCHASE = 63,
|
|
922
947
|
/**
|
|
923
948
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
924
949
|
*
|
|
@@ -929,7 +954,7 @@ export declare enum ModCallbackCustom {
|
|
|
929
954
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
930
955
|
* ```
|
|
931
956
|
*/
|
|
932
|
-
POST_ROCK_RENDER =
|
|
957
|
+
POST_ROCK_RENDER = 64,
|
|
933
958
|
/**
|
|
934
959
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
935
960
|
*
|
|
@@ -940,7 +965,7 @@ export declare enum ModCallbackCustom {
|
|
|
940
965
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
941
966
|
* ```
|
|
942
967
|
*/
|
|
943
|
-
POST_ROCK_UPDATE =
|
|
968
|
+
POST_ROCK_UPDATE = 65,
|
|
944
969
|
/**
|
|
945
970
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes.
|
|
946
971
|
*
|
|
@@ -951,7 +976,7 @@ export declare enum ModCallbackCustom {
|
|
|
951
976
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
952
977
|
* ```
|
|
953
978
|
*/
|
|
954
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
979
|
+
POST_ROOM_CLEAR_CHANGED = 66,
|
|
955
980
|
/**
|
|
956
981
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
957
982
|
* Room.
|
|
@@ -965,7 +990,7 @@ export declare enum ModCallbackCustom {
|
|
|
965
990
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
966
991
|
* ```
|
|
967
992
|
*/
|
|
968
|
-
POST_SACRIFICE =
|
|
993
|
+
POST_SACRIFICE = 67,
|
|
969
994
|
/**
|
|
970
995
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
971
996
|
*
|
|
@@ -976,7 +1001,7 @@ export declare enum ModCallbackCustom {
|
|
|
976
1001
|
* function postSlotAnimationChanged(slot: Entity): void {}
|
|
977
1002
|
* ```
|
|
978
1003
|
*/
|
|
979
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
1004
|
+
POST_SLOT_ANIMATION_CHANGED = 68,
|
|
980
1005
|
/**
|
|
981
1006
|
* Fires from the `POST_RENDER` callback when a slot plays the animation that indicates that it
|
|
982
1007
|
* has broken.
|
|
@@ -990,7 +1015,7 @@ export declare enum ModCallbackCustom {
|
|
|
990
1015
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
991
1016
|
* ```
|
|
992
1017
|
*/
|
|
993
|
-
POST_SLOT_DESTROYED =
|
|
1018
|
+
POST_SLOT_DESTROYED = 69,
|
|
994
1019
|
/**
|
|
995
1020
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
996
1021
|
*
|
|
@@ -1006,7 +1031,7 @@ export declare enum ModCallbackCustom {
|
|
|
1006
1031
|
* function postSlotInit(slot: Entity): void {}
|
|
1007
1032
|
* ```
|
|
1008
1033
|
*/
|
|
1009
|
-
POST_SLOT_INIT =
|
|
1034
|
+
POST_SLOT_INIT = 70,
|
|
1010
1035
|
/**
|
|
1011
1036
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
1012
1037
|
*
|
|
@@ -1017,7 +1042,7 @@ export declare enum ModCallbackCustom {
|
|
|
1017
1042
|
* function postSlotRender(slot: Entity): void {}
|
|
1018
1043
|
* ```
|
|
1019
1044
|
*/
|
|
1020
|
-
POST_SLOT_RENDER =
|
|
1045
|
+
POST_SLOT_RENDER = 71,
|
|
1021
1046
|
/**
|
|
1022
1047
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
1023
1048
|
*
|
|
@@ -1028,7 +1053,7 @@ export declare enum ModCallbackCustom {
|
|
|
1028
1053
|
* function postSlotUpdate(slot: Entity): void {}
|
|
1029
1054
|
* ```
|
|
1030
1055
|
*/
|
|
1031
|
-
POST_SLOT_UPDATE =
|
|
1056
|
+
POST_SLOT_UPDATE = 72,
|
|
1032
1057
|
/**
|
|
1033
1058
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
1034
1059
|
*
|
|
@@ -1039,7 +1064,7 @@ export declare enum ModCallbackCustom {
|
|
|
1039
1064
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
1040
1065
|
* ```
|
|
1041
1066
|
*/
|
|
1042
|
-
POST_SPIKES_RENDER =
|
|
1067
|
+
POST_SPIKES_RENDER = 73,
|
|
1043
1068
|
/**
|
|
1044
1069
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
1045
1070
|
*
|
|
@@ -1050,7 +1075,7 @@ export declare enum ModCallbackCustom {
|
|
|
1050
1075
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
1051
1076
|
* ```
|
|
1052
1077
|
*/
|
|
1053
|
-
POST_SPIKES_UPDATE =
|
|
1078
|
+
POST_SPIKES_UPDATE = 74,
|
|
1054
1079
|
/**
|
|
1055
1080
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1056
1081
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -1065,7 +1090,7 @@ export declare enum ModCallbackCustom {
|
|
|
1065
1090
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
1066
1091
|
* ```
|
|
1067
1092
|
*/
|
|
1068
|
-
POST_TEAR_INIT_LATE =
|
|
1093
|
+
POST_TEAR_INIT_LATE = 75,
|
|
1069
1094
|
/**
|
|
1070
1095
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
1071
1096
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -1079,7 +1104,7 @@ export declare enum ModCallbackCustom {
|
|
|
1079
1104
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
1080
1105
|
* ```
|
|
1081
1106
|
*/
|
|
1082
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
1107
|
+
POST_TEAR_INIT_VERY_LATE = 76,
|
|
1083
1108
|
/**
|
|
1084
1109
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
1085
1110
|
*
|
|
@@ -1090,7 +1115,7 @@ export declare enum ModCallbackCustom {
|
|
|
1090
1115
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
1091
1116
|
* ```
|
|
1092
1117
|
*/
|
|
1093
|
-
POST_TNT_RENDER =
|
|
1118
|
+
POST_TNT_RENDER = 77,
|
|
1094
1119
|
/**
|
|
1095
1120
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
1096
1121
|
*
|
|
@@ -1101,7 +1126,7 @@ export declare enum ModCallbackCustom {
|
|
|
1101
1126
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
1102
1127
|
* ```
|
|
1103
1128
|
*/
|
|
1104
|
-
POST_TNT_UPDATE =
|
|
1129
|
+
POST_TNT_UPDATE = 78,
|
|
1105
1130
|
/**
|
|
1106
1131
|
* Fires from the `POST_PEFFECT_UPDATE` callback when a player gains or loses a new
|
|
1107
1132
|
* transformation.
|
|
@@ -1119,7 +1144,7 @@ export declare enum ModCallbackCustom {
|
|
|
1119
1144
|
* ): void {}
|
|
1120
1145
|
* ```
|
|
1121
1146
|
*/
|
|
1122
|
-
POST_TRANSFORMATION =
|
|
1147
|
+
POST_TRANSFORMATION = 79,
|
|
1123
1148
|
/**
|
|
1124
1149
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
1125
1150
|
*
|
|
@@ -1133,7 +1158,7 @@ export declare enum ModCallbackCustom {
|
|
|
1133
1158
|
* ): void {}
|
|
1134
1159
|
* ```
|
|
1135
1160
|
*/
|
|
1136
|
-
POST_TRINKET_BREAK =
|
|
1161
|
+
POST_TRINKET_BREAK = 80,
|
|
1137
1162
|
/**
|
|
1138
1163
|
* Fires from the `POST_PEFFECT_UPDATE` callback on the frame before a Berserk effect ends when
|
|
1139
1164
|
* the player is predicted to die (e.g. they currently have no health left or they took damage in
|
|
@@ -1148,7 +1173,7 @@ export declare enum ModCallbackCustom {
|
|
|
1148
1173
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
1149
1174
|
* ```
|
|
1150
1175
|
*/
|
|
1151
|
-
PRE_BERSERK_DEATH =
|
|
1176
|
+
PRE_BERSERK_DEATH = 81,
|
|
1152
1177
|
/**
|
|
1153
1178
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
1154
1179
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -1166,7 +1191,7 @@ export declare enum ModCallbackCustom {
|
|
|
1166
1191
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
1167
1192
|
* ```
|
|
1168
1193
|
*/
|
|
1169
|
-
PRE_CUSTOM_REVIVE =
|
|
1194
|
+
PRE_CUSTOM_REVIVE = 82,
|
|
1170
1195
|
/**
|
|
1171
1196
|
* Fires from the `POST_PEFFECT_UPDATE` callback when an item becomes queued (i.e. when the player
|
|
1172
1197
|
* begins to hold the item above their head).
|
|
@@ -1185,7 +1210,7 @@ export declare enum ModCallbackCustom {
|
|
|
1185
1210
|
* ): void {}
|
|
1186
1211
|
* ```
|
|
1187
1212
|
*/
|
|
1188
|
-
PRE_ITEM_PICKUP =
|
|
1213
|
+
PRE_ITEM_PICKUP = 83,
|
|
1189
1214
|
/**
|
|
1190
1215
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
1191
1216
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -1199,6 +1224,6 @@ export declare enum ModCallbackCustom {
|
|
|
1199
1224
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
1200
1225
|
* ```
|
|
1201
1226
|
*/
|
|
1202
|
-
PRE_NEW_LEVEL =
|
|
1227
|
+
PRE_NEW_LEVEL = 84
|
|
1203
1228
|
}
|
|
1204
1229
|
//# sourceMappingURL=ModCallbackCustom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModCallbackCustom.d.ts","sourceRoot":"","sources":["../../src/enums/ModCallbackCustom.ts"],"names":[],"mappings":"AASA;;;;;;;GAOG;AACH,oBAAY,iBAAiB;IAC3B;;;;;;;;;;OAUG;IACH,oBAAoB,IAAA;IAEpB;;;;;;;;;;OAUG;IACH,mBAAmB,IAAA;IAEnB;;;;;;;;;OASG;IACH,kBAAkB,IAAA;IAElB;;;;;;;;;;;;OAYG;IACH,mBAAmB,IAAA;IAEnB;;;;;;OAMG;IACH,eAAe,IAAA;IAEf;;;;;;;;;;;;;OAaG;IACH,sBAAsB,IAAA;IAEtB;;;;;;;;;;;;;;;OAeG;IACH,2BAA2B,IAAA;IAE3B;;;;;;;;OAQG;IACH,oBAAoB,IAAA;IAEpB;;;;;;;;;;;;;;;OAeG;IACH,sBAAsB,IAAA;IAEtB;;;;;;;;;;;;;;;OAeG;IACH,kBAAkB,IAAA;IAElB;;;;;;;;;;;;;OAaG;IACH,wBAAwB,KAAA;IAExB;;;;;;;;;OASG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;OASG;IACH,gBAAgB,KAAA;IAEhB;;;;;;;;;;;;OAYG;IACH,qBAAqB,KAAA;IAErB;;;;;;;;;;;;;;OAcG;IACH,yBAAyB,KAAA;IAEzB;;;;;;;OAOG;IACH,YAAY,KAAA;IAEZ;;;;;;;;;;;;OAYG;IACH,uBAAuB,KAAA;IAEvB;;;;;;;;;;;;;;OAcG;IACH,2BAA2B,KAAA;IAE3B;;;;;;;;;;OAUG;IACH,kBAAkB,KAAA;IAElB;;;;;;;;;;;OAWG;IACH,eAAe,KAAA;IAEf;;;;;;;;;;;OAWG;IACH,SAAS,KAAA;IAET;;;;;;;;;OASG;IACH,2BAA2B,KAAA;IAE3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