isaacscript-common 7.1.1 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes/DefaultMap.d.ts +5 -5
- package/dist/classes/DefaultMap.d.ts.map +1 -1
- package/dist/enums/AmbushType.d.ts +1 -0
- package/dist/enums/AmbushType.d.ts.map +1 -1
- package/dist/enums/AmbushType.lua +1 -0
- package/dist/enums/CornerType.d.ts +1 -0
- package/dist/enums/CornerType.d.ts.map +1 -1
- package/dist/enums/CornerType.lua +1 -0
- package/dist/enums/PocketItemType.d.ts +1 -0
- package/dist/enums/PocketItemType.d.ts.map +1 -1
- package/dist/enums/PocketItemType.lua +1 -0
- package/dist/enums/RockAltType.d.ts +1 -0
- package/dist/enums/RockAltType.d.ts.map +1 -1
- package/dist/enums/RockAltType.lua +1 -0
- package/dist/enums/SerializationType.d.ts +1 -0
- package/dist/enums/SerializationType.d.ts.map +1 -1
- package/dist/enums/SerializationType.lua +1 -0
- package/dist/enums/SlotDestructionType.d.ts +1 -0
- package/dist/enums/SlotDestructionType.d.ts.map +1 -1
- package/dist/enums/SlotDestructionType.lua +1 -0
- package/dist/features/customStage/backdrop.d.ts +1 -1
- package/dist/features/customStage/backdrop.d.ts.map +1 -1
- package/dist/features/customStage/backdrop.lua +1 -1
- package/dist/features/customStage/init.lua +2 -2
- package/dist/functions/cacheFlag.d.ts +23 -1
- package/dist/functions/cacheFlag.d.ts.map +1 -1
- package/dist/functions/cacheFlag.lua +78 -0
- package/dist/functions/flying.lua +2 -2
- package/dist/functions/index.d.ts +0 -1
- package/dist/functions/index.d.ts.map +1 -1
- package/dist/functions/index.lua +0 -8
- package/dist/functions/input.d.ts +4 -1
- package/dist/functions/input.d.ts.map +1 -1
- package/dist/functions/input.lua +10 -2
- package/dist/functions/rockAlt.d.ts.map +1 -1
- package/dist/functions/rockAlt.lua +11 -20
- package/dist/functions/rooms.d.ts.map +1 -1
- package/dist/functions/rooms.lua +1 -0
- package/dist/interfaces/ChargeBarSprites.d.ts +1 -1
- package/dist/interfaces/Corner.d.ts +5 -0
- package/dist/interfaces/Corner.d.ts.map +1 -1
- package/dist/interfaces/CustomStageLua.d.ts +57 -0
- package/dist/interfaces/CustomStageLua.d.ts.map +1 -1
- package/dist/interfaces/GridEntityCustomData.d.ts +6 -0
- package/dist/interfaces/GridEntityCustomData.d.ts.map +1 -1
- package/dist/interfaces/JSONRoomsFile.d.ts +7 -3
- package/dist/interfaces/JSONRoomsFile.d.ts.map +1 -1
- package/dist/interfaces/PlayerHealth.d.ts +1 -1
- package/dist/interfaces/PlayerHealth.d.ts.map +1 -1
- package/dist/interfaces/PocketItemDescription.d.ts +1 -1
- package/dist/interfaces/PocketItemDescription.d.ts.map +1 -1
- package/dist/interfaces/RoomDescription.d.ts +1 -1
- package/dist/interfaces/RoomDescription.d.ts.map +1 -1
- package/dist/interfaces/StatTypeType.d.ts +4 -0
- package/dist/interfaces/StatTypeType.d.ts.map +1 -1
- package/dist/interfaces/TrinketSituation.d.ts +1 -1
- package/dist/interfaces/TrinketSituation.d.ts.map +1 -1
- package/dist/maps/keyboardToString.d.ts +4 -0
- package/dist/maps/keyboardToString.d.ts.map +1 -0
- package/dist/maps/keyboardToString.lua +73 -0
- package/dist/types/AnyEntity.d.ts +5 -0
- package/dist/types/AnyEntity.d.ts.map +1 -1
- package/dist/types/AnyGridEntity.d.ts +5 -0
- package/dist/types/AnyGridEntity.d.ts.map +1 -1
- package/dist/types/CollectibleIndex.d.ts +4 -3
- package/dist/types/CollectibleIndex.d.ts.map +1 -1
- package/dist/types/Immutable.d.ts +3 -1
- package/dist/types/Immutable.d.ts.map +1 -1
- package/dist/types/PickupIndex.d.ts +4 -2
- package/dist/types/PickupIndex.d.ts.map +1 -1
- package/dist/types/PlayerIndex.d.ts +3 -2
- package/dist/types/PlayerIndex.d.ts.map +1 -1
- package/dist/types/SerializedIsaacAPIClass.d.ts +6 -0
- package/dist/types/SerializedIsaacAPIClass.d.ts.map +1 -1
- package/dist/types/TSTLClass.d.ts +5 -0
- package/dist/types/TSTLClass.d.ts.map +1 -1
- package/dist/types/TrapdoorDestination.d.ts +3 -0
- package/dist/types/TrapdoorDestination.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/classes/DefaultMap.ts +7 -7
- package/src/enums/AmbushType.ts +1 -0
- package/src/enums/CornerType.ts +1 -0
- package/src/enums/PocketItemType.ts +1 -0
- package/src/enums/RockAltType.ts +1 -0
- package/src/enums/SerializationType.ts +1 -0
- package/src/enums/SlotDestructionType.ts +1 -0
- package/src/features/customStage/backdrop.ts +1 -1
- package/src/features/customStage/init.ts +2 -2
- package/src/features/fastReset.ts +1 -1
- package/src/features/indexTypeDoc.ts +2 -1
- package/src/functions/cacheFlag.ts +90 -1
- package/src/functions/flying.ts +1 -1
- package/src/functions/index.ts +0 -1
- package/src/functions/indexTypeDoc.ts +0 -1
- package/src/functions/input.ts +15 -2
- package/src/functions/rockAlt.ts +28 -13
- package/src/functions/rooms.ts +1 -0
- package/src/interfaces/ChargeBarSprites.ts +1 -1
- package/src/interfaces/Corner.ts +5 -0
- package/src/interfaces/CustomStageLua.ts +66 -0
- package/src/interfaces/GridEntityCustomData.ts +6 -0
- package/src/interfaces/JSONRoomsFile.ts +7 -3
- package/src/interfaces/PlayerHealth.ts +1 -1
- package/src/interfaces/PocketItemDescription.ts +1 -1
- package/src/interfaces/RoomDescription.ts +1 -1
- package/src/interfaces/StatTypeType.ts +4 -0
- package/src/interfaces/TrinketSituation.ts +1 -1
- package/src/maps/keyboardToString.ts +77 -0
- package/src/types/AnyEntity.ts +5 -0
- package/src/types/AnyGridEntity.ts +5 -0
- package/src/types/CollectibleIndex.ts +4 -3
- package/src/types/Immutable.ts +3 -1
- package/src/types/PickupIndex.ts +4 -2
- package/src/types/PlayerIndex.ts +3 -2
- package/src/types/SerializedIsaacAPIClass.ts +6 -0
- package/src/types/TSTLClass.ts +5 -0
- package/src/types/TrapdoorDestination.ts +3 -0
- package/dist/functions/collectibleCacheFlag.d.ts +0 -24
- package/dist/functions/collectibleCacheFlag.d.ts.map +0 -1
- package/dist/functions/collectibleCacheFlag.lua +0 -80
- package/src/functions/collectibleCacheFlag.ts +0 -90
|
@@ -24,6 +24,9 @@ export declare type CustomStageTSConfig = Readonly<{
|
|
|
24
24
|
* Make sure the chosen prefix does not conflict with any other mods. You can find a list of
|
|
25
25
|
* registered room variant prefixes on the IsaacScript website:
|
|
26
26
|
* https://isaacscript.github.io/main/custom-stages
|
|
27
|
+
*
|
|
28
|
+
* @minimum 101
|
|
29
|
+
* @maximum 109
|
|
27
30
|
*/
|
|
28
31
|
roomVariantPrefix: number;
|
|
29
32
|
/**
|
|
@@ -35,6 +38,9 @@ export declare type CustomStageTSConfig = Readonly<{
|
|
|
35
38
|
* method.)
|
|
36
39
|
*
|
|
37
40
|
* If not specified, `LevelStage.BASEMENT_2` (2) will be used.
|
|
41
|
+
*
|
|
42
|
+
* @minimum 2
|
|
43
|
+
* @maximum 13
|
|
38
44
|
*/
|
|
39
45
|
baseStage?: number;
|
|
40
46
|
/**
|
|
@@ -43,6 +49,9 @@ export declare type CustomStageTSConfig = Readonly<{
|
|
|
43
49
|
* generation algorithm.
|
|
44
50
|
*
|
|
45
51
|
* If not specified, `StageType.ORIGINAL` (0) will be used.
|
|
52
|
+
*
|
|
53
|
+
* @minimum 0
|
|
54
|
+
* @maximum 5
|
|
46
55
|
*/
|
|
47
56
|
baseStageType?: number;
|
|
48
57
|
/**
|
|
@@ -301,9 +310,25 @@ export declare type CustomStageTSConfig = Readonly<{
|
|
|
301
310
|
* `versusScreenBackgroundColors.ts`.
|
|
302
311
|
*/
|
|
303
312
|
backgroundColor?: Readonly<{
|
|
313
|
+
/**
|
|
314
|
+
* @minimum 0
|
|
315
|
+
* @maximum 1
|
|
316
|
+
*/
|
|
304
317
|
r: number;
|
|
318
|
+
/**
|
|
319
|
+
* @minimum 0
|
|
320
|
+
* @maximum 1
|
|
321
|
+
*/
|
|
305
322
|
g: number;
|
|
323
|
+
/**
|
|
324
|
+
* @minimum 0
|
|
325
|
+
* @maximum 1
|
|
326
|
+
*/
|
|
306
327
|
b: number;
|
|
328
|
+
/**
|
|
329
|
+
* @minimum 0
|
|
330
|
+
* @maximum 1
|
|
331
|
+
*/
|
|
307
332
|
a: number;
|
|
308
333
|
}>;
|
|
309
334
|
/**
|
|
@@ -315,9 +340,25 @@ export declare type CustomStageTSConfig = Readonly<{
|
|
|
315
340
|
* `versusScreenDirtSpotColors.ts`.
|
|
316
341
|
*/
|
|
317
342
|
dirtSpotColor?: Readonly<{
|
|
343
|
+
/**
|
|
344
|
+
* @minimum 0
|
|
345
|
+
* @maximum 1
|
|
346
|
+
*/
|
|
318
347
|
r: number;
|
|
348
|
+
/**
|
|
349
|
+
* @minimum 0
|
|
350
|
+
* @maximum 1
|
|
351
|
+
*/
|
|
319
352
|
g: number;
|
|
353
|
+
/**
|
|
354
|
+
* @minimum 0
|
|
355
|
+
* @maximum 1
|
|
356
|
+
*/
|
|
320
357
|
b: number;
|
|
358
|
+
/**
|
|
359
|
+
* @minimum 0
|
|
360
|
+
* @maximum 1
|
|
361
|
+
*/
|
|
321
362
|
a: number;
|
|
322
363
|
}>;
|
|
323
364
|
}>;
|
|
@@ -342,9 +383,25 @@ export declare type CustomStageShadow = Readonly<{
|
|
|
342
383
|
* to 75% faded black).
|
|
343
384
|
*/
|
|
344
385
|
color?: Readonly<{
|
|
386
|
+
/**
|
|
387
|
+
* @minimum 0
|
|
388
|
+
* @maximum 1
|
|
389
|
+
*/
|
|
345
390
|
r: number;
|
|
391
|
+
/**
|
|
392
|
+
* @minimum 0
|
|
393
|
+
* @maximum 1
|
|
394
|
+
*/
|
|
346
395
|
g: number;
|
|
396
|
+
/**
|
|
397
|
+
* @minimum 0
|
|
398
|
+
* @maximum 1
|
|
399
|
+
*/
|
|
347
400
|
b: number;
|
|
401
|
+
/**
|
|
402
|
+
* @minimum 0
|
|
403
|
+
* @maximum 1
|
|
404
|
+
*/
|
|
348
405
|
a: number;
|
|
349
406
|
}>;
|
|
350
407
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomStageLua.d.ts","sourceRoot":"","sources":["../../src/interfaces/CustomStageLua.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,oBAAY,mBAAmB,GAAG,QAAQ,CAAC;IACzC,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB
|
|
1
|
+
{"version":3,"file":"CustomStageLua.d.ts","sourceRoot":"","sources":["../../src/interfaces/CustomStageLua.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { GridCollisionClass, GridEntityType } from "isaac-typescript-definitions";
|
|
2
|
+
/**
|
|
3
|
+
* This is meta-data that describes a custom grid entity.
|
|
4
|
+
*
|
|
5
|
+
* (One of the extra features that the standard library offers is the ability to spawn custom grid
|
|
6
|
+
* entities with the `spawnCustomGridEntity` helper function.)
|
|
7
|
+
*/
|
|
2
8
|
export interface GridEntityCustomData {
|
|
3
9
|
/**
|
|
4
10
|
* This is not a real `GridEntityType`; rather it is an arbitrary integer selected by end-user
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridEntityCustomData.d.ts","sourceRoot":"","sources":["../../src/interfaces/GridEntityCustomData.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,cAAc,EACf,MAAM,8BAA8B,CAAC;AAEtC,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,oBAAoB,EAAE,cAAc,CAAC;IAErC,aAAa,EAAE,GAAG,CAAC;IACnB,SAAS,EAAE,GAAG,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,kBAAkB,CAAC;CACxC"}
|
|
1
|
+
{"version":3,"file":"GridEntityCustomData.d.ts","sourceRoot":"","sources":["../../src/interfaces/GridEntityCustomData.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,cAAc,EACf,MAAM,8BAA8B,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,oBAAoB,EAAE,cAAc,CAAC;IAErC,aAAa,EAAE,GAAG,CAAC;IACnB,SAAS,EAAE,GAAG,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,kBAAkB,CAAC;CACxC"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* The standard library has the feature to deploy a new room on-the-fly with the `deployJSONRoom`
|
|
3
|
+
* helper function. It requires a `JSONRoomsFile` as an argument, which is simply an XML file
|
|
4
|
+
* converted to JSON. (You create XML room files using the Basement Renovator program.)
|
|
5
5
|
*
|
|
6
6
|
* You can convert your XML files using the following command:
|
|
7
7
|
*
|
|
8
8
|
* ```sh
|
|
9
9
|
* npx convert-xml-to-json foo.xml foo.json
|
|
10
10
|
* ```
|
|
11
|
+
*
|
|
12
|
+
* Note that the custom stages feature of the standard library uses real XML/STB files, not JSON
|
|
13
|
+
* rooms, so you would only need to do this if you are using the `deployJSONRoom` command
|
|
14
|
+
* specifically.
|
|
11
15
|
*/
|
|
12
16
|
export interface JSONRoomsFile {
|
|
13
17
|
rooms: JSONRooms;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSONRoomsFile.d.ts","sourceRoot":"","sources":["../../src/interfaces/JSONRoomsFile.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"JSONRoomsFile.d.ts","sourceRoot":"","sources":["../../src/interfaces/JSONRoomsFile.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,QAAQ,EAAE,CAAC;CAClB;AAED,2BAA2B;AAC3B,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE;QACD,yCAAyC;QACzC,UAAU,EAAE,MAAM,CAAC;QAEnB,yCAAyC;QACzC,MAAM,EAAE,MAAM,CAAC;QAEf,IAAI,EAAE,MAAM,CAAC;QAEb,yCAAyC;QACzC,KAAK,EAAE,MAAM,CAAC;QAEd,yCAAyC;QACzC,OAAO,EAAE,MAAM,CAAC;QAEhB,yCAAyC;QACzC,IAAI,EAAE,MAAM,CAAC;QAEb,yCAAyC;QACzC,OAAO,EAAE,MAAM,CAAC;QAEhB,0CAA0C;QAC1C,MAAM,EAAE,MAAM,CAAC;QAEf,yCAAyC;QACzC,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IAEF,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB;AAED,2BAA2B;AAC3B,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE;QACD,yEAAyE;QACzE,MAAM,EAAE,MAAM,CAAC;QAEf,yCAAyC;QACzC,CAAC,EAAE,MAAM,CAAC;QAEV,yCAAyC;QACzC,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;CACH;AAED,2BAA2B;AAC3B,MAAM,WAAW,SAAS;IACxB,CAAC,EAAE;QACD,yCAAyC;QACzC,CAAC,EAAE,MAAM,CAAC;QAEV,yCAAyC;QACzC,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;IAEF,MAAM,EAAE,UAAU,EAAE,CAAC;CACtB;AAED,2BAA2B;AAC3B,MAAM,WAAW,UAAU;IACzB,CAAC,EAAE;QACD,yCAAyC;QACzC,IAAI,EAAE,MAAM,CAAC;QAEb,yCAAyC;QACzC,OAAO,EAAE,MAAM,CAAC;QAEhB,yCAAyC;QACzC,OAAO,EAAE,MAAM,CAAC;QAEhB,0CAA0C;QAC1C,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HeartSubType } from "isaac-typescript-definitions";
|
|
2
|
-
/**
|
|
2
|
+
/** This is used by the `getPlayerHealth` and `setPlayerHealth` helper functions. */
|
|
3
3
|
export interface PlayerHealth {
|
|
4
4
|
maxHearts: int;
|
|
5
5
|
hearts: int;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlayerHealth.d.ts","sourceRoot":"","sources":["../../src/interfaces/PlayerHealth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,
|
|
1
|
+
{"version":3,"file":"PlayerHealth.d.ts","sourceRoot":"","sources":["../../src/interfaces/PlayerHealth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,oFAAoF;AACpF,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,GAAG,CAAC;IACf,MAAM,EAAE,GAAG,CAAC;IACZ,aAAa,EAAE,GAAG,CAAC;IAEnB,8FAA8F;IAC9F,UAAU,EAAE,GAAG,CAAC;IAEhB,8FAA8F;IAC9F,UAAU,EAAE,GAAG,CAAC;IAEhB,YAAY,EAAE,GAAG,CAAC;IAClB,YAAY,EAAE,GAAG,CAAC;IAClB,YAAY,EAAE,GAAG,CAAC;IAClB,WAAW,EAAE,GAAG,CAAC;IACjB,YAAY,EAAE,GAAG,CAAC;IAElB,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC;AAED,oBAAY,aAAa,GACrB,YAAY,CAAC,IAAI,GACjB,YAAY,CAAC,KAAK,GAClB,YAAY,CAAC,IAAI,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PocketItemSlot } from "isaac-typescript-definitions";
|
|
2
2
|
import { PocketItemType } from "../enums/PocketItemType";
|
|
3
|
-
/**
|
|
3
|
+
/** This is used by the `getPocketItems` and related helper functions. */
|
|
4
4
|
export interface PocketItemDescription {
|
|
5
5
|
slot: PocketItemSlot;
|
|
6
6
|
type: PocketItemType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PocketItemDescription.d.ts","sourceRoot":"","sources":["../../src/interfaces/PocketItemDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,
|
|
1
|
+
{"version":3,"file":"PocketItemDescription.d.ts","sourceRoot":"","sources":["../../src/interfaces/PocketItemDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,yEAAyE;AACzE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,cAAc,CAAC;IACrB,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,EAAE,GAAG,CAAC;CACd"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LevelStage, RoomType, StageID, StageType } from "isaac-typescript-definitions";
|
|
2
|
-
/**
|
|
2
|
+
/** This is used by the room history feature of the standard library. */
|
|
3
3
|
export interface RoomDescription {
|
|
4
4
|
stage: LevelStage;
|
|
5
5
|
stageType: StageType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoomDescription.d.ts","sourceRoot":"","sources":["../../src/interfaces/RoomDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,QAAQ,EACR,OAAO,EACP,SAAS,EACV,MAAM,8BAA8B,CAAC;AAEtC,
|
|
1
|
+
{"version":3,"file":"RoomDescription.d.ts","sourceRoot":"","sources":["../../src/interfaces/RoomDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,QAAQ,EACR,OAAO,EACP,SAAS,EACV,MAAM,8BAA8B,CAAC;AAEtC,wEAAwE;AACxE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,UAAU,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,GAAG,CAAC;IACjB,WAAW,EAAE,GAAG,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,GAAG,CAAC;IACnB,aAAa,EAAE,GAAG,CAAC;IACnB,gBAAgB,EAAE,GAAG,CAAC;CACvB"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { TearFlag } from "isaac-typescript-definitions";
|
|
2
2
|
import { StatType } from "../enums/StatType";
|
|
3
|
+
/**
|
|
4
|
+
* This is an interface mapping a stat type to the data type. For example, `StatType.DAMAGE` is a
|
|
5
|
+
* `float` type.
|
|
6
|
+
*/
|
|
3
7
|
export interface StatTypeType {
|
|
4
8
|
[StatType.DAMAGE]: float;
|
|
5
9
|
[StatType.FIRE_DELAY]: float;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatTypeType.d.ts","sourceRoot":"","sources":["../../src/interfaces/StatTypeType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,MAAM,WAAW,YAAY;IAC3B,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC;IACzB,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC7B,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC7B,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC;IAC9B,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC7B,CAAC,QAAQ,CAAC,yBAAyB,CAAC,EAAE,KAAK,CAAC;IAC5C,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,KAAK,CAAC;IACrC,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC7B,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC7B,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC3B,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC;CACxB"}
|
|
1
|
+
{"version":3,"file":"StatTypeType.d.ts","sourceRoot":"","sources":["../../src/interfaces/StatTypeType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC;IACzB,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC7B,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC7B,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC;IAC9B,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC7B,CAAC,QAAQ,CAAC,yBAAyB,CAAC,EAAE,KAAK,CAAC;IAC5C,CAAC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,KAAK,CAAC;IACrC,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC7B,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACzC,CAAC,QAAQ,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC;IAC7B,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC3B,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC;CACxB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TrinketType } from "isaac-typescript-definitions";
|
|
2
|
-
/**
|
|
2
|
+
/** This is used by the `temporarilyRemoveTrinkets` and related helper functions. */
|
|
3
3
|
export interface TrinketSituation {
|
|
4
4
|
trinketTypeRemoved: TrinketType;
|
|
5
5
|
trinketType1: TrinketType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrinketSituation.d.ts","sourceRoot":"","sources":["../../src/interfaces/TrinketSituation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,
|
|
1
|
+
{"version":3,"file":"TrinketSituation.d.ts","sourceRoot":"","sources":["../../src/interfaces/TrinketSituation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,oFAAoF;AACpF,MAAM,WAAW,gBAAgB;IAC/B,kBAAkB,EAAE,WAAW,CAAC;IAChC,YAAY,EAAE,WAAW,CAAC;IAC1B,YAAY,EAAE,WAAW,CAAC;IAC1B,kBAAkB,EAAE,GAAG,CAAC;CACzB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Keyboard } from "isaac-typescript-definitions";
|
|
2
|
+
/** Maps each keyboard enum member to its corresponding lowercase and uppercase characters. */
|
|
3
|
+
export declare const KEYBOARD_TO_STRING: ReadonlyMap<Keyboard, readonly [lowercaseCharacter: string, uppercaseCharacter: string]>;
|
|
4
|
+
//# sourceMappingURL=keyboardToString.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboardToString.d.ts","sourceRoot":"","sources":["../../src/maps/keyboardToString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAC1C,QAAQ,EACR,SAAS,CAAC,kBAAkB,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,CAAC,CAuEjE,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local Map = ____lualib.Map
|
|
3
|
+
local __TS__New = ____lualib.__TS__New
|
|
4
|
+
local ____exports = {}
|
|
5
|
+
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
6
|
+
local Keyboard = ____isaac_2Dtypescript_2Ddefinitions.Keyboard
|
|
7
|
+
--- Maps each keyboard enum member to its corresponding lowercase and uppercase characters.
|
|
8
|
+
____exports.KEYBOARD_TO_STRING = __TS__New(Map, {
|
|
9
|
+
{Keyboard.SPACE, {" ", " "}},
|
|
10
|
+
{Keyboard.APOSTROPHE, {"'", "\""}},
|
|
11
|
+
{Keyboard.COMMA, {",", "<"}},
|
|
12
|
+
{Keyboard.MINUS, {"-", "_"}},
|
|
13
|
+
{Keyboard.PERIOD, {".", ">"}},
|
|
14
|
+
{Keyboard.SLASH, {"/", "?"}},
|
|
15
|
+
{Keyboard.ZERO, {"0", ")"}},
|
|
16
|
+
{Keyboard.ONE, {"1", "!"}},
|
|
17
|
+
{Keyboard.TWO, {"2", "@"}},
|
|
18
|
+
{Keyboard.THREE, {"3", "#"}},
|
|
19
|
+
{Keyboard.FOUR, {"4", "$"}},
|
|
20
|
+
{Keyboard.FIVE, {"5", "%"}},
|
|
21
|
+
{Keyboard.SIX, {"6", "^"}},
|
|
22
|
+
{Keyboard.SEVEN, {"7", "&"}},
|
|
23
|
+
{Keyboard.EIGHT, {"8", "*"}},
|
|
24
|
+
{Keyboard.NINE, {"9", "("}},
|
|
25
|
+
{Keyboard.SEMICOLON, {";", ":"}},
|
|
26
|
+
{Keyboard.EQUAL, {"=", "+"}},
|
|
27
|
+
{Keyboard.A, {"a", "A"}},
|
|
28
|
+
{Keyboard.B, {"b", "B"}},
|
|
29
|
+
{Keyboard.C, {"c", "C"}},
|
|
30
|
+
{Keyboard.D, {"d", "D"}},
|
|
31
|
+
{Keyboard.E, {"e", "E"}},
|
|
32
|
+
{Keyboard.F, {"f", "F"}},
|
|
33
|
+
{Keyboard.G, {"g", "G"}},
|
|
34
|
+
{Keyboard.H, {"h", "H"}},
|
|
35
|
+
{Keyboard.I, {"i", "I"}},
|
|
36
|
+
{Keyboard.J, {"j", "J"}},
|
|
37
|
+
{Keyboard.K, {"k", "K"}},
|
|
38
|
+
{Keyboard.L, {"l", "L"}},
|
|
39
|
+
{Keyboard.M, {"m", "M"}},
|
|
40
|
+
{Keyboard.N, {"n", "N"}},
|
|
41
|
+
{Keyboard.O, {"o", "O"}},
|
|
42
|
+
{Keyboard.P, {"p", "P"}},
|
|
43
|
+
{Keyboard.Q, {"q", "Q"}},
|
|
44
|
+
{Keyboard.R, {"r", "R"}},
|
|
45
|
+
{Keyboard.S, {"s", "S"}},
|
|
46
|
+
{Keyboard.T, {"t", "T"}},
|
|
47
|
+
{Keyboard.U, {"u", "U"}},
|
|
48
|
+
{Keyboard.V, {"v", "V"}},
|
|
49
|
+
{Keyboard.W, {"w", "W"}},
|
|
50
|
+
{Keyboard.X, {"x", "X"}},
|
|
51
|
+
{Keyboard.Y, {"y", "Y"}},
|
|
52
|
+
{Keyboard.Z, {"z", "Z"}},
|
|
53
|
+
{Keyboard.KP_0, {"0", "0"}},
|
|
54
|
+
{Keyboard.KP_1, {"1", "1"}},
|
|
55
|
+
{Keyboard.KP_2, {"2", "2"}},
|
|
56
|
+
{Keyboard.KP_3, {"3", "3"}},
|
|
57
|
+
{Keyboard.KP_4, {"4", "4"}},
|
|
58
|
+
{Keyboard.KP_5, {"5", "5"}},
|
|
59
|
+
{Keyboard.KP_6, {"6", "6"}},
|
|
60
|
+
{Keyboard.KP_7, {"7", "7"}},
|
|
61
|
+
{Keyboard.KP_8, {"8", "8"}},
|
|
62
|
+
{Keyboard.KP_9, {"9", "9"}},
|
|
63
|
+
{Keyboard.KP_DECIMAL, {".", "."}},
|
|
64
|
+
{Keyboard.KP_DIVIDE, {"/", "/"}},
|
|
65
|
+
{Keyboard.KP_MULTIPLY, {"*", "*"}},
|
|
66
|
+
{Keyboard.KP_SUBTRACT, {"-", "-"}},
|
|
67
|
+
{Keyboard.KP_ADD, {"+", "+"}},
|
|
68
|
+
{Keyboard.LEFT_BRACKET, {"[", "{"}},
|
|
69
|
+
{Keyboard.BACKSLASH, {"\\", "|"}},
|
|
70
|
+
{Keyboard.RIGHT_BRACKET, {"]", "}"}},
|
|
71
|
+
{Keyboard.GRAVE_ACCENT, {"`", "~"}}
|
|
72
|
+
})
|
|
73
|
+
return ____exports
|
|
@@ -9,5 +9,10 @@
|
|
|
9
9
|
/// <reference types="isaac-typescript-definitions" />
|
|
10
10
|
/// <reference types="isaac-typescript-definitions" />
|
|
11
11
|
/// <reference types="isaac-typescript-definitions" />
|
|
12
|
+
/**
|
|
13
|
+
* A type union that matches `Entity`, `EntityBomb`, `EntityEffect`, and so on.
|
|
14
|
+
*
|
|
15
|
+
* This is useful for building generic functions that should accept any kind of entity.
|
|
16
|
+
*/
|
|
12
17
|
export declare type AnyEntity = Entity | EntityBomb | EntityEffect | EntityFamiliar | EntityKnife | EntityLaser | EntityNPC | EntityPickup | EntityPlayer | EntityProjectile | EntityTear;
|
|
13
18
|
//# sourceMappingURL=AnyEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnyEntity.d.ts","sourceRoot":"","sources":["../../src/types/AnyEntity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,oBAAY,SAAS,GACjB,MAAM,GACN,UAAU,GACV,YAAY,GACZ,cAAc,GACd,WAAW,GACX,WAAW,GACX,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"AnyEntity.d.ts","sourceRoot":"","sources":["../../src/types/AnyEntity.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;GAIG;AACH,oBAAY,SAAS,GACjB,MAAM,GACN,UAAU,GACV,YAAY,GACZ,cAAc,GACd,WAAW,GACX,WAAW,GACX,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,gBAAgB,GAChB,UAAU,CAAC"}
|
|
@@ -6,5 +6,10 @@
|
|
|
6
6
|
/// <reference types="isaac-typescript-definitions" />
|
|
7
7
|
/// <reference types="isaac-typescript-definitions" />
|
|
8
8
|
/// <reference types="isaac-typescript-definitions" />
|
|
9
|
+
/**
|
|
10
|
+
* A type union that matches `GridEntity`, `GridEntityDoor`, `GridEntityPit`, and so on.
|
|
11
|
+
*
|
|
12
|
+
* This is useful for building generic functions that should accept any kind of grid entity.
|
|
13
|
+
*/
|
|
9
14
|
export declare type AnyGridEntity = GridEntity | GridEntityDoor | GridEntityPit | GridEntityPoop | GridEntityPressurePlate | GridEntityRock | GridEntitySpikes | GridEntityTNT;
|
|
10
15
|
//# sourceMappingURL=AnyGridEntity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnyGridEntity.d.ts","sourceRoot":"","sources":["../../src/types/AnyGridEntity.ts"],"names":[],"mappings":";;;;;;;;AAAA,oBAAY,aAAa,GACrB,UAAU,GACV,cAAc,GACd,aAAa,GACb,cAAc,GACd,uBAAuB,GACvB,cAAc,GACd,gBAAgB,GAChB,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"AnyGridEntity.d.ts","sourceRoot":"","sources":["../../src/types/AnyGridEntity.ts"],"names":[],"mappings":";;;;;;;;AAAA;;;;GAIG;AACH,oBAAY,aAAa,GACrB,UAAU,GACV,cAAc,GACd,aAAa,GACb,cAAc,GACd,uBAAuB,GACvB,cAAc,GACd,gBAAgB,GAChB,aAAa,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `CollectibleIndex` is a specific type of string
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* `CollectibleIndex` is a specific type of string that represents a unique identifier for a
|
|
3
|
+
* collectible. Mods can signify that data structures handle collectibles by using this type.
|
|
4
|
+
*
|
|
5
|
+
* For more information, see the documentation for the `getCollectibleIndex` function.
|
|
5
6
|
*
|
|
6
7
|
* For example:
|
|
7
8
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectibleIndex.d.ts","sourceRoot":"","sources":["../../src/types/CollectibleIndex.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"CollectibleIndex.d.ts","sourceRoot":"","sources":["../../src/types/CollectibleIndex.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,oBAAY,gBAAgB,GAAG,MAAM,GAAG;IACtC,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;CAC1C,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Immutable is a type that will make the given array/map/set/object recursively read-only.
|
|
2
|
+
* Immutable is a utility type that will make the given array/map/set/object recursively read-only.
|
|
3
|
+
*
|
|
4
|
+
* You can use this type to easily build safe data structures.
|
|
3
5
|
*
|
|
4
6
|
* From: https://stackoverflow.com/questions/41879327/deepreadonly-object-typescript
|
|
5
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Immutable.d.ts","sourceRoot":"","sources":["../../src/types/Immutable.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"Immutable.d.ts","sourceRoot":"","sources":["../../src/types/Immutable.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,oBAAY,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,kBAAkB,GACnD,CAAC,GACD,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GACxB,cAAc,CAAC,CAAC,CAAC,GACjB,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAC/B,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,GAClB,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GACtB,YAAY,CAAC,CAAC,CAAC,GACf,eAAe,CAAC,CAAC,CAAC,CAAC;AAEvB,aAAK,kBAAkB,GACnB,SAAS,GACT,IAAI,GACJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,CAAC;AACb,aAAK,cAAc,CAAC,CAAC,IAAI,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AACrD,aAAK,YAAY,CAAC,CAAC,EAAE,CAAC,IAAI,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AAClE,aAAK,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AACjD,aAAK,eAAe,CAAC,CAAC,IAAI;IAAE,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
/**
|
|
3
|
-
* `PickupIndex` is a specific type of
|
|
4
|
-
*
|
|
3
|
+
* `PickupIndex` is a specific type of number that represents a unique identifier for a pickup. Mods
|
|
4
|
+
* can signify that data structures handle collectibles by using this type.
|
|
5
|
+
*
|
|
6
|
+
* For more information, see the documentation for the `getPickupIndex` function.
|
|
5
7
|
*
|
|
6
8
|
* For example:
|
|
7
9
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PickupIndex.d.ts","sourceRoot":"","sources":["../../src/types/PickupIndex.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"PickupIndex.d.ts","sourceRoot":"","sources":["../../src/types/PickupIndex.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;AACH,oBAAY,WAAW,GAAG,GAAG,GAAG;IAC9B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;CACrC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="isaac-typescript-definitions" />
|
|
2
2
|
/**
|
|
3
3
|
* `PlayerIndex` is a specific type of number that represents a unique identifier for a player. Mods
|
|
4
|
-
* can signify that data structures handle `EntityPlayer` by using this type.
|
|
5
|
-
*
|
|
4
|
+
* can signify that data structures handle `EntityPlayer` by using this type.
|
|
5
|
+
*
|
|
6
|
+
* For more information, see the documentation for the `getPlayerIndex` function.
|
|
6
7
|
*
|
|
7
8
|
* For example:
|
|
8
9
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlayerIndex.d.ts","sourceRoot":"","sources":["../../src/types/PlayerIndex.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"PlayerIndex.d.ts","sourceRoot":"","sources":["../../src/types/PlayerIndex.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;AACH,oBAAY,WAAW,GAAG,GAAG,GAAG;IAAE,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
/// <reference types="typescript-to-lua/language-extensions" />
|
|
2
|
+
/**
|
|
3
|
+
* This is a type representing an Isaac API class like `Color` or `RNG` that has been written to the
|
|
4
|
+
* "save#.dat" file. It is used by the save data manager when reading and writing to that file.
|
|
5
|
+
*
|
|
6
|
+
* For the list of supported classes, see the `CopyableIsaacAPIClassType` enum.
|
|
7
|
+
*/
|
|
2
8
|
export declare type SerializedIsaacAPIClass = LuaMap<string, unknown> & {
|
|
3
9
|
readonly __serializedIsaacAPIClassBrand: symbol;
|
|
4
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SerializedIsaacAPIClass.d.ts","sourceRoot":"","sources":["../../src/types/SerializedIsaacAPIClass.ts"],"names":[],"mappings":";AAAA,oBAAY,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAC9D,QAAQ,CAAC,8BAA8B,EAAE,MAAM,CAAC;CACjD,CAAC"}
|
|
1
|
+
{"version":3,"file":"SerializedIsaacAPIClass.d.ts","sourceRoot":"","sources":["../../src/types/SerializedIsaacAPIClass.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;AACH,oBAAY,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAC9D,QAAQ,CAAC,8BAA8B,EAAE,MAAM,CAAC;CACjD,CAAC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/// <reference types="typescript-to-lua/language-extensions" />
|
|
2
|
+
/**
|
|
3
|
+
* This is a type representing a user-created class from TypeScript code.
|
|
4
|
+
*
|
|
5
|
+
* This type is used by the save data manager to when copying, serializing, and deserializing.
|
|
6
|
+
*/
|
|
2
7
|
export declare type TSTLClass = LuaMap<AnyNotNil, unknown> & {
|
|
3
8
|
readonly __tstlClassBrand: symbol;
|
|
4
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TSTLClass.d.ts","sourceRoot":"","sources":["../../src/types/TSTLClass.ts"],"names":[],"mappings":";AAAA,oBAAY,SAAS,GAAG,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG;IACnD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;CACnC,CAAC"}
|
|
1
|
+
{"version":3,"file":"TSTLClass.d.ts","sourceRoot":"","sources":["../../src/types/TSTLClass.ts"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,oBAAY,SAAS,GAAG,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG;IACnD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;CACnC,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { LevelStage, StageType } from "isaac-typescript-definitions";
|
|
2
|
+
/**
|
|
3
|
+
* This is the type that you need to specify when using the `spawnCustomTrapdoor` helper function.
|
|
4
|
+
*/
|
|
2
5
|
export declare type TrapdoorDestination = [stage: LevelStage, stageType: StageType] | [customStageName: string, floorNum: int];
|
|
3
6
|
//# sourceMappingURL=TrapdoorDestination.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TrapdoorDestination.d.ts","sourceRoot":"","sources":["../../src/types/TrapdoorDestination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAErE,oBAAY,mBAAmB,GAC3B,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,GACzC,CAAC,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"TrapdoorDestination.d.ts","sourceRoot":"","sources":["../../src/types/TrapdoorDestination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAErE;;GAEG;AACH,oBAAY,mBAAmB,GAC3B,CAAC,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,GACzC,CAAC,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isaacscript-common",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "Helper functions and features for IsaacScript mods.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isaac",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"main": "dist/index",
|
|
23
23
|
"types": "dist/index.d.ts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"isaac-typescript-definitions": "^3.2.
|
|
25
|
+
"isaac-typescript-definitions": "^3.2.4"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { isFunction, isPrimitive } from "../functions/types";
|
|
2
2
|
|
|
3
|
-
// eslint-disable-next-line isaacscript/complete-sentences-jsdoc
|
|
4
|
-
/**
|
|
5
|
-
* A function that creates the default value for your `DefaultMap`. For example, if it was a
|
|
6
|
-
* `DefaultMap` containing maps, the factory function would be: `() => new Map()`
|
|
7
|
-
*/
|
|
8
|
-
export type FactoryFunction<V, Args extends unknown[]> = (...args: Args) => V;
|
|
9
|
-
|
|
10
3
|
/**
|
|
11
4
|
* `DefaultMap` is a data structure that makes working with default values easier.
|
|
12
5
|
*
|
|
@@ -169,6 +162,13 @@ export class DefaultMap<Key, Value, Args extends unknown[] = []> extends Map<
|
|
|
169
162
|
}
|
|
170
163
|
}
|
|
171
164
|
|
|
165
|
+
// eslint-disable-next-line isaacscript/complete-sentences-jsdoc
|
|
166
|
+
/**
|
|
167
|
+
* A function that creates the default value for your `DefaultMap`. For example, if it was a
|
|
168
|
+
* `DefaultMap` containing maps, the factory function would be: `() => new Map()`
|
|
169
|
+
*/
|
|
170
|
+
export type FactoryFunction<V, Args extends unknown[]> = (...args: Args) => V;
|
|
171
|
+
|
|
172
172
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
173
173
|
function test() {
|
|
174
174
|
// Boolean
|
package/src/enums/AmbushType.ts
CHANGED
package/src/enums/CornerType.ts
CHANGED
package/src/enums/RockAltType.ts
CHANGED
|
@@ -91,7 +91,7 @@ const BACKDROP_ROOM_TYPE_SET: ReadonlySet<RoomType> = new Set([
|
|
|
91
91
|
RoomType.MINI_BOSS,
|
|
92
92
|
]);
|
|
93
93
|
|
|
94
|
-
export function
|
|
94
|
+
export function setCustomStageBackdrop(customStage: CustomStage): void {
|
|
95
95
|
const room = game.GetRoom();
|
|
96
96
|
const roomType = room.GetType();
|
|
97
97
|
const decorationSeed = room.GetDecorationSeed();
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "../../interfaces/CustomStageLua";
|
|
17
17
|
import { CustomStage, RoomTypeMap } from "../../interfaces/private/CustomStage";
|
|
18
18
|
import { saveDataManager } from "../saveDataManager/exports";
|
|
19
|
-
import {
|
|
19
|
+
import { setCustomStageBackdrop } from "./backdrop";
|
|
20
20
|
import {
|
|
21
21
|
convertVanillaTrapdoors,
|
|
22
22
|
removeUrnRewards,
|
|
@@ -196,7 +196,7 @@ function postNewRoomReordered() {
|
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
setCustomStageBackdrop(customStage);
|
|
200
200
|
setShadows(customStage);
|
|
201
201
|
playVersusScreenAnimation(customStage);
|
|
202
202
|
}
|
|
@@ -9,7 +9,8 @@ export * as DebugDisplay from "./debugDisplay/exports";
|
|
|
9
9
|
export * as DeployJSONRoom from "./deployJSONRoom";
|
|
10
10
|
export * as DisableAllSound from "./disableAllSound";
|
|
11
11
|
export * as DisableInputs from "./disableInputs";
|
|
12
|
-
export * as
|
|
12
|
+
export * as ExtraConsoleCommandsInit from "./extraConsoleCommands/exports";
|
|
13
|
+
export * as ExtraConsoleCommandsList from "./extraConsoleCommands/listCommands";
|
|
13
14
|
export * as FadeInRemover from "./fadeInRemover";
|
|
14
15
|
export * as FastReset from "./fastReset";
|
|
15
16
|
export * as ForgottenSwitch from "./forgottenSwitch";
|