isaacscript-common 27.12.0 → 28.0.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 +244 -76
- package/dist/isaacscript-common.lua +393 -133
- package/dist/src/callbackClasses.d.ts +8 -0
- package/dist/src/callbackClasses.d.ts.map +1 -1
- package/dist/src/callbackClasses.lua +40 -0
- package/dist/src/callbacks.d.ts +78 -70
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/callbacks.lua +9 -1
- package/dist/src/classes/callbacks/PostItemDischarge.d.ts +1 -1
- 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/PostNPCStateChanged.d.ts +2 -2
- package/dist/src/classes/callbacks/PostTearInitFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostTearInitFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostTearInitFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostTearRenderFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostTearRenderFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostTearRenderFilter.lua +23 -0
- package/dist/src/classes/callbacks/PostTearUpdateFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PostTearUpdateFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PostTearUpdateFilter.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/callbacks/PreTearCollisionFilter.d.ts +9 -0
- package/dist/src/classes/callbacks/PreTearCollisionFilter.d.ts.map +1 -0
- package/dist/src/classes/callbacks/PreTearCollisionFilter.lua +21 -0
- package/dist/src/classes/features/other/customStages/v.d.ts.map +1 -1
- package/dist/src/classes/features/other/extraConsoleCommands/v.d.ts.map +1 -1
- package/dist/src/classes/private/CustomCallback.d.ts.map +1 -1
- package/dist/src/core/constants.d.ts +1 -1
- package/dist/src/core/constants.lua +1 -1
- package/dist/src/enums/ModCallbackCustom.d.ts +198 -70
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.lua +86 -70
- package/dist/src/functions/mergeTests.lua +14 -14
- package/dist/src/functions/npcs.d.ts +2 -2
- package/dist/src/functions/npcs.lua +6 -6
- package/dist/src/functions/types.d.ts +3 -3
- package/dist/src/functions/types.lua +2 -2
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts +40 -0
- package/dist/src/interfaces/private/AddCallbackParametersCustom.d.ts.map +1 -1
- package/dist/src/shouldFire.d.ts +3 -3
- package/dist/src/shouldFire.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/callbackClasses.ts +8 -0
- package/src/callbacks.ts +8 -0
- package/src/classes/callbacks/PostItemDischarge.ts +1 -1
- 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/PostNPCStateChanged.ts +2 -2
- package/src/classes/callbacks/PostTearInitFilter.ts +22 -0
- package/src/classes/callbacks/PostTearRenderFilter.ts +22 -0
- package/src/classes/callbacks/PostTearUpdateFilter.ts +22 -0
- package/src/classes/callbacks/PreKnifeCollisionFilter.ts +24 -0
- package/src/classes/callbacks/PreTearCollisionFilter.ts +24 -0
- package/src/classes/features/other/customStages/v.ts +2 -0
- package/src/classes/features/other/extraConsoleCommands/v.ts +2 -0
- package/src/classes/private/CustomCallback.ts +4 -0
- package/src/core/constants.ts +1 -1
- package/src/enums/ModCallbackCustom.ts +136 -0
- package/src/functions/mergeTests.ts +14 -14
- package/src/functions/npcs.ts +6 -6
- package/src/functions/types.ts +3 -3
- package/src/interfaces/private/AddCallbackParametersCustom.ts +56 -0
- package/src/shouldFire.ts +12 -3
package/dist/index.rollup.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ import { LevelStage } from 'isaac-typescript-definitions';
|
|
|
53
53
|
import { MinibossID } from 'isaac-typescript-definitions';
|
|
54
54
|
import { ModCallback } from 'isaac-typescript-definitions';
|
|
55
55
|
import { Music } from 'isaac-typescript-definitions';
|
|
56
|
-
import {
|
|
56
|
+
import { NPCState } from 'isaac-typescript-definitions';
|
|
57
57
|
import { PickupPrice } from 'isaac-typescript-definitions';
|
|
58
58
|
import { PickupVariant } from 'isaac-typescript-definitions';
|
|
59
59
|
import { PillColor } from 'isaac-typescript-definitions';
|
|
@@ -323,11 +323,26 @@ 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
|
+
];
|
|
331
346
|
[ModCallbackCustom.POST_LASER_INIT_FILTER]: [
|
|
332
347
|
callback: (laser: EntityLaser) => void,
|
|
333
348
|
laserVariant?: LaserVariant,
|
|
@@ -584,6 +599,11 @@ declare interface AddCallbackParametersCustom {
|
|
|
584
599
|
callback: (spikes: GridEntitySpikes) => void,
|
|
585
600
|
variant?: int
|
|
586
601
|
];
|
|
602
|
+
[ModCallbackCustom.POST_TEAR_INIT_FILTER]: [
|
|
603
|
+
callback: (tear: EntityTear) => void,
|
|
604
|
+
tearVariant?: TearVariant,
|
|
605
|
+
subType?: int
|
|
606
|
+
];
|
|
587
607
|
[ModCallbackCustom.POST_TEAR_INIT_LATE]: [
|
|
588
608
|
callback: (tear: EntityTear) => void,
|
|
589
609
|
tearVariant?: TearVariant,
|
|
@@ -594,6 +614,16 @@ declare interface AddCallbackParametersCustom {
|
|
|
594
614
|
tearVariant?: TearVariant,
|
|
595
615
|
subType?: int
|
|
596
616
|
];
|
|
617
|
+
[ModCallbackCustom.POST_TEAR_RENDER_FILTER]: [
|
|
618
|
+
callback: (tear: EntityTear, renderOffset: Vector) => void,
|
|
619
|
+
tearVariant?: TearVariant,
|
|
620
|
+
subType?: int
|
|
621
|
+
];
|
|
622
|
+
[ModCallbackCustom.POST_TEAR_UPDATE_FILTER]: [
|
|
623
|
+
callback: (tear: EntityTear) => void,
|
|
624
|
+
tearVariant?: TearVariant,
|
|
625
|
+
subType?: int
|
|
626
|
+
];
|
|
597
627
|
[ModCallbackCustom.POST_TNT_RENDER]: [
|
|
598
628
|
callback: (tnt: GridEntityTNT) => void,
|
|
599
629
|
variant?: int
|
|
@@ -645,6 +675,11 @@ declare interface AddCallbackParametersCustom {
|
|
|
645
675
|
itemType: ItemType.TRINKET,
|
|
646
676
|
trinketType?: TrinketType
|
|
647
677
|
];
|
|
678
|
+
[ModCallbackCustom.PRE_KNIFE_COLLISION_FILTER]: [
|
|
679
|
+
callback: (knife: EntityKnife, collider: Entity, low: boolean) => boolean | undefined,
|
|
680
|
+
knifeVariant?: KnifeVariant,
|
|
681
|
+
subtype?: int
|
|
682
|
+
];
|
|
648
683
|
[ModCallbackCustom.PRE_NEW_LEVEL]: [callback: (player: EntityPlayer) => void];
|
|
649
684
|
[ModCallbackCustom.PRE_NPC_COLLISION_FILTER]: [
|
|
650
685
|
callback: (npc: EntityNPC, collider: Entity, low: boolean) => undefined | boolean,
|
|
@@ -664,6 +699,11 @@ declare interface AddCallbackParametersCustom {
|
|
|
664
699
|
variant?: int,
|
|
665
700
|
subType?: int
|
|
666
701
|
];
|
|
702
|
+
[ModCallbackCustom.PRE_TEAR_COLLISION_FILTER]: [
|
|
703
|
+
callback: (tear: EntityTear, collider: Entity, low: boolean) => boolean | undefined,
|
|
704
|
+
tearVariant?: TearVariant,
|
|
705
|
+
subtype?: int
|
|
706
|
+
];
|
|
667
707
|
}
|
|
668
708
|
|
|
669
709
|
/**
|
|
@@ -1028,12 +1068,12 @@ export declare function asCollectibleType(num: number): CollectibleType;
|
|
|
1028
1068
|
export declare function asLevelStage(num: number): LevelStage;
|
|
1029
1069
|
|
|
1030
1070
|
/**
|
|
1031
|
-
* Helper function to safely cast a `number` to a `
|
|
1071
|
+
* Helper function to safely cast a `number` to a `NPCState`. (This is better than using the `as`
|
|
1032
1072
|
* TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
|
|
1033
1073
|
*
|
|
1034
1074
|
* This is useful to satisfy the "isaacscript/strict-enums" ESLint rule.
|
|
1035
1075
|
*/
|
|
1036
|
-
export declare function
|
|
1076
|
+
export declare function asNPCState(num: number): NPCState;
|
|
1037
1077
|
|
|
1038
1078
|
/**
|
|
1039
1079
|
* Helper function to safely cast an enum to a `number`. (This is better than using the `as`
|
|
@@ -3744,7 +3784,7 @@ export declare function easeOutQuint(time: number): number;
|
|
|
3744
3784
|
export declare function easeOutSine(time: number): number;
|
|
3745
3785
|
|
|
3746
3786
|
/**
|
|
3747
|
-
* When Eggies take fatal damage, they go into
|
|
3787
|
+
* When Eggies take fatal damage, they go into NPCState.STATE_SUICIDE and spawn 14 Swarm Spiders
|
|
3748
3788
|
* while their StateFrame ticks upwards. The 14th spider appears when the StateFrame is at this
|
|
3749
3789
|
* value.
|
|
3750
3790
|
*/
|
|
@@ -7828,14 +7868,14 @@ export declare function isDoorToMomsHeart(door: GridEntityDoor): boolean;
|
|
|
7828
7868
|
|
|
7829
7869
|
/**
|
|
7830
7870
|
* Helper function to detect the custom death state of a Dump. When Dumps die, they go to
|
|
7831
|
-
* `
|
|
7871
|
+
* `NPCState.SPECIAL`, spit out their head, and then slowly fade away while shooting a burst of
|
|
7832
7872
|
* tears.
|
|
7833
7873
|
*/
|
|
7834
7874
|
export declare function isDyingDump(npc: EntityNPC): boolean;
|
|
7835
7875
|
|
|
7836
7876
|
/**
|
|
7837
7877
|
* Helper function to detect the custom death state of an Eggy. Eggies are never actually marked
|
|
7838
|
-
* dead by the game. Instead, when Eggies take fatal damage, they go into
|
|
7878
|
+
* dead by the game. Instead, when Eggies take fatal damage, they go into NPCState.STATE_SUICIDE and
|
|
7839
7879
|
* spawn 14 Swarm Spiders while their StateFrame ticks upwards.
|
|
7840
7880
|
*/
|
|
7841
7881
|
export declare function isDyingEggyWithNoSpidersLeft(npc: EntityNPC): boolean;
|
|
@@ -10062,6 +10102,21 @@ export declare enum ModCallbackCustom {
|
|
|
10062
10102
|
* ```
|
|
10063
10103
|
*/
|
|
10064
10104
|
POST_KEYBOARD_CHANGED = 51,
|
|
10105
|
+
/**
|
|
10106
|
+
* The exact same thing as the vanilla `POST_KNIFE_INIT` callback, except this callback allows you
|
|
10107
|
+
* to specify extra arguments for additional filtration.
|
|
10108
|
+
*
|
|
10109
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10110
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10111
|
+
* matches the `KnifeVariant` provided.
|
|
10112
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10113
|
+
* matches the sub-type provided.
|
|
10114
|
+
*
|
|
10115
|
+
* ```ts
|
|
10116
|
+
* function postKnifeInitFilter(knife: EntityKnife): void {}
|
|
10117
|
+
* ```
|
|
10118
|
+
*/
|
|
10119
|
+
POST_KNIFE_INIT_FILTER = 52,
|
|
10065
10120
|
/**
|
|
10066
10121
|
* Fires on the first `POST_KNIFE_UPDATE` frame for each knife.
|
|
10067
10122
|
*
|
|
@@ -10078,7 +10133,37 @@ export declare enum ModCallbackCustom {
|
|
|
10078
10133
|
* function postKnifeInitLate(knife: EntityKnife): void {}
|
|
10079
10134
|
* ```
|
|
10080
10135
|
*/
|
|
10081
|
-
POST_KNIFE_INIT_LATE =
|
|
10136
|
+
POST_KNIFE_INIT_LATE = 53,
|
|
10137
|
+
/**
|
|
10138
|
+
* The exact same thing as the vanilla `POST_KNIFE_RENDER` callback, except this callback allows
|
|
10139
|
+
* you to specify extra arguments for additional filtration.
|
|
10140
|
+
*
|
|
10141
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10142
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10143
|
+
* matches the `KnifeVariant` provided.
|
|
10144
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10145
|
+
* matches the sub-type provided.
|
|
10146
|
+
*
|
|
10147
|
+
* ```ts
|
|
10148
|
+
* function postKnifeRenderFilter(knife: EntityKnife, renderOffset: Vector): void {}
|
|
10149
|
+
* ```
|
|
10150
|
+
*/
|
|
10151
|
+
POST_KNIFE_RENDER_FILTER = 54,
|
|
10152
|
+
/**
|
|
10153
|
+
* The exact same thing as the vanilla `POST_KNIFE_UPDATE` callback, except this callback allows
|
|
10154
|
+
* you to specify extra arguments for additional filtration.
|
|
10155
|
+
*
|
|
10156
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
10157
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
10158
|
+
* matches the `KnifeVariant` provided.
|
|
10159
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
10160
|
+
* matches the sub-type provided.
|
|
10161
|
+
*
|
|
10162
|
+
* ```ts
|
|
10163
|
+
* function postKnifeUpdateFilter(knife: EntityKnife): void {}
|
|
10164
|
+
* ```
|
|
10165
|
+
*/
|
|
10166
|
+
POST_KNIFE_UPDATE_FILTER = 55,
|
|
10082
10167
|
/**
|
|
10083
10168
|
* The exact same thing as the vanilla `POST_LASER_INIT` callback, except this callback allows you
|
|
10084
10169
|
* to specify extra arguments for additional filtration.
|
|
@@ -10093,7 +10178,7 @@ export declare enum ModCallbackCustom {
|
|
|
10093
10178
|
* function postLaserInitFilter(laser: EntityLaser): void {}
|
|
10094
10179
|
* ```
|
|
10095
10180
|
*/
|
|
10096
|
-
POST_LASER_INIT_FILTER =
|
|
10181
|
+
POST_LASER_INIT_FILTER = 56,
|
|
10097
10182
|
/**
|
|
10098
10183
|
* Fires on the first `POST_LASER_UPDATE` frame for each laser.
|
|
10099
10184
|
*
|
|
@@ -10110,7 +10195,7 @@ export declare enum ModCallbackCustom {
|
|
|
10110
10195
|
* function postLaserInitLate(laser: EntityLaser): void {}
|
|
10111
10196
|
* ```
|
|
10112
10197
|
*/
|
|
10113
|
-
POST_LASER_INIT_LATE =
|
|
10198
|
+
POST_LASER_INIT_LATE = 57,
|
|
10114
10199
|
/**
|
|
10115
10200
|
* The exact same thing as the vanilla `POST_LASER_RENDER` callback, except this callback allows
|
|
10116
10201
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10125,7 +10210,7 @@ export declare enum ModCallbackCustom {
|
|
|
10125
10210
|
* function postLaserRenderFilter(laser: EntityLaser, renderOffset: Vector): void {}
|
|
10126
10211
|
* ```
|
|
10127
10212
|
*/
|
|
10128
|
-
POST_LASER_RENDER_FILTER =
|
|
10213
|
+
POST_LASER_RENDER_FILTER = 58,
|
|
10129
10214
|
/**
|
|
10130
10215
|
* The exact same thing as the vanilla `POST_LASER_UPDATE` callback, except this callback allows
|
|
10131
10216
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10140,7 +10225,7 @@ export declare enum ModCallbackCustom {
|
|
|
10140
10225
|
* function postLaserUpdateFilter(laser: EntityLaser): void {}
|
|
10141
10226
|
* ```
|
|
10142
10227
|
*/
|
|
10143
|
-
POST_LASER_UPDATE_FILTER =
|
|
10228
|
+
POST_LASER_UPDATE_FILTER = 59,
|
|
10144
10229
|
/**
|
|
10145
10230
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
10146
10231
|
* to the `POST_GAME_STARTED` and the `POST_NEW_ROOM` callbacks:
|
|
@@ -10166,7 +10251,7 @@ export declare enum ModCallbackCustom {
|
|
|
10166
10251
|
* function postNewLevelReordered(stage: LevelStage, stageType: StageType): void {}
|
|
10167
10252
|
* ```
|
|
10168
10253
|
*/
|
|
10169
|
-
POST_NEW_LEVEL_REORDERED =
|
|
10254
|
+
POST_NEW_LEVEL_REORDERED = 60,
|
|
10170
10255
|
/**
|
|
10171
10256
|
* Fires on the first `POST_NEW_ROOM` or `PRE_ENTITY_SPAWN` callback where being in a new room is
|
|
10172
10257
|
* detected. This is useful because the vanilla `POST_NEW_ROOM` callback fires only after entities
|
|
@@ -10183,7 +10268,7 @@ export declare enum ModCallbackCustom {
|
|
|
10183
10268
|
* function postNewRoomEarly(roomType: RoomType): void {}
|
|
10184
10269
|
* ```
|
|
10185
10270
|
*/
|
|
10186
|
-
POST_NEW_ROOM_EARLY =
|
|
10271
|
+
POST_NEW_ROOM_EARLY = 61,
|
|
10187
10272
|
/**
|
|
10188
10273
|
* The same as the vanilla callback of the same name, but fires in the correct order with respect
|
|
10189
10274
|
* to the `POST_GAME_STARTED` and the `POST_NEW_LEVEL` callbacks:
|
|
@@ -10206,7 +10291,7 @@ export declare enum ModCallbackCustom {
|
|
|
10206
10291
|
* function postNewRoomReordered(roomType: RoomType): void {}
|
|
10207
10292
|
* ```
|
|
10208
10293
|
*/
|
|
10209
|
-
POST_NEW_ROOM_REORDERED =
|
|
10294
|
+
POST_NEW_ROOM_REORDERED = 62,
|
|
10210
10295
|
/**
|
|
10211
10296
|
* The exact same thing as the vanilla `POST_NPC_DEATH` callback, except this callback allows you
|
|
10212
10297
|
* to specify extra arguments for additional filtration.
|
|
@@ -10223,7 +10308,7 @@ export declare enum ModCallbackCustom {
|
|
|
10223
10308
|
* function postNPCDeathFilter(npc: EntityNPC): void {}
|
|
10224
10309
|
* ```
|
|
10225
10310
|
*/
|
|
10226
|
-
POST_NPC_DEATH_FILTER =
|
|
10311
|
+
POST_NPC_DEATH_FILTER = 63,
|
|
10227
10312
|
/**
|
|
10228
10313
|
* The exact same thing as the vanilla `POST_NPC_INIT` callback, except this callback allows you
|
|
10229
10314
|
* to specify extra arguments for additional filtration.
|
|
@@ -10240,7 +10325,7 @@ export declare enum ModCallbackCustom {
|
|
|
10240
10325
|
* function postNPCInitFilter(npc: EntityNPC): void {}
|
|
10241
10326
|
* ```
|
|
10242
10327
|
*/
|
|
10243
|
-
POST_NPC_INIT_FILTER =
|
|
10328
|
+
POST_NPC_INIT_FILTER = 64,
|
|
10244
10329
|
/**
|
|
10245
10330
|
* Fires on the first `NPC_UPDATE` frame for each NPC.
|
|
10246
10331
|
*
|
|
@@ -10259,7 +10344,7 @@ export declare enum ModCallbackCustom {
|
|
|
10259
10344
|
* function postNPCInitLate(npc: EntityNPC): void {}
|
|
10260
10345
|
* ```
|
|
10261
10346
|
*/
|
|
10262
|
-
POST_NPC_INIT_LATE =
|
|
10347
|
+
POST_NPC_INIT_LATE = 65,
|
|
10263
10348
|
/**
|
|
10264
10349
|
* The exact same thing as the vanilla `POST_NPC_RENDER` callback, except this callback allows you
|
|
10265
10350
|
* to specify extra arguments for additional filtration.
|
|
@@ -10276,7 +10361,7 @@ export declare enum ModCallbackCustom {
|
|
|
10276
10361
|
* function postNPCRenderFilter(npc: EntityNPC, renderOffset: Vector): void {}
|
|
10277
10362
|
* ```
|
|
10278
10363
|
*/
|
|
10279
|
-
POST_NPC_RENDER_FILTER =
|
|
10364
|
+
POST_NPC_RENDER_FILTER = 66,
|
|
10280
10365
|
/**
|
|
10281
10366
|
* Fires from the `POST_NPC_UPDATE` callback when an NPC's state has changed from what it was on
|
|
10282
10367
|
* the previous frame. (In this context, "state" refers to the `EntityNPC.State` field.)
|
|
@@ -10297,7 +10382,7 @@ export declare enum ModCallbackCustom {
|
|
|
10297
10382
|
* ): void {}
|
|
10298
10383
|
* ```
|
|
10299
10384
|
*/
|
|
10300
|
-
POST_NPC_STATE_CHANGED =
|
|
10385
|
+
POST_NPC_STATE_CHANGED = 67,
|
|
10301
10386
|
/**
|
|
10302
10387
|
* The exact same thing as the vanilla `POST_NPC_UPDATE` callback, except this callback allows you
|
|
10303
10388
|
* to specify extra arguments for additional filtration.
|
|
@@ -10314,7 +10399,7 @@ export declare enum ModCallbackCustom {
|
|
|
10314
10399
|
* function postNPCUpdateFilter(npc: EntityNPC): void {}
|
|
10315
10400
|
* ```
|
|
10316
10401
|
*/
|
|
10317
|
-
POST_NPC_UPDATE_FILTER =
|
|
10402
|
+
POST_NPC_UPDATE_FILTER = 68,
|
|
10318
10403
|
/**
|
|
10319
10404
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
10320
10405
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -10339,7 +10424,7 @@ export declare enum ModCallbackCustom {
|
|
|
10339
10424
|
* function postPEffectUpdateReordered(player: EntityPlayer): void {}
|
|
10340
10425
|
* ```
|
|
10341
10426
|
*/
|
|
10342
|
-
POST_PEFFECT_UPDATE_REORDERED =
|
|
10427
|
+
POST_PEFFECT_UPDATE_REORDERED = 69,
|
|
10343
10428
|
/**
|
|
10344
10429
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup has a different variant or sub-type
|
|
10345
10430
|
* than what it was on the previous frame.
|
|
@@ -10360,7 +10445,7 @@ export declare enum ModCallbackCustom {
|
|
|
10360
10445
|
* ): void {}
|
|
10361
10446
|
* ```
|
|
10362
10447
|
*/
|
|
10363
|
-
POST_PICKUP_CHANGED =
|
|
10448
|
+
POST_PICKUP_CHANGED = 70,
|
|
10364
10449
|
/**
|
|
10365
10450
|
* Fires on the first `POST_RENDER` frame that a pickup plays the "Collect" animation.
|
|
10366
10451
|
*
|
|
@@ -10379,7 +10464,7 @@ export declare enum ModCallbackCustom {
|
|
|
10379
10464
|
* function postPickupCollect(pickup: EntityPickup, player: EntityPlayer): void {}
|
|
10380
10465
|
* ```
|
|
10381
10466
|
*/
|
|
10382
|
-
POST_PICKUP_COLLECT =
|
|
10467
|
+
POST_PICKUP_COLLECT = 71,
|
|
10383
10468
|
/**
|
|
10384
10469
|
* The exact same thing as the vanilla `POST_PICKUP_INIT` callback, except this callback allows
|
|
10385
10470
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10394,7 +10479,7 @@ export declare enum ModCallbackCustom {
|
|
|
10394
10479
|
* function postPickupInitFilter(pickup: EntityPickup): void {}
|
|
10395
10480
|
* ```
|
|
10396
10481
|
*/
|
|
10397
|
-
POST_PICKUP_INIT_FILTER =
|
|
10482
|
+
POST_PICKUP_INIT_FILTER = 72,
|
|
10398
10483
|
/**
|
|
10399
10484
|
* Fires from the `POST_PICKUP_INIT` callback on the first time that a player has seen the
|
|
10400
10485
|
* respective pickup on the run.
|
|
@@ -10412,7 +10497,7 @@ export declare enum ModCallbackCustom {
|
|
|
10412
10497
|
* function postPickupInitFirst(pickup: EntityPickup): void {}
|
|
10413
10498
|
* ```
|
|
10414
10499
|
*/
|
|
10415
|
-
POST_PICKUP_INIT_FIRST =
|
|
10500
|
+
POST_PICKUP_INIT_FIRST = 73,
|
|
10416
10501
|
/**
|
|
10417
10502
|
* Fires on the first `POST_PICKUP_UPDATE` frame for each pickup.
|
|
10418
10503
|
*
|
|
@@ -10429,7 +10514,7 @@ export declare enum ModCallbackCustom {
|
|
|
10429
10514
|
* function postPickupInitLate(pickup: EntityPickup): void {}
|
|
10430
10515
|
* ```
|
|
10431
10516
|
*/
|
|
10432
|
-
POST_PICKUP_INIT_LATE =
|
|
10517
|
+
POST_PICKUP_INIT_LATE = 74,
|
|
10433
10518
|
/**
|
|
10434
10519
|
* The exact same thing as the vanilla `POST_PICKUP_RENDER` callback, except this callback allows
|
|
10435
10520
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10444,7 +10529,7 @@ export declare enum ModCallbackCustom {
|
|
|
10444
10529
|
* function postPickupRenderFilter(pickup: EntityPickup, renderOffset: Vector): void {}
|
|
10445
10530
|
* ```
|
|
10446
10531
|
*/
|
|
10447
|
-
POST_PICKUP_RENDER_FILTER =
|
|
10532
|
+
POST_PICKUP_RENDER_FILTER = 75,
|
|
10448
10533
|
/**
|
|
10449
10534
|
* The exact same thing as the vanilla `POST_PICKUP_SELECTION` callback, except this callback
|
|
10450
10535
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -10463,7 +10548,7 @@ export declare enum ModCallbackCustom {
|
|
|
10463
10548
|
* ): [PickupVariant, int] | undefined {}
|
|
10464
10549
|
* ```
|
|
10465
10550
|
*/
|
|
10466
|
-
POST_PICKUP_SELECTION_FILTER =
|
|
10551
|
+
POST_PICKUP_SELECTION_FILTER = 76,
|
|
10467
10552
|
/**
|
|
10468
10553
|
* Fires from the `POST_PICKUP_UPDATE` callback when a pickup's state has changed from what it was
|
|
10469
10554
|
* on the previous frame. (In this context, "state" refers to the `EntityPickup.State` field.)
|
|
@@ -10482,7 +10567,7 @@ export declare enum ModCallbackCustom {
|
|
|
10482
10567
|
* ): void {}
|
|
10483
10568
|
* ```
|
|
10484
10569
|
*/
|
|
10485
|
-
POST_PICKUP_STATE_CHANGED =
|
|
10570
|
+
POST_PICKUP_STATE_CHANGED = 77,
|
|
10486
10571
|
/**
|
|
10487
10572
|
* The exact same thing as the vanilla `POST_PICKUP_UPDATE` callback, except this callback allows
|
|
10488
10573
|
* you to specify extra arguments for additional filtration.
|
|
@@ -10497,7 +10582,7 @@ export declare enum ModCallbackCustom {
|
|
|
10497
10582
|
* function postPickupUpdateFilter(pickup: EntityPickup): void {}
|
|
10498
10583
|
* ```
|
|
10499
10584
|
*/
|
|
10500
|
-
POST_PICKUP_UPDATE_FILTER =
|
|
10585
|
+
POST_PICKUP_UPDATE_FILTER = 78,
|
|
10501
10586
|
/**
|
|
10502
10587
|
* Fires from the `POST_RENDER` callback on every frame that a pit exists.
|
|
10503
10588
|
*
|
|
@@ -10509,7 +10594,7 @@ export declare enum ModCallbackCustom {
|
|
|
10509
10594
|
* function postPitRender(pit: GridEntityPit): void {}
|
|
10510
10595
|
* ```
|
|
10511
10596
|
*/
|
|
10512
|
-
POST_PIT_RENDER =
|
|
10597
|
+
POST_PIT_RENDER = 79,
|
|
10513
10598
|
/**
|
|
10514
10599
|
* Fires from the `POST_UPDATE` callback on every frame that a pit exists.
|
|
10515
10600
|
*
|
|
@@ -10521,7 +10606,7 @@ export declare enum ModCallbackCustom {
|
|
|
10521
10606
|
* function postPitUpdate(pit: GridEntityPit): void {}
|
|
10522
10607
|
* ```
|
|
10523
10608
|
*/
|
|
10524
|
-
POST_PIT_UPDATE =
|
|
10609
|
+
POST_PIT_UPDATE = 80,
|
|
10525
10610
|
/**
|
|
10526
10611
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's health (i.e. hearts) is
|
|
10527
10612
|
* different than what it was on the previous frame. For more information, see the `PlayerHealth`
|
|
@@ -10543,7 +10628,7 @@ export declare enum ModCallbackCustom {
|
|
|
10543
10628
|
* ): void {}
|
|
10544
10629
|
* ```
|
|
10545
10630
|
*/
|
|
10546
|
-
POST_PLAYER_CHANGE_HEALTH =
|
|
10631
|
+
POST_PLAYER_CHANGE_HEALTH = 81,
|
|
10547
10632
|
/**
|
|
10548
10633
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when one of the player's stats change
|
|
10549
10634
|
* from what they were on the previous frame.
|
|
@@ -10573,7 +10658,7 @@ export declare enum ModCallbackCustom {
|
|
|
10573
10658
|
* ) => void {}
|
|
10574
10659
|
* ```
|
|
10575
10660
|
*/
|
|
10576
|
-
POST_PLAYER_CHANGE_STAT =
|
|
10661
|
+
POST_PLAYER_CHANGE_STAT = 82,
|
|
10577
10662
|
/**
|
|
10578
10663
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player entity changes its player
|
|
10579
10664
|
* type
|
|
@@ -10596,7 +10681,7 @@ export declare enum ModCallbackCustom {
|
|
|
10596
10681
|
* ): void {}
|
|
10597
10682
|
* ```
|
|
10598
10683
|
*/
|
|
10599
|
-
POST_PLAYER_CHANGE_TYPE =
|
|
10684
|
+
POST_PLAYER_CHANGE_TYPE = 83,
|
|
10600
10685
|
/**
|
|
10601
10686
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
10602
10687
|
* higher than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -10613,7 +10698,7 @@ export declare enum ModCallbackCustom {
|
|
|
10613
10698
|
* ): void {}
|
|
10614
10699
|
* ```
|
|
10615
10700
|
*/
|
|
10616
|
-
POST_PLAYER_COLLECTIBLE_ADDED =
|
|
10701
|
+
POST_PLAYER_COLLECTIBLE_ADDED = 84,
|
|
10617
10702
|
/**
|
|
10618
10703
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player's collectible count is
|
|
10619
10704
|
* lower than what it was on the previous frame, or when the active items change, or when the
|
|
@@ -10630,7 +10715,7 @@ export declare enum ModCallbackCustom {
|
|
|
10630
10715
|
* ): void {}
|
|
10631
10716
|
* ```
|
|
10632
10717
|
*/
|
|
10633
|
-
POST_PLAYER_COLLECTIBLE_REMOVED =
|
|
10718
|
+
POST_PLAYER_COLLECTIBLE_REMOVED = 85,
|
|
10634
10719
|
/**
|
|
10635
10720
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes fatal damage. Return false to
|
|
10636
10721
|
* prevent the fatal damage.
|
|
@@ -10648,7 +10733,7 @@ export declare enum ModCallbackCustom {
|
|
|
10648
10733
|
* function postPlayerFatalDamage(player: EntityPlayer): boolean | undefined {}
|
|
10649
10734
|
* ```
|
|
10650
10735
|
*/
|
|
10651
|
-
POST_PLAYER_FATAL_DAMAGE =
|
|
10736
|
+
POST_PLAYER_FATAL_DAMAGE = 86,
|
|
10652
10737
|
/**
|
|
10653
10738
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player, similar to the
|
|
10654
10739
|
* `POST_PLAYER_INIT_LATE` callback, with two changes:
|
|
@@ -10670,7 +10755,7 @@ export declare enum ModCallbackCustom {
|
|
|
10670
10755
|
* function postPlayerInitFirst(player: EntityPlayer): void {}
|
|
10671
10756
|
* ```
|
|
10672
10757
|
*/
|
|
10673
|
-
POST_PLAYER_INIT_FIRST =
|
|
10758
|
+
POST_PLAYER_INIT_FIRST = 87,
|
|
10674
10759
|
/**
|
|
10675
10760
|
* Fires on the first `POST_PEFFECT_UPDATE_REORDERED` frame for each player.
|
|
10676
10761
|
*
|
|
@@ -10690,7 +10775,7 @@ export declare enum ModCallbackCustom {
|
|
|
10690
10775
|
* function postPlayerInitLate(pickup: EntityPickup): void {}
|
|
10691
10776
|
* ```
|
|
10692
10777
|
*/
|
|
10693
|
-
POST_PLAYER_INIT_LATE =
|
|
10778
|
+
POST_PLAYER_INIT_LATE = 88,
|
|
10694
10779
|
/**
|
|
10695
10780
|
* Similar to the vanilla callback of the same name, but fires after the `POST_GAME_STARTED`
|
|
10696
10781
|
* callback fires (if the player is spawning on the 0th game frame of the run).
|
|
@@ -10714,7 +10799,7 @@ export declare enum ModCallbackCustom {
|
|
|
10714
10799
|
* function postPlayerRenderReordered(player: EntityPlayer, renderOffset: Vector): void {}
|
|
10715
10800
|
* ```
|
|
10716
10801
|
*/
|
|
10717
|
-
POST_PLAYER_RENDER_REORDERED =
|
|
10802
|
+
POST_PLAYER_RENDER_REORDERED = 89,
|
|
10718
10803
|
/**
|
|
10719
10804
|
* Similar to the vanilla callback of the same name, but fires after the
|
|
10720
10805
|
* `POST_GAME_STARTED_REORDERED` callback fires (if the player is being updated on the 0th game
|
|
@@ -10739,7 +10824,7 @@ export declare enum ModCallbackCustom {
|
|
|
10739
10824
|
* function postPlayerUpdateReordered(player: EntityPlayer): void {}
|
|
10740
10825
|
* ```
|
|
10741
10826
|
*/
|
|
10742
|
-
POST_PLAYER_UPDATE_REORDERED =
|
|
10827
|
+
POST_PLAYER_UPDATE_REORDERED = 90,
|
|
10743
10828
|
/**
|
|
10744
10829
|
* Fires from the `POST_RENDER` callback on every frame that a poop exists.
|
|
10745
10830
|
*
|
|
@@ -10751,7 +10836,7 @@ export declare enum ModCallbackCustom {
|
|
|
10751
10836
|
* function postPoopRender(poop: GridEntityPoop): void {}
|
|
10752
10837
|
* ```
|
|
10753
10838
|
*/
|
|
10754
|
-
POST_POOP_RENDER =
|
|
10839
|
+
POST_POOP_RENDER = 91,
|
|
10755
10840
|
/**
|
|
10756
10841
|
* Fires from the `POST_UPDATE` callback on every frame that a poop exists.
|
|
10757
10842
|
*
|
|
@@ -10763,7 +10848,7 @@ export declare enum ModCallbackCustom {
|
|
|
10763
10848
|
* function postPoopUpdate(poop: GridEntityPoop): void {}
|
|
10764
10849
|
* ```
|
|
10765
10850
|
*/
|
|
10766
|
-
POST_POOP_UPDATE =
|
|
10851
|
+
POST_POOP_UPDATE = 92,
|
|
10767
10852
|
/**
|
|
10768
10853
|
* Fires from the `POST_RENDER` callback on every frame that a pressure plate exists.
|
|
10769
10854
|
*
|
|
@@ -10775,7 +10860,7 @@ export declare enum ModCallbackCustom {
|
|
|
10775
10860
|
* function postPressurePlateRender(pressurePlate: GridEntityPressurePlate): void {}
|
|
10776
10861
|
* ```
|
|
10777
10862
|
*/
|
|
10778
|
-
POST_PRESSURE_PLATE_RENDER =
|
|
10863
|
+
POST_PRESSURE_PLATE_RENDER = 93,
|
|
10779
10864
|
/**
|
|
10780
10865
|
* Fires from the `POST_UPDATE` callback on every frame that a pressure plate exists.
|
|
10781
10866
|
*
|
|
@@ -10787,7 +10872,7 @@ export declare enum ModCallbackCustom {
|
|
|
10787
10872
|
* function postPressurePlateUpdate(pressurePlate: GridEntityPressurePlate): void {}
|
|
10788
10873
|
* ```
|
|
10789
10874
|
*/
|
|
10790
|
-
POST_PRESSURE_PLATE_UPDATE =
|
|
10875
|
+
POST_PRESSURE_PLATE_UPDATE = 94,
|
|
10791
10876
|
/**
|
|
10792
10877
|
* Fires on the first `POST_PROJECTILE_UPDATE` frame for each projectile.
|
|
10793
10878
|
*
|
|
@@ -10804,7 +10889,7 @@ export declare enum ModCallbackCustom {
|
|
|
10804
10889
|
* function postProjectileInitLate(projectile: EntityProjectile): void {}
|
|
10805
10890
|
* ```
|
|
10806
10891
|
*/
|
|
10807
|
-
POST_PROJECTILE_INIT_LATE =
|
|
10892
|
+
POST_PROJECTILE_INIT_LATE = 95,
|
|
10808
10893
|
/**
|
|
10809
10894
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player first picks up a new
|
|
10810
10895
|
* item. The pickup returned in the callback is assumed to be the first pickup that no longer
|
|
@@ -10820,7 +10905,7 @@ export declare enum ModCallbackCustom {
|
|
|
10820
10905
|
* function postPurchase(player: EntityPlayer, pickup: EntityPickup): void {}
|
|
10821
10906
|
* ```
|
|
10822
10907
|
*/
|
|
10823
|
-
POST_PURCHASE =
|
|
10908
|
+
POST_PURCHASE = 96,
|
|
10824
10909
|
/**
|
|
10825
10910
|
* Fires from the `POST_RENDER` callback on every frame that a rock exists.
|
|
10826
10911
|
*
|
|
@@ -10834,7 +10919,7 @@ export declare enum ModCallbackCustom {
|
|
|
10834
10919
|
* function postRockRender(rock: GridEntityRock): void {}
|
|
10835
10920
|
* ```
|
|
10836
10921
|
*/
|
|
10837
|
-
POST_ROCK_RENDER =
|
|
10922
|
+
POST_ROCK_RENDER = 97,
|
|
10838
10923
|
/**
|
|
10839
10924
|
* Fires from the `POST_UPDATE` callback on every frame that a rock exists.
|
|
10840
10925
|
*
|
|
@@ -10848,7 +10933,7 @@ export declare enum ModCallbackCustom {
|
|
|
10848
10933
|
* function postRockUpdate(rock: GridEntityRock): void {}
|
|
10849
10934
|
* ```
|
|
10850
10935
|
*/
|
|
10851
|
-
POST_ROCK_UPDATE =
|
|
10936
|
+
POST_ROCK_UPDATE = 98,
|
|
10852
10937
|
/**
|
|
10853
10938
|
* Fires from the `POST_UPDATE` callback when the clear state of a room changes (as according to
|
|
10854
10939
|
* the `Room.IsClear` method).
|
|
@@ -10865,7 +10950,7 @@ export declare enum ModCallbackCustom {
|
|
|
10865
10950
|
* function postRoomClearChanged(roomClear: boolean): void {}
|
|
10866
10951
|
* ```
|
|
10867
10952
|
*/
|
|
10868
|
-
POST_ROOM_CLEAR_CHANGED =
|
|
10953
|
+
POST_ROOM_CLEAR_CHANGED = 99,
|
|
10869
10954
|
/**
|
|
10870
10955
|
* Fires from the `ENTITY_TAKE_DMG` callback when a player takes damage from spikes in a Sacrifice
|
|
10871
10956
|
* Room.
|
|
@@ -10880,7 +10965,7 @@ export declare enum ModCallbackCustom {
|
|
|
10880
10965
|
* function postSacrifice(player: EntityPlayer, numSacrifices: int): void {}
|
|
10881
10966
|
* ```
|
|
10882
10967
|
*/
|
|
10883
|
-
POST_SACRIFICE =
|
|
10968
|
+
POST_SACRIFICE = 100,
|
|
10884
10969
|
/**
|
|
10885
10970
|
* Fires from the `POST_RENDER` callback when a slot entity's animation changes.
|
|
10886
10971
|
*
|
|
@@ -10898,7 +10983,7 @@ export declare enum ModCallbackCustom {
|
|
|
10898
10983
|
* ): void {}
|
|
10899
10984
|
* ```
|
|
10900
10985
|
*/
|
|
10901
|
-
POST_SLOT_ANIMATION_CHANGED =
|
|
10986
|
+
POST_SLOT_ANIMATION_CHANGED = 101,
|
|
10902
10987
|
/**
|
|
10903
10988
|
* Fires from the `PRE_PLAYER_COLLISION` callback when when a player collides with a slot entity.
|
|
10904
10989
|
* (It will not fire if any other type of entity collides with the slot entity.)
|
|
@@ -10922,7 +11007,7 @@ export declare enum ModCallbackCustom {
|
|
|
10922
11007
|
* ): void {}
|
|
10923
11008
|
* ```
|
|
10924
11009
|
*/
|
|
10925
|
-
POST_SLOT_COLLISION =
|
|
11010
|
+
POST_SLOT_COLLISION = 102,
|
|
10926
11011
|
/**
|
|
10927
11012
|
* Fires from the `POST_SLOT_UPDATE` or the `POST_ENTITY_REMOVE` callback when a slot machine is
|
|
10928
11013
|
* destroyed or a beggar is removed.
|
|
@@ -10964,7 +11049,7 @@ export declare enum ModCallbackCustom {
|
|
|
10964
11049
|
* function postSlotDestroyed(slot: Entity, slotDestructionType: SlotDestructionType): void {}
|
|
10965
11050
|
* ```
|
|
10966
11051
|
*/
|
|
10967
|
-
POST_SLOT_DESTROYED =
|
|
11052
|
+
POST_SLOT_DESTROYED = 103,
|
|
10968
11053
|
/**
|
|
10969
11054
|
* Fires when a new slot entity is initialized. Specifically, this is either:
|
|
10970
11055
|
*
|
|
@@ -10983,7 +11068,7 @@ export declare enum ModCallbackCustom {
|
|
|
10983
11068
|
* function postSlotInit(slot: Entity): void {}
|
|
10984
11069
|
* ```
|
|
10985
11070
|
*/
|
|
10986
|
-
POST_SLOT_INIT =
|
|
11071
|
+
POST_SLOT_INIT = 104,
|
|
10987
11072
|
/**
|
|
10988
11073
|
* Fires from the `POST_RENDER` callback on every frame that a slot entity exists.
|
|
10989
11074
|
*
|
|
@@ -10997,7 +11082,7 @@ export declare enum ModCallbackCustom {
|
|
|
10997
11082
|
* function postSlotRender(slot: Entity): void {}
|
|
10998
11083
|
* ```
|
|
10999
11084
|
*/
|
|
11000
|
-
POST_SLOT_RENDER =
|
|
11085
|
+
POST_SLOT_RENDER = 105,
|
|
11001
11086
|
/**
|
|
11002
11087
|
* Fires from the `POST_UPDATE` callback on every frame that a slot entity exists.
|
|
11003
11088
|
*
|
|
@@ -11011,7 +11096,7 @@ export declare enum ModCallbackCustom {
|
|
|
11011
11096
|
* function postSlotUpdate(slot: Entity): void {}
|
|
11012
11097
|
* ```
|
|
11013
11098
|
*/
|
|
11014
|
-
POST_SLOT_UPDATE =
|
|
11099
|
+
POST_SLOT_UPDATE = 106,
|
|
11015
11100
|
/**
|
|
11016
11101
|
* Fires from the `POST_RENDER` callback on every frame that spikes exist.
|
|
11017
11102
|
*
|
|
@@ -11023,7 +11108,7 @@ export declare enum ModCallbackCustom {
|
|
|
11023
11108
|
* function postSpikesRender(spikes: GridEntitySpikes): void {}
|
|
11024
11109
|
* ```
|
|
11025
11110
|
*/
|
|
11026
|
-
POST_SPIKES_RENDER =
|
|
11111
|
+
POST_SPIKES_RENDER = 107,
|
|
11027
11112
|
/**
|
|
11028
11113
|
* Fires from the `POST_UPDATE` callback on every frame that spikes exist.
|
|
11029
11114
|
*
|
|
@@ -11035,7 +11120,22 @@ export declare enum ModCallbackCustom {
|
|
|
11035
11120
|
* function postSpikesUpdate(spikes: GridEntitySpikes): void {}
|
|
11036
11121
|
* ```
|
|
11037
11122
|
*/
|
|
11038
|
-
POST_SPIKES_UPDATE =
|
|
11123
|
+
POST_SPIKES_UPDATE = 108,
|
|
11124
|
+
/**
|
|
11125
|
+
* The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
|
|
11126
|
+
* to specify extra arguments for additional filtration.
|
|
11127
|
+
*
|
|
11128
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
11129
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
11130
|
+
* matches the `TearVariant` provided.
|
|
11131
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
11132
|
+
* matches the sub-type provided.
|
|
11133
|
+
*
|
|
11134
|
+
* ```ts
|
|
11135
|
+
* function postTearInitFilter(tear: EntityTear): void {}
|
|
11136
|
+
* ```
|
|
11137
|
+
*/
|
|
11138
|
+
POST_TEAR_INIT_FILTER = 109,
|
|
11039
11139
|
/**
|
|
11040
11140
|
* Fires on the first `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
11041
11141
|
* `EntityTear.FrameCount` is equal to 0).
|
|
@@ -11053,7 +11153,7 @@ export declare enum ModCallbackCustom {
|
|
|
11053
11153
|
* function postTearInitLate(tear: EntityTear): void {}
|
|
11054
11154
|
* ```
|
|
11055
11155
|
*/
|
|
11056
|
-
POST_TEAR_INIT_LATE =
|
|
11156
|
+
POST_TEAR_INIT_LATE = 110,
|
|
11057
11157
|
/**
|
|
11058
11158
|
* Fires on the second `POST_TEAR_UPDATE` frame for each tear (which is when
|
|
11059
11159
|
* `EntityTear.FrameCount` is equal to 1).
|
|
@@ -11070,7 +11170,37 @@ export declare enum ModCallbackCustom {
|
|
|
11070
11170
|
* function postTearInitVeryLate(tear: EntityTear): void {}
|
|
11071
11171
|
* ```
|
|
11072
11172
|
*/
|
|
11073
|
-
POST_TEAR_INIT_VERY_LATE =
|
|
11173
|
+
POST_TEAR_INIT_VERY_LATE = 111,
|
|
11174
|
+
/**
|
|
11175
|
+
* The exact same thing as the vanilla `POST_TEAR_RENDER` callback, except this callback allows
|
|
11176
|
+
* you to specify extra arguments for additional filtration.
|
|
11177
|
+
*
|
|
11178
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
11179
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
11180
|
+
* matches the `TearVariant` provided.
|
|
11181
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
11182
|
+
* matches the sub-type provided.
|
|
11183
|
+
*
|
|
11184
|
+
* ```ts
|
|
11185
|
+
* function postTearRenderFilter(tear: EntityTear, renderOffset: Vector): void {}
|
|
11186
|
+
* ```
|
|
11187
|
+
*/
|
|
11188
|
+
POST_TEAR_RENDER_FILTER = 112,
|
|
11189
|
+
/**
|
|
11190
|
+
* The exact same thing as the vanilla `POST_TEAR_INIT` callback, except this callback allows you
|
|
11191
|
+
* to specify extra arguments for additional filtration.
|
|
11192
|
+
*
|
|
11193
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
11194
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
11195
|
+
* matches the `TearVariant` provided.
|
|
11196
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
11197
|
+
* matches the sub-type provided.
|
|
11198
|
+
*
|
|
11199
|
+
* ```ts
|
|
11200
|
+
* function postTearUpdateFilter(tear: EntityTear): void {}
|
|
11201
|
+
* ```
|
|
11202
|
+
*/
|
|
11203
|
+
POST_TEAR_UPDATE_FILTER = 113,
|
|
11074
11204
|
/**
|
|
11075
11205
|
* Fires from the `POST_RENDER` callback on every frame that a TNT exists.
|
|
11076
11206
|
*
|
|
@@ -11082,7 +11212,7 @@ export declare enum ModCallbackCustom {
|
|
|
11082
11212
|
* function postTNTRender(tnt: GridEntityTNT): void {}
|
|
11083
11213
|
* ```
|
|
11084
11214
|
*/
|
|
11085
|
-
POST_TNT_RENDER =
|
|
11215
|
+
POST_TNT_RENDER = 114,
|
|
11086
11216
|
/**
|
|
11087
11217
|
* Fires from the `POST_UPDATE` callback on every frame that a TNT exists.
|
|
11088
11218
|
*
|
|
@@ -11094,7 +11224,7 @@ export declare enum ModCallbackCustom {
|
|
|
11094
11224
|
* function postTNTUpdate(tnt: GridEntityTNT): void {}
|
|
11095
11225
|
* ```
|
|
11096
11226
|
*/
|
|
11097
|
-
POST_TNT_UPDATE =
|
|
11227
|
+
POST_TNT_UPDATE = 115,
|
|
11098
11228
|
/**
|
|
11099
11229
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when a player gains or loses a new
|
|
11100
11230
|
* transformation.
|
|
@@ -11113,7 +11243,7 @@ export declare enum ModCallbackCustom {
|
|
|
11113
11243
|
* ): void {}
|
|
11114
11244
|
* ```
|
|
11115
11245
|
*/
|
|
11116
|
-
POST_TRANSFORMATION =
|
|
11246
|
+
POST_TRANSFORMATION = 116,
|
|
11117
11247
|
/**
|
|
11118
11248
|
* Fires from `ENTITY_TAKE_DMG` callback when a Wishbone or a Walnut breaks.
|
|
11119
11249
|
*
|
|
@@ -11128,7 +11258,7 @@ export declare enum ModCallbackCustom {
|
|
|
11128
11258
|
* ): void {}
|
|
11129
11259
|
* ```
|
|
11130
11260
|
*/
|
|
11131
|
-
POST_TRINKET_BREAK =
|
|
11261
|
+
POST_TRINKET_BREAK = 117,
|
|
11132
11262
|
/**
|
|
11133
11263
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback on the frame before a Berserk effect
|
|
11134
11264
|
* ends when the player is predicted to die (e.g. they currently have no health left or they took
|
|
@@ -11144,7 +11274,7 @@ export declare enum ModCallbackCustom {
|
|
|
11144
11274
|
* function preBerserkDeath(player: EntityPlayer): void {}
|
|
11145
11275
|
* ```
|
|
11146
11276
|
*/
|
|
11147
|
-
PRE_BERSERK_DEATH =
|
|
11277
|
+
PRE_BERSERK_DEATH = 118,
|
|
11148
11278
|
/**
|
|
11149
11279
|
* Fires from the `POST_PLAYER_FATAL_DAMAGE` callback when a player is about to die. If you want
|
|
11150
11280
|
* to initiate a custom revival, return an integer that corresponds to the item or type of revival
|
|
@@ -11163,7 +11293,7 @@ export declare enum ModCallbackCustom {
|
|
|
11163
11293
|
* function preCustomRevive(player: EntityPlayer): int | undefined {}
|
|
11164
11294
|
* ```
|
|
11165
11295
|
*/
|
|
11166
|
-
PRE_CUSTOM_REVIVE =
|
|
11296
|
+
PRE_CUSTOM_REVIVE = 119,
|
|
11167
11297
|
/**
|
|
11168
11298
|
* The exact same thing as the vanilla `PRE_ENTITY_SPAWN` callback, except this callback allows
|
|
11169
11299
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11188,7 +11318,7 @@ export declare enum ModCallbackCustom {
|
|
|
11188
11318
|
* ): [EntityType, int, int, int] | undefined {}
|
|
11189
11319
|
* ```
|
|
11190
11320
|
*/
|
|
11191
|
-
PRE_ENTITY_SPAWN_FILTER =
|
|
11321
|
+
PRE_ENTITY_SPAWN_FILTER = 120,
|
|
11192
11322
|
/**
|
|
11193
11323
|
* The exact same thing as the vanilla `PRE_FAMILIAR_COLLISION` callback, except this callback
|
|
11194
11324
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11207,7 +11337,7 @@ export declare enum ModCallbackCustom {
|
|
|
11207
11337
|
* ): void {}
|
|
11208
11338
|
* ```
|
|
11209
11339
|
*/
|
|
11210
|
-
PRE_FAMILIAR_COLLISION_FILTER =
|
|
11340
|
+
PRE_FAMILIAR_COLLISION_FILTER = 121,
|
|
11211
11341
|
/**
|
|
11212
11342
|
* Fires from the `PRE_PICKUP_COLLISION` callback when a player touches a collectible pedestal and
|
|
11213
11343
|
* meets all of the conditions to pick it up.
|
|
@@ -11227,7 +11357,7 @@ export declare enum ModCallbackCustom {
|
|
|
11227
11357
|
* function preGetPedestal(player: EntityPlayer, collectible: EntityPickupCollectible): void {}
|
|
11228
11358
|
* ```
|
|
11229
11359
|
*/
|
|
11230
|
-
PRE_GET_PEDESTAL =
|
|
11360
|
+
PRE_GET_PEDESTAL = 122,
|
|
11231
11361
|
/**
|
|
11232
11362
|
* Fires from the `POST_PEFFECT_UPDATE_REORDERED` callback when an item becomes queued (i.e. when
|
|
11233
11363
|
* the player begins to hold the item above their head).
|
|
@@ -11247,7 +11377,26 @@ export declare enum ModCallbackCustom {
|
|
|
11247
11377
|
* ): void {}
|
|
11248
11378
|
* ```
|
|
11249
11379
|
*/
|
|
11250
|
-
PRE_ITEM_PICKUP =
|
|
11380
|
+
PRE_ITEM_PICKUP = 123,
|
|
11381
|
+
/**
|
|
11382
|
+
* The exact same thing as the vanilla `PRE_KNIFE_COLLISION` callback, except this callback allows
|
|
11383
|
+
* you to specify extra arguments for additional filtration.
|
|
11384
|
+
*
|
|
11385
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
11386
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
11387
|
+
* matches the `KnifeVariant` provided.
|
|
11388
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
11389
|
+
* matches the sub-type provided.
|
|
11390
|
+
*
|
|
11391
|
+
* ```ts
|
|
11392
|
+
* function preKnifeCollisionFilter(
|
|
11393
|
+
* knife: EntityKnife,
|
|
11394
|
+
* collider: Entity,
|
|
11395
|
+
* low: boolean,
|
|
11396
|
+
* ): void {}
|
|
11397
|
+
* ```
|
|
11398
|
+
*/
|
|
11399
|
+
PRE_KNIFE_COLLISION_FILTER = 124,
|
|
11251
11400
|
/**
|
|
11252
11401
|
* Fires on the `POST_RENDER` frame before the player is taken to a new floor. Only fires when a
|
|
11253
11402
|
* player jumps into a trapdoor or enters a heaven door (beam of light). Does not fire on the
|
|
@@ -11261,7 +11410,7 @@ export declare enum ModCallbackCustom {
|
|
|
11261
11410
|
* function preNewLevel(player: EntityPlayer): void {}
|
|
11262
11411
|
* ```
|
|
11263
11412
|
*/
|
|
11264
|
-
PRE_NEW_LEVEL =
|
|
11413
|
+
PRE_NEW_LEVEL = 125,
|
|
11265
11414
|
/**
|
|
11266
11415
|
* The exact same thing as the vanilla `PRE_NPC_COLLISION` callback, except this callback allows
|
|
11267
11416
|
* you to specify extra arguments for additional filtration.
|
|
@@ -11282,7 +11431,7 @@ export declare enum ModCallbackCustom {
|
|
|
11282
11431
|
* ): boolean | undefined {}
|
|
11283
11432
|
* ```
|
|
11284
11433
|
*/
|
|
11285
|
-
PRE_NPC_COLLISION_FILTER =
|
|
11434
|
+
PRE_NPC_COLLISION_FILTER = 126,
|
|
11286
11435
|
/**
|
|
11287
11436
|
* The exact same thing as the vanilla `PRE_NPC_UPDATE` callback, except this callback allows you
|
|
11288
11437
|
* to specify extra arguments for additional filtration.
|
|
@@ -11299,7 +11448,7 @@ export declare enum ModCallbackCustom {
|
|
|
11299
11448
|
* function preNPCUpdateFilter(entity: Entity): boolean | undefined {}
|
|
11300
11449
|
* ```
|
|
11301
11450
|
*/
|
|
11302
|
-
PRE_NPC_UPDATE_FILTER =
|
|
11451
|
+
PRE_NPC_UPDATE_FILTER = 127,
|
|
11303
11452
|
/**
|
|
11304
11453
|
* The exact same thing as the vanilla `PRE_ROOM_ENTITY_SPAWN` callback, except this callback
|
|
11305
11454
|
* allows you to specify extra arguments for additional filtration.
|
|
@@ -11322,7 +11471,26 @@ export declare enum ModCallbackCustom {
|
|
|
11322
11471
|
* ): [EntityType | GridEntityXMLType, int, int] | undefined {}
|
|
11323
11472
|
* ```
|
|
11324
11473
|
*/
|
|
11325
|
-
PRE_ROOM_ENTITY_SPAWN_FILTER =
|
|
11474
|
+
PRE_ROOM_ENTITY_SPAWN_FILTER = 128,
|
|
11475
|
+
/**
|
|
11476
|
+
* The exact same thing as the vanilla `PRE_TEAR_COLLISION` callback, except this callback allows
|
|
11477
|
+
* you to specify extra arguments for additional filtration.
|
|
11478
|
+
*
|
|
11479
|
+
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
11480
|
+
* - You can provide an optional third argument that will make the callback only fire if it
|
|
11481
|
+
* matches the `TearVariant` provided.
|
|
11482
|
+
* - You can provide an optional fourth argument that will make the callback only fire if it
|
|
11483
|
+
* matches the sub-type provided.
|
|
11484
|
+
*
|
|
11485
|
+
* ```ts
|
|
11486
|
+
* function preTearCollisionFilter(
|
|
11487
|
+
* tear: EntityTear,
|
|
11488
|
+
* collider: Entity,
|
|
11489
|
+
* low: boolean,
|
|
11490
|
+
* ): void {}
|
|
11491
|
+
* ```
|
|
11492
|
+
*/
|
|
11493
|
+
PRE_TEAR_COLLISION_FILTER = 129
|
|
11326
11494
|
}
|
|
11327
11495
|
|
|
11328
11496
|
/**
|