isaacscript-common 31.7.0 → 31.7.2

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.
Files changed (64) hide show
  1. package/dist/index.rollup.d.ts +30 -14
  2. package/dist/isaacscript-common.lua +12 -6
  3. package/dist/src/classes/ModFeature.lua +3 -3
  4. package/dist/src/classes/callbacks/PostCursedTeleport.d.ts +1 -1
  5. package/dist/src/classes/callbacks/PostCustomRevive.d.ts +1 -1
  6. package/dist/src/classes/callbacks/PostCustomRevive.d.ts.map +1 -1
  7. package/dist/src/classes/callbacks/PostEffectStateChanged.d.ts +1 -1
  8. package/dist/src/classes/callbacks/PostFamiliarStateChanged.d.ts +1 -1
  9. package/dist/src/classes/callbacks/PostGridEntityCollision.d.ts +2 -1
  10. package/dist/src/classes/callbacks/PostGridEntityCollision.d.ts.map +1 -1
  11. package/dist/src/classes/callbacks/PostGridEntityCustomCollision.d.ts +2 -1
  12. package/dist/src/classes/callbacks/PostGridEntityCustomCollision.d.ts.map +1 -1
  13. package/dist/src/classes/callbacks/PostGridEntityCustomRemove.d.ts +2 -1
  14. package/dist/src/classes/callbacks/PostGridEntityCustomRemove.d.ts.map +1 -1
  15. package/dist/src/classes/callbacks/PostGridEntityRemove.d.ts +2 -1
  16. package/dist/src/classes/callbacks/PostGridEntityRemove.d.ts.map +1 -1
  17. package/dist/src/classes/callbacks/PostHolyMantleRemoved.d.ts +1 -1
  18. package/dist/src/classes/callbacks/PostItemDischarge.d.ts +1 -1
  19. package/dist/src/classes/callbacks/PostPickupStateChanged.d.ts +1 -1
  20. package/dist/src/classes/callbacks/PostPlayerChangeHealth.d.ts +1 -1
  21. package/dist/src/classes/callbacks/PostPlayerFatalDamage.d.ts +1 -1
  22. package/dist/src/classes/callbacks/PostPurchase.d.ts +3 -2
  23. package/dist/src/classes/callbacks/PostPurchase.d.ts.map +1 -1
  24. package/dist/src/classes/callbacks/PostTrinketBreak.d.ts +1 -1
  25. package/dist/src/classes/callbacks/PreEntitySpawnFilter.d.ts +1 -1
  26. package/dist/src/classes/callbacks/PreEntitySpawnFilter.d.ts.map +1 -1
  27. package/dist/src/classes/callbacks/PreNewLevel.d.ts +1 -1
  28. package/dist/src/classes/callbacks/PreRoomEntitySpawnFilter.d.ts +1 -1
  29. package/dist/src/classes/callbacks/PreRoomEntitySpawnFilter.d.ts.map +1 -1
  30. package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts +1 -1
  31. package/dist/src/classes/features/callbackLogic/EsauJrDetection.d.ts +1 -1
  32. package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts +1 -1
  33. package/dist/src/classes/features/callbackLogic/PickupChangeDetection.d.ts +1 -1
  34. package/dist/src/classes/features/callbackLogic/PlayerCollectibleDetection.d.ts +2 -2
  35. package/dist/src/classes/features/other/customStages/v.d.ts +2 -2
  36. package/dist/src/core/constants.d.ts +2 -2
  37. package/dist/src/core/constants.d.ts.map +1 -1
  38. package/dist/src/core/constantsFirstLast.d.ts +1 -1
  39. package/dist/src/core/constantsFirstLast.d.ts.map +1 -1
  40. package/dist/src/functions/decorators.d.ts +4 -0
  41. package/dist/src/functions/decorators.d.ts.map +1 -1
  42. package/dist/src/functions/decorators.lua +4 -0
  43. package/dist/src/functions/input.d.ts +10 -0
  44. package/dist/src/functions/input.d.ts.map +1 -1
  45. package/dist/src/functions/input.lua +6 -0
  46. package/dist/src/functions/types.d.ts +1 -0
  47. package/dist/src/functions/types.d.ts.map +1 -1
  48. package/dist/src/functions/types.lua +8 -2
  49. package/dist/src/maps/gridEntityTypeToBrokenStateMap.d.ts +1 -1
  50. package/dist/src/maps/gridEntityTypeToBrokenStateMap.d.ts.map +1 -1
  51. package/dist/src/maps/gridEntityXMLMap.d.ts +1 -1
  52. package/dist/src/maps/gridEntityXMLMap.d.ts.map +1 -1
  53. package/dist/src/maps/roomShapeToTopLeftWallGridIndexMap.d.ts +1 -1
  54. package/dist/src/maps/roomShapeToTopLeftWallGridIndexMap.d.ts.map +1 -1
  55. package/dist/src/sets/bossSets.d.ts +3 -2
  56. package/dist/src/sets/bossSets.d.ts.map +1 -1
  57. package/dist/src/shouldFire.d.ts.map +1 -1
  58. package/package.json +2 -2
  59. package/src/classes/ModFeature.ts +3 -3
  60. package/src/functions/decorators.ts +4 -0
  61. package/src/functions/flag.ts +2 -2
  62. package/src/functions/input.ts +10 -0
  63. package/src/functions/types.ts +8 -0
  64. package/src/shouldFire.ts +0 -1
@@ -1285,6 +1285,7 @@ export declare function calculateStageTypeRepentance(stage: LevelStage): StageTy
1285
1285
  * A decorator function that signifies that the decorated class method should be automatically
1286
1286
  * registered with `Mod.AddCallback`.
1287
1287
  *
1288
+ * @allowEmptyVariadic
1288
1289
  * @ignore
1289
1290
  */
