isaacscript-common 30.12.4 → 30.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.rollup.d.ts +17 -17
- package/dist/isaacscript-common.lua +2586 -2607
- package/dist/src/functions/array.d.ts +16 -0
- package/dist/src/functions/array.d.ts.map +1 -1
- package/dist/src/functions/array.lua +31 -3
- package/dist/src/functions/arrayLua.d.ts.map +1 -1
- package/dist/src/functions/pickupsSpecific.lua +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.lua +0 -8
- package/package.json +2 -2
- package/src/functions/array.ts +30 -4
- package/src/functions/arrayLua.ts +0 -2
- package/src/functions/pickupsSpecific.ts +1 -1
- package/src/index.ts +0 -1
- package/dist/src/functions/initArray.d.ts +0 -18
- package/dist/src/functions/initArray.d.ts.map +0 -1
- package/dist/src/functions/initArray.lua +0 -31
- package/src/functions/initArray.ts +0 -27
package/dist/index.rollup.d.ts
CHANGED
|
@@ -7556,23 +7556,6 @@ export declare function inGenesisRoom(): boolean;
|
|
|
7556
7556
|
*/
|
|
7557
7557
|
export declare function inHomeCloset(): boolean;
|
|
7558
7558
|
|
|
7559
|
-
/**
|
|
7560
|
-
* Initializes an array with all of the elements containing the specified default value.
|
|
7561
|
-
*
|
|
7562
|
-
* The provided default value will be copied with the `deepCopy` function before adding it to the
|
|
7563
|
-
* new array. Thus, you can initialize an array of arrays, or an array of maps, and so on. (If the
|
|
7564
|
-
* `deepCopy` function was not used, then all of the array elements would just be references to the
|
|
7565
|
-
* same underlying data structure.)
|
|
7566
|
-
*
|
|
7567
|
-
* For example:
|
|
7568
|
-
*
|
|
7569
|
-
* ```ts
|
|
7570
|
-
* const arrayWithZeroes = initArray(0, 10); // Has 10 elements of 0.
|
|
7571
|
-
* const arrayWithArrays = initArray([0], 20); // Has 20 elements of an array with a 0 in it.
|
|
7572
|
-
* ```
|
|
7573
|
-
*/
|
|
7574
|
-
export declare function initArray<T>(defaultValue: T, size: int): T[];
|
|
7575
|
-
|
|
7576
7559
|
/**
|
|
7577
7560
|
* Helper function to instantiate an array of mod features all at once. Use this function if your
|
|
7578
7561
|
* mod uses the pattern of expressing mod features as `ModFeature` classes.
|
|
@@ -13045,6 +13028,23 @@ export declare const NEW_FLOOR_STARTING_POSITION_NORMAL_MODE: Readonly<Vector>;
|
|
|
13045
13028
|
*/
|
|
13046
13029
|
export declare const NEW_RUN_PLAYER_STARTING_POSITION: Readonly<Vector>;
|
|
13047
13030
|
|
|
13031
|
+
/**
|
|
13032
|
+
* Initializes an array with all of the elements containing the specified default value.
|
|
13033
|
+
*
|
|
13034
|
+
* The provided default value will be copied with the `deepCopy` function before adding it to the
|
|
13035
|
+
* new array. Thus, you can initialize an array of arrays, or an array of maps, and so on. (If the
|
|
13036
|
+
* `deepCopy` function was not used, then all of the array elements would just be references to the
|
|
13037
|
+
* same underlying data structure.)
|
|
13038
|
+
*
|
|
13039
|
+
* For example:
|
|
13040
|
+
*
|
|
13041
|
+
* ```ts
|
|
13042
|
+
* const arrayWithZeroes = newArray(0, 10); // Has 10 elements of 0.
|
|
13043
|
+
* const arrayWithArrays = newArray([0], 20); // Has 20 elements of an array with a 0 in it.
|
|
13044
|
+
* ```
|
|
13045
|
+
*/
|
|
13046
|
+
export declare function newArray<T>(defaultValue: T, size: int): T[];
|
|
13047
|
+
|
|
13048
13048
|
/**
|
|
13049
13049
|
* Constructor for a `ChargeBarSprites` object. For more information, see the `renderChargeBar`
|
|
13050
13050
|
* helper function.
|