isaacscript-common 27.11.0 → 27.13.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.rollup.d.ts +211 -67
- package/dist/isaacscript-common.lua +297 -68
- package/dist/src/callbackClasses.d.ts +7 -0
- package/dist/src/callbackClasses.d.ts.map +1 -1
- package/dist/src/callbackClasses.lua +35 -0
- package/dist/src/callbacks.d.ts +74 -67
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +7 -0
- package/dist/src/classes/callbacks/PostKnifeInitFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostKnifeInitFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostKnifeInitFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostKnifeRenderFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostKnifeRenderFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostKnifeRenderFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostKnifeUpdateFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostKnifeUpdateFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostKnifeUpdateFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostLaserInitFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostLaserInitFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostLaserInitFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostLaserRenderFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostLaserRenderFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostLaserRenderFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostLaserUpdateFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostLaserUpdateFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostLaserUpdateFilter.lua +23 -0
- package/dist/src/classes/callbacks/PreKnifeCollisionFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PreKnifeCollisionFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PreKnifeCollisionFilter.lua +21 -0
- package/dist/src/classes/private/CustomCallback.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.d.ts +176 -67
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +81 -67
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +35 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/src/shouldFire.d.ts +2 -2
- package/dist/src/shouldFire.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/callbackClasses.ts +7 -0
- package/src/callbacks.ts +7 -0
- package/src/classes/callbacks/PostKnifeInitFilter.ts +22 -0
- package/src/classes/callbacks/PostKnifeRenderFilter.ts +22 -0
- package/src/classes/callbacks/PostKnifeUpdateFilter.ts +22 -0
- package/src/classes/callbacks/PostLaserInitFilter.ts +22 -0
- package/src/classes/callbacks/PostLaserRenderFilter.ts +22 -0
- package/src/classes/callbacks/PostLaserUpdateFilter.ts +22 -0
- package/src/classes/callbacks/PreKnifeCollisionFilter.ts +24 -0
- package/src/classes/private/CustomCallback.ts +4 -0
- package/src/enums/ModCallbackCustom.ts +116 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +46 -0
- package/src/shouldFire.ts +5 -2
package/dist/index.rollup.d.ts
CHANGED
|
@@ -323,16 +323,46 @@ declare interface AddCallbackParametersCustom {
|
|
|
323
323
|
keyboard?: Keyboard,
|
|
324
324
|
pressed?: boolean
|
|
325
325
|
];
|
|
326
|
+
[ModCallbackCustom.POST_KNIFE_INIT_FILTER]: [
|
|
327
|
+
callback: (knife: EntityKnife) => void,
|
|
328
|
+
knifeVariant?: KnifeVariant,
|
|
329
|
+
subType?: int
|
|
330
|
+
];
|
|
326
331
|
[ModCallbackCustom.POST_KNIFE_INIT_LATE]: [
|
|
327
332
|
callback: (knife: EntityKnife) => void,
|
|
328
333
|
knifeVariant?: KnifeVariant,
|
|
329
334
|
subType?: int
|
|
330
335
|
];
|
|
336
|
+
[ModCallbackCustom.POST_KNIFE_RENDER_FILTER]: [
|
|
337
|
+
callback: (knife: EntityKnife, renderOffset: Vector) => void,
|
|
338
|
+
knifeVariant?: KnifeVariant,
|
|
339
|
+
subType?: int
|
|
340
|
+
];
|
|
341
|
+
[ModCallbackCustom.POST_KNIFE_UPDATE_FILTER]: [
|
|
342
|
+
callback: (knife: EntityKnife) => void,
|
|
343
|
+
knifeVariant?: KnifeVariant,
|
|
344
|
+
subType?: int
|
|
345
|
+
];
|
|
346
|
+
[ModCallbackCustom.POST_LASER_INIT_FILTER]: [
|
|
347
|
+
callback: (laser: EntityLaser) => void,
|
|
348
|
+
laserVariant?: LaserVariant,
|
|
349
|
+
subType?: int
|
|
350
|
+
];
|
|
331
351
|
[ModCallbackCustom.POST_LASER_INIT_LATE]: [
|
|
332
352
|
callback: (laser: EntityLaser) => void,
|
|
333
353
|
laserVariant?: LaserVariant,
|
|
334
354
|
subType?: int
|
|
335
355
|
];
|
|
356
|
+
[ModCallbackCustom.POST_LASER_RENDER_FILTER]: [
|
|
357
|
+
callback: (laser: EntityLaser, renderOffset: Vector) => void,
|
|
358
|
+
laserVariant?: LaserVariant,
|
|
359
|
+
subType?: int
|
|
360
|
+
];
|
|
361
|
+
[ModCallbackCustom.POST_LASER_UPDATE_FILTER]: [
|
|
362
|
+
callback: (laser: EntityLaser) => void,
|
|
363
|
+
laserVariant?: LaserVariant,
|
|
364
|
+
subType?: int
|
|
365
|
+
];
|
|
336
366
|
[ModCallbackCustom.POST_NEW_LEVEL_REORDERED]: [
|
|
337
367
|
callback: (stage: LevelStage, stageType: StageType) => void,
|
|
338
368
|
stage?: LevelStage,
|
|
@@ -630,6 +660,11 @@ declare interface AddCallbackParametersCustom {
|
|
|
630
660
|
itemType: ItemType.TRINKET,
|
|
631
661
|
trinketType?: TrinketType
|
|
632
662
|
];
|
|
663
|
+
[ModCallbackCustom.PRE_KNIFE_COLLISION_FILTER]: [
|
|
664
|
+
callback: (knife: EntityKnife, collider: Entity, low: boolean) => boolean | undefined,
|
|
665
|
+
knifeVariant?: KnifeVariant,
|
|
666
|
+
subtype?: int
|
|
667
|
+
];
|
|
633
668
|
[ModCallbackCustom.PRE_NEW_LEVEL]: [callback: (player: EntityPlayer) => void];
|
|
634
669
|
[ModCallbackCustom.PRE_NPC_COLLISION_FILTER]: [
|
|
635
670
|
callback: (npc: EntityNPC, collider: Entity, low: boolean) => undefined | boolean,
|
|
@@ -10047,6 +10082,21 @@ export declare enum ModCallbackCustom {
|
|
|
10047
10082
|
* ```
|
|
10048
10083
|
*/
|
|
10049
10084
|
POST_KEYBOARD_CHANGED = 51,
|
|
10085
|
+
/**
|
|
10086
|
+
* The exact same thing as the vanilla `POST_KNIFE_INIT` callback, except this callback allows you
|
|
10087
|
+
* to specify extra arguments for additional filtration.
|
|
10088
|
+
*
|
|
10089
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10090
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10091
|
+
* matches the `KnifeVariant` provided.
|
|
10092
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10093
|
+
* matches the sub-type provided.
|
|
10094
|
+
*
|
|
10095
|
+
* ```ts
|
|
10096
|
+
* function postKnifeInitFilter(knife: EntityKnife): void {}
|
|
10097
|
+
* ```
|
|
10098
|
+
*/
|
|
10099
|
+
POST_KNIFE_INIT_FILTER = 52,
|
|
10050
10100
|
/**
|
|
10051
10101
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
10052
10102
|
*
|
|
@@ -10063,7 +10113,52 @@ export declare enum ModCallbackCustom {
|
|
|
10063
10113
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
10064
10114
|
* ```
|
|
10065
10115
|
*/
|
|
10066
|
-
POST_KNIFE_INIT_LATE =
|
|
10116
|
+
POST_KNIFE_INIT_LATE = 53,
|
|
10117
|
+
/**
|
|
10118
|
+
* The exact same thing as the vanilla `POST_KNIFE_RENDER` callback, except this callback allows
|
|
10119
|
+
* you to specify extra arguments for additional filtration.
|
|
10120
|
+
*
|
|
10121
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10122
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10123
|
+
* matches the `KnifeVariant` provided.
|
|
10124
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10125
|
+
* matches the sub-type provided.
|
|
10126
|
+
*
|
|
10127
|
+
* ```ts
|
|
10128
|
+
* function postKnifeRenderFilter(knife: EntityKnife, renderOffset: Vector): void {}
|
|
10129
|
+
* ```
|
|
10130
|
+
*/
|
|
10131
|
+
POST_KNIFE_RENDER_FILTER = 54,
|
|
10132
|
+
/**
|
|
10133
|
+
* The exact same thing as the vanilla `POST_KNIFE_UPDATE` callback, except this callback allows
|
|
10134
|
+
* you to specify extra arguments for additional filtration.
|
|
10135
|
+
*
|
|
10136
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10137
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10138
|
+
* matches the `KnifeVariant` provided.
|
|
10139
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10140
|
+
* matches the sub-type provided.
|
|
10141
|
+
*
|
|
10142
|
+
* ```ts
|
|
10143
|
+
* function postKnifeUpdateFilter(knife: EntityKnife): void {}
|
|
10144
|
+
* ```
|
|
10145
|
+
*/
|
|
10146
|
+
POST_KNIFE_UPDATE_FILTER = 55,
|
|
10147
|
+
/**
|
|
10148
|
+
* The exact same thing as the vanilla `POST_LASER_INIT` callback, except this callback allows you
|
|
10149
|
+
* to specify extra arguments for additional filtration.
|
|
10150
|
+
*
|
|
10151
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10152
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10153
|
+
* matches the `LaserVariant` provided.
|
|
10154
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10155
|
+
* matches the sub-type provided.
|
|
10156
|
+
*
|
|
10157
|
+
* ```ts
|
|
10158
|
+
* function postLaserInitFilter(laser: EntityLaser): void {}
|
|
10159
|
+
* ```
|
|
10160
|
+
*/
|
|
10161
|
+
POST_LASER_INIT_FILTER = 56,
|
|
10067
10162
|
/**
|
|
10068
10163
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
10069
10164
|
*
|
|
@@ -10080,7 +10175,37 @@ export declare enum ModCallbackCustom {
|
|
|
10080
10175
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
10081
10176
|
* ```
|
|
10082
10177
|
*/
|
|
10083
|
-
POST_LASER_INIT_LATE =
|
|
10178
|
+
POST_LASER_INIT_LATE = 57,
|
|
10179
|
+
/**
|
|
10180
|
+
* The exact same thing as the vanilla `POST_LASER_RENDER` callback, except this callback allows
|
|
10181
|
+
* you to specify extra arguments for additional filtration.
|
|
10182
|
+
*
|
|
10183
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10184
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10185
|
+
* matches the `LaserVariant` provided.
|
|
10186
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10187
|
+
* matches the sub-type provided.
|
|
10188
|
+
*
|
|
10189
|
+
* ```ts
|
|
10190
|
+
* function postLaserRenderFilter(laser: EntityLaser, renderOffset: Vector): void {}
|
|
10191
|
+
* ```
|
|
10192
|
+
*/
|
|
10193
|
+
POST_LASER_RENDER_FILTER = 58,
|
|
10194
|
+
/**
|
|
10195
|
+
* The exact same thing as the vanilla `POST_LASER_UPDATE` callback, except this callback allows
|
|
10196
|
+
* you to specify extra arguments for additional filtration.
|
|
10197
|
+
*
|
|
10198
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10199
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10200
|
+
* matches the `LaserVariant` provided.
|
|
10201
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10202
|
+
* matches the sub-type provided.
|
|
10203
|
+
*
|
|
10204
|
+
* ```ts
|
|
10205
|
+
* function postLaserUpdateFilter(laser: EntityLaser): void {}
|
|
10206
|
+
* ```
|
|
10207
|
+
*/
|
|
10208
|
+
POST_LASER_UPDATE_FILTER = 59,
|
|
10084
10209
|
/**
|
|
10085
10210
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
10086
10211
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -10106,7 +10231,7 @@ export declare enum ModCallbackCustom {
|
|
|
10106
10231
|
* function postNewLevelReordered(stage: LevelStage, stageType: StageType): void {}
|
|
10107
10232
|
* ```
|
|
10108
10233
|
*/
|
|
10109
|
-
POST_NEW_LEVEL_REORDERED =
|
|
10234
|
+
POST_NEW_LEVEL_REORDERED = 60,
|
|
10110
10235
|
/**
|
|
10111
10236
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
10112
10237
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -10123,7 +10248,7 @@ export declare enum ModCallbackCustom {
|
|
|
10123
10248
|
* function postNewRoomEarly(roomType: RoomType): void {}
|
|
10124
10249
|
* ```
|
|
10125
10250
|
*/
|
|
10126
|
-
POST_NEW_ROOM_EARLY =
|
|
10251
|
+
POST_NEW_ROOM_EARLY = 61,
|
|
10127
10252
|
/**
|
|
10128
10253
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
10129
10254
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -10146,7 +10271,7 @@ export declare enum ModCallbackCustom {
|
|
|
10146
10271
|
* function postNewRoomReordered(roomType: RoomType): void {}
|
|
10147
10272
|
* ```
|
|
10148
10273
|
*/
|
|
10149
|
-
POST_NEW_ROOM_REORDERED =
|
|
10274
|
+
POST_NEW_ROOM_REORDERED = 62,
|
|
10150
10275
|
/**
|
|
10151
10276
|
* The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
|
|
10152
10277
|
* to specify extra arguments for additional filtration.
|
|
@@ -10163,7 +10288,7 @@ export declare enum ModCallbackCustom {
|
|
|
10163
10288
|
* function postNPCDeathFilter(npc: EntityNPC): void {}
|
|
10164
10289
|
* ```
|
|
10165
10290
|
*/
|
|
10166
|
-
POST_NPC_DEATH_FILTER =
|
|
10291
|
+
POST_NPC_DEATH_FILTER = 63,
|
|
10167
10292
|
/**
|
|
10168
10293
|
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
10169
10294
|
* to specify extra arguments for additional filtration.
|
|
@@ -10180,7 +10305,7 @@ export declare enum ModCallbackCustom {
|
|
|
10180
10305
|
* function postNPCInitFilter(npc: EntityNPC): void {}
|
|
10181
10306
|
* ```
|
|
10182
10307
|
*/
|
|
10183
|
-
POST_NPC_INIT_FILTER =
|
|
10308
|
+
POST_NPC_INIT_FILTER = 64,
|
|
10184
10309
|
/**
|
|
10185
10310
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
10186
10311
|
*
|
|
@@ -10199,7 +10324,7 @@ export declare enum ModCallbackCustom {
|
|
|
10199
10324
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
10200
10325
|
* ```
|
|
10201
10326
|
*/
|
|
10202
|
-
POST_NPC_INIT_LATE =
|
|
10327
|
+
POST_NPC_INIT_LATE = 65,
|
|
10203
10328
|
/**
|
|
10204
10329
|
* The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
|
|
10205
10330
|
* to specify extra arguments for additional filtration.
|
|
@@ -10216,7 +10341,7 @@ export declare enum ModCallbackCustom {
|
|
|
10216
10341
|
* function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
|
|
10217
10342
|
* ```
|
|
10218
10343
|
*/
|
|
10219
|
-
POST_NPC_RENDER_FILTER =
|
|
10344
|
+
POST_NPC_RENDER_FILTER = 66,
|
|
10220
10345
|
/**
|
|
10221
10346
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
10222
10347
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -10237,7 +10362,7 @@ export declare enum ModCallbackCustom {
|
|
|
10237
10362
|
* ): void {}
|
|
10238
10363
|
* ```
|
|
10239
10364
|
*/
|
|
10240
|
-
POST_NPC_STATE_CHANGED =
|
|
10365
|
+
POST_NPC_STATE_CHANGED = 67,
|
|
10241
10366
|
/**
|
|
10242
10367
|
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
10243
10368
|
* to specify extra arguments for additional filtration.
|
|
@@ -10254,7 +10379,7 @@ export declare enum ModCallbackCustom {
|
|
|
10254
10379
|
* function postNPCUpdateFilter(npc: EntityNPC): void {}
|
|
10255
10380
|
* ```
|
|
10256
10381
|
*/
|
|
10257
|
-
POST_NPC_UPDATE_FILTER =
|
|
10382
|
+
POST_NPC_UPDATE_FILTER = 68,
|
|
10258
10383
|
/**
|
|
10259
10384
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
10260
10385
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -10279,7 +10404,7 @@ export declare enum ModCallbackCustom {
|
|
|
10279
10404
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
10280
10405
|
* ```
|
|
10281
10406
|
*/
|
|
10282
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
10407
|
+
POST_PEFFECT_UPDATE_REORDERED = 69,
|
|
10283
10408
|
/**
|
|
10284
10409
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup has a different variant or sub-type
|
|
10285
10410
|
* than what it was on the previous frame.
|
|
@@ -10300,7 +10425,7 @@ export declare enum ModCallbackCustom {
|
|
|
10300
10425
|
* ): void {}
|
|
10301
10426
|
* ```
|
|
10302
10427
|
*/
|
|
10303
|
-
POST_PICKUP_CHANGED =
|
|
10428
|
+
POST_PICKUP_CHANGED = 70,
|
|
10304
10429
|
/**
|
|
10305
10430
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
10306
10431
|
*
|
|
@@ -10319,7 +10444,7 @@ export declare enum ModCallbackCustom {
|
|
|
10319
10444
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
10320
10445
|
* ```
|
|
10321
10446
|
*/
|
|
10322
|
-
POST_PICKUP_COLLECT =
|
|
10447
|
+
POST_PICKUP_COLLECT = 71,
|
|
10323
10448
|
/**
|
|
10324
10449
|
* The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
|
|
10325
10450
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10334,7 +10459,7 @@ export declare enum ModCallbackCustom {
|
|
|
10334
10459
|
* function postPickupInitFilter(pickup: EntityPickup): void {}
|
|
10335
10460
|
* ```
|
|
10336
10461
|
*/
|
|
10337
|
-
POST_PICKUP_INIT_FILTER =
|
|
10462
|
+
POST_PICKUP_INIT_FILTER = 72,
|
|
10338
10463
|
/**
|
|
10339
10464
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
10340
10465
|
* respective pickup on the run.
|
|
@@ -10352,7 +10477,7 @@ export declare enum ModCallbackCustom {
|
|
|
10352
10477
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
10353
10478
|
* ```
|
|
10354
10479
|
*/
|
|
10355
|
-
POST_PICKUP_INIT_FIRST =
|
|
10480
|
+
POST_PICKUP_INIT_FIRST = 73,
|
|
10356
10481
|
/**
|
|
10357
10482
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
10358
10483
|
*
|
|
@@ -10369,7 +10494,7 @@ export declare enum ModCallbackCustom {
|
|
|
10369
10494
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
10370
10495
|
* ```
|
|
10371
10496
|
*/
|
|
10372
|
-
POST_PICKUP_INIT_LATE =
|
|
10497
|
+
POST_PICKUP_INIT_LATE = 74,
|
|
10373
10498
|
/**
|
|
10374
10499
|
* The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
|
|
10375
10500
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10384,7 +10509,7 @@ export declare enum ModCallbackCustom {
|
|
|
10384
10509
|
* function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
|
|
10385
10510
|
* ```
|
|
10386
10511
|
*/
|
|
10387
|
-
POST_PICKUP_RENDER_FILTER =
|
|
10512
|
+
POST_PICKUP_RENDER_FILTER = 75,
|
|
10388
10513
|
/**
|
|
10389
10514
|
* The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
|
|
10390
10515
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -10403,7 +10528,7 @@ export declare enum ModCallbackCustom {
|
|
|
10403
10528
|
* ): [PickupVariant, int] | undefined {}
|
|
10404
10529
|
* ```
|
|
10405
10530
|
*/
|
|
10406
|
-
POST_PICKUP_SELECTION_FILTER =
|
|
10531
|
+
POST_PICKUP_SELECTION_FILTER = 76,
|
|
10407
10532
|
/**
|
|
10408
10533
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
10409
10534
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -10422,7 +10547,7 @@ export declare enum ModCallbackCustom {
|
|
|
10422
10547
|
* ): void {}
|
|
10423
10548
|
* ```
|
|
10424
10549
|
*/
|
|
10425
|
-
POST_PICKUP_STATE_CHANGED =
|
|
10550
|
+
POST_PICKUP_STATE_CHANGED = 77,
|
|
10426
10551
|
/**
|
|
10427
10552
|
* The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
|
|
10428
10553
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10437,7 +10562,7 @@ export declare enum ModCallbackCustom {
|
|
|
10437
10562
|
* function postPickupUpdateFilter(pickup: EntityPickup): void {}
|
|
10438
10563
|
* ```
|
|
10439
10564
|
*/
|
|
10440
|
-
POST_PICKUP_UPDATE_FILTER =
|
|
10565
|
+
POST_PICKUP_UPDATE_FILTER = 78,
|
|
10441
10566
|
/**
|
|
10442
10567
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
10443
10568
|
*
|
|
@@ -10449,7 +10574,7 @@ export declare enum ModCallbackCustom {
|
|
|
10449
10574
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
10450
10575
|
* ```
|
|
10451
10576
|
*/
|
|
10452
|
-
POST_PIT_RENDER =
|
|
10577
|
+
POST_PIT_RENDER = 79,
|
|
10453
10578
|
/**
|
|
10454
10579
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
10455
10580
|
*
|
|
@@ -10461,7 +10586,7 @@ export declare enum ModCallbackCustom {
|
|
|
10461
10586
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
10462
10587
|
* ```
|
|
10463
10588
|
*/
|
|
10464
|
-
POST_PIT_UPDATE =
|
|
10589
|
+
POST_PIT_UPDATE = 80,
|
|
10465
10590
|
/**
|
|
10466
10591
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
10467
10592
|
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
@@ -10483,7 +10608,7 @@ export declare enum ModCallbackCustom {
|
|
|
10483
10608
|
* ): void {}
|
|
10484
10609
|
* ```
|
|
10485
10610
|
*/
|
|
10486
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
10611
|
+
POST_PLAYER_CHANGE_HEALTH = 81,
|
|
10487
10612
|
/**
|
|
10488
10613
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
10489
10614
|
* from what they were on the previous frame.
|
|
@@ -10513,7 +10638,7 @@ export declare enum ModCallbackCustom {
|
|
|
10513
10638
|
* ) => void {}
|
|
10514
10639
|
* ```
|
|
10515
10640
|
*/
|
|
10516
|
-
POST_PLAYER_CHANGE_STAT =
|
|
10641
|
+
POST_PLAYER_CHANGE_STAT = 82,
|
|
10517
10642
|
/**
|
|
10518
10643
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
10519
10644
|
* type
|
|
@@ -10536,7 +10661,7 @@ export declare enum ModCallbackCustom {
|
|
|
10536
10661
|
* ): void {}
|
|
10537
10662
|
* ```
|
|
10538
10663
|
*/
|
|
10539
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
10664
|
+
POST_PLAYER_CHANGE_TYPE = 83,
|
|
10540
10665
|
/**
|
|
10541
10666
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
10542
10667
|
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -10553,7 +10678,7 @@ export declare enum ModCallbackCustom {
|
|
|
10553
10678
|
* ): void {}
|
|
10554
10679
|
* ```
|
|
10555
10680
|
*/
|
|
10556
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
10681
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 84,
|
|
10557
10682
|
/**
|
|
10558
10683
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
10559
10684
|
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -10570,7 +10695,7 @@ export declare enum ModCallbackCustom {
|
|
|
10570
10695
|
* ): void {}
|
|
10571
10696
|
* ```
|
|
10572
10697
|
*/
|
|
10573
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
10698
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 85,
|
|
10574
10699
|
/**
|
|
10575
10700
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
10576
10701
|
* prevent the fatal damage.
|
|
@@ -10588,7 +10713,7 @@ export declare enum ModCallbackCustom {
|
|
|
10588
10713
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
10589
10714
|
* ```
|
|
10590
10715
|
*/
|
|
10591
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
10716
|
+
POST_PLAYER_FATAL_DAMAGE = 86,
|
|
10592
10717
|
/**
|
|
10593
10718
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
10594
10719
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -10610,7 +10735,7 @@ export declare enum ModCallbackCustom {
|
|
|
10610
10735
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
10611
10736
|
* ```
|
|
10612
10737
|
*/
|
|
10613
|
-
POST_PLAYER_INIT_FIRST =
|
|
10738
|
+
POST_PLAYER_INIT_FIRST = 87,
|
|
10614
10739
|
/**
|
|
10615
10740
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
10616
10741
|
*
|
|
@@ -10630,7 +10755,7 @@ export declare enum ModCallbackCustom {
|
|
|
10630
10755
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
10631
10756
|
* ```
|
|
10632
10757
|
*/
|
|
10633
|
-
POST_PLAYER_INIT_LATE =
|
|
10758
|
+
POST_PLAYER_INIT_LATE = 88,
|
|
10634
10759
|
/**
|
|
10635
10760
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
10636
10761
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -10654,7 +10779,7 @@ export declare enum ModCallbackCustom {
|
|
|
10654
10779
|
* function postPlayerRenderReordered(player: EntityPlayer, renderOffset: Vector): void {}
|
|
10655
10780
|
* ```
|
|
10656
10781
|
*/
|
|
10657
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
10782
|
+
POST_PLAYER_RENDER_REORDERED = 89,
|
|
10658
10783
|
/**
|
|
10659
10784
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
10660
10785
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -10679,7 +10804,7 @@ export declare enum ModCallbackCustom {
|
|
|
10679
10804
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
10680
10805
|
* ```
|
|
10681
10806
|
*/
|
|
10682
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
10807
|
+
POST_PLAYER_UPDATE_REORDERED = 90,
|
|
10683
10808
|
/**
|
|
10684
10809
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
10685
10810
|
*
|
|
@@ -10691,7 +10816,7 @@ export declare enum ModCallbackCustom {
|
|
|
10691
10816
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
10692
10817
|
* ```
|
|
10693
10818
|
*/
|
|
10694
|
-
POST_POOP_RENDER =
|
|
10819
|
+
POST_POOP_RENDER = 91,
|
|
10695
10820
|
/**
|
|
10696
10821
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
10697
10822
|
*
|
|
@@ -10703,7 +10828,7 @@ export declare enum ModCallbackCustom {
|
|
|
10703
10828
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
10704
10829
|
* ```
|
|
10705
10830
|
*/
|
|
10706
|
-
POST_POOP_UPDATE =
|
|
10831
|
+
POST_POOP_UPDATE = 92,
|
|
10707
10832
|
/**
|
|
10708
10833
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
10709
10834
|
*
|
|
@@ -10715,7 +10840,7 @@ export declare enum ModCallbackCustom {
|
|
|
10715
10840
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
10716
10841
|
* ```
|
|
10717
10842
|
*/
|
|
10718
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
10843
|
+
POST_PRESSURE_PLATE_RENDER = 93,
|
|
10719
10844
|
/**
|
|
10720
10845
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
10721
10846
|
*
|
|
@@ -10727,7 +10852,7 @@ export declare enum ModCallbackCustom {
|
|
|
10727
10852
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
10728
10853
|
* ```
|
|
10729
10854
|
*/
|
|
10730
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
10855
|
+
POST_PRESSURE_PLATE_UPDATE = 94,
|
|
10731
10856
|
/**
|
|
10732
10857
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
10733
10858
|
*
|
|
@@ -10744,7 +10869,7 @@ export declare enum ModCallbackCustom {
|
|
|
10744
10869
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
10745
10870
|
* ```
|
|
10746
10871
|
*/
|
|
10747
|
-
POST_PROJECTILE_INIT_LATE =
|
|
10872
|
+
POST_PROJECTILE_INIT_LATE = 95,
|
|
10748
10873
|
/**
|
|
10749
10874
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
10750
10875
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -10760,7 +10885,7 @@ export declare enum ModCallbackCustom {
|
|
|
10760
10885
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
10761
10886
|
* ```
|
|
10762
10887
|
*/
|
|
10763
|
-
POST_PURCHASE =
|
|
10888
|
+
POST_PURCHASE = 96,
|
|
10764
10889
|
/**
|
|
10765
10890
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
10766
10891
|
*
|
|
@@ -10774,7 +10899,7 @@ export declare enum ModCallbackCustom {
|
|
|
10774
10899
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
10775
10900
|
* ```
|
|
10776
10901
|
*/
|
|
10777
|
-
POST_ROCK_RENDER =
|
|
10902
|
+
POST_ROCK_RENDER = 97,
|
|
10778
10903
|
/**
|
|
10779
10904
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
10780
10905
|
*
|
|
@@ -10788,7 +10913,7 @@ export declare enum ModCallbackCustom {
|
|
|
10788
10913
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
10789
10914
|
* ```
|
|
10790
10915
|
*/
|
|
10791
|
-
POST_ROCK_UPDATE =
|
|
10916
|
+
POST_ROCK_UPDATE = 98,
|
|
10792
10917
|
/**
|
|
10793
10918
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
10794
10919
|
* the `Room.IsClear` method).
|
|
@@ -10805,7 +10930,7 @@ export declare enum ModCallbackCustom {
|
|
|
10805
10930
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
10806
10931
|
* ```
|
|
10807
10932
|
*/
|
|
10808
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
10933
|
+
POST_ROOM_CLEAR_CHANGED = 99,
|
|
10809
10934
|
/**
|
|
10810
10935
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
10811
10936
|
* Room.
|
|
@@ -10820,7 +10945,7 @@ export declare enum ModCallbackCustom {
|
|
|
10820
10945
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
10821
10946
|
* ```
|
|
10822
10947
|
*/
|
|
10823
|
-
POST_SACRIFICE =
|
|
10948
|
+
POST_SACRIFICE = 100,
|
|
10824
10949
|
/**
|
|
10825
10950
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
10826
10951
|
*
|
|
@@ -10838,7 +10963,7 @@ export declare enum ModCallbackCustom {
|
|
|
10838
10963
|
* ): void {}
|
|
10839
10964
|
* ```
|
|
10840
10965
|
*/
|
|
10841
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
10966
|
+
POST_SLOT_ANIMATION_CHANGED = 101,
|
|
10842
10967
|
/**
|
|
10843
10968
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
10844
10969
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -10862,7 +10987,7 @@ export declare enum ModCallbackCustom {
|
|
|
10862
10987
|
* ): void {}
|
|
10863
10988
|
* ```
|
|
10864
10989
|
*/
|
|
10865
|
-
POST_SLOT_COLLISION =
|
|
10990
|
+
POST_SLOT_COLLISION = 102,
|
|
10866
10991
|
/**
|
|
10867
10992
|
* Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
|
|
10868
10993
|
* destroyed or a beggar is removed.
|
|
@@ -10904,7 +11029,7 @@ export declare enum ModCallbackCustom {
|
|
|
10904
11029
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
10905
11030
|
* ```
|
|
10906
11031
|
*/
|
|
10907
|
-
POST_SLOT_DESTROYED =
|
|
11032
|
+
POST_SLOT_DESTROYED = 103,
|
|
10908
11033
|
/**
|
|
10909
11034
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
10910
11035
|
*
|
|
@@ -10923,7 +11048,7 @@ export declare enum ModCallbackCustom {
|
|
|
10923
11048
|
* function postSlotInit(slot: Entity): void {}
|
|
10924
11049
|
* ```
|
|
10925
11050
|
*/
|
|
10926
|
-
POST_SLOT_INIT =
|
|
11051
|
+
POST_SLOT_INIT = 104,
|
|
10927
11052
|
/**
|
|
10928
11053
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
10929
11054
|
*
|
|
@@ -10937,7 +11062,7 @@ export declare enum ModCallbackCustom {
|
|
|
10937
11062
|
* function postSlotRender(slot: Entity): void {}
|
|
10938
11063
|
* ```
|
|
10939
11064
|
*/
|
|
10940
|
-
POST_SLOT_RENDER =
|
|
11065
|
+
POST_SLOT_RENDER = 105,
|
|
10941
11066
|
/**
|
|
10942
11067
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
10943
11068
|
*
|
|
@@ -10951,7 +11076,7 @@ export declare enum ModCallbackCustom {
|
|
|
10951
11076
|
* function postSlotUpdate(slot: Entity): void {}
|
|
10952
11077
|
* ```
|
|
10953
11078
|
*/
|
|
10954
|
-
POST_SLOT_UPDATE =
|
|
11079
|
+
POST_SLOT_UPDATE = 106,
|
|
10955
11080
|
/**
|
|
10956
11081
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
10957
11082
|
*
|
|
@@ -10963,7 +11088,7 @@ export declare enum ModCallbackCustom {
|
|
|
10963
11088
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
10964
11089
|
* ```
|
|
10965
11090
|
*/
|
|
10966
|
-
POST_SPIKES_RENDER =
|
|
11091
|
+
POST_SPIKES_RENDER = 107,
|
|
10967
11092
|
/**
|
|
10968
11093
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
10969
11094
|
*
|
|
@@ -10975,7 +11100,7 @@ export declare enum ModCallbackCustom {
|
|
|
10975
11100
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
10976
11101
|
* ```
|
|
10977
11102
|
*/
|
|
10978
|
-
POST_SPIKES_UPDATE =
|
|
11103
|
+
POST_SPIKES_UPDATE = 108,
|
|
10979
11104
|
/**
|
|
10980
11105
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
10981
11106
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -10993,7 +11118,7 @@ export declare enum ModCallbackCustom {
|
|
|
10993
11118
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
10994
11119
|
* ```
|
|
10995
11120
|
*/
|
|
10996
|
-
POST_TEAR_INIT_LATE =
|
|
11121
|
+
POST_TEAR_INIT_LATE = 109,
|
|
10997
11122
|
/**
|
|
10998
11123
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
10999
11124
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -11010,7 +11135,7 @@ export declare enum ModCallbackCustom {
|
|
|
11010
11135
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
11011
11136
|
* ```
|
|
11012
11137
|
*/
|
|
11013
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
11138
|
+
POST_TEAR_INIT_VERY_LATE = 110,
|
|
11014
11139
|
/**
|
|
11015
11140
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
11016
11141
|
*
|
|
@@ -11022,7 +11147,7 @@ export declare enum ModCallbackCustom {
|
|
|
11022
11147
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
11023
11148
|
* ```
|
|
11024
11149
|
*/
|
|
11025
|
-
POST_TNT_RENDER =
|
|
11150
|
+
POST_TNT_RENDER = 111,
|
|
11026
11151
|
/**
|
|
11027
11152
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
11028
11153
|
*
|
|
@@ -11034,7 +11159,7 @@ export declare enum ModCallbackCustom {
|
|
|
11034
11159
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
11035
11160
|
* ```
|
|
11036
11161
|
*/
|
|
11037
|
-
POST_TNT_UPDATE =
|
|
11162
|
+
POST_TNT_UPDATE = 112,
|
|
11038
11163
|
/**
|
|
11039
11164
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
11040
11165
|
* transformation.
|
|
@@ -11053,7 +11178,7 @@ export declare enum ModCallbackCustom {
|
|
|
11053
11178
|
* ): void {}
|
|
11054
11179
|
* ```
|
|
11055
11180
|
*/
|
|
11056
|
-
POST_TRANSFORMATION =
|
|
11181
|
+
POST_TRANSFORMATION = 113,
|
|
11057
11182
|
/**
|
|
11058
11183
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
11059
11184
|
*
|
|
@@ -11068,7 +11193,7 @@ export declare enum ModCallbackCustom {
|
|
|
11068
11193
|
* ): void {}
|
|
11069
11194
|
* ```
|
|
11070
11195
|
*/
|
|
11071
|
-
POST_TRINKET_BREAK =
|
|
11196
|
+
POST_TRINKET_BREAK = 114,
|
|
11072
11197
|
/**
|
|
11073
11198
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
11074
11199
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -11084,7 +11209,7 @@ export declare enum ModCallbackCustom {
|
|
|
11084
11209
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
11085
11210
|
* ```
|
|
11086
11211
|
*/
|
|
11087
|
-
PRE_BERSERK_DEATH =
|
|
11212
|
+
PRE_BERSERK_DEATH = 115,
|
|
11088
11213
|
/**
|
|
11089
11214
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
11090
11215
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -11103,7 +11228,7 @@ export declare enum ModCallbackCustom {
|
|
|
11103
11228
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
11104
11229
|
* ```
|
|
11105
11230
|
*/
|
|
11106
|
-
PRE_CUSTOM_REVIVE =
|
|
11231
|
+
PRE_CUSTOM_REVIVE = 116,
|
|
11107
11232
|
/**
|
|
11108
11233
|
* The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
|
|
11109
11234
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11128,7 +11253,7 @@ export declare enum ModCallbackCustom {
|
|
|
11128
11253
|
* ): [EntityType, int, int, int] | undefined {}
|
|
11129
11254
|
* ```
|
|
11130
11255
|
*/
|
|
11131
|
-
PRE_ENTITY_SPAWN_FILTER =
|
|
11256
|
+
PRE_ENTITY_SPAWN_FILTER = 117,
|
|
11132
11257
|
/**
|
|
11133
11258
|
* The exact same thing as the vanilla `PRE_FAMILIAR_COLLISION` callback, except this callback
|
|
11134
11259
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11147,7 +11272,7 @@ export declare enum ModCallbackCustom {
|
|
|
11147
11272
|
* ): void {}
|
|
11148
11273
|
* ```
|
|
11149
11274
|
*/
|
|
11150
|
-
PRE_FAMILIAR_COLLISION_FILTER =
|
|
11275
|
+
PRE_FAMILIAR_COLLISION_FILTER = 118,
|
|
11151
11276
|
/**
|
|
11152
11277
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
11153
11278
|
* meets all of the conditions to pick it up.
|
|
@@ -11167,7 +11292,7 @@ export declare enum ModCallbackCustom {
|
|
|
11167
11292
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
11168
11293
|
* ```
|
|
11169
11294
|
*/
|
|
11170
|
-
PRE_GET_PEDESTAL =
|
|
11295
|
+
PRE_GET_PEDESTAL = 119,
|
|
11171
11296
|
/**
|
|
11172
11297
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
11173
11298
|
* the player begins to hold the item above their head).
|
|
@@ -11187,7 +11312,26 @@ export declare enum ModCallbackCustom {
|
|
|
11187
11312
|
* ): void {}
|
|
11188
11313
|
* ```
|
|
11189
11314
|
*/
|
|
11190
|
-
PRE_ITEM_PICKUP =
|
|
11315
|
+
PRE_ITEM_PICKUP = 120,
|
|
11316
|
+
/**
|
|
11317
|
+
* The exact same thing as the vanilla `PRE_KNIFE_COLLISION` callback, except this callback allows
|
|
11318
|
+
* you to specify extra arguments for additional filtration.
|
|
11319
|
+
*
|
|
11320
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
11321
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
11322
|
+
* matches the `KnifeVariant` provided.
|
|
11323
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
11324
|
+
* matches the sub-type provided.
|
|
11325
|
+
*
|
|
11326
|
+
* ```ts
|
|
11327
|
+
* function preKnifeCollisionFilter(
|
|
11328
|
+
* knife: EntityKnife,
|
|
11329
|
+
* collider: Entity,
|
|
11330
|
+
* low: boolean,
|
|
11331
|
+
* ): void {}
|
|
11332
|
+
* ```
|
|
11333
|
+
*/
|
|
11334
|
+
PRE_KNIFE_COLLISION_FILTER = 121,
|
|
11191
11335
|
/**
|
|
11192
11336
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
11193
11337
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -11201,7 +11345,7 @@ export declare enum ModCallbackCustom {
|
|
|
11201
11345
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
11202
11346
|
* ```
|
|
11203
11347
|
*/
|
|
11204
|
-
PRE_NEW_LEVEL =
|
|
11348
|
+
PRE_NEW_LEVEL = 122,
|
|
11205
11349
|
/**
|
|
11206
11350
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
11207
11351
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11222,7 +11366,7 @@ export declare enum ModCallbackCustom {
|
|
|
11222
11366
|
* ): boolean | undefined {}
|
|
11223
11367
|
* ```
|
|
11224
11368
|
*/
|
|
11225
|
-
PRE_NPC_COLLISION_FILTER =
|
|
11369
|
+
PRE_NPC_COLLISION_FILTER = 123,
|
|
11226
11370
|
/**
|
|
11227
11371
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
11228
11372
|
* to specify extra arguments for additional filtration.
|
|
@@ -11239,7 +11383,7 @@ export declare enum ModCallbackCustom {
|
|
|
11239
11383
|
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
11240
11384
|
* ```
|
|
11241
11385
|
*/
|
|
11242
|
-
PRE_NPC_UPDATE_FILTER =
|
|
11386
|
+
PRE_NPC_UPDATE_FILTER = 124,
|
|
11243
11387
|
/**
|
|
11244
11388
|
* The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
|
|
11245
11389
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11262,7 +11406,7 @@ export declare enum ModCallbackCustom {
|
|
|
11262
11406
|
* ): [EntityType | GridEntityXMLType, int, int] | undefined {}
|
|
11263
11407
|
* ```
|
|
11264
11408
|
*/
|
|
11265
|
-
PRE_ROOM_ENTITY_SPAWN_FILTER =
|
|
11409
|
+
PRE_ROOM_ENTITY_SPAWN_FILTER = 125
|
|
11266
11410
|
}
|
|
11267
11411
|
|
|
11268
11412
|
/**
|