1290
1291
  export declare function Callback<T extends ModCallback>(modCallback: T, ...optionalArgs: AllButFirst<AddCallbackParameters[T]>): <Class extends ModFeature, Fn extends AddCallbackParameters[T][0]>(target: Class, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
@@ -1293,6 +1294,7 @@ export declare function Callback<T extends ModCallback>(modCallback: T, ...optio
1293
1294
  * A decorator function that signifies that the decorated class method should be automatically
1294
1295
  * registered with `ModUpgraded.AddCallbackCustom`.
1295
1296
  *
1297
+ * @allowEmptyVariadic
1296
1298
  * @ignore
1297
1299
  */
1298
1300
  export declare function CallbackCustom<T extends ModCallbackCustom>(modCallbackCustom: T, ...optionalArgs: AllButFirst<AddCallbackParametersCustom[T]>): <Class extends ModFeature, Fn extends AddCallbackParametersCustom[T][0]>(target: Class, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
@@ -2078,7 +2080,7 @@ declare class CustomRevive extends Feature {
2078
2080
  v: {
2079
2081
  run: {
2080
2082
  state: CustomReviveState;
2081
- revivalType: number | null;
2083
+ revivalType: int | null;
2082
2084
  dyingPlayerIndex: PlayerIndex | null;
2083
2085
  };
2084
2086
  };
@@ -4105,7 +4107,7 @@ declare type ErrorIsaacAPIClassIsNotSerializable = "Error: Isaac API classes (su
4105
4107
  declare class EsauJrDetection extends Feature {
4106
4108
  v: {
4107
4109
  run: {
4108
- usedEsauJrFrame: number | null;
4110
+ usedEsauJrFrame: int | null;
4109
4111
  usedEsauJrControllerIndex: ControllerIndex | null;
4110
4112
  usedEsauJrAtLeastOnce: boolean;
4111
4113
  };
@@ -5692,6 +5694,11 @@ export declare function getMapPartialMatch<T>(searchText: string, map: ReadonlyM
5692
5694
  */
5693
5695
  export declare function getMatchingGridEntities(gridEntityType: GridEntityType, variant: int): GridEntity[];
5694
5696
 
5697
+ /**
5698
+ * Helper function to get the movement actions that the specified `ControllerIndex` is currently
5699
+ * pressing down. This returns an array because a player can technically be holding down more than
5700
+ * one movement key at a time.
5701
+ */
5695
5702
  export declare function getMoveActions(controllerIndex: ControllerIndex): ButtonAction[];
5696
5703
 
5697
5704
  /**
@@ -6937,6 +6944,11 @@ export declare function getScreenTopRightPos(): Readonly<Vector>;
6937
6944
  */
6938
6945
  export declare function getSetCombinations<T>(set: Set<T> | ReadonlySet<T>, includeEmptyArray: boolean): ReadonlyArray<ReadonlySet<T>>;
6939
6946
 
6947
+ /**
6948
+ * Helper function to get the shooting actions that the specified `ControllerIndex` is currently
6949
+ * pressing down. This returns an array because a player can technically be holding down more than
6950
+ * one shooting key at a time.
6951
+ */
6940
6952
  export declare function getShootActions(controllerIndex: ControllerIndex): ButtonAction[];
6941
6953
 
6942
6954
  /**
@@ -7346,7 +7358,7 @@ declare class GridEntityUpdateDetection extends Feature {
7346
7358
  v: {
7347
7359
  room: {
7348
7360
  /** Indexed by grid index. */
7349
- initializedGridEntities: Map<number, GridEntityTuple>;
7361
+ initializedGridEntities: Map<int, GridEntityTuple>;
7350
7362
  };
7351
7363
  };
7352
7364
  private readonly postGridEntityInit;
@@ -8401,6 +8413,8 @@ export declare function isHomeCloset(roomData: RoomConfig): boolean;
8401
8413
 
8402
8414
  export declare function isHorsePill(pillColor: PillColor): boolean;
8403
8415
 
8416
+ export declare function isInteger(variable: unknown): variable is int;
8417
+
8404
8418
  /**
8405
8419
  * Helper function to check if something is an instantiated class from the Isaac API. (All classes
8406
8420
  * from the Isaac API have a type of "userdata" in Lua with a metatable key of "__type" equal to the
@@ -9683,7 +9697,7 @@ export declare const MAX_PLAYER_HEART_CONTAINERS = 18;
9683
9697
  */
9684
9698
  export declare const MAX_PLAYER_SPEED_IN_UNITS = 9.8;
9685
9699
 
9686
- export declare const MAX_PLAYER_TRINKET_SLOTS: number;
9700
+ export declare const MAX_PLAYER_TRINKET_SLOTS: int;
9687
9701
 
9688
9702
  /**
9689
9703
  * The maximum speed stat that a player can have. Any additional speed beyond this will not take
@@ -13396,7 +13410,7 @@ export declare const NUM_VANILLA_COLLECTIBLE_TYPES: number;
13396
13410
  * Calculated from the `PillEffect` enum. (There is no `PillEffect.NULL` in the custom enum, so we
13397
13411
  * do not have to subtract one here.)
13398
13412
  */
13399
- export declare const NUM_VANILLA_PILL_EFFECTS: number;
13413
+ export declare const NUM_VANILLA_PILL_EFFECTS: int;
13400
13414
 
13401
13415
  /** Calculated from the `TrinketType` enum. (`TrinketType.NULL` is not included.) */
13402
13416
  export declare const NUM_VANILLA_TRINKET_TYPES: number;
@@ -13649,7 +13663,7 @@ declare class PickupChangeDetection extends Feature {
13649
13663
  v: {
13650
13664
  room: {
13651
13665
  pickupVariants: Map<PickupIndex, PickupVariant>;
13652
- pickupSubTypes: Map<PickupIndex, number>;
13666
+ pickupSubTypes: Map<PickupIndex, int>;
13653
13667
  };
13654
13668
  };
13655
13669
  private readonly postPickupChanged;
@@ -13735,8 +13749,8 @@ export declare function playChargeSoundEffect(player: EntityPlayer, activeSlot?:
13735
13749
  declare class PlayerCollectibleDetection extends Feature {
13736
13750
  v: {
13737
13751
  run: {
13738
- playersCollectibleCount: DefaultMap<PlayerIndex, number, []>;
13739
- playersCollectibleMap: DefaultMap<PlayerIndex, Map<CollectibleType, number>, []>;
13752
+ playersCollectibleCount: DefaultMap<PlayerIndex, int, []>;
13753
+ playersCollectibleMap: DefaultMap<PlayerIndex, Map<CollectibleType, int>, []>;
13740
13754
  playersActiveItemMap: DefaultMap<PlayerIndex, Map<ActiveSlot, CollectibleType>, []>;
13741
13755
  };
13742
13756
  };
@@ -13978,7 +13992,7 @@ export declare type PossibleStatType = number | boolean | BitFlags<TearFlag> | C
13978
13992
 
13979
13993
  declare class PostCustomRevive extends CustomCallback<ModCallbackCustom.POST_CUSTOM_REVIVE> {
13980
13994
  constructor();
13981
- protected shouldFire: (fireArgs: [player: EntityPlayer, revivalType: number], optionalArgs: OptionalArgs<T>) => boolean;
13995
+ protected shouldFire: (fireArgs: [player: EntityPlayer, revivalType: int], optionalArgs: OptionalArgs<T>) => boolean;
13982
13996
  }
13983
13997
 
13984
13998
  declare class PostEsauJr extends CustomCallback<ModCallbackCustom.POST_ESAU_JR> {
@@ -14004,7 +14018,7 @@ declare class PostGridEntityBroken extends CustomCallback<ModCallbackCustom.POST
14004
14018
 
14005
14019
  declare class PostGridEntityCollision extends CustomCallback<T_2> {
14006
14020
  constructor();
14007
- protected shouldFire: (fireArgs: [gridEntity: GridEntity, entity: Entity], optionalArgs: [gridEntityType?: GridEntityType | undefined, gridEntityVariant?: number | undefined, entityType?: EntityType | undefined, entityVariant?: number | undefined, entitySubType?: number | undefined]) => boolean;
14021
+ protected shouldFire: (fireArgs: [gridEntity: GridEntity, entity: Entity], optionalArgs: [gridEntityType?: GridEntityType | undefined, gridEntityVariant?: int | undefined, entityType?: EntityType | undefined, entityVariant?: int | undefined, entitySubType?: int | undefined]) => boolean;
14008
14022
  }
14009
14023
 
14010
14024
  declare class PostGridEntityCustomBroken extends CustomCallback<ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_BROKEN> {
@@ -14014,7 +14028,7 @@ declare class PostGridEntityCustomBroken extends CustomCallback<ModCallbackCusto
14014
14028
 
14015
14029
  declare class PostGridEntityCustomCollision extends CustomCallback<T_3> {
14016
14030
  constructor();
14017
- protected shouldFire: (fireArgs: [gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType, entity: Entity], optionalArgs: [gridEntityTypeCustom?: GridEntityType | undefined, entityType?: EntityType | undefined, entityVariant?: number | undefined, entitySubType?: number | undefined]) => boolean;
14031
+ protected shouldFire: (fireArgs: [gridEntity: GridEntity, gridEntityTypeCustom: GridEntityType, entity: Entity], optionalArgs: [gridEntityTypeCustom?: GridEntityType | undefined, entityType?: EntityType | undefined, entityVariant?: int | undefined, entitySubType?: int | undefined]) => boolean;
14018
14032
  }
14019
14033
 
14020
14034
  declare class PostGridEntityCustomInit extends CustomCallback<ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_INIT> {
@@ -14024,7 +14038,7 @@ declare class PostGridEntityCustomInit extends CustomCallback<ModCallbackCustom.
14024
14038
 
14025
14039
  declare class PostGridEntityCustomRemove extends CustomCallback<T_5> {
14026
14040
  constructor();
14027
- protected shouldFire: (fireArgs: [gridIndex: number, gridEntityTypeCustom: GridEntityType], optionalArgs: OptionalArgs<T_5>) => boolean;
14041
+ protected shouldFire: (fireArgs: [gridIndex: int, gridEntityTypeCustom: GridEntityType], optionalArgs: OptionalArgs<T_5>) => boolean;
14028
14042
  }
14029
14043
 
14030
14044
  declare class PostGridEntityCustomRender extends CustomCallback<ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_RENDER> {
@@ -14049,7 +14063,7 @@ declare class PostGridEntityInit extends CustomCallback<ModCallbackCustom.POST_G
14049
14063
 
14050
14064
  declare class PostGridEntityRemove extends CustomCallback<T_4> {
14051
14065
  constructor();
14052
- protected shouldFire: (fireArgs: [gridIndex: number, gridEntityType: GridEntityType, variant: number], optionalArgs: [gridEntityType?: GridEntityType | undefined, variant?: number | undefined]) => boolean;
14066
+ protected shouldFire: (fireArgs: [gridIndex: int, gridEntityType: GridEntityType, variant: int], optionalArgs: [gridEntityType?: GridEntityType | undefined, variant?: int | undefined]) => boolean;
14053
14067
  }
14054
14068
 
14055
14069
  declare class PostGridEntityRender extends CustomCallback<ModCallbackCustom.POST_GRID_ENTITY_RENDER> {
@@ -14233,6 +14247,7 @@ export declare function printEnabled(enabled: boolean, description: string): voi
14233
14247
  * A decorator function that signifies that the decorated class method should be automatically
14234
14248
  * registered with `Mod.AddPriorityCallback`.
14235
14249
  *
14250
+ * @allowEmptyVariadic
14236
14251
  * @ignore
14237
14252
  */
14238
14253
  export declare function PriorityCallback<T extends ModCallback>(modCallback: T, priority: CallbackPriority | int, ...optionalArgs: AllButFirst<AddCallbackParameters[T]>): <Class extends ModFeature, Fn extends AddCallbackParameters[T][0]>(target: Class, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
@@ -14241,6 +14256,7 @@ export declare function PriorityCallback<T extends ModCallback>(modCallback: T,
14241
14256
  * A decorator function that signifies that the decorated class method should be automatically
14242
14257
  * registered with `ModUpgraded.AddCallbackCustom`.
14243
14258
  *
14259
+ * @allowEmptyVariadic
14244
14260
  * @ignore
14245
14261
  */
14246
14262
  export declare function PriorityCallbackCustom<T extends ModCallbackCustom>(modCallbackCustom: T, priority: CallbackPriority | int, ...optionalArgs: AllButFirst<AddCallbackParametersCustom[T]>): <Class extends ModFeature, Fn extends AddCallbackParametersCustom[T][0]>(target: Class, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
@@ -16969,7 +16985,7 @@ export declare function temporarilyRemoveTrinkets(player: EntityPlayer): Trinket
16969
16985
  export declare function texelEquals(sprite1: Sprite, sprite2: Sprite, position: Vector, layerID: int): boolean;
16970
16986
 
16971
16987
  /** In milliseconds, as reported by the `Isaac.GetTime` method. */
16972
- export declare const TIME_GAME_OPENED: number;
16988
+ export declare const TIME_GAME_OPENED: int;
16973
16989
 
16974
16990
  /**
16975
16991
  * Helper function to signify that the enclosing code block is not yet complete. Using this function
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 31.7.0
3
+ isaacscript-common 31.7.2
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -15576,6 +15576,9 @@ return ____exports
15576
15576
  end,
15577
15577
  ["src.functions.types"] = function(...)
15578
15578
  local ____exports = {}
15579
+ function ____exports.isNumber(self, variable)
15580
+ return type(variable) == "number"
15581
+ end
15579
15582
  function ____exports.asCardType(self, num)
15580
15583
  return num
15581
15584
  end
@@ -15612,8 +15615,11 @@ end
15612
15615
  function ____exports.isFunction(self, variable)
15613
15616
  return type(variable) == "function"
15614
15617
  end
15615
- function ____exports.isNumber(self, variable)
15616
- return type(variable) == "number"
15618
+ function ____exports.isInteger(self, variable)
15619
+ if not ____exports.isNumber(nil, variable) then
15620
+ return false
15621
+ end
15622
+ return variable == math.floor(variable)
15617
15623
  end
15618
15624
  function ____exports.isPrimitive(self, variable)
15619
15625
  local variableType = type(variable)
@@ -52378,7 +52384,7 @@ local getTSTLClassConstructor = ____tstlClass.getTSTLClassConstructor
52378
52384
  local getTSTLClassName = ____tstlClass.getTSTLClassName
52379
52385
  local ____types = require("src.functions.types")
52380
52386
  local isFunction = ____types.isFunction
52381
- local isNumber = ____types.isNumber
52387
+ local isInteger = ____types.isInteger
52382
52388
  local isTable = ____types.isTable
52383
52389
  local ____utils = require("src.functions.utils")
52384
52390
  local assertDefined = ____utils.assertDefined
@@ -52397,11 +52403,11 @@ function initDecoratedCallbacks(self, modFeature, constructor, tstlClassName, va
52397
52403
  error((("Failed to initialize/uninitialize the decorated callbacks on a mod feature since one of the callback arguments on the key of \"" .. callbackTuplesKey) .. "\" was not an array and was instead of type: ") .. type(callbackTuple))
52398
52404
  end
52399
52405
  local modCallback = callbackTuple[1]
52400
- if not isNumber(nil, modCallback) then
52406
+ if not isInteger(nil, modCallback) then
52401
52407
  error("Failed to get the callback number from the callback tuple for class: " .. tstlClassName)
52402
52408
  end
52403
52409
  local priority = callbackTuple[2]
52404
- if not isNumber(nil, priority) then
52410
+ if not isInteger(nil, priority) then
52405
52411
  error("Failed to get the callback priority from the callback tuple for class: " .. tstlClassName)
52406
52412
  end
52407
52413
  local callback = callbackTuple[3]
@@ -11,7 +11,7 @@ local getTSTLClassConstructor = ____tstlClass.getTSTLClassConstructor
11
11
  local getTSTLClassName = ____tstlClass.getTSTLClassName
12
12
  local ____types = require("src.functions.types")
13
13
  local isFunction = ____types.isFunction
14
- local isNumber = ____types.isNumber
14
+ local isInteger = ____types.isInteger
15
15
  local isTable = ____types.isTable
16
16
  local ____utils = require("src.functions.utils")
17
17
  local assertDefined = ____utils.assertDefined
@@ -30,11 +30,11 @@ function initDecoratedCallbacks(self, modFeature, constructor, tstlClassName, va
30
30
  error((("Failed to initialize/uninitialize the decorated callbacks on a mod feature since one of the callback arguments on the key of \"" .. callbackTuplesKey) .. "\" was not an array and was instead of type: ") .. type(callbackTuple))
31
31
  end
32
32
  local modCallback = callbackTuple[1]
33
- if not isNumber(nil, modCallback) then
33
+ if not isInteger(nil, modCallback) then
34
34
  error("Failed to get the callback number from the callback tuple for class: " .. tstlClassName)
35
35
  end
36
36
  local priority = callbackTuple[2]
37
- if not isNumber(nil, priority) then
37
+ if not isInteger(nil, priority) then
38
38
  error("Failed to get the callback priority from the callback tuple for class: " .. tstlClassName)
39
39
  end
40
40
  local callback = callbackTuple[3]
@@ -5,7 +5,7 @@ import { CustomCallback } from "../private/CustomCallback";
5
5
  export declare class PostCursedTeleport extends CustomCallback<ModCallbackCustom.POST_CURSED_TELEPORT> {
6
6
  v: {
7
7
  run: {
8
- playersDamageFrameMap: Map<PlayerIndex, [lastDamageFrame: number, callbackFiredOnThisFrame: boolean]>;
8
+ playersDamageFrameMap: Map<PlayerIndex, [lastDamageFrame: int, callbackFiredOnThisFrame: boolean]>;
9
9
  };
10
10
  level: {
11
11
  numSacrifices: number;
@@ -4,7 +4,7 @@ import { CustomCallback } from "../private/CustomCallback";
4
4
  type T = ModCallbackCustom.POST_CUSTOM_REVIVE;
5
5
  export declare class PostCustomRevive extends CustomCallback<ModCallbackCustom.POST_CUSTOM_REVIVE> {
6
6
  constructor();
7
- protected shouldFire: (fireArgs: [player: EntityPlayer, revivalType: number], optionalArgs: OptionalArgs<T>) => boolean;
7
+ protected shouldFire: (fireArgs: [player: EntityPlayer, revivalType: int], optionalArgs: OptionalArgs<T>) => boolean;
8
8
  }
9
9
  export {};
10
10
  //# sourceMappingURL=PostCustomRevive.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PostCustomRevive.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostCustomRevive.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAY,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,kBAAkB,CAAC;AAE9C,qBAAa,gBAAiB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,kBAAkB,CAAC;;IAOxF,UAAmB,UAAU,wEAEb,aAAa,CAAC,CAAC,KAC5B,OAAO,CAOR;CACH"}
1
+ {"version":3,"file":"PostCustomRevive.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostCustomRevive.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAY,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,kBAAkB,CAAC;AAE9C,qBAAa,gBAAiB,SAAQ,cAAc,CAAC,iBAAiB,CAAC,kBAAkB,CAAC;;IAOxF,UAAmB,UAAU,qEAEb,aAAa,CAAC,CAAC,KAC5B,OAAO,CAOR;CACH"}
@@ -5,7 +5,7 @@ import { CustomCallback } from "../private/CustomCallback";
5
5
  export declare class PostEffectStateChanged extends CustomCallback<ModCallbackCustom.POST_EFFECT_STATE_CHANGED> {
6
6
  v: {
7
7
  run: {
8
- stateMap: DefaultMap<PtrHash, number, [number]>;
8
+ stateMap: DefaultMap<PtrHash, int, [int]>;
9
9
  };
10
10
  };
11
11
  constructor();
@@ -5,7 +5,7 @@ import { CustomCallback } from "../private/CustomCallback";
5
5
  export declare class PostFamiliarStateChanged extends CustomCallback<ModCallbackCustom.POST_FAMILIAR_STATE_CHANGED> {
6
6
  v: {
7
7
  run: {
8
- stateMap: DefaultMap<PtrHash, number, [number]>;
8
+ stateMap: DefaultMap<PtrHash, int, [int]>;
9
9
  };
10
10
  };
11
11
  constructor();
@@ -1,11 +1,12 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  /// <reference types="isaac-typescript-definitions" />
3
+ /// <reference types="isaac-typescript-definitions" />
3
4
  import type { ModCallbackCustom } from "../../enums/ModCallbackCustom";
4
5
  import { CustomCallback } from "../private/CustomCallback";
5
6
  type T = ModCallbackCustom.POST_GRID_ENTITY_COLLISION;
6
7
  export declare class PostGridEntityCollision extends CustomCallback<T> {
7
8
  constructor();
8
- protected shouldFire: (fireArgs: [gridEntity: GridEntity, entity: Entity], optionalArgs: [gridEntityType?: import("isaac-typescript-definitions").GridEntityType | undefined, gridEntityVariant?: number | undefined, entityType?: import("isaac-typescript-definitions").EntityType | undefined, entityVariant?: number | undefined, entitySubType?: number | undefined]) => boolean;
9
+ protected shouldFire: (fireArgs: [gridEntity: GridEntity, entity: Entity], optionalArgs: [gridEntityType?: import("isaac-typescript-definitions").GridEntityType | undefined, gridEntityVariant?: int | undefined, entityType?: import("isaac-typescript-definitions").EntityType | undefined, entityVariant?: int | undefined, entitySubType?: int | undefined]) => boolean;
9
10
  }
10
11
  export {};
11
12
  //# sourceMappingURL=PostGridEntityCollision.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PostGridEntityCollision.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityCollision.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,0BAA0B,CAAC;AAEtD,qBAAa,uBAAwB,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAO5D,UAAmB,UAAU,0VAG1B,OAAO,CAyBR;CACH"}
1
+ {"version":3,"file":"PostGridEntityCollision.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityCollision.ts"],"names":[],"mappings":";;;AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,0BAA0B,CAAC;AAEtD,qBAAa,uBAAwB,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAO5D,UAAmB,UAAU,iVAG1B,OAAO,CAyBR;CACH"}
@@ -1,11 +1,12 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  /// <reference types="isaac-typescript-definitions" />
3
+ /// <reference types="isaac-typescript-definitions" />
3
4
  import type { ModCallbackCustom } from "../../enums/ModCallbackCustom";
4
5
  import { CustomCallback } from "../private/CustomCallback";
5
6
  type T = ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_COLLISION;
6
7
  export declare class PostGridEntityCustomCollision extends CustomCallback<T> {
7
8
  constructor();
8
- protected shouldFire: (fireArgs: [gridEntity: GridEntity, gridEntityTypeCustom: import("isaac-typescript-definitions").GridEntityType, entity: Entity], optionalArgs: [gridEntityTypeCustom?: import("isaac-typescript-definitions").GridEntityType | undefined, entityType?: import("isaac-typescript-definitions").EntityType | undefined, entityVariant?: number | undefined, entitySubType?: number | undefined]) => boolean;
9
+ protected shouldFire: (fireArgs: [gridEntity: GridEntity, gridEntityTypeCustom: import("isaac-typescript-definitions").GridEntityType, entity: Entity], optionalArgs: [gridEntityTypeCustom?: import("isaac-typescript-definitions").GridEntityType | undefined, entityType?: import("isaac-typescript-definitions").EntityType | undefined, entityVariant?: int | undefined, entitySubType?: int | undefined]) => boolean;
9
10
  }
10
11
  export {};
11
12
  //# sourceMappingURL=PostGridEntityCustomCollision.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PostGridEntityCustomCollision.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityCustomCollision.ts"],"names":[],"mappings":";;AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,iCAAiC,CAAC;AAE7D,qBAAa,6BAA8B,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAOlE,UAAmB,UAAU,qYAG1B,OAAO,CAmBR;CACH"}
1
+ {"version":3,"file":"PostGridEntityCustomCollision.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityCustomCollision.ts"],"names":[],"mappings":";;;AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,iCAAiC,CAAC;AAE7D,qBAAa,6BAA8B,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAOlE,UAAmB,UAAU,+XAG1B,OAAO,CAmBR;CACH"}
@@ -1,10 +1,11 @@
1
+ /// <reference types="isaac-typescript-definitions" />
1
2
  import type { ModCallbackCustom } from "../../enums/ModCallbackCustom";
2
3
  import type { OptionalArgs } from "../private/CustomCallback";
3
4
  import { CustomCallback } from "../private/CustomCallback";
4
5
  type T = ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_REMOVE;
5
6
  export declare class PostGridEntityCustomRemove extends CustomCallback<T> {
6
7
  constructor();
7
- protected shouldFire: (fireArgs: [gridIndex: number, gridEntityTypeCustom: import("isaac-typescript-definitions").GridEntityType], optionalArgs: OptionalArgs<T>) => boolean;
8
+ protected shouldFire: (fireArgs: [gridIndex: int, gridEntityTypeCustom: import("isaac-typescript-definitions").GridEntityType], optionalArgs: OptionalArgs<T>) => boolean;
8
9
  }
9
10
  export {};
10
11
  //# sourceMappingURL=PostGridEntityCustomRemove.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PostGridEntityCustomRemove.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityCustomRemove.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAY,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,8BAA8B,CAAC;AAE1D,qBAAa,0BAA2B,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAO/D,UAAmB,UAAU,6HAEb,aAAa,CAAC,CAAC,KAC5B,OAAO,CAQR;CACH"}
1
+ {"version":3,"file":"PostGridEntityCustomRemove.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityCustomRemove.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAY,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,8BAA8B,CAAC;AAE1D,qBAAa,0BAA2B,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAO/D,UAAmB,UAAU,0HAEb,aAAa,CAAC,CAAC,KAC5B,OAAO,CAQR;CACH"}
@@ -1,9 +1,10 @@
1
+ /// <reference types="isaac-typescript-definitions" />
1
2
  import type { ModCallbackCustom } from "../../enums/ModCallbackCustom";
2
3
  import { CustomCallback } from "../private/CustomCallback";
3
4
  type T = ModCallbackCustom.POST_GRID_ENTITY_REMOVE;
4
5
  export declare class PostGridEntityRemove extends CustomCallback<T> {
5
6
  constructor();
6
- protected shouldFire: (fireArgs: [gridIndex: number, gridEntityType: import("isaac-typescript-definitions").GridEntityType, variant: number], optionalArgs: [gridEntityType?: import("isaac-typescript-definitions").GridEntityType | undefined, variant?: number | undefined]) => boolean;
7
+ protected shouldFire: (fireArgs: [gridIndex: int, gridEntityType: import("isaac-typescript-definitions").GridEntityType, variant: int], optionalArgs: [gridEntityType?: import("isaac-typescript-definitions").GridEntityType | undefined, variant?: int | undefined]) => boolean;
7
8
  }
8
9
  export {};
9
10
  //# sourceMappingURL=PostGridEntityRemove.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PostGridEntityRemove.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityRemove.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,uBAAuB,CAAC;AAEnD,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAOzD,UAAmB,UAAU,+PAG1B,OAAO,CASR;CACH"}
1
+ {"version":3,"file":"PostGridEntityRemove.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityRemove.ts"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,uBAAuB,CAAC;AAEnD,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAOzD,UAAmB,UAAU,sPAG1B,OAAO,CASR;CACH"}
@@ -6,7 +6,7 @@ import { CustomCallback } from "../private/CustomCallback";
6
6
  export declare class PostHolyMantleRemoved extends CustomCallback<ModCallbackCustom.POST_HOLY_MANTLE_REMOVED> {
7
7
  v: {
8
8
  run: {
9
- playersHolyMantleMap: DefaultMap<PlayerIndex, number, []>;
9
+ playersHolyMantleMap: DefaultMap<PlayerIndex, int, []>;
10
10
  };
11
11
  };
12
12
  constructor();
@@ -14,7 +14,7 @@ export declare class PostItemDischarge extends CustomCallback<T> {
14
14
  playersActiveChargeMap: DefaultMap<PlayerIndex, ActiveSlotToChargeMap, []>;
15
15
  };
16
16
  room: {
17
- playersBulbLastCollisionFrame: Map<PlayerIndex, number>;
17
+ playersBulbLastCollisionFrame: Map<PlayerIndex, int>;
18
18
  };
19
19
  };
20
20
  constructor();
@@ -5,7 +5,7 @@ import { CustomCallback } from "../private/CustomCallback";
5
5
  export declare class PostPickupStateChanged extends CustomCallback<ModCallbackCustom.POST_PICKUP_STATE_CHANGED> {
6
6
  v: {
7
7
  run: {
8
- stateMap: DefaultMap<PtrHash, number, [number]>;
8
+ stateMap: DefaultMap<PtrHash, int, [int]>;
9
9
  };
10
10
  };
11
11
  constructor();
@@ -7,7 +7,7 @@ import { CustomCallback } from "../private/CustomCallback";
7
7
  export declare class PostPlayerChangeHealth extends CustomCallback<ModCallbackCustom.POST_PLAYER_CHANGE_HEALTH> {
8
8
  v: {
9
9
  run: {
10
- playersHealthMap: DefaultMap<PlayerIndex, Map<HealthType, number>, []>;
10
+ playersHealthMap: DefaultMap<PlayerIndex, Map<HealthType, int>, []>;
11
11
  };
12
12
  };
13
13
  constructor();
@@ -6,7 +6,7 @@ export declare class PostPlayerFatalDamage extends CustomCallback<ModCallbackCus
6
6
  v: {
7
7
  run: {
8
8
  /** Needed to detect if Glass Cannon will kill the player or not. */
9
- playersLastDamageGameFrame: Map<PlayerIndex, number>;
9
+ playersLastDamageGameFrame: Map<PlayerIndex, int>;
10
10
  };
11
11
  };
12
12
  constructor();
@@ -1,5 +1,6 @@
1
1
  /// <reference types="isaac-typescript-definitions" />
2
2
  /// <reference types="isaac-typescript-definitions" />
3
+ /// <reference types="isaac-typescript-definitions" />
3
4
  import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
4
5
  import type { PlayerIndex } from "../../types/PlayerIndex";
5
6
  import { DefaultMap } from "../DefaultMap";
@@ -9,11 +10,11 @@ export declare class PostPurchase extends CustomCallback<T> {
9
10
  v: {
10
11
  room: {
11
12
  playersHoldingItemOnLastFrameMap: DefaultMap<PlayerIndex, boolean, []>;
12
- playersUsedItemOnFrame: DefaultMap<PlayerIndex, number, []>;
13
+ playersUsedItemOnFrame: DefaultMap<PlayerIndex, int, []>;
13
14
  };
14
15
  };
15
16
  constructor();
16
- protected shouldFire: (fireArgs: [player: EntityPlayer, pickup: EntityPickup], optionalArgs: [pickupVariant?: import("isaac-typescript-definitions").PickupVariant | undefined, subType?: number | undefined]) => boolean;
17
+ protected shouldFire: (fireArgs: [player: EntityPlayer, pickup: EntityPickup], optionalArgs: [pickupVariant?: import("isaac-typescript-definitions").PickupVariant | undefined, subType?: int | undefined]) => boolean;
17
18
  private readonly postUseItem;
18
19
  private readonly postUseCard;
19
20
  private readonly postUsePill;
@@ -1 +1 @@
1
- {"version":3,"file":"PostPurchase.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostPurchase.ts"],"names":[],"mappings":";;AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMlE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,aAAa,CAAC;AAWzC,qBAAa,YAAa,SAAQ,cAAc,CAAC,CAAC,CAAC;IACjC,CAAC;;;;;MAAK;;IAwBtB,UAAmB,UAAU,8LAG1B,OAAO,CAUR;IAGF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAO1B;IAGF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAM1B;IAGF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAM1B;IAGF,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAqBzC;IAEF,OAAO,CAAC,sBAAsB;IAY9B,OAAO,CAAC,qBAAqB;CAS9B"}
1
+ {"version":3,"file":"PostPurchase.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostPurchase.ts"],"names":[],"mappings":";;;AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMlE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,aAAa,CAAC;AAWzC,qBAAa,YAAa,SAAQ,cAAc,CAAC,CAAC,CAAC;IACjC,CAAC;;;;;MAAK;;IAwBtB,UAAmB,UAAU,2LAG1B,OAAO,CAUR;IAGF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAO1B;IAGF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAM1B;IAGF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAM1B;IAGF,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAqBzC;IAEF,OAAO,CAAC,sBAAsB;IAY9B,OAAO,CAAC,qBAAqB;CAS9B"}
@@ -7,7 +7,7 @@ import { CustomCallback } from "../private/CustomCallback";
7
7
  export declare class PostTrinketBreak extends CustomCallback<ModCallbackCustom.POST_TRINKET_BREAK> {
8
8
  v: {
9
9
  run: {
10
- playersTrinketMap: DefaultMap<PlayerIndex, Map<TrinketType, number>, []>;
10
+ playersTrinketMap: DefaultMap<PlayerIndex, Map<TrinketType, int>, []>;
11
11
  };
12
12
  };
13
13
  constructor();
@@ -4,7 +4,7 @@ import { CustomCallback } from "../private/CustomCallback";
4
4
  type T = ModCallbackCustom.PRE_ENTITY_SPAWN_FILTER;
5
5
  export declare class PreEntitySpawnFilter extends CustomCallback<T> {
6
6
  constructor();
7
- protected shouldFire: (fireArgs: [entityType: EntityType, variant: number, subType: number, position: Vector, velocity: Vector, spawner: Entity | undefined, initSeed: Seed], optionalArgs: [entityType?: EntityType | undefined, variant?: number | undefined, subtype?: number | undefined]) => boolean;
7
+ protected shouldFire: (fireArgs: [entityType: EntityType, variant: int, subType: int, position: Vector, velocity: Vector, spawner: Entity | undefined, initSeed: Seed], optionalArgs: [entityType?: EntityType | undefined, variant?: int | undefined, subtype?: int | undefined]) => boolean;
8
8
  private readonly preEntitySpawn;
9
9
  }
10
10
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"PreEntitySpawnFilter.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PreEntitySpawnFilter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,uBAAuB,CAAC;AAEnD,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAUzD,UAAmB,UAAU,8QAG1B,OAAO,CASR;IAGF,OAAO,CAAC,QAAQ,CAAC,cAAc,CAiB3B;CACL"}
1
+ {"version":3,"file":"PreEntitySpawnFilter.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PreEntitySpawnFilter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,uBAAuB,CAAC;AAEnD,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAUzD,UAAmB,UAAU,kQAG1B,OAAO,CASR;IAGF,OAAO,CAAC,QAAQ,CAAC,cAAc,CAiB3B;CACL"}
@@ -3,7 +3,7 @@ import { CustomCallback } from "../private/CustomCallback";
3
3
  export declare class PreNewLevel extends CustomCallback<ModCallbackCustom.PRE_NEW_LEVEL> {
4
4
  v: {
5
5
  run: {
6
- firedOnStage: number | null;
6
+ firedOnStage: int | null;
7
7
  };
8
8
  };
9
9
  constructor();
@@ -4,7 +4,7 @@ import { CustomCallback } from "../private/CustomCallback";
4
4
  type T = ModCallbackCustom.PRE_ROOM_ENTITY_SPAWN_FILTER;
5
5
  export declare class PreRoomEntitySpawnFilter extends CustomCallback<T> {
6
6
  constructor();
7
- protected shouldFire: (fireArgs: [entityTypeOrGridEntityXMLType: EntityType | GridEntityXMLType, variant: number, subType: number, gridIndex: number, seed: Seed], optionalArgs: [entityTypeOrGridEntityXMLType?: EntityType | GridEntityXMLType | undefined, variant?: number | undefined, subType?: number | undefined]) => boolean;
7
+ protected shouldFire: (fireArgs: [entityTypeOrGridEntityXMLType: EntityType | GridEntityXMLType, variant: int, subType: int, gridIndex: int, seed: Seed], optionalArgs: [entityTypeOrGridEntityXMLType?: EntityType | GridEntityXMLType | undefined, variant?: int | undefined, subType?: int | undefined]) => boolean;
8
8
  private readonly preRoomEntitySpawn;
9
9
  }
10
10
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"PreRoomEntitySpawnFilter.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PreRoomEntitySpawnFilter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EAClB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,4BAA4B,CAAC;AAExD,qBAAa,wBAAyB,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAU7D,UAAmB,UAAU,0SAG1B,OAAO,CAeR;IAGF,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAO2C;CAC/E"}
1
+ {"version":3,"file":"PreRoomEntitySpawnFilter.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PreRoomEntitySpawnFilter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EAClB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,KAAK,CAAC,GAAG,iBAAiB,CAAC,4BAA4B,CAAC;AAExD,qBAAa,wBAAyB,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAU7D,UAAmB,UAAU,2RAG1B,OAAO,CAeR;IAGF,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAO2C;CAC/E"}
@@ -16,7 +16,7 @@ export declare class CustomRevive extends Feature {
16
16
  v: {
17
17
  run: {
18
18
  state: CustomReviveState;
19
- revivalType: number | null;
19
+ revivalType: int | null;
20
20
  dyingPlayerIndex: PlayerIndex | null;
21
21
  };
22
22
  };
@@ -5,7 +5,7 @@ import { Feature } from "../../private/Feature";
5
5
  export declare class EsauJrDetection extends Feature {
6
6
  v: {
7
7
  run: {
8
- usedEsauJrFrame: number | null;
8
+ usedEsauJrFrame: int | null;
9
9
  usedEsauJrControllerIndex: ControllerIndex | null;
10
10
  usedEsauJrAtLeastOnce: boolean;
11
11
  };
@@ -20,7 +20,7 @@ export declare class GridEntityUpdateDetection extends Feature {
20
20
  v: {
21
21
  room: {
22
22
  /** Indexed by grid index. */
23
- initializedGridEntities: Map<number, GridEntityTuple>;
23
+ initializedGridEntities: Map<int, GridEntityTuple>;
24
24
  };
25
25
  };
26
26
  private readonly postGridEntityInit;
@@ -7,7 +7,7 @@ export declare class PickupChangeDetection extends Feature {
7
7
  v: {
8
8
  room: {
9
9
  pickupVariants: Map<PickupIndex, PickupVariant>;
10
- pickupSubTypes: Map<PickupIndex, number>;
10
+ pickupSubTypes: Map<PickupIndex, int>;
11
11
  };
12
12
  };
13
13
  private readonly postPickupChanged;
@@ -10,8 +10,8 @@ import type { RunInNFrames } from "../other/RunInNFrames";
10
10
  export declare class PlayerCollectibleDetection extends Feature {
11
11
  v: {
12
12
  run: {
13
- playersCollectibleCount: DefaultMap<PlayerIndex, number, []>;
14
- playersCollectibleMap: DefaultMap<PlayerIndex, Map<CollectibleType, number>, []>;
13
+ playersCollectibleCount: DefaultMap<PlayerIndex, int, []>;
14
+ playersCollectibleMap: DefaultMap<PlayerIndex, Map<CollectibleType, int>, []>;
15
15
  playersActiveItemMap: DefaultMap<PlayerIndex, Map<ActiveSlot, CollectibleType>, []>;
16
16
  };
17
17
  };
@@ -8,8 +8,8 @@ export declare const v: {
8
8
  firstFloor: boolean;
9
9
  showingBossVersusScreen: boolean;
10
10
  /** Values are the render frame that the controller first pressed the map button. */
11
- controllerIndexPushingMapRenderFrame: Map<ControllerIndex, number>;
12
- topStreakTextStartedRenderFrame: number | null;
11
+ controllerIndexPushingMapRenderFrame: Map<ControllerIndex, int>;
12
+ topStreakTextStartedRenderFrame: int | null;
13
13
  topStreakText: {
14
14
  animation: UIStreakAnimation;
15
15
  frame: number;
@@ -103,7 +103,7 @@ export declare const MAX_PLAYER_HEART_CONTAINERS = 18;
103
103
  * constant specifies a value of 9.8 to be safe.
104
104
  */
105
105
  export declare const MAX_PLAYER_SPEED_IN_UNITS = 9.8;
106
- export declare const MAX_PLAYER_TRINKET_SLOTS: number;
106
+ export declare const MAX_PLAYER_TRINKET_SLOTS: int;
107
107
  /** If you set `EntityPlayer.ShotSpeed` lower than this value, it will have no effect. */
108
108
  export declare const MIN_PLAYER_SHOT_SPEED_STAT = 0.6;
109
109
  /** If you set `EntityPlayer.Speed` lower than this value, it will have no effect. */
@@ -150,7 +150,7 @@ export declare const TAINTED_SAMSON_BERSERK_CHARGE_FROM_TAKING_DAMAGE = 10000;
150
150
  /** For `GridEntityType.TELEPORTER` (23). */
151
151
  export declare const TELEPORTER_ACTIVATION_DISTANCE: number;
152
152
  /** In milliseconds, as reported by the `Isaac.GetTime` method. */
153
- export declare const TIME_GAME_OPENED: number;
153
+ export declare const TIME_GAME_OPENED: int;
154
154
  /**
155
155
  * This is the number of draw coordinates that each heart spans on the UI in the upper left hand
156
156
  * corner.
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/core/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EAGf,YAAY,EAEb,MAAM,8BAA8B,CAAC;AAWtC;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;EAI7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iCAAiC,SAAS,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,4CAA4C,CAAC;AAE7E,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,iGAAiG;AACjG,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAE5D,gGAAgG;AAChG,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,KAAK,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,cAAc,iBAAiB,CAAC;AAE7C;;;;;;GAMG;AAEH,eAAO,MAAM,+BAA+B,iBAAmC,CAAC;AAEhF,2EAA2E;AAC3E,eAAO,MAAM,sBAAsB,KAAK,CAAC;AA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E5E,+EAA+E;AAC/E,eAAO,MAAM,iCAAiC,SAAU,CAAC;AAEzD,eAAO,MAAM,cAAc,QAA+B,CAAC;AAE3D;;;GAGG;AAGH,eAAO,MAAM,iBAAiB,QAAyB,CAAC;AAExD,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,sBAAsB,QAA8B,CAAC;AAElE,mGAAmG;AACnG,eAAO,MAAM,sBAAsB,QAAmB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,QAAmB,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,6FAA6F;AAC7F,eAAO,MAAM,gDAAgD,QAAS,CAAC;AAEvE,4CAA4C;AAC5C,eAAO,MAAM,8BAA8B,QAA4B,CAAC;AAExE,kEAAkE;AAClE,eAAO,MAAM,gBAAgB,KAAkB,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC;;;;;GAKG;AACH,eAAO,MAAM,SAAS,kBAA0B,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,UAAU,kBAA0B,CAAC;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,iBAA4B,CAAC;AAEtD;;;;GAIG;AACH,eAAO,MAAM,aAAa,kBAAgC,CAAC"}
@@ -30,7 +30,7 @@ export declare const LAST_VANILLA_PILL_EFFECT: PillEffect;
30
30
  * Calculated from the `PillEffect` enum. (There is no `PillEffect.NULL` in the custom enum, so we
31
31
  * do not have to subtract one here.)
32
32
  */
33
- export declare const NUM_VANILLA_PILL_EFFECTS: number;
33
+ export declare const NUM_VANILLA_PILL_EFFECTS: int;
34
34
  /** Equal to `PillColor.BLUE_BLUE`. */
35
35
  export declare const FIRST_PILL_COLOR = PillColor.BLUE_BLUE;
36
36
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"constantsFirstLast.d.ts","sourceRo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eAAO,MAAM,qBAAqB,+BAA+B,CAAC;AAElE,eAAO,MAAM,sBAAsB,QAG3B,CAAC;AAMT,mCAAmC;AACnC,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAIhD,6CAA6C;AAC7C,eAAO,MAAM,sBAAsB,YAAkC,CAAC;AAMtE,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,cAAc,UAAgC,CAAC;AAM5D,eAAO,MAAM,WAAW,wBAAwB,CAAC;AACjD,eAAO,MAAM,UAAU,YAAkC,CAAC"}
@@ -29,6 +29,7 @@ import type { AllButFirst } from "../types/AllButFirst";
29
29
  * A decorator function that signifies that the decorated class method should be automatically
30
30
  * registered with `Mod.AddCallback`.
31
31
  *
32
+ * @allowEmptyVariadic
32
33
  * @ignore
33
34
  */
34
35
  export declare function Callback<T extends ModCallback>(modCallback: T, ...optionalArgs: AllButFirst<AddCallbackParameters[T]>): <Class extends ModFeature, Fn extends AddCallbackParameters[T][0]>(target: Class, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
@@ -36,6 +37,7 @@ export declare function Callback<T extends ModCallback>(modCallback: T, ...optio
36
37
  * A decorator function that signifies that the decorated class method should be automatically
37
38
  * registered with `ModUpgraded.AddCallbackCustom`.
38
39
  *
40
+ * @allowEmptyVariadic
39
41
  * @ignore
40
42
  */
41
43
  export declare function CallbackCustom<T extends ModCallbackCustom>(modCallbackCustom: T, ...optionalArgs: AllButFirst<AddCallbackParametersCustom[T]>): <Class extends ModFeature, Fn extends AddCallbackParametersCustom[T][0]>(target: Class, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
@@ -43,6 +45,7 @@ export declare function CallbackCustom<T extends ModCallbackCustom>(modCallbackC
43
45
  * A decorator function that signifies that the decorated class method should be automatically
44
46
  * registered with `Mod.AddPriorityCallback`.
45
47
  *
48
+ * @allowEmptyVariadic
46
49
  * @ignore
47
50
  */
48
51
  export declare function PriorityCallback<T extends ModCallback>(modCallback: T, priority: CallbackPriority | int, ...optionalArgs: AllButFirst<AddCallbackParameters[T]>): <Class extends ModFeature, Fn extends AddCallbackParameters[T][0]>(target: Class, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
@@ -50,6 +53,7 @@ export declare function PriorityCallback<T extends ModCallback>(modCallback: T,
50
53
  * A decorator function that signifies that the decorated class method should be automatically
51
54
  * registered with `ModUpgraded.AddCallbackCustom`.
52
55
  *
56
+ * @allowEmptyVariadic
53
57
  * @ignore
54
58
  */
55
59
  export declare function PriorityCallbackCustom<T extends ModCallbackCustom>(modCallbackCustom: T, priority: CallbackPriority | int, ...optionalArgs: AllButFirst<AddCallbackParametersCustom[T]>): <Class extends ModFeature, Fn extends AddCallbackParametersCustom[T][0]>(target: Class, propertyKey: string, _descriptor: TypedPropertyDescriptor<Fn>) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../src/functions/decorators.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8DAA8D,CAAC;AAChG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAKxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD;;;;;GAKG;AAGH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,EAC5C,WAAW,EAAE,CAAC,EACd,GAAG,YAAY,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,4JAOvD;AAED;;;;;GAKG;AAGH,wBAAgB,cAAc,CAAC,CAAC,SAAS,iBAAiB,EACxD,iBAAiB,EAAE,C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ACxD,iBAAiB,EAAE,CAAC,EACpB,GAAG,YAAY,EAAE,WAAW,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,kKAO7D;AAED;;;;;;GAMG;AAEH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,WAAW,EACpD,WAAW,EAAE,CAAC,EACd,QAAQ,EAAE,gBAAgB,GAAG,GAAG,EAChC,GAAG,YAAY,EAAE,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,kGAIvC,MAAM,+CAElB,IAAI,CA6BR;AAED;;;;;;GAMG;AAEH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,iBAAiB,EAChE,iBAAiB,EAAE,CAAC,EACpB,QAAQ,EAAE,gBAAgB,GAAG,GAAG,EAChC,GAAG,YAAY,EAAE,WAAW,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,wGAO7C,MAAM,+CAElB,IAAI,CA6BR"}
@@ -9,6 +9,7 @@ local getTSTLClassName = ____tstlClass.getTSTLClassName
9
9
  --- A decorator function that signifies that the decorated class method should be automatically
10
10
  -- registered with `Mod.AddPriorityCallback`.
11
11
  --
12
+ -- @allowEmptyVariadic
12
13
  -- @ignore
13
14
  function ____exports.PriorityCallback(self, modCallback, priority, ...)
14
15
  local optionalArgs = {...}
@@ -31,6 +32,7 @@ end
31
32
  --- A decorator function that signifies that the decorated class method should be automatically
32
33
  -- registered with `ModUpgraded.AddCallbackCustom`.
33
34
  --
35
+ -- @allowEmptyVariadic
34
36
  -- @ignore
35
37
  function ____exports.PriorityCallbackCustom(self, modCallbackCustom, priority, ...)
36
38
  local optionalArgs = {...}
@@ -53,6 +55,7 @@ end
53
55
  --- A decorator function that signifies that the decorated class method should be automatically
54
56
  -- registered with `Mod.AddCallback`.
55
57
  --
58
+ -- @allowEmptyVariadic
56
59
  -- @ignore
57
60
  function ____exports.Callback(self, modCallback, ...)
58
61
  return ____exports.PriorityCallback(nil, modCallback, CallbackPriority.DEFAULT, ...)
@@ -60,6 +63,7 @@ end
60
63
  --- A decorator function that signifies that the decorated class method should be automatically
61
64
  -- registered with `ModUpgraded.AddCallbackCustom`.
62
65
  --
66
+ -- @allowEmptyVariadic
63
67
  -- @ignore
64
68
  function ____exports.CallbackCustom(self, modCallbackCustom, ...)
65
69
  return ____exports.PriorityCallbackCustom(nil, modCallbackCustom, CallbackPriority.DEFAULT, ...)
@@ -11,7 +11,17 @@ export declare const SHOOTING_ACTIONS_SET: ReadonlySet<ButtonAction>;
11
11
  * Returns undefined if the submitted controller value was not valid.
12
12
  */
13
13
  export declare function controllerToString(controller: Controller): string | undefined;
14
+ /**
15
+ * Helper function to get the movement actions that the specified `ControllerIndex` is currently
16
+ * pressing down. This returns an array because a player can technically be holding down more than
17
+ * one movement key at a time.
18
+ */
14
19
  export declare function getMoveActions(controllerIndex: ControllerIndex): ButtonAction[];
20
+ /**
21
+ * Helper function to get the shooting actions that the specified `ControllerIndex` is currently
22
+ * pressing down. This returns an array because a player can technically be holding down more than
23
+ * one shooting key at a time.
24
+ */
15
25
  export declare function getShootActions(controllerIndex: ControllerIndex): ButtonAction[];
16
26
  /**
17
27
  * Helper function to check if a player is pressing a specific button (i.e. holding it down).
@@ -1 +1 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/functions/input.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,UAAU,EACV,eAAe,EACf,QAAQ,EACT,MAAM,8BAA8B,CAAC;AAMtC,eAAO,MAAM,aAAa,uLAShB,CAAC;AAEX,eAAO,MAAM,gBAAgB,sFAKnB,CAAC;AAEX,eAAO,MAAM,oBAAoB,2BAEhC,CAAC;AAEF,eAAO,MAAM,gBAAgB,8GAKnB,CAAC;AAEX,eAAO,MAAM,oBAAoB,2BAEhC,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAQ7E;AAED,wBAAgB,cAAc,CAC5B,eAAe,EAAE,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E,GAAG,OAAO,CAI9D;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAED,wBAAgB,YAAY,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAEhE;AAED,wBAAgB,mBAAmB,CAAC,eAAe,EAAE,eAAe,GAAG,OAAO,CAE7E;AAED,wBAAgB,6BAA6B,IAAI,OAAO,CAIvD;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAET;AAED,wBAAgB,+BAA+B,IAAI,OAAO,CAIzD;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAEjE;AAED,wBAAgB,oBAAoB,CAClC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAET;AAED,wBAAgB,8BAA8B,IAAI,OAAO,CAIxD;AAED,wBAAgB,sBAAsB,CACpC,eAAe,EAAE,eAAe,GAC/B,OAAO,CAET;AAED,wBAAgB,gCAAgC,IAAI,OAAO,CAI1D;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,OAAO,GACjB,MAAM,GAAG,SAAS,CAQpB"}
@@ -41,12 +41,18 @@ function ____exports.controllerToString(self, controller)
41
41
  end
42
42
  return trimPrefix(nil, key, "BUTTON_")
43
43
  end
44
+ --- Helper function to get the movement actions that the specified `ControllerIndex` is currently
45
+ -- pressing down. This returns an array because a player can technically be holding down more than
46
+ -- one movement key at a time.
44
47
  function ____exports.getMoveActions(self, controllerIndex)
45
48
  return __TS__ArrayFilter(
46
49
  ____exports.MOVEMENT_ACTIONS,
47
50
  function(____, buttonAction) return Input.IsActionPressed(buttonAction, controllerIndex) end
48
51
  )
49
52
  end
53
+ --- Helper function to get the shooting actions that the specified `ControllerIndex` is currently
54
+ -- pressing down. This returns an array because a player can technically be holding down more than
55
+ -- one shooting key at a time.
50
56
  function ____exports.getShootActions(self, controllerIndex)
51
57
  return __TS__ArrayFilter(
52
58
  ____exports.SHOOTING_ACTIONS,
@@ -73,6 +73,7 @@ export declare function asString(str: string): string;
73
73
  export declare function asTrinketType(num: number): TrinketType;
74
74
  export declare function isBoolean(variable: unknown): variable is boolean;
75
75
  export declare function isFunction(variable: unknown): variable is Function;
76
+ export declare function isInteger(variable: unknown): variable is int;
76
77
  export declare function isNumber(variable: unknown): variable is number;
77
78
  /** Helper function to detect if a variable is a boolean, number, or string. */
78
79
  export declare function isPrimitive(variable: unknown): variable is boolean | number | string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/functions/types.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EACf,UAAU,EACV,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,EACV,WAAW,EACZ,MAAM,8BAA8B,CAAC;AAEtC;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAEhD;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAE9D;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAEpD;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAEhD;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAElD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAEpD;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAEpD;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GA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able) == "number"
4
+ end
2
5
  --- Helper function to safely cast a `number` to a `CardType`. (This is better than using the `as`
3
6
  -- TypeScript keyword to do a type assertion, since that can obfuscate compiler errors. )
4
7
  --
@@ -75,8 +78,11 @@ end
75
78
  function ____exports.isFunction(self, variable)
76
79
  return type(variable) == "function"
77
80
  end
78
- function ____exports.isNumber(self, variable)
79
- return type(variable) == "number"
81
+ function ____exports.isInteger(self, variable)
82
+ if not ____exports.isNumber(nil, variable) then
83
+ return false
84
+ end
85
+ return variable == math.floor(variable)
80
86
  end
81
87
  --- Helper function to detect if a variable is a boolean, number, or string.
82
88
  function ____exports.isPrimitive(self, variable)
@@ -1,3 +1,3 @@
1
1
  import { GridEntityType } from "isaac-typescript-definitions";
2
- export declare const GRID_ENTITY_TYPE_TO_BROKEN_STATE_MAP: ReadonlyMap<GridEntityType, number>;
2
+ export declare const GRID_ENTITY_TYPE_TO_BROKEN_STATE_MAP: ReadonlyMap<GridEntityType, int>;
3
3
  //# sourceMappingURL=gridEntityTypeToBrokenStateMap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gridEntityTypeToBrokenStateMap.d.ts","sourceRoot":"","sources":["../../../src/maps/gridEntityTypeToBrokenStateMap.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAMf,MAAM,8BAA8B,CAAC;AAItC,eAAO,MAAM,oCAAoC,qCAuC/C,CAAC"}
1
+ {"version":3,"file":"gridEntityTypeToBrokenStateMap.d.ts","sourceRoot":"","sources":["../../../src/maps/gridEntityTypeToBrokenStateMap.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAMf,MAAM,8BAA8B,CAAC;AAItC,eAAO,MAAM,oCAAoC,kCAuC/C,CAAC"}
@@ -3,5 +3,5 @@ import { GridEntityType, GridEntityXMLType } from "isaac-typescript-definitions"
3
3
  * This maps the GridEntityXMLType (i.e. the type contained in the room XML/STB file) to the
4
4
  * GridEntityType and the variant used by the game.
5
5
  */
6
- export declare const GRID_ENTITY_XML_MAP: ReadonlyMap<GridEntityXMLType, [GridEntityType, number]>;
6
+ export declare const GRID_ENTITY_XML_MAP: ReadonlyMap<GridEntityXMLType, [GridEntityType, int]>;
7
7
  //# sourceMappingURL=gridEntityXMLMap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gridEntityXMLMap.d.ts","sourceRoot":"","sources":["../../../src/maps/gridEntityXMLMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,iBAAiB,EAOlB,MAAM,8BAA8B,CAAC;AAGtC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,0DAkK9B,CAAC"}
1
+ {"version":3,"file":"gridEntityXMLMap.d.ts","sourceRoot":"","sources":["../../../src/maps/gridEntityXMLMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,iBAAiB,EAOlB,MAAM,8BAA8B,CAAC;AAGtC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,uDAkK9B,CAAC"}
@@ -4,5 +4,5 @@ export declare const DEFAULT_TOP_LEFT_WALL_GRID_INDEX = 0;
4
4
  * Only used for special room shapes where the top left wall grid index is not equal to
5
5
  * `DEFAULT_TOP_LEFT_WALL_GRID_INDEX`.
6
6
  */
7
- export declare const ROOM_SHAPE_TO_TOP_LEFT_WALL_GRID_INDEX_MAP: ReadonlyMap<RoomShape, number>;
7
+ export declare const ROOM_SHAPE_TO_TOP_LEFT_WALL_GRID_INDEX_MAP: ReadonlyMap<RoomShape, int>;
8
8
  //# sourceMappingURL=roomShapeToTopLeftWallGridIndexMap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"roomShapeToTopLeftWallGridIndexMap.d.ts","sourceRoot":"","sources":["../../../src/maps/roomShapeToTopLeftWallGridIndexMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAGzD,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,0CAA0C,gCASrD,CAAC"}
1
+ {"version":3,"file":"roomShapeToTopLeftWallGridIndexMap.d.ts","sourceRoot":"","sources":["../../../src/maps/roomShapeToTopLeftWallGridIndexMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAGzD,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,0CAA0C,6BASrD,CAAC"}
@@ -1,5 +1,6 @@
1
- export declare const STAGE_TO_STAGE_TYPE_TO_BOSS_SET_MAP: ReadonlyMap<number, ReadonlyMap<number, ReadonlySet<string>>>;
2
- export declare const STAGE_TO_COMBINED_BOSS_SET_MAP: ReadonlyMap<number, ReadonlySet<string>>;
1
+ /// <reference types="isaac-typescript-definitions" />
2
+ export declare const STAGE_TO_STAGE_TYPE_TO_BOSS_SET_MAP: ReadonlyMap<int, ReadonlyMap<int, ReadonlySet<string>>>;
3
+ export declare const STAGE_TO_COMBINED_BOSS_SET_MAP: ReadonlyMap<int, ReadonlySet<string>>;
3
4
  export declare const ALL_BOSSES_SET: ReadonlySet<string>;
4
5
  export declare const ALL_BOSSES_EXCLUDING_STORY_BOSSES_SET: ReadonlySet<string>;
5
6
  //# sourceMappingURL=bossSets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bossSets.d.ts","sourceRoot":"","sources":["../../../src/sets/bossSets.ts"],"names":[],"mappings":"AAobA,eAAO,MAAM,mCAAmC,+DAe9C,CAAC;AAEH,eAAO,MAAM,8BAA8B,0CAezC,CAAC;AAEH,eAAO,MAAM,cAAc,qBAQzB,CAAC;AAEH,eAAO,MAAM,qCAAqC,qBACX,CAAC"}
1
+ {"version":3,"file":"bossSets.d.ts","sourceRoot":"","sources":["../../../src/sets/bossSets.ts"],"names":[],"mappings":";AAobA,eAAO,MAAM,mCAAmC,yDAe9C,CAAC;AAEH,eAAO,MAAM,8BAA8B,uCAezC,CAAC;AAEH,eAAO,MAAM,cAAc,qBAQzB,CAAC;A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ED,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,CAAC,GAAG,EAAE,aAAa,CAAC,EAC9B,YAAY,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,GAC5B,OAAO,CAOT;AAED,wBAAgB,cAAc,CAC5B,QAAQ,EACJ,CAAC,IAAI,EAAE,UAAU,CAAC,GAClB,CAAC,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,CAAC,GACxC,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EACtD,YAAY,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,GACvD,OAAO,CAST;AAED,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC,EAC1D,YAAY,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC,GACxC,OAAO,CAOT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "31.7.0",
3
+ "version": "31.7.2",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -25,6 +25,6 @@
25
25
  "main": "dist/src/index",
26
26
  "types": "dist/index.rollup.d.ts",
27
27
  "dependencies": {
28
- "isaac-typescript-definitions": "^13.0.27"
28
+ "isaac-typescript-definitions": "^13.0.32"
29
29
  }
30
30
  }
@@ -6,7 +6,7 @@ import {
6
6
  getTSTLClassConstructor,
7
7
  getTSTLClassName,
8
8
  } from "../functions/tstlClass";
9
- import { isFunction, isNumber, isTable } from "../functions/types";
9
+ import { isFunction, isInteger, isTable } from "../functions/types";
10
10
  import { assertDefined } from "../functions/utils";
11
11
  import type { TSTLClassMetatable } from "../interfaces/TSTLClassMetatable";
12
12
  import type { AnyFunction } from "../types/AnyFunction";
@@ -186,14 +186,14 @@ function initDecoratedCallbacks(
186
186
  }
187
187
 
188
188
  const modCallback = callbackTuple[0];
189
- if (!isNumber(modCallback)) {
189
+ if (!isInteger(modCallback)) {
190
190
  error(
191
191
  `Failed to get the callback number from the callback tuple for class: ${tstlClassName}`,
192
192
  );
193
193
  }
194
194
 
195
195
  const priority = callbackTuple[1];
196
- if (!isNumber(priority)) {
196
+ if (!isInteger(priority)) {
197
197
  error(
198
198
  `Failed to get the callback priority from the callback tuple for class: ${tstlClassName}`,
199
199
  );
@@ -36,6 +36,7 @@ import { getTSTLClassName } from "./tstlClass";
36
36
  * A decorator function that signifies that the decorated class method should be automatically
37
37
  * registered with `Mod.AddCallback`.
38
38
  *
39
+ * @allowEmptyVariadic
39
40
  * @ignore
40
41
  */
41
42
  // We tell TypeDoc to ignore this function because it generates a bunch of spam.
@@ -55,6 +56,7 @@ export function Callback<T extends ModCallback>(
55
56
  * A decorator function that signifies that the decorated class method should be automatically
56
57
  * registered with `ModUpgraded.AddCallbackCustom`.
57
58
  *
59
+ * @allowEmptyVariadic
58
60
  * @ignore
59
61
  */
60
62
  // We tell TypeDoc to ignore this function because it generates a bunch of spam.
@@ -74,6 +76,7 @@ export function CallbackCustom<T extends ModCallbackCustom>(
74
76
  * A decorator function that signifies that the decorated class method should be automatically
75
77
  * registered with `Mod.AddPriorityCallback`.
76
78
  *
79
+ * @allowEmptyVariadic
77
80
  * @ignore
78
81
  */
79
82
  // We tell TypeDoc to ignore this function because it generates a bunch of spam.
@@ -121,6 +124,7 @@ export function PriorityCallback<T extends ModCallback>(
121
124
  * A decorator function that signifies that the decorated class method should be automatically
122
125
  * registered with `ModUpgraded.AddCallbackCustom`.
123
126
  *
127
+ * @allowEmptyVariadic
124
128
  * @ignore
125
129
  */
126
130
  // We tell TypeDoc to ignore this function because it generates a bunch of spam.
@@ -35,7 +35,7 @@ export function addFlag<T extends BitFlag | BitFlag128>(
35
35
  flagsAsInt |= flagToAdd as int;
36
36
  }
37
37
 
38
- return flagsAsInt as BitFlags<T>;
38
+ return flagsAsInt as unknown as BitFlags<T>;
39
39
  }
40
40
 
41
41
  /**
@@ -161,5 +161,5 @@ export function removeFlag<T extends BitFlag | BitFlag128>(
161
161
  flagsAsInt &= ~flagToRemove;
162
162
  }
163
163
 
164
- return flagsAsInt as BitFlags<T>;
164
+ return flagsAsInt as unknown as BitFlags<T>;
165
165
  }
@@ -58,6 +58,11 @@ export function controllerToString(controller: Controller): string | undefined {
58
58
  return trimPrefix(key, "BUTTON_");
59
59
  }
60
60
 
61
+ /**
62
+ * Helper function to get the movement actions that the specified `ControllerIndex` is currently
63
+ * pressing down. This returns an array because a player can technically be holding down more than
64
+ * one movement key at a time.
65
+ */
61
66
  export function getMoveActions(
62
67
  controllerIndex: ControllerIndex,
63
68
  ): ButtonAction[] {
@@ -66,6 +71,11 @@ export function getMoveActions(
66
71
  );
67
72
  }
68
73
 
74
+ /**
75
+ * Helper function to get the shooting actions that the specified `ControllerIndex` is currently
76
+ * pressing down. This returns an array because a player can technically be holding down more than
77
+ * one shooting key at a time.
78
+ */
69
79
  export function getShootActions(
70
80
  controllerIndex: ControllerIndex,
71
81
  ): ButtonAction[] {
@@ -118,6 +118,14 @@ export function isFunction(variable: unknown): variable is Function {
118
118
  return type(variable) === "function";
119
119
  }
120
120
 
121
+ export function isInteger(variable: unknown): variable is int {
122
+ if (!isNumber(variable)) {
123
+ return false;
124
+ }
125
+
126
+ return variable === Math.floor(variable);
127
+ }
128
+
121
129
  export function isNumber(variable: unknown): variable is number {
122
130
  return type(variable) === "number";
123
131
  }
package/src/shouldFire.ts CHANGED
@@ -217,7 +217,6 @@ export function shouldFireItemPickup(
217
217
  return (
218
218
  (callbackItemType === undefined ||
219
219
  callbackItemType === pickingUpItem.itemType) &&
220
- // eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
221
220
  (callbackSubtype === undefined || callbackSubtype === pickingUpItem.subType)
222
221
  );
223
222
  }