isaacscript-common 15.6.0 → 15.6.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.
- package/dist/index.d.ts +17 -11
- package/dist/isaacscript-common.lua +100 -90
- package/dist/src/callbacks.d.ts +1 -1
- package/dist/src/callbacks.d.ts.map +1 -1
- package/dist/src/classes/DefaultMap.d.ts +1 -1
- package/dist/src/classes/DefaultMap.d.ts.map +1 -1
- package/dist/src/classes/ModUpgradedBase.lua +1 -1
- package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts +1 -1
- package/dist/src/classes/callbacks/PostCollectibleEmpty.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostCustomRevive.d.ts +1 -1
- package/dist/src/classes/callbacks/PostCustomRevive.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts +1 -1
- package/dist/src/classes/callbacks/PostDiceRoomActivated.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGridEntityCollision.d.ts +1 -1
- package/dist/src/classes/callbacks/PostGridEntityCollision.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGridEntityCustomCollision.d.ts +1 -1
- package/dist/src/classes/callbacks/PostGridEntityCustomCollision.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGridEntityCustomRemove.d.ts +1 -1
- package/dist/src/classes/callbacks/PostGridEntityCustomRemove.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostGridEntityRemove.d.ts +1 -1
- package/dist/src/classes/callbacks/PostGridEntityRemove.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostItemDischarge.d.ts +3 -3
- package/dist/src/classes/callbacks/PostItemDischarge.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostPurchase.d.ts +1 -1
- package/dist/src/classes/callbacks/PostPurchase.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts +1 -1
- package/dist/src/classes/callbacks/PostRoomClearChanged.d.ts.map +1 -1
- package/dist/src/classes/callbacks/PostTransformation.d.ts +1 -1
- package/dist/src/classes/callbacks/PostTransformation.d.ts.map +1 -1
- package/dist/src/classes/features/callbackLogic/CustomRevive.lua +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts +1 -1
- package/dist/src/classes/features/callbackLogic/GridEntityUpdateDetection.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomHotkeys.lua +2 -2
- package/dist/src/classes/features/other/CustomStages.lua +4 -4
- package/dist/src/classes/features/other/ForgottenSwitch.d.ts +2 -1
- package/dist/src/classes/features/other/ForgottenSwitch.d.ts.map +1 -1
- package/dist/src/classes/features/other/ForgottenSwitch.lua +2 -2
- package/dist/src/classes/features/other/PickupIndexCreation.d.ts +2 -2
- package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
- package/dist/src/classes/features/other/PickupIndexCreation.lua +33 -48
- package/dist/src/classes/features/other/PressInput.d.ts +1 -1
- package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
- package/dist/src/classes/features/other/PressInput.lua +28 -9
- package/dist/src/classes/features/other/RoomHistory.d.ts +2 -2
- package/dist/src/classes/features/other/extraConsoleCommands/commands.d.ts.map +1 -1
- package/dist/src/classes/features/other/extraConsoleCommands/commands.lua +1 -1
- package/dist/src/classes/private/CustomCallback.d.ts +2 -2
- package/dist/src/classes/private/CustomCallback.d.ts.map +1 -1
- package/dist/src/core/upgradeMod.d.ts +1 -1
- package/dist/src/core/upgradeMod.d.ts.map +1 -1
- package/dist/src/functions/bitSet128.d.ts +1 -1
- package/dist/src/functions/bitSet128.d.ts.map +1 -1
- package/dist/src/functions/color.d.ts +1 -1
- package/dist/src/functions/color.d.ts.map +1 -1
- package/dist/src/functions/flag.lua +5 -1
- package/dist/src/functions/gridIndex.lua +1 -1
- package/dist/src/functions/input.d.ts +1 -1
- package/dist/src/functions/input.d.ts.map +1 -1
- package/dist/src/functions/input.lua +0 -3
- package/dist/src/functions/kColor.d.ts +1 -1
- package/dist/src/functions/kColor.d.ts.map +1 -1
- package/dist/src/functions/logEntities.lua +9 -9
- package/dist/src/functions/logMisc.lua +1 -4
- package/dist/src/functions/pills.d.ts +3 -3
- package/dist/src/functions/pills.lua +3 -3
- package/dist/src/functions/rng.d.ts +1 -1
- package/dist/src/functions/rng.d.ts.map +1 -1
- package/dist/src/functions/roomShapeWalls.lua +2 -2
- package/dist/src/functions/run.lua +1 -1
- package/dist/src/functions/ui.d.ts +1 -1
- package/dist/src/functions/ui.lua +1 -1
- package/dist/src/functions/vector.d.ts +7 -1
- package/dist/src/functions/vector.d.ts.map +1 -1
- package/dist/src/functions/vector.lua +4 -0
- package/dist/src/interfaces/CustomStageTSConfig.d.ts +1 -1
- package/dist/src/interfaces/CustomStageTSConfig.d.ts.map +1 -1
- package/dist/src/interfaces/PlayerHealth.d.ts +1 -1
- package/dist/src/interfaces/PlayerHealth.d.ts.map +1 -1
- package/dist/src/interfaces/SaveData.d.ts +12 -12
- package/dist/src/interfaces/SaveData.d.ts.map +1 -1
- package/dist/src/interfaces/private/CustomStage.d.ts +3 -3
- package/dist/src/interfaces/private/CustomStage.d.ts.map +1 -1
- package/dist/src/objects/isaacAPIClassTypeToFunctions.d.ts +2 -2
- package/dist/src/objects/isaacAPIClassTypeToFunctions.d.ts.map +1 -1
- package/dist/src/types/AllButFirst.d.ts +1 -1
- package/dist/src/types/AllButFirst.d.ts.map +1 -1
- package/dist/src/types/AllButLast.d.ts +1 -1
- package/dist/src/types/AllButLast.d.ts.map +1 -1
- package/dist/src/types/AnyClass.d.ts +1 -1
- package/dist/src/types/AnyClass.d.ts.map +1 -1
- package/dist/src/types/AnyEntity.d.ts +1 -1
- package/dist/src/types/AnyEntity.d.ts.map +1 -1
- package/dist/src/types/AnyFunction.d.ts +1 -1
- package/dist/src/types/AnyFunction.d.ts.map +1 -1
- package/dist/src/types/AnyGridEntity.d.ts +1 -1
- package/dist/src/types/AnyGridEntity.d.ts.map +1 -1
- package/dist/src/types/CollectibleIndex.d.ts +1 -1
- package/dist/src/types/CollectibleIndex.d.ts.map +1 -1
- package/dist/src/types/ConversionHeartSubType.d.ts +1 -1
- package/dist/src/types/ConversionHeartSubType.d.ts.map +1 -1
- package/dist/src/types/EntityID.d.ts +1 -1
- package/dist/src/types/EntityID.d.ts.map +1 -1
- package/dist/src/types/FunctionTuple.d.ts +1 -1
- package/dist/src/types/FunctionTuple.d.ts.map +1 -1
- package/dist/src/types/GridEntityID.d.ts +1 -1
- package/dist/src/types/GridEntityID.d.ts.map +1 -1
- package/dist/src/types/HasAllEnumKeys.d.ts +1 -1
- package/dist/src/types/HasAllEnumKeys.d.ts.map +1 -1
- package/dist/src/types/HasFunction.d.ts +1 -1
- package/dist/src/types/HasFunction.d.ts.map +1 -1
- package/dist/src/types/Immutable.d.ts +6 -6
- package/dist/src/types/Immutable.d.ts.map +1 -1
- package/dist/src/types/LowercaseKeys.d.ts +1 -1
- package/dist/src/types/LowercaseKeys.d.ts.map +1 -1
- package/dist/src/types/ModUpgraded.d.ts +3 -3
- package/dist/src/types/ModUpgraded.d.ts.map +1 -1
- package/dist/src/types/PickingUpItem.d.ts +1 -1
- package/dist/src/types/PickingUpItem.d.ts.map +1 -1
- package/dist/src/types/PickupIndex.d.ts +1 -1
- package/dist/src/types/PickupIndex.d.ts.map +1 -1
- package/dist/src/types/PlayerIndex.d.ts +1 -1
- package/dist/src/types/PlayerIndex.d.ts.map +1 -1
- package/dist/src/types/PossibleStatType.d.ts +1 -1
- package/dist/src/types/PossibleStatType.d.ts.map +1 -1
- package/dist/src/types/PublicInterface.d.ts +1 -1
- package/dist/src/types/PublicInterface.d.ts.map +1 -1
- package/dist/src/types/StartsWithLowercase.d.ts +1 -1
- package/dist/src/types/StartsWithLowercase.d.ts.map +1 -1
- package/dist/src/types/StartsWithUppercase.d.ts +1 -1
- package/dist/src/types/StartsWithUppercase.d.ts.map +1 -1
- package/dist/src/types/TSTLClass.d.ts +1 -1
- package/dist/src/types/TSTLClass.d.ts.map +1 -1
- package/dist/src/types/TupleToIntersection.d.ts +1 -1
- package/dist/src/types/TupleToIntersection.d.ts.map +1 -1
- package/dist/src/types/TupleToUnion.d.ts +1 -1
- package/dist/src/types/TupleToUnion.d.ts.map +1 -1
- package/dist/src/types/UnionToIntersection.d.ts +1 -1
- package/dist/src/types/UnionToIntersection.d.ts.map +1 -1
- package/dist/src/types/UppercaseKeys.d.ts +1 -1
- package/dist/src/types/UppercaseKeys.d.ts.map +1 -1
- package/dist/src/types/WeightedArray.d.ts +1 -1
- package/dist/src/types/WeightedArray.d.ts.map +1 -1
- package/dist/src/types/Writable.d.ts +1 -1
- package/dist/src/types/Writable.d.ts.map +1 -1
- package/dist/src/types/private/AllButFirst.d.ts +1 -1
- package/dist/src/types/private/AllButFirst.d.ts.map +1 -1
- package/dist/src/types/private/CallbackTuple.d.ts +2 -2
- package/dist/src/types/private/CallbackTuple.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/classes/features/other/ForgottenSwitch.ts +2 -2
- package/src/classes/features/other/PickupIndexCreation.ts +43 -53
- package/src/classes/features/other/PressInput.ts +29 -7
- package/src/classes/features/other/RoomHistory.ts +2 -2
- package/src/classes/features/other/extraConsoleCommands/commands.ts +2 -0
- package/src/functions/flag.ts +1 -1
- package/src/functions/input.ts +1 -5
- package/src/functions/pills.ts +3 -3
- package/src/functions/ui.ts +1 -1
- package/src/functions/vector.ts +6 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostGridEntityCollision.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityCollision.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC,
|
|
1
|
+
{"version":3,"file":"PostGridEntityCollision.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityCollision.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,0BAA0B,CAAC;AAEtD,qBAAa,uBAAwB,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAQ5D,UAAmB,UAAU,0VAG1B,OAAO,CAyBR;CACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
2
2
|
import { CustomCallback } from "../private/CustomCallback";
|
|
3
|
-
|
|
3
|
+
type T = ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_COLLISION;
|
|
4
4
|
export declare class PostGridEntityCustomCollision extends CustomCallback<T> {
|
|
5
5
|
constructor();
|
|
6
6
|
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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostGridEntityCustomCollision.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityCustomCollision.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC,
|
|
1
|
+
{"version":3,"file":"PostGridEntityCustomCollision.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityCustomCollision.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,iCAAiC,CAAC;AAE7D,qBAAa,6BAA8B,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAQlE,UAAmB,UAAU,qYAG1B,OAAO,CAmBR;CACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
2
2
|
import { CustomCallback, OptionalArgs } from "../private/CustomCallback";
|
|
3
|
-
|
|
3
|
+
type T = ModCallbackCustom.POST_GRID_ENTITY_CUSTOM_REMOVE;
|
|
4
4
|
export declare class PostGridEntityCustomRemove extends CustomCallback<T> {
|
|
5
5
|
constructor();
|
|
6
6
|
protected shouldFire: (fireArgs: [gridIndex: number, gridEntityTypeCustom: import("isaac-typescript-definitions").GridEntityType], optionalArgs: OptionalArgs<T>) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostGridEntityCustomRemove.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityCustomRemove.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EAEd,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,
|
|
1
|
+
{"version":3,"file":"PostGridEntityCustomRemove.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityCustomRemove.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EAEd,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,8BAA8B,CAAC;AAE1D,qBAAa,0BAA2B,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAQ/D,UAAmB,UAAU,6HAEb,aAAa,CAAC,CAAC,KAC5B,OAAO,CAQR;CACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
2
2
|
import { CustomCallback } from "../private/CustomCallback";
|
|
3
|
-
|
|
3
|
+
type T = ModCallbackCustom.POST_GRID_ENTITY_REMOVE;
|
|
4
4
|
export declare class PostGridEntityRemove extends CustomCallback<T> {
|
|
5
5
|
constructor();
|
|
6
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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostGridEntityRemove.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityRemove.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC,
|
|
1
|
+
{"version":3,"file":"PostGridEntityRemove.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostGridEntityRemove.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,uBAAuB,CAAC;AAEnD,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,CAAC,CAAC;;IAQzD,UAAmB,UAAU,+PAG1B,OAAO,CASR;CACH"}
|
|
@@ -3,9 +3,9 @@ import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
|
3
3
|
import { PlayerIndex } from "../../types/PlayerIndex";
|
|
4
4
|
import { DefaultMap } from "../DefaultMap";
|
|
5
5
|
import { CustomCallback, OptionalArgs } from "../private/CustomCallback";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
type T = ModCallbackCustom.POST_ITEM_DISCHARGE;
|
|
7
|
+
type ActiveSlotToCollectibleTypeMap = Map<ActiveSlot, CollectibleType>;
|
|
8
|
+
type ActiveSlotToChargeMap = Map<ActiveSlot, int>;
|
|
9
9
|
export declare class PostItemDischarge extends CustomCallback<T> {
|
|
10
10
|
v: {
|
|
11
11
|
run: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostItemDischarge.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostItemDischarge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,eAAe,EAIhB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AASlE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,cAAc,EAEd,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,
|
|
1
|
+
{"version":3,"file":"PostItemDischarge.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostItemDischarge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,eAAe,EAIhB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AASlE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,cAAc,EAEd,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,mBAAmB,CAAC;AAI/C,KAAK,8BAA8B,GAAG,GAAG,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;AACvE,KAAK,qBAAqB,GAAG,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;AAElD,qBAAa,iBAAkB,SAAQ,cAAc,CAAC,CAAC,CAAC;IACtC,CAAC;;;;;;;;MAef;;IAqBF,UAAmB,UAAU,6GAEb,aAAa,CAAC,CAAC,KAC5B,OAAO,CAQR;IAIF,OAAO,CAAC,qBAAqB,CAS3B;IAIF,OAAO,CAAC,mBAAmB;IAQ3B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,2BAA2B;IAenC,OAAO,CAAC,0BAA0B,CAwChC;IAEF;;;OAGG;IACH,OAAO,CAAC,8BAA8B;CAUvC"}
|
|
@@ -2,7 +2,7 @@ import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
|
2
2
|
import { PlayerIndex } from "../../types/PlayerIndex";
|
|
3
3
|
import { DefaultMap } from "../DefaultMap";
|
|
4
4
|
import { CustomCallback } from "../private/CustomCallback";
|
|
5
|
-
|
|
5
|
+
type T = ModCallbackCustom.POST_PURCHASE;
|
|
6
6
|
export declare class PostPurchase extends CustomCallback<T> {
|
|
7
7
|
v: {
|
|
8
8
|
room: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostPurchase.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostPurchase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMlE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC,
|
|
1
|
+
{"version":3,"file":"PostPurchase.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostPurchase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAMlE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,cAAc,EAGf,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,aAAa,CAAC;AAEzC,qBAAa,YAAa,SAAQ,cAAc,CAAC,CAAC,CAAC;IACjC,CAAC;;;;MAMf;;IAcF,UAAmB,UAAU,8LAG1B,OAAO,CAUR;IAGF,OAAO,CAAC,0BAA0B,CAehC;IAEF,OAAO,CAAC,qBAAqB;CAS9B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
2
2
|
import { CustomCallback, FireArgs, OptionalArgs } from "../private/CustomCallback";
|
|
3
|
-
|
|
3
|
+
type T = ModCallbackCustom.POST_ROOM_CLEAR_CHANGED;
|
|
4
4
|
export declare class PostRoomClearChanged extends CustomCallback<T> {
|
|
5
5
|
v: {
|
|
6
6
|
room: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostRoomClearChanged.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostRoomClearChanged.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EACd,QAAQ,EACR,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,
|
|
1
|
+
{"version":3,"file":"PostRoomClearChanged.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostRoomClearChanged.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,cAAc,EACd,QAAQ,EACR,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,uBAAuB,CAAC;AAEnD,qBAAa,oBAAqB,SAAQ,cAAc,CAAC,CAAC,CAAC;IACzC,CAAC;;;;MAIf;;IAeF,UAAmB,UAAU,aACjB,SAAS,CAAC,CAAC,gBACP,aAAa,CAAC,CAAC,KAC5B,OAAO,CAKR;IAGF,OAAO,CAAC,UAAU,CAQhB;IAGF,OAAO,CAAC,oBAAoB,CAK1B;CACH"}
|
|
@@ -3,7 +3,7 @@ import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
|
3
3
|
import { PlayerIndex } from "../../types/PlayerIndex";
|
|
4
4
|
import { DefaultMap } from "../DefaultMap";
|
|
5
5
|
import { CustomCallback, OptionalArgs } from "../private/CustomCallback";
|
|
6
|
-
|
|
6
|
+
type T = ModCallbackCustom.POST_TRANSFORMATION;
|
|
7
7
|
export declare class PostTransformation extends CustomCallback<T> {
|
|
8
8
|
v: {
|
|
9
9
|
run: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostTransformation.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostTransformation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGlE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,cAAc,EAEd,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,
|
|
1
|
+
{"version":3,"file":"PostTransformation.d.ts","sourceRoot":"","sources":["../../../../src/classes/callbacks/PostTransformation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAGlE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EACL,cAAc,EAEd,YAAY,EACb,MAAM,2BAA2B,CAAC;AAEnC,KAAK,CAAC,GAAG,iBAAiB,CAAC,mBAAmB,CAAC;AAE/C,qBAAa,kBAAmB,SAAQ,cAAc,CAAC,CAAC,CAAC;IACvC,CAAC;;;;MAQf;;IAcF,UAAmB,UAAU,6FAEb,aAAa,CAAC,CAAC,KAC5B,OAAO,CAOR;IAGF,OAAO,CAAC,0BAA0B,CAkBhC;CACH"}
|
|
@@ -132,7 +132,7 @@ function CustomRevive.prototype.logStateChanged(self)
|
|
|
132
132
|
if DEBUG then
|
|
133
133
|
log(
|
|
134
134
|
nil,
|
|
135
|
-
((("Custom revive state changed: " ..
|
|
135
|
+
((("Custom revive state changed: " .. CustomReviveState[self.v.run.state]) .. " (") .. tostring(self.v.run.state)) .. ")"
|
|
136
136
|
)
|
|
137
137
|
end
|
|
138
138
|
end
|
|
@@ -11,7 +11,7 @@ import { PostGridEntityStateChanged } from "../../callbacks/PostGridEntityStateC
|
|
|
11
11
|
import { PostGridEntityUpdate } from "../../callbacks/PostGridEntityUpdate";
|
|
12
12
|
import { Feature } from "../../private/Feature";
|
|
13
13
|
import { CustomGridEntities } from "./CustomGridEntities";
|
|
14
|
-
|
|
14
|
+
type GridEntityTuple = [
|
|
15
15
|
gridEntityType: GridEntityType,
|
|
16
16
|
variant: int,
|
|
17
17
|
state: int
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridEntityUpdateDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/GridEntityUpdateDetection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAe,MAAM,8BAA8B,CAAC;AAM3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,
|
|
1
|
+
{"version":3,"file":"GridEntityUpdateDetection.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/callbackLogic/GridEntityUpdateDetection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAe,MAAM,8BAA8B,CAAC;AAM3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,gCAAgC,EAAE,MAAM,kDAAkD,CAAC;AACpG,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,KAAK,eAAe,GAAG;IACrB,cAAc,EAAE,cAAc;IAC9B,OAAO,EAAE,GAAG;IACZ,KAAK,EAAE,GAAG;CACX,CAAC;AAEF,qBAAa,yBAA0B,SAAQ,OAAO;IACpC,CAAC;;YAEb,6BAA6B;;;MAG/B;IAEF,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,wBAAwB,CAA2B;IAC3D,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,gCAAgC,CAAmC;IAC3E,OAAO,CAAC,oBAAoB,CAAuB;IACnD,OAAO,CAAC,0BAA0B,CAA6B;IAC/D,OAAO,CAAC,kBAAkB,CAAqB;gBAG7C,kBAAkB,EAAE,kBAAkB,EACtC,wBAAwB,EAAE,wBAAwB,EAClD,oBAAoB,EAAE,oBAAoB,EAC1C,0BAA0B,EAAE,0BAA0B,EACtD,oBAAoB,EAAE,oBAAoB,EAC1C,0BAA0B,EAAE,0BAA0B,EACtD,0BAA0B,EAAE,0BAA0B,EACtD,gCAAgC,EAAE,gCAAgC,EAClE,oBAAoB,EAAE,oBAAoB,EAC1C,0BAA0B,EAAE,0BAA0B,EACtD,kBAAkB,EAAE,kBAAkB;IAyBxC,OAAO,CAAC,UAAU,CAmBhB;IAEF,OAAO,CAAC,wBAAwB;IA8BhC,OAAO,CAAC,2BAA2B;IA0CnC,OAAO,CAAC,kBAAkB;IAoB1B,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,WAAW,CAMjB;CACH"}
|
|
@@ -59,7 +59,7 @@ function CustomHotkeys.prototype.setConditionalHotkey(self, getKeyFunc, triggerF
|
|
|
59
59
|
end
|
|
60
60
|
function CustomHotkeys.prototype.setHotkey(self, keyboard, triggerFunc)
|
|
61
61
|
if self.staticHotkeyFunctionMap:has(keyboard) then
|
|
62
|
-
error(((("Failed to register a hotkey due to a hotkey already being defined for: Keyboard." ..
|
|
62
|
+
error(((("Failed to register a hotkey due to a hotkey already being defined for: Keyboard." .. Keyboard[keyboard]) .. " (") .. tostring(keyboard)) .. ")")
|
|
63
63
|
end
|
|
64
64
|
self.staticHotkeyFunctionMap:set(keyboard, triggerFunc)
|
|
65
65
|
end
|
|
@@ -71,7 +71,7 @@ function CustomHotkeys.prototype.unsetConditionalHotkey(self, getKeyFunc)
|
|
|
71
71
|
end
|
|
72
72
|
function CustomHotkeys.prototype.unsetHotkey(self, keyboard)
|
|
73
73
|
if not self.staticHotkeyFunctionMap:has(keyboard) then
|
|
74
|
-
error(((("Failed to unregister a hotkey since there is no existing hotkey defined for: Keyboard." ..
|
|
74
|
+
error(((("Failed to unregister a hotkey since there is no existing hotkey defined for: Keyboard." .. Keyboard[keyboard]) .. " (") .. tostring(keyboard)) .. ")")
|
|
75
75
|
end
|
|
76
76
|
self.staticHotkeyFunctionMap:delete(keyboard)
|
|
77
77
|
end
|
|
@@ -246,7 +246,7 @@ function CustomStages.prototype.setStageRoomsData(self, customStage, rng, verbos
|
|
|
246
246
|
if roomType == RoomType.DEFAULT then
|
|
247
247
|
logError(
|
|
248
248
|
nil,
|
|
249
|
-
(((("Failed to find any custom rooms for RoomType." ..
|
|
249
|
+
(((("Failed to find any custom rooms for RoomType." .. RoomType[roomType]) .. " (") .. tostring(roomType)) .. ") for custom stage: ") .. customStage.name
|
|
250
250
|
)
|
|
251
251
|
end
|
|
252
252
|
goto __continue26
|
|
@@ -256,7 +256,7 @@ function CustomStages.prototype.setStageRoomsData(self, customStage, rng, verbos
|
|
|
256
256
|
if roomDoorSlotFlagMap == nil then
|
|
257
257
|
logError(
|
|
258
258
|
nil,
|
|
259
|
-
(((((((("Failed to find any custom rooms for RoomType." ..
|
|
259
|
+
(((((((("Failed to find any custom rooms for RoomType." .. RoomType[roomType]) .. " (") .. tostring(roomType)) .. ") + RoomShape.") .. RoomShape[roomShape]) .. " (") .. tostring(roomShape)) .. ") for custom stage: ") .. customStage.name
|
|
260
260
|
)
|
|
261
261
|
goto __continue26
|
|
262
262
|
end
|
|
@@ -265,13 +265,13 @@ function CustomStages.prototype.setStageRoomsData(self, customStage, rng, verbos
|
|
|
265
265
|
if roomsMetadata == nil then
|
|
266
266
|
logError(
|
|
267
267
|
nil,
|
|
268
|
-
(((((((((("Failed to find any custom rooms for RoomType." ..
|
|
268
|
+
(((((((((("Failed to find any custom rooms for RoomType." .. RoomType[roomType]) .. " (") .. tostring(roomType)) .. ") + RoomShape.") .. RoomShape[roomShape]) .. " (") .. tostring(roomShape)) .. ") + DoorSlotFlags ") .. tostring(doorSlotFlags)) .. " for custom stage: ") .. customStage.name
|
|
269
269
|
)
|
|
270
270
|
local header = ("For reference, a DoorSlotFlags of " .. tostring(doorSlotFlags)) .. " is equal to the following doors being enabled:\n"
|
|
271
271
|
local doorSlots = doorSlotFlagsToDoorSlots(nil, doorSlotFlags)
|
|
272
272
|
local doorSlotLines = __TS__ArrayMap(
|
|
273
273
|
doorSlots,
|
|
274
|
-
function(____, doorSlot) return ((("- DoorSlot." ..
|
|
274
|
+
function(____, doorSlot) return ((("- DoorSlot." .. DoorSlot[doorSlot]) .. " (") .. tostring(doorSlot)) .. ")" end
|
|
275
275
|
)
|
|
276
276
|
local explanation = header .. table.concat(doorSlotLines, "\n")
|
|
277
277
|
logError(nil, explanation)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="isaac-typescript-definitions" />
|
|
1
2
|
import { Feature } from "../../private/Feature";
|
|
2
3
|
export declare class ForgottenSwitch extends Feature {
|
|
3
4
|
private pressInput;
|
|
@@ -7,6 +8,6 @@ export declare class ForgottenSwitch extends Feature {
|
|
|
7
8
|
*
|
|
8
9
|
* In order to use this function, you must upgrade your mod with `ISCFeature.FORGOTTEN_SWITCH`.
|
|
9
10
|
*/
|
|
10
|
-
forgottenSwitch(): void;
|
|
11
|
+
forgottenSwitch(player: EntityPlayer): void;
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=ForgottenSwitch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForgottenSwitch.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/ForgottenSwitch.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhD,qBAAa,eAAgB,SAAQ,OAAO;IAQ1C,OAAO,CAAC,UAAU,CAAa;IAW/B;;;;;OAKG;IAEI,eAAe,
|
|
1
|
+
{"version":3,"file":"ForgottenSwitch.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/ForgottenSwitch.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGhD,qBAAa,eAAgB,SAAQ,OAAO;IAQ1C,OAAO,CAAC,UAAU,CAAa;IAW/B;;;;;OAKG;IAEI,eAAe,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI;CAGnD"}
|
|
@@ -21,8 +21,8 @@ function ForgottenSwitch.prototype.____constructor(self, pressInput)
|
|
|
21
21
|
self.featuresUsed = {ISCFeature.PRESS_INPUT}
|
|
22
22
|
self.pressInput = pressInput
|
|
23
23
|
end
|
|
24
|
-
function ForgottenSwitch.prototype.forgottenSwitch(self)
|
|
25
|
-
self.pressInput:pressInput(ButtonAction.DROP)
|
|
24
|
+
function ForgottenSwitch.prototype.forgottenSwitch(self, player)
|
|
25
|
+
self.pressInput:pressInput(player, ButtonAction.DROP)
|
|
26
26
|
end
|
|
27
27
|
__TS__Decorate({Exported}, ForgottenSwitch.prototype, "forgottenSwitch", true)
|
|
28
28
|
return ____exports
|
|
@@ -4,7 +4,8 @@ import { Feature } from "../../private/Feature";
|
|
|
4
4
|
export declare class PickupIndexCreation extends Feature {
|
|
5
5
|
private roomHistory;
|
|
6
6
|
private postPickupInit;
|
|
7
|
-
private
|
|
7
|
+
private setPickupIndex;
|
|
8
|
+
private getPickupIndexFromPreviousData;
|
|
8
9
|
private postEntityRemovePickup;
|
|
9
10
|
private checkDespawningFromPlayerLeavingRoom;
|
|
10
11
|
/**
|
|
@@ -12,7 +13,6 @@ export declare class PickupIndexCreation extends Feature {
|
|
|
12
13
|
* Keep track of the metadata for later.
|
|
13
14
|
*/
|
|
14
15
|
private trackDespawningPickupMetadata;
|
|
15
|
-
private postNewRoomReordered;
|
|
16
16
|
private getPostAscentPickupIndex;
|
|
17
17
|
/**
|
|
18
18
|
* Mods often have to track variables relating to a pickups. Finding an index for these kinds of
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PickupIndexCreation.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PickupIndexCreation.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"PickupIndexCreation.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PickupIndexCreation.ts"],"names":[],"mappings":";AAYA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAQhD,qBAAa,mBAAoB,SAAQ,OAAO;IAsB9C,OAAO,CAAC,WAAW,CAAc;IAoBjC,OAAO,CAAC,cAAc,CAEpB;IAEF,OAAO,CAAC,cAAc;IAgCtB,OAAO,CAAC,8BAA8B;IAiBtC,OAAO,CAAC,sBAAsB,CAE5B;IAEF,OAAO,CAAC,oCAAoC;IAc5C;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAiDrC,OAAO,CAAC,wBAAwB;IA2BhC;;;;;;;;;;;;;;;OAeG;IAEI,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW;CAgBzD"}
|
|
@@ -17,12 +17,8 @@ local ____decorators = require("src.decorators")
|
|
|
17
17
|
local Exported = ____decorators.Exported
|
|
18
18
|
local ____ISCFeature = require("src.enums.ISCFeature")
|
|
19
19
|
local ISCFeature = ____ISCFeature.ISCFeature
|
|
20
|
-
local ____ModCallbackCustom = require("src.enums.ModCallbackCustom")
|
|
21
|
-
local ModCallbackCustom = ____ModCallbackCustom.ModCallbackCustom
|
|
22
20
|
local ____entities = require("src.functions.entities")
|
|
23
21
|
local getEntityID = ____entities.getEntityID
|
|
24
|
-
local ____entitiesSpecific = require("src.functions.entitiesSpecific")
|
|
25
|
-
local getPickups = ____entitiesSpecific.getPickups
|
|
26
22
|
local ____roomData = require("src.functions.roomData")
|
|
27
23
|
local getRoomListIndex = ____roomData.getRoomListIndex
|
|
28
24
|
local ____stage = require("src.functions.stage")
|
|
@@ -62,53 +58,41 @@ function PickupIndexCreation.prototype.____constructor(self, roomHistory)
|
|
|
62
58
|
room = {pickupIndexes = __TS__New(Map)}
|
|
63
59
|
}
|
|
64
60
|
self.postPickupInit = function(____, pickup)
|
|
65
|
-
self:
|
|
61
|
+
self:setPickupIndex(pickup)
|
|
66
62
|
end
|
|
67
63
|
self.postEntityRemovePickup = function(____, entity)
|
|
68
64
|
self:checkDespawningFromPlayerLeavingRoom(entity)
|
|
69
65
|
end
|
|
70
|
-
self.postNewRoomReordered = function()
|
|
71
|
-
local room = game:GetRoom()
|
|
72
|
-
local isFirstVisit = room:IsFirstVisit()
|
|
73
|
-
if isFirstVisit then
|
|
74
|
-
return
|
|
75
|
-
end
|
|
76
|
-
local roomListIndex = getRoomListIndex(nil)
|
|
77
|
-
local pickupDescriptions = self.v.level.pickupData:getAndSetDefault(roomListIndex)
|
|
78
|
-
for ____, pickup in ipairs(getPickups(nil)) do
|
|
79
|
-
local pickupIndex = getStoredPickupIndex(nil, pickup, pickupDescriptions)
|
|
80
|
-
if pickupIndex == nil then
|
|
81
|
-
pickupIndex = self:getPostAscentPickupIndex(pickup)
|
|
82
|
-
end
|
|
83
|
-
if pickupIndex == nil then
|
|
84
|
-
local ____self_v_run_0, ____pickupCounter_1 = self.v.run, "pickupCounter"
|
|
85
|
-
____self_v_run_0[____pickupCounter_1] = ____self_v_run_0[____pickupCounter_1] + 1
|
|
86
|
-
pickupIndex = self.v.run.pickupCounter
|
|
87
|
-
end
|
|
88
|
-
local ptrHash = GetPtrHash(pickup)
|
|
89
|
-
self.v.room.pickupIndexes:set(ptrHash, pickupIndex)
|
|
90
|
-
end
|
|
91
|
-
end
|
|
92
66
|
self.featuresUsed = {ISCFeature.ROOM_HISTORY}
|
|
93
67
|
self.callbacksUsed = {{ModCallback.POST_PICKUP_INIT, {self.postPickupInit}}, {ModCallback.POST_ENTITY_REMOVE, {self.postEntityRemovePickup, EntityType.PICKUP}}}
|
|
94
|
-
self.customCallbacksUsed = {{ModCallbackCustom.POST_NEW_ROOM_REORDERED, {self.postNewRoomReordered}}}
|
|
95
68
|
self.roomHistory = roomHistory
|
|
96
69
|
end
|
|
97
|
-
function PickupIndexCreation.prototype.
|
|
70
|
+
function PickupIndexCreation.prototype.setPickupIndex(self, pickup)
|
|
98
71
|
local ptrHash = GetPtrHash(pickup)
|
|
99
72
|
if self.v.room.pickupIndexes:has(ptrHash) then
|
|
100
73
|
return
|
|
101
74
|
end
|
|
75
|
+
local pickupIndexFromLevelData = self:getPickupIndexFromPreviousData(pickup)
|
|
102
76
|
local room = game:GetRoom()
|
|
103
77
|
local isFirstVisit = room:IsFirstVisit()
|
|
104
78
|
local roomFrameCount = room:GetFrameCount()
|
|
105
|
-
if not isFirstVisit and roomFrameCount <= 0 then
|
|
79
|
+
if pickupIndexFromLevelData ~= nil and not isFirstVisit and roomFrameCount <= 0 then
|
|
80
|
+
self.v.room.pickupIndexes:set(ptrHash, pickupIndexFromLevelData)
|
|
106
81
|
return
|
|
107
82
|
end
|
|
108
|
-
local
|
|
109
|
-
|
|
83
|
+
local ____self_v_run_0, ____pickupCounter_1 = self.v.run, "pickupCounter"
|
|
84
|
+
____self_v_run_0[____pickupCounter_1] = ____self_v_run_0[____pickupCounter_1] + 1
|
|
110
85
|
self.v.room.pickupIndexes:set(ptrHash, self.v.run.pickupCounter)
|
|
111
86
|
end
|
|
87
|
+
function PickupIndexCreation.prototype.getPickupIndexFromPreviousData(self, pickup)
|
|
88
|
+
local roomListIndex = getRoomListIndex(nil)
|
|
89
|
+
local pickupDescriptions = self.v.level.pickupData:getAndSetDefault(roomListIndex)
|
|
90
|
+
local pickupIndex = getStoredPickupIndex(nil, pickup, pickupDescriptions)
|
|
91
|
+
if pickupIndex == nil then
|
|
92
|
+
pickupIndex = self:getPostAscentPickupIndex(pickup)
|
|
93
|
+
end
|
|
94
|
+
return pickupIndex
|
|
95
|
+
end
|
|
112
96
|
function PickupIndexCreation.prototype.checkDespawningFromPlayerLeavingRoom(self, entity)
|
|
113
97
|
local ptrHash = GetPtrHash(entity)
|
|
114
98
|
local pickupIndex = self.v.room.pickupIndexes:get(ptrHash)
|
|
@@ -135,16 +119,16 @@ function PickupIndexCreation.prototype.trackDespawningPickupMetadata(self, entit
|
|
|
135
119
|
local room = game:GetRoom()
|
|
136
120
|
local roomType = room:GetType()
|
|
137
121
|
repeat
|
|
138
|
-
local
|
|
139
|
-
local
|
|
140
|
-
if
|
|
122
|
+
local ____switch17 = roomType
|
|
123
|
+
local ____cond17 = ____switch17 == RoomType.TREASURE
|
|
124
|
+
if ____cond17 then
|
|
141
125
|
do
|
|
142
126
|
self.v.run.pickupDataTreasureRooms:set(pickupIndex, pickupDescription)
|
|
143
127
|
break
|
|
144
128
|
end
|
|
145
129
|
end
|
|
146
|
-
|
|
147
|
-
if
|
|
130
|
+
____cond17 = ____cond17 or ____switch17 == RoomType.BOSS
|
|
131
|
+
if ____cond17 then
|
|
148
132
|
do
|
|
149
133
|
self.v.run.pickupDataBossRooms:set(pickupIndex, pickupDescription)
|
|
150
134
|
break
|
|
@@ -164,15 +148,15 @@ function PickupIndexCreation.prototype.getPostAscentPickupIndex(self, pickup)
|
|
|
164
148
|
local room = game:GetRoom()
|
|
165
149
|
local roomType = room:GetType()
|
|
166
150
|
repeat
|
|
167
|
-
local
|
|
168
|
-
local
|
|
169
|
-
if
|
|
151
|
+
local ____switch23 = roomType
|
|
152
|
+
local ____cond23 = ____switch23 == RoomType.TREASURE
|
|
153
|
+
if ____cond23 then
|
|
170
154
|
do
|
|
171
155
|
return getStoredPickupIndex(nil, pickup, self.v.run.pickupDataTreasureRooms)
|
|
172
156
|
end
|
|
173
157
|
end
|
|
174
|
-
|
|
175
|
-
if
|
|
158
|
+
____cond23 = ____cond23 or ____switch23 == RoomType.BOSS
|
|
159
|
+
if ____cond23 then
|
|
176
160
|
do
|
|
177
161
|
return getStoredPickupIndex(nil, pickup, self.v.run.pickupDataBossRooms)
|
|
178
162
|
end
|
|
@@ -187,15 +171,16 @@ end
|
|
|
187
171
|
function PickupIndexCreation.prototype.getPickupIndex(self, pickup)
|
|
188
172
|
local ptrHash = GetPtrHash(pickup)
|
|
189
173
|
local pickupIndexInitial = self.v.room.pickupIndexes:get(ptrHash)
|
|
190
|
-
if pickupIndexInitial
|
|
191
|
-
|
|
174
|
+
if pickupIndexInitial ~= nil then
|
|
175
|
+
return pickupIndexInitial
|
|
192
176
|
end
|
|
177
|
+
self:setPickupIndex(pickup)
|
|
193
178
|
local pickupIndex = self.v.room.pickupIndexes:get(ptrHash)
|
|
194
|
-
if pickupIndex
|
|
195
|
-
|
|
196
|
-
error("Failed to generate a new pickup index for pickup: " .. entityID)
|
|
179
|
+
if pickupIndex ~= nil then
|
|
180
|
+
return pickupIndex
|
|
197
181
|
end
|
|
198
|
-
|
|
182
|
+
local entityID = getEntityID(nil, pickup)
|
|
183
|
+
error("Failed to generate a new pickup index for pickup: " .. entityID)
|
|
199
184
|
end
|
|
200
185
|
__TS__Decorate({Exported}, PickupIndexCreation.prototype, "getPickupIndex", true)
|
|
201
186
|
return ____exports
|
|
@@ -9,6 +9,6 @@ export declare class PressInput extends Feature {
|
|
|
9
9
|
*
|
|
10
10
|
* In order to use this function, you must upgrade your mod with `ISCFeature.PRESS_INPUT`.
|
|
11
11
|
*/
|
|
12
|
-
pressInput(buttonAction: ButtonAction): void;
|
|
12
|
+
pressInput(player: EntityPlayer, buttonAction: ButtonAction): void;
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=PressInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PressInput.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PressInput.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"PressInput.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/PressInput.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAGb,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,UAAW,SAAQ,OAAO;IAsBrC,OAAO,CAAC,iBAAiB,CA8BvB;IAEF;;;;;;OAMG;IAEI,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI;CAI1E"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
2
|
local __TS__Class = ____lualib.__TS__Class
|
|
3
3
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
|
-
local
|
|
5
|
-
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local __TS__ArraySplice = ____lualib.__TS__ArraySplice
|
|
6
5
|
local __TS__Decorate = ____lualib.__TS__Decorate
|
|
7
6
|
local ____exports = {}
|
|
8
7
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
@@ -10,6 +9,8 @@ local InputHook = ____isaac_2Dtypescript_2Ddefinitions.InputHook
|
|
|
10
9
|
local ModCallback = ____isaac_2Dtypescript_2Ddefinitions.ModCallback
|
|
11
10
|
local ____decorators = require("src.decorators")
|
|
12
11
|
local Exported = ____decorators.Exported
|
|
12
|
+
local ____playerIndex = require("src.functions.playerIndex")
|
|
13
|
+
local getPlayerIndex = ____playerIndex.getPlayerIndex
|
|
13
14
|
local ____Feature = require("src.classes.private.Feature")
|
|
14
15
|
local Feature = ____Feature.Feature
|
|
15
16
|
____exports.PressInput = __TS__Class()
|
|
@@ -18,18 +19,36 @@ PressInput.name = "PressInput"
|
|
|
18
19
|
__TS__ClassExtends(PressInput, Feature)
|
|
19
20
|
function PressInput.prototype.____constructor(self)
|
|
20
21
|
Feature.prototype.____constructor(self)
|
|
21
|
-
self.v = {run = {
|
|
22
|
-
self.isActionTriggered = function(____,
|
|
23
|
-
if
|
|
22
|
+
self.v = {run = {buttonActionTuples = {}}}
|
|
23
|
+
self.isActionTriggered = function(____, entity, _inputHook, buttonAction)
|
|
24
|
+
if entity == nil then
|
|
24
25
|
return nil
|
|
25
26
|
end
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
local player = entity:ToPlayer()
|
|
28
|
+
if player == nil then
|
|
29
|
+
return nil
|
|
30
|
+
end
|
|
31
|
+
local playerIndex = getPlayerIndex(nil, player)
|
|
32
|
+
do
|
|
33
|
+
local i = #self.v.run.buttonActionTuples - 1
|
|
34
|
+
while i >= 0 do
|
|
35
|
+
local tuple = self.v.run.buttonActionTuples[i + 1]
|
|
36
|
+
local tuplePlayerIndex, tupleButtonAction = table.unpack(tuple)
|
|
37
|
+
if tuplePlayerIndex == playerIndex and tupleButtonAction == buttonAction then
|
|
38
|
+
__TS__ArraySplice(self.v.run.buttonActionTuples, i)
|
|
39
|
+
return true
|
|
40
|
+
end
|
|
41
|
+
i = i - 1
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
return nil
|
|
28
45
|
end
|
|
29
46
|
self.callbacksUsed = {{ModCallback.INPUT_ACTION, {self.isActionTriggered, InputHook.IS_ACTION_TRIGGERED}}}
|
|
30
47
|
end
|
|
31
|
-
function PressInput.prototype.pressInput(self, buttonAction)
|
|
32
|
-
|
|
48
|
+
function PressInput.prototype.pressInput(self, player, buttonAction)
|
|
49
|
+
local playerIndex = getPlayerIndex(nil, player)
|
|
50
|
+
local ____self_v_run_buttonActionTuples_0 = self.v.run.buttonActionTuples
|
|
51
|
+
____self_v_run_buttonActionTuples_0[#____self_v_run_buttonActionTuples_0 + 1] = {playerIndex, buttonAction}
|
|
33
52
|
end
|
|
34
53
|
__TS__Decorate({Exported}, PressInput.prototype, "pressInput", true)
|
|
35
54
|
return ____exports
|
|
@@ -33,8 +33,8 @@ export declare class RoomHistory extends Feature {
|
|
|
33
33
|
/**
|
|
34
34
|
* Helper function to detect if the game is in the state where the room index has changed to a new
|
|
35
35
|
* room, but the entities from the previous room are currently in the process of despawning. (At
|
|
36
|
-
* this point, the `POST_NEW_ROOM` callback
|
|
37
|
-
* entry in the room history array for the current room.)
|
|
36
|
+
* this point, the `POST_NEW_ROOM` callback and the `POST_NEW_ROOM_EARLY` callback will not have
|
|
37
|
+
* fired yet, and there will not be an entry in the room history array for the current room.)
|
|
38
38
|
*
|
|
39
39
|
* This function is intended to be used in the `POST_ENTITY_REMOVE` callback to detect when an
|
|
40
40
|
* entity is despawning.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"AAwIA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAkB9B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED,4CAA4C;AAC5C,wBAAgB,KAAK,IAAI,IAAI,CAG5B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAcjD;AAED,2CAA2C;AAC3C,wBAAgB,EAAE,IAAI,IAAI,CAEzB;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAczC;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,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AgB,QAAQ,IAAI,IAAI,CAI/B;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAkB3C;AAED,2CAA2C;AAC3C,wBAAgB,QAAQ,IAAI,IAAI,CAG/B;AAED,qCAAqC;AACrC,wBAAgB,EAAE,IAAI,IAAI,CAEzB;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,qDAAqD;AACrD,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,gDAAgD;AAChD,wBAAgB,aAAa,IAAI,IAAI,CAGpC;AAED,oCAAoC;AACpC,wBAAgB,KAAK,IAAI,IAAI,CAG5B;AAED,0FAA0F;AAC1F,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEzC;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAE9B;AAED,yEAAyE;AACzE,wBAAgB,OAAO,IAAI,IAAI,CAI9B;AAED,wCAAwC;AACxC,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAElD;AAED,qCAAqC;AACrC,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAuB3C;AAED,4CAA4C;AAC5C,wBAAgB,IAAI,IAAI,IAAI,CAE3B;AAED,8CAA8C;AAC9C,wBAAgB,YAAY,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/classes/features/other/extraConsoleCommands/commands.ts"],"names":[],"mappings":"AAwIA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED,sEAAsE;AACtE,wBAAgB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ED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED,8CAA8C;AAC9C,wBAAgB,OAAO,IAAI,IAAI,CAG9B;AAED,sFAAsF;AACtF,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AAED,wFAAwF;AACxF,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC"}
|
|
@@ -631,7 +631,7 @@ function ____exports.getCharge(self, params)
|
|
|
631
631
|
local totalCharge = getTotalCharge(nil, player, activeSlot)
|
|
632
632
|
printConsole(
|
|
633
633
|
nil,
|
|
634
|
-
(((("Total charge for ActiveSlot." ..
|
|
634
|
+
(((("Total charge for ActiveSlot." .. ActiveSlot[activeSlot]) .. " (") .. tostring(activeSlot)) .. ") is: ") .. tostring(totalCharge)
|
|
635
635
|
)
|
|
636
636
|
end
|
|
637
637
|
--- Prints the current position of all players.
|
|
@@ -2,8 +2,8 @@ import { ModCallbackCustom } from "../../enums/ModCallbackCustom";
|
|
|
2
2
|
import { AddCallbackParametersCustom } from "../../interfaces/private/AddCallbackParametersCustom";
|
|
3
3
|
import { AllButFirst } from "../../types/private/AllButFirst";
|
|
4
4
|
import { Feature } from "./Feature";
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type FireArgs<T extends ModCallbackCustom> = Parameters<AddCallbackParametersCustom[T][0]>;
|
|
6
|
+
export type OptionalArgs<T extends ModCallbackCustom> = AllButFirst<AddCallbackParametersCustom[T]>;
|
|
7
7
|
/**
|
|
8
8
|
* The base class for a custom callback. Individual custom callbacks (and validation callbacks) will
|
|
9
9
|
* extend from this class.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomCallback.d.ts","sourceRoot":"","sources":["../../../../src/classes/private/CustomCallback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE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AC,CAAC,CAAC,KAC1B,OAAO,CAAc;CAC3B"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="isaac-typescript-definitions" />
|
|
3
3
|
import { ISCFeature } from "../enums/ISCFeature";
|
|
4
4
|
import { ModUpgraded } from "../types/ModUpgraded";
|
|
5
|
-
|
|
5
|
+
type ISCFeatureTuple<T extends readonly ISCFeature[]> = ISCFeature extends T["length"] ? 'The list of features must be a tuple. Use the "as const" assertion when declaring the array.' : T;
|
|
6
6
|
/**
|
|
7
7
|
* Use this function to enable the custom callbacks and other optional features provided by
|
|
8
8
|
* `isaacscript-common`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgradeMod.d.ts","sourceRoot":"","sources":["../../../src/core/upgradeMod.ts"],"names":[],"mappings":";;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,
|
|
1
|
+
{"version":3,"file":"upgradeMod.d.ts","sourceRoot":"","sources":["../../../src/core/upgradeMod.ts"],"names":[],"mappings":";;AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAIjD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,KAAK,eAAe,CAAC,CAAC,SAAS,SAAS,UAAU,EAAE,IAClD,UAAU,SAAS,CAAC,CAAC,QAAQ,CAAC,GAC1B,8FAA8F,GAC9F,CAAC,CAAC;AAER;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,SAAS,UAAU,EAAE,GAAG,KAAK,EAAE,EAClE,UAAU,EAAE,GAAG,EACf,QAAQ,GAAE,eAAe,CAAC,CAAC,CAAuC,EAClE,KAAK,UAAQ,EACb,aAAa,CAAC,EAAE,KAAK,GACpB,WAAW,CAAC,CAAC,CAAC,CAQhB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="@typescript-to-lua/language-extensions" />
|
|
2
2
|
import { CopyableIsaacAPIClassType } from "isaac-typescript-definitions";
|
|
3
|
-
export
|
|
3
|
+
export type SerializedBitSet128 = LuaMap<string, unknown> & {
|
|
4
4
|
readonly __serializedBitSet128Brand: symbol;
|
|
5
5
|
readonly __kind: CopyableIsaacAPIClassType.BIT_SET_128;
|
|
6
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bitSet128.d.ts","sourceRoot":"","sources":["../../../src/functions/bitSet128.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAUzE,
|
|
1
|
+
{"version":3,"file":"bitSet128.d.ts","sourceRoot":"","sources":["../../../src/functions/bitSet128.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AAUzE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAC1D,QAAQ,CAAC,0BAA0B,EAAE,MAAM,CAAC;IAC5C,QAAQ,CAAC,MAAM,EAAE,yBAAyB,CAAC,WAAW,CAAC;CACxD,CAAC;AAKF,6DAA6D;AAC7D,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,CAW7D;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,mBAAmB,GAC7B,SAAS,CAqBX;AAED,mFAAmF;AACnF,wBAAgB,WAAW,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,SAAS,CAEhE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,GACd,MAAM,IAAI,mBAAmB,CAQ/B;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,SAAS,GAAG,mBAAmB,CAW5E"}
|