isaacscript-common 28.0.1 → 28.1.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 +119 -35
- package/dist/isaacscript-common.lua +166 -36
- package/dist/src/callbackClasses.d.ts +4 -0
- package/dist/src/callbackClasses.d.ts.map +1 -1
- package/dist/src/callbackClasses.lua +20 -0
- package/dist/src/callbacks.d.ts +39 -35
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +4 -0
- package/dist/src/classes/callbacks/PostProjectileInitFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostProjectileInitFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostProjectileInitFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostProjectileRenderFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostProjectileRenderFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostProjectileRenderFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostProjectileUpdateFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostProjectileUpdateFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostProjectileUpdateFilter.lua +23 -0
- package/dist/src/classes/callbacks/PreProjectileCollisionFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PreProjectileCollisionFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PreProjectileCollisionFilter.lua +21 -0
- package/dist/src/enums/ModCallbackCustom.d.ts +99 -35
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +43 -35
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +20 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/callbackClasses.ts +4 -0
- package/src/callbacks.ts +7 -0
- package/src/classes/callbacks/PostProjectileInitFilter.ts +22 -0
- package/src/classes/callbacks/PostProjectileRenderFilter.ts +25 -0
- package/src/classes/callbacks/PostProjectileUpdateFilter.ts +22 -0
- package/src/classes/callbacks/PreProjectileCollisionFilter.ts +24 -0
- package/src/enums/ModCallbackCustom.ts +68 -0
- package/src/interfaces/private/AddCallbackParametersCustom.ts +28 -0
package/dist/index.rollup.d.ts
CHANGED
|
@@ -533,10 +533,25 @@ declare interface AddCallbackParametersCustom {
|
|
|
533
533
|
callback: (pressurePlate: GridEntityPressurePlate) => void,
|
|
534
534
|
pressurePlateVariant?: PressurePlateVariant
|
|
535
535
|
];
|
|
536
|
+
[ModCallbackCustom.POST_PROJECTILE_INIT_FILTER]: [
|
|
537
|
+
callback: (projectile: EntityProjectile) => void,
|
|
538
|
+
projectileVariant?: ProjectileVariant,
|
|
539
|
+
subType?: int
|
|
540
|
+
];
|
|
536
541
|
[ModCallbackCustom.POST_PROJECTILE_INIT_LATE]: [
|
|
537
542
|
callback: (projectile: EntityProjectile) => void,
|
|
538
543
|
projectileVariant?: ProjectileVariant
|
|
539
544
|
];
|
|
545
|
+
[ModCallbackCustom.POST_PROJECTILE_UPDATE_FILTER]: [
|
|
546
|
+
callback: (projectile: EntityProjectile) => void,
|
|
547
|
+
projectileVariant?: ProjectileVariant,
|
|
548
|
+
subType?: int
|
|
549
|
+
];
|
|
550
|
+
[ModCallbackCustom.POST_PROJECTILE_RENDER_FILTER]: [
|
|
551
|
+
callback: (projectile: EntityProjectile, renderOffset: Vector) => void,
|
|
552
|
+
projectileVariant?: ProjectileVariant,
|
|
553
|
+
subType?: int
|
|
554
|
+
];
|
|
540
555
|
[ModCallbackCustom.POST_PURCHASE]: [
|
|
541
556
|
callback: (player: EntityPlayer, pickup: EntityPickup) => void,
|
|
542
557
|
pickupVariant?: PickupVariant,
|
|
@@ -693,6 +708,11 @@ declare interface AddCallbackParametersCustom {
|
|
|
693
708
|
variant?: int,
|
|
694
709
|
subType?: int
|
|
695
710
|
];
|
|
711
|
+
[ModCallbackCustom.PRE_PROJECTILE_COLLISION_FILTER]: [
|
|
712
|
+
callback: (projectile: EntityProjectile, collider: Entity, low: boolean) => boolean | undefined,
|
|
713
|
+
projectileVariant?: ProjectileVariant,
|
|
714
|
+
subtype?: int
|
|
715
|
+
];
|
|
696
716
|
[ModCallbackCustom.PRE_ROOM_ENTITY_SPAWN_FILTER]: [
|
|
697
717
|
callback: (entityTypeOrGridEntityXMLType: EntityType | GridEntityXMLType, variant: int, subType: int, gridIndex: int, seed: Seed) => [EntityType | GridEntityXMLType, int, int] | undefined,
|
|
698
718
|
entityTypeOrGridEntityXMLType?: EntityType | GridEntityXMLType,
|
|
@@ -10873,6 +10893,21 @@ export declare enum ModCallbackCustom {
|
|
|
10873
10893
|
* ```
|
|
10874
10894
|
*/
|
|
10875
10895
|
POST_PRESSURE_PLATE_UPDATE = 94,
|
|
10896
|
+
/**
|
|
10897
|
+
* The exact same thing as the vanilla `POST_PROJECTILE_INIT` callback, except this callback
|
|
10898
|
+
* allows you to specify extra arguments for additional filtration.
|
|
10899
|
+
*
|
|
10900
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10901
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10902
|
+
* matches the `ProjectileVariant` provided.
|
|
10903
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10904
|
+
* matches the sub-type provided.
|
|
10905
|
+
*
|
|
10906
|
+
* ```ts
|
|
10907
|
+
* function postProjectileInitFilter(tear: EntityTear): void {}
|
|
10908
|
+
* ```
|
|
10909
|
+
*/
|
|
10910
|
+
POST_PROJECTILE_INIT_FILTER = 95,
|
|
10876
10911
|
/**
|
|
10877
10912
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
10878
10913
|
*
|
|
@@ -10889,7 +10924,37 @@ export declare enum ModCallbackCustom {
|
|
|
10889
10924
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
10890
10925
|
* ```
|
|
10891
10926
|
*/
|
|
10892
|
-
POST_PROJECTILE_INIT_LATE =
|
|
10927
|
+
POST_PROJECTILE_INIT_LATE = 96,
|
|
10928
|
+
/**
|
|
10929
|
+
* The exact same thing as the vanilla `POST_PROJECTILE_RENDER` callback, except this callback
|
|
10930
|
+
* allows you to specify extra arguments for additional filtration.
|
|
10931
|
+
*
|
|
10932
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10933
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10934
|
+
* matches the `ProjectileVariant` provided.
|
|
10935
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10936
|
+
* matches the sub-type provided.
|
|
10937
|
+
*
|
|
10938
|
+
* ```ts
|
|
10939
|
+
* function postProjectileRenderFilter(tear: EntityTear, renderOffset: Vector): void {}
|
|
10940
|
+
* ```
|
|
10941
|
+
*/
|
|
10942
|
+
POST_PROJECTILE_RENDER_FILTER = 97,
|
|
10943
|
+
/**
|
|
10944
|
+
* The exact same thing as the vanilla `POST_PROJECTILE_INIT` callback, except this callback
|
|
10945
|
+
* allows you to specify extra arguments for additional filtration.
|
|
10946
|
+
*
|
|
10947
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10948
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10949
|
+
* matches the `ProjectileVariant` provided.
|
|
10950
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10951
|
+
* matches the sub-type provided.
|
|
10952
|
+
*
|
|
10953
|
+
* ```ts
|
|
10954
|
+
* function postProjectileUpdateFilter(tear: EntityTear): void {}
|
|
10955
|
+
* ```
|
|
10956
|
+
*/
|
|
10957
|
+
POST_PROJECTILE_UPDATE_FILTER = 98,
|
|
10893
10958
|
/**
|
|
10894
10959
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
10895
10960
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -10905,7 +10970,7 @@ export declare enum ModCallbackCustom {
|
|
|
10905
10970
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
10906
10971
|
* ```
|
|
10907
10972
|
*/
|
|
10908
|
-
POST_PURCHASE =
|
|
10973
|
+
POST_PURCHASE = 99,
|
|
10909
10974
|
/**
|
|
10910
10975
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
10911
10976
|
*
|
|
@@ -10919,7 +10984,7 @@ export declare enum ModCallbackCustom {
|
|
|
10919
10984
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
10920
10985
|
* ```
|
|
10921
10986
|
*/
|
|
10922
|
-
POST_ROCK_RENDER =
|
|
10987
|
+
POST_ROCK_RENDER = 100,
|
|
10923
10988
|
/**
|
|
10924
10989
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
10925
10990
|
*
|
|
@@ -10933,7 +10998,7 @@ export declare enum ModCallbackCustom {
|
|
|
10933
10998
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
10934
10999
|
* ```
|
|
10935
11000
|
*/
|
|
10936
|
-
POST_ROCK_UPDATE =
|
|
11001
|
+
POST_ROCK_UPDATE = 101,
|
|
10937
11002
|
/**
|
|
10938
11003
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
10939
11004
|
* the `Room.IsClear` method).
|
|
@@ -10950,7 +11015,7 @@ export declare enum ModCallbackCustom {
|
|
|
10950
11015
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
10951
11016
|
* ```
|
|
10952
11017
|
*/
|
|
10953
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
11018
|
+
POST_ROOM_CLEAR_CHANGED = 102,
|
|
10954
11019
|
/**
|
|
10955
11020
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
10956
11021
|
* Room.
|
|
@@ -10965,7 +11030,7 @@ export declare enum ModCallbackCustom {
|
|
|
10965
11030
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
10966
11031
|
* ```
|
|
10967
11032
|
*/
|
|
10968
|
-
POST_SACRIFICE =
|
|
11033
|
+
POST_SACRIFICE = 103,
|
|
10969
11034
|
/**
|
|
10970
11035
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
10971
11036
|
*
|
|
@@ -10983,7 +11048,7 @@ export declare enum ModCallbackCustom {
|
|
|
10983
11048
|
* ): void {}
|
|
10984
11049
|
* ```
|
|
10985
11050
|
*/
|
|
10986
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
11051
|
+
POST_SLOT_ANIMATION_CHANGED = 104,
|
|
10987
11052
|
/**
|
|
10988
11053
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
10989
11054
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -11007,7 +11072,7 @@ export declare enum ModCallbackCustom {
|
|
|
11007
11072
|
* ): void {}
|
|
11008
11073
|
* ```
|
|
11009
11074
|
*/
|
|
11010
|
-
POST_SLOT_COLLISION =
|
|
11075
|
+
POST_SLOT_COLLISION = 105,
|
|
11011
11076
|
/**
|
|
11012
11077
|
* Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
|
|
11013
11078
|
* destroyed or a beggar is removed.
|
|
@@ -11049,7 +11114,7 @@ export declare enum ModCallbackCustom {
|
|
|
11049
11114
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
11050
11115
|
* ```
|
|
11051
11116
|
*/
|
|
11052
|
-
POST_SLOT_DESTROYED =
|
|
11117
|
+
POST_SLOT_DESTROYED = 106,
|
|
11053
11118
|
/**
|
|
11054
11119
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
11055
11120
|
*
|
|
@@ -11068,7 +11133,7 @@ export declare enum ModCallbackCustom {
|
|
|
11068
11133
|
* function postSlotInit(slot: Entity): void {}
|
|
11069
11134
|
* ```
|
|
11070
11135
|
*/
|
|
11071
|
-
POST_SLOT_INIT =
|
|
11136
|
+
POST_SLOT_INIT = 107,
|
|
11072
11137
|
/**
|
|
11073
11138
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
11074
11139
|
*
|
|
@@ -11082,7 +11147,7 @@ export declare enum ModCallbackCustom {
|
|
|
11082
11147
|
* function postSlotRender(slot: Entity): void {}
|
|
11083
11148
|
* ```
|
|
11084
11149
|
*/
|
|
11085
|
-
POST_SLOT_RENDER =
|
|
11150
|
+
POST_SLOT_RENDER = 108,
|
|
11086
11151
|
/**
|
|
11087
11152
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
11088
11153
|
*
|
|
@@ -11096,7 +11161,7 @@ export declare enum ModCallbackCustom {
|
|
|
11096
11161
|
* function postSlotUpdate(slot: Entity): void {}
|
|
11097
11162
|
* ```
|
|
11098
11163
|
*/
|
|
11099
|
-
POST_SLOT_UPDATE =
|
|
11164
|
+
POST_SLOT_UPDATE = 109,
|
|
11100
11165
|
/**
|
|
11101
11166
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
11102
11167
|
*
|
|
@@ -11108,7 +11173,7 @@ export declare enum ModCallbackCustom {
|
|
|
11108
11173
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
11109
11174
|
* ```
|
|
11110
11175
|
*/
|
|
11111
|
-
POST_SPIKES_RENDER =
|
|
11176
|
+
POST_SPIKES_RENDER = 110,
|
|
11112
11177
|
/**
|
|
11113
11178
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
11114
11179
|
*
|
|
@@ -11120,7 +11185,7 @@ export declare enum ModCallbackCustom {
|
|
|
11120
11185
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
11121
11186
|
* ```
|
|
11122
11187
|
*/
|
|
11123
|
-
POST_SPIKES_UPDATE =
|
|
11188
|
+
POST_SPIKES_UPDATE = 111,
|
|
11124
11189
|
/**
|
|
11125
11190
|
* The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
|
|
11126
11191
|
* to specify extra arguments for additional filtration.
|
|
@@ -11135,7 +11200,7 @@ export declare enum ModCallbackCustom {
|
|
|
11135
11200
|
* function postTearInitFilter(tear: EntityTear): void {}
|
|
11136
11201
|
* ```
|
|
11137
11202
|
*/
|
|
11138
|
-
POST_TEAR_INIT_FILTER =
|
|
11203
|
+
POST_TEAR_INIT_FILTER = 112,
|
|
11139
11204
|
/**
|
|
11140
11205
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
11141
11206
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -11153,7 +11218,7 @@ export declare enum ModCallbackCustom {
|
|
|
11153
11218
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
11154
11219
|
* ```
|
|
11155
11220
|
*/
|
|
11156
|
-
POST_TEAR_INIT_LATE =
|
|
11221
|
+
POST_TEAR_INIT_LATE = 113,
|
|
11157
11222
|
/**
|
|
11158
11223
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
11159
11224
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -11170,7 +11235,7 @@ export declare enum ModCallbackCustom {
|
|
|
11170
11235
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
11171
11236
|
* ```
|
|
11172
11237
|
*/
|
|
11173
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
11238
|
+
POST_TEAR_INIT_VERY_LATE = 114,
|
|
11174
11239
|
/**
|
|
11175
11240
|
* The exact same thing as the vanilla `POST_TEAR_RENDER` callback, except this callback allows
|
|
11176
11241
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11185,7 +11250,7 @@ export declare enum ModCallbackCustom {
|
|
|
11185
11250
|
* function postTearRenderFilter(tear: EntityTear, renderOffset: Vector): void {}
|
|
11186
11251
|
* ```
|
|
11187
11252
|
*/
|
|
11188
|
-
POST_TEAR_RENDER_FILTER =
|
|
11253
|
+
POST_TEAR_RENDER_FILTER = 115,
|
|
11189
11254
|
/**
|
|
11190
11255
|
* The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
|
|
11191
11256
|
* to specify extra arguments for additional filtration.
|
|
@@ -11200,7 +11265,7 @@ export declare enum ModCallbackCustom {
|
|
|
11200
11265
|
* function postTearUpdateFilter(tear: EntityTear): void {}
|
|
11201
11266
|
* ```
|
|
11202
11267
|
*/
|
|
11203
|
-
POST_TEAR_UPDATE_FILTER =
|
|
11268
|
+
POST_TEAR_UPDATE_FILTER = 116,
|
|
11204
11269
|
/**
|
|
11205
11270
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
11206
11271
|
*
|
|
@@ -11212,7 +11277,7 @@ export declare enum ModCallbackCustom {
|
|
|
11212
11277
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
11213
11278
|
* ```
|
|
11214
11279
|
*/
|
|
11215
|
-
POST_TNT_RENDER =
|
|
11280
|
+
POST_TNT_RENDER = 117,
|
|
11216
11281
|
/**
|
|
11217
11282
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
11218
11283
|
*
|
|
@@ -11224,7 +11289,7 @@ export declare enum ModCallbackCustom {
|
|
|
11224
11289
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
11225
11290
|
* ```
|
|
11226
11291
|
*/
|
|
11227
|
-
POST_TNT_UPDATE =
|
|
11292
|
+
POST_TNT_UPDATE = 118,
|
|
11228
11293
|
/**
|
|
11229
11294
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
11230
11295
|
* transformation.
|
|
@@ -11243,7 +11308,7 @@ export declare enum ModCallbackCustom {
|
|
|
11243
11308
|
* ): void {}
|
|
11244
11309
|
* ```
|
|
11245
11310
|
*/
|
|
11246
|
-
POST_TRANSFORMATION =
|
|
11311
|
+
POST_TRANSFORMATION = 119,
|
|
11247
11312
|
/**
|
|
11248
11313
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
11249
11314
|
*
|
|
@@ -11258,7 +11323,7 @@ export declare enum ModCallbackCustom {
|
|
|
11258
11323
|
* ): void {}
|
|
11259
11324
|
* ```
|
|
11260
11325
|
*/
|
|
11261
|
-
POST_TRINKET_BREAK =
|
|
11326
|
+
POST_TRINKET_BREAK = 120,
|
|
11262
11327
|
/**
|
|
11263
11328
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
11264
11329
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -11274,7 +11339,7 @@ export declare enum ModCallbackCustom {
|
|
|
11274
11339
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
11275
11340
|
* ```
|
|
11276
11341
|
*/
|
|
11277
|
-
PRE_BERSERK_DEATH =
|
|
11342
|
+
PRE_BERSERK_DEATH = 121,
|
|
11278
11343
|
/**
|
|
11279
11344
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
11280
11345
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -11293,7 +11358,7 @@ export declare enum ModCallbackCustom {
|
|
|
11293
11358
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
11294
11359
|
* ```
|
|
11295
11360
|
*/
|
|
11296
|
-
PRE_CUSTOM_REVIVE =
|
|
11361
|
+
PRE_CUSTOM_REVIVE = 122,
|
|
11297
11362
|
/**
|
|
11298
11363
|
* The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
|
|
11299
11364
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11318,7 +11383,7 @@ export declare enum ModCallbackCustom {
|
|
|
11318
11383
|
* ): [EntityType, int, int, int] | undefined {}
|
|
11319
11384
|
* ```
|
|
11320
11385
|
*/
|
|
11321
|
-
PRE_ENTITY_SPAWN_FILTER =
|
|
11386
|
+
PRE_ENTITY_SPAWN_FILTER = 123,
|
|
11322
11387
|
/**
|
|
11323
11388
|
* The exact same thing as the vanilla `PRE_FAMILIAR_COLLISION` callback, except this callback
|
|
11324
11389
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11337,7 +11402,7 @@ export declare enum ModCallbackCustom {
|
|
|
11337
11402
|
* ): void {}
|
|
11338
11403
|
* ```
|
|
11339
11404
|
*/
|
|
11340
|
-
PRE_FAMILIAR_COLLISION_FILTER =
|
|
11405
|
+
PRE_FAMILIAR_COLLISION_FILTER = 124,
|
|
11341
11406
|
/**
|
|
11342
11407
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
11343
11408
|
* meets all of the conditions to pick it up.
|
|
@@ -11357,7 +11422,7 @@ export declare enum ModCallbackCustom {
|
|
|
11357
11422
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
11358
11423
|
* ```
|
|
11359
11424
|
*/
|
|
11360
|
-
PRE_GET_PEDESTAL =
|
|
11425
|
+
PRE_GET_PEDESTAL = 125,
|
|
11361
11426
|
/**
|
|
11362
11427
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
11363
11428
|
* the player begins to hold the item above their head).
|
|
@@ -11377,7 +11442,7 @@ export declare enum ModCallbackCustom {
|
|
|
11377
11442
|
* ): void {}
|
|
11378
11443
|
* ```
|
|
11379
11444
|
*/
|
|
11380
|
-
PRE_ITEM_PICKUP =
|
|
11445
|
+
PRE_ITEM_PICKUP = 126,
|
|
11381
11446
|
/**
|
|
11382
11447
|
* The exact same thing as the vanilla `PRE_KNIFE_COLLISION` callback, except this callback allows
|
|
11383
11448
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11396,7 +11461,7 @@ export declare enum ModCallbackCustom {
|
|
|
11396
11461
|
* ): void {}
|
|
11397
11462
|
* ```
|
|
11398
11463
|
*/
|
|
11399
|
-
PRE_KNIFE_COLLISION_FILTER =
|
|
11464
|
+
PRE_KNIFE_COLLISION_FILTER = 127,
|
|
11400
11465
|
/**
|
|
11401
11466
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
11402
11467
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -11410,7 +11475,7 @@ export declare enum ModCallbackCustom {
|
|
|
11410
11475
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
11411
11476
|
* ```
|
|
11412
11477
|
*/
|
|
11413
|
-
PRE_NEW_LEVEL =
|
|
11478
|
+
PRE_NEW_LEVEL = 128,
|
|
11414
11479
|
/**
|
|
11415
11480
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
11416
11481
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11431,7 +11496,7 @@ export declare enum ModCallbackCustom {
|
|
|
11431
11496
|
* ): boolean | undefined {}
|
|
11432
11497
|
* ```
|
|
11433
11498
|
*/
|
|
11434
|
-
PRE_NPC_COLLISION_FILTER =
|
|
11499
|
+
PRE_NPC_COLLISION_FILTER = 129,
|
|
11435
11500
|
/**
|
|
11436
11501
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
11437
11502
|
* to specify extra arguments for additional filtration.
|
|
@@ -11448,7 +11513,26 @@ export declare enum ModCallbackCustom {
|
|
|
11448
11513
|
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
11449
11514
|
* ```
|
|
11450
11515
|
*/
|
|
11451
|
-
PRE_NPC_UPDATE_FILTER =
|
|
11516
|
+
PRE_NPC_UPDATE_FILTER = 130,
|
|
11517
|
+
/**
|
|
11518
|
+
* The exact same thing as the vanilla `PRE_PROJECTILE_COLLISION` callback, except this callback
|
|
11519
|
+
* allows you to specify extra arguments for additional filtration.
|
|
11520
|
+
*
|
|
11521
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
11522
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
11523
|
+
* matches the `ProjectileVariant` provided.
|
|
11524
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
11525
|
+
* matches the sub-type provided.
|
|
11526
|
+
*
|
|
11527
|
+
* ```ts
|
|
11528
|
+
* function preProjectileCollisionFilter(
|
|
11529
|
+
* tear: EntityTear,
|
|
11530
|
+
* collider: Entity,
|
|
11531
|
+
* low: boolean,
|
|
11532
|
+
* ): void {}
|
|
11533
|
+
* ```
|
|
11534
|
+
*/
|
|
11535
|
+
PRE_PROJECTILE_COLLISION_FILTER = 131,
|
|
11452
11536
|
/**
|
|
11453
11537
|
* The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
|
|
11454
11538
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11471,7 +11555,7 @@ export declare enum ModCallbackCustom {
|
|
|
11471
11555
|
* ): [EntityType | GridEntityXMLType, int, int] | undefined {}
|
|
11472
11556
|
* ```
|
|
11473
11557
|
*/
|
|
11474
|
-
PRE_ROOM_ENTITY_SPAWN_FILTER =
|
|
11558
|
+
PRE_ROOM_ENTITY_SPAWN_FILTER = 132,
|
|
11475
11559
|
/**
|
|
11476
11560
|
* The exact same thing as the vanilla `PRE_TEAR_COLLISION` callback, except this callback allows
|
|
11477
11561
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11490,7 +11574,7 @@ export declare enum ModCallbackCustom {
|
|
|
11490
11574
|
* ): void {}
|
|
11491
11575
|
* ```
|
|
11492
11576
|
*/
|
|
11493
|
-
PRE_TEAR_COLLISION_FILTER =
|
|
11577
|
+
PRE_TEAR_COLLISION_FILTER = 133
|
|
11494
11578
|
}
|
|
11495
11579
|
|
|
11496
11580
|
/**
|