isaacscript-common 27.5.2 → 27.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.rollup.d.ts +8 -1
- package/dist/isaacscript-common.lua +52 -7
- package/dist/src/classes/private/CustomCallback.d.ts.map +1 -1
- package/dist/src/classes/private/CustomCallback.lua +3 -2
- package/dist/src/functions/array.d.ts +1 -1
- package/dist/src/functions/array.d.ts.map +1 -1
- package/dist/src/functions/sort.d.ts +6 -0
- package/dist/src/functions/sort.d.ts.map +1 -1
- package/dist/src/functions/sort.lua +48 -4
- package/dist/src/functions/string.d.ts.map +1 -1
- package/dist/src/functions/string.lua +3 -0
- package/dist/src/indexLua.d.ts +186 -0
- package/dist/src/indexLua.d.ts.map +1 -0
- package/dist/src/indexLua.lua +1114 -0
- package/package.json +1 -1
- package/src/classes/private/CustomCallback.ts +5 -2
- package/src/functions/array.ts +1 -1
- package/src/functions/sort.ts +81 -4
- package/src/functions/string.ts +4 -0
package/dist/index.rollup.d.ts
CHANGED
|
@@ -941,7 +941,7 @@ export declare function arrayRemoveInPlace<T>(array: T[], ...elementsToRemove: T
|
|
|
941
941
|
/** Helper function to convert a set of flags to a single `BitFlags` object. */
|
|
942
942
|
export declare function arrayToBitFlags<T extends BitFlag | BitFlag128>(array: T[] | readonly T[]): BitFlags<T>;
|
|
943
943
|
|
|
944
|
-
export declare function arrayToString
|
|
944
|
+
export declare function arrayToString(array: unknown[]): string;
|
|
945
945
|
|
|
946
946
|
/**
|
|
947
947
|
* Helper function to safely cast a `number` to a `CardType`. (This is better than using the `as`
|
|
@@ -15394,6 +15394,13 @@ export declare function spawnWithSeed(entityType: EntityType, variant: int, subT
|
|
|
15394
15394
|
*/
|
|
15395
15395
|
export declare function spriteEquals(sprite1: Sprite, sprite2: Sprite, layerID: int, xStart: int, xFinish: int, xIncrement: int, yStart: int, yFinish: int, yIncrement: int): boolean;
|
|
15396
15396
|
|
|
15397
|
+
/**
|
|
15398
|
+
* Helper function to sort an array in a stable way.
|
|
15399
|
+
*
|
|
15400
|
+
* This is useful because by default, the transpiled `Array.sort` method from TSTL is not stable.
|
|
15401
|
+
*/
|
|
15402
|
+
export declare function stableSort<T>(array: T[], sortFunc?: (a: T, b: T) => -1 | 0 | 1): T[];
|
|
15403
|
+
|
|
15397
15404
|
declare class StageHistory extends Feature {
|
|
15398
15405
|
private postNewLevelReordered;
|
|
15399
15406
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 27.
|
|
3
|
+
isaacscript-common 27.6.0
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -15536,6 +15536,8 @@ end
|
|
|
15536
15536
|
return ____exports
|
|
15537
15537
|
end,
|
|
15538
15538
|
["src.functions.sort"] = function(...)
|
|
15539
|
+
local ____lualib = require("lualib_bundle")
|
|
15540
|
+
local __TS__ArraySlice = ____lualib.__TS__ArraySlice
|
|
15539
15541
|
local ____exports = {}
|
|
15540
15542
|
local ____types = require("src.functions.types")
|
|
15541
15543
|
local isNumber = ____types.isNumber
|
|
@@ -15543,10 +15545,10 @@ local isString = ____types.isString
|
|
|
15543
15545
|
local isTable = ____types.isTable
|
|
15544
15546
|
local function sortNormal(self, a, b)
|
|
15545
15547
|
if not isNumber(nil, a) and not isString(nil, a) then
|
|
15546
|
-
error("Failed to sort since the first value was not a number or string
|
|
15548
|
+
error("Failed to normal sort since the first value was not a number or string and was instead: " .. type(a))
|
|
15547
15549
|
end
|
|
15548
15550
|
if not isNumber(nil, b) and not isString(nil, b) then
|
|
15549
|
-
error("Failed to sort since the second value was not a number or string
|
|
15551
|
+
error("Failed to normal sort since the second value was not a number or string and was instead: " .. type(b))
|
|
15550
15552
|
end
|
|
15551
15553
|
if a < b then
|
|
15552
15554
|
return -1
|
|
@@ -15559,10 +15561,10 @@ end
|
|
|
15559
15561
|
function ____exports.sortObjectArrayByKey(self, key)
|
|
15560
15562
|
return function(____, a, b)
|
|
15561
15563
|
if not isTable(nil, a) then
|
|
15562
|
-
error(("Failed to sort an object by the key of \"" .. key) .. "\" since the first element was not a table
|
|
15564
|
+
error((("Failed to sort an object array by the key of \"" .. key) .. "\" since the first element was not a table and was instead: ") .. type(a))
|
|
15563
15565
|
end
|
|
15564
15566
|
if not isTable(nil, b) then
|
|
15565
|
-
error(("Failed to sort an object by the key of \"" .. key) .. "\" since the second element was not a table.")
|
|
15567
|
+
error(((("Failed to sort an object array by the key of \"" .. key) .. "\" since the second element was not a table and was instead: ") .. type(b)) .. ".")
|
|
15566
15568
|
end
|
|
15567
15569
|
local aValue = a[key]
|
|
15568
15570
|
local bValue = b[key]
|
|
@@ -15599,6 +15601,45 @@ function ____exports.sortTwoDimensionalArray(self, a, b)
|
|
|
15599
15601
|
end
|
|
15600
15602
|
return sortNormal(nil, firstElement1, firstElement2)
|
|
15601
15603
|
end
|
|
15604
|
+
function ____exports.stableSort(self, array, sortFunc)
|
|
15605
|
+
if sortFunc == nil then
|
|
15606
|
+
sortFunc = sortNormal
|
|
15607
|
+
end
|
|
15608
|
+
if #array <= 1 then
|
|
15609
|
+
return array
|
|
15610
|
+
end
|
|
15611
|
+
local middleIndex = math.floor(#array / 2)
|
|
15612
|
+
local leftArray = __TS__ArraySlice(array, 0, middleIndex)
|
|
15613
|
+
local rightArray = __TS__ArraySlice(array, middleIndex)
|
|
15614
|
+
local sortedLeftArray = ____exports.stableSort(nil, leftArray, sortFunc)
|
|
15615
|
+
local sortedRightArray = ____exports.stableSort(nil, rightArray, sortFunc)
|
|
15616
|
+
local mergedArray = {}
|
|
15617
|
+
local leftIndex = 0
|
|
15618
|
+
local rightIndex = 0
|
|
15619
|
+
while leftIndex < #sortedLeftArray and rightIndex < #sortedRightArray do
|
|
15620
|
+
local left = sortedLeftArray[leftIndex + 1]
|
|
15621
|
+
local right = sortedRightArray[rightIndex + 1]
|
|
15622
|
+
local sortResult = sortFunc(nil, left, right)
|
|
15623
|
+
if sortResult == -1 or sortResult == 0 then
|
|
15624
|
+
mergedArray[#mergedArray + 1] = left
|
|
15625
|
+
leftIndex = leftIndex + 1
|
|
15626
|
+
else
|
|
15627
|
+
mergedArray[#mergedArray + 1] = right
|
|
15628
|
+
rightIndex = rightIndex + 1
|
|
15629
|
+
end
|
|
15630
|
+
end
|
|
15631
|
+
while leftIndex < #sortedLeftArray do
|
|
15632
|
+
local left = sortedLeftArray[leftIndex + 1]
|
|
15633
|
+
mergedArray[#mergedArray + 1] = left
|
|
15634
|
+
leftIndex = leftIndex + 1
|
|
15635
|
+
end
|
|
15636
|
+
while rightIndex < #sortedRightArray do
|
|
15637
|
+
local right = sortedRightArray[rightIndex + 1]
|
|
15638
|
+
mergedArray[#mergedArray + 1] = right
|
|
15639
|
+
rightIndex = rightIndex + 1
|
|
15640
|
+
end
|
|
15641
|
+
return mergedArray
|
|
15642
|
+
end
|
|
15602
15643
|
return ____exports
|
|
15603
15644
|
end,
|
|
15604
15645
|
["src.classes.DefaultMap"] = function(...)
|
|
@@ -15803,6 +15844,9 @@ local __TS__StringSlice = ____lualib.__TS__StringSlice
|
|
|
15803
15844
|
local __TS__StringEndsWith = ____lualib.__TS__StringEndsWith
|
|
15804
15845
|
local ____exports = {}
|
|
15805
15846
|
function ____exports.capitalizeFirstLetter(self, ____string)
|
|
15847
|
+
if ____string == "" then
|
|
15848
|
+
return ____string
|
|
15849
|
+
end
|
|
15806
15850
|
local firstCharacter = string.sub(____string, 1, 1)
|
|
15807
15851
|
local capitalizedFirstLetter = string.upper(firstCharacter)
|
|
15808
15852
|
local restOfString = string.sub(____string, 2)
|
|
@@ -17918,7 +17962,6 @@ local ____lualib = require("lualib_bundle")
|
|
|
17918
17962
|
local __TS__Class = ____lualib.__TS__Class
|
|
17919
17963
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
17920
17964
|
local __TS__Spread = ____lualib.__TS__Spread
|
|
17921
|
-
local __TS__ArraySort = ____lualib.__TS__ArraySort
|
|
17922
17965
|
local __TS__ArrayFindIndex = ____lualib.__TS__ArrayFindIndex
|
|
17923
17966
|
local __TS__ArraySplice = ____lualib.__TS__ArraySplice
|
|
17924
17967
|
local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
|
|
@@ -17927,6 +17970,7 @@ local ____log = require("src.functions.log")
|
|
|
17927
17970
|
local log = ____log.log
|
|
17928
17971
|
local ____sort = require("src.functions.sort")
|
|
17929
17972
|
local sortObjectArrayByKey = ____sort.sortObjectArrayByKey
|
|
17973
|
+
local stableSort = ____sort.stableSort
|
|
17930
17974
|
local ____tstlClass = require("src.functions.tstlClass")
|
|
17931
17975
|
local getTSTLClassName = ____tstlClass.getTSTLClassName
|
|
17932
17976
|
local ____Feature = require("src.classes.private.Feature")
|
|
@@ -17962,7 +18006,8 @@ function CustomCallback.prototype.addSubscriber(self, priority, callbackFunc, ..
|
|
|
17962
18006
|
local subscription = {priority = priority, callbackFunc = callbackFunc, optionalArgs = optionalArgs}
|
|
17963
18007
|
local ____self_subscriptions_0 = self.subscriptions
|
|
17964
18008
|
____self_subscriptions_0[#____self_subscriptions_0 + 1] = subscription
|
|
17965
|
-
|
|
18009
|
+
self.subscriptions = stableSort(
|
|
18010
|
+
nil,
|
|
17966
18011
|
self.subscriptions,
|
|
17967
18012
|
sortObjectArrayByKey(nil, "priority")
|
|
17968
18013
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomCallback.d.ts","sourceRoot":"","sources":["../../../../src/classes/private/CustomCallback.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,8DAA8D,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAIlE,OAAO,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,OAAO,EAAE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OAAO;IACf,OAAO,CAAC,aAAa,CAA8B;IAE5C,aAAa,CAClB,QAAQ,EAAE,gBAAgB,GAAG,GAAG,EAChC,YAAY,EAAE,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC/C,GAAG,YAAY,EAAE,WAAW,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,GAC3D,IAAI;IAaP;;;OAGG;IACI,gBAAgB,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;IAYnE,IAAI,gBACI,SAAS,CAAC,CAAC,KACvB,WAAW,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAc9C;IAEF;;;OAGG;IACH,SAAS,CAAC,UAAU,EAAE,CACpB,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,EACrB,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,KAC1B,OAAO,CAAc;IAEnB,gBAAgB,IAAI,IAAI;CAYhC"}
|
|
@@ -2,7 +2,6 @@ local ____lualib = require("lualib_bundle")
|
|
|
2
2
|
local __TS__Class = ____lualib.__TS__Class
|
|
3
3
|
local __TS__ClassExtends = ____lualib.__TS__ClassExtends
|
|
4
4
|
local __TS__Spread = ____lualib.__TS__Spread
|
|
5
|
-
local __TS__ArraySort = ____lualib.__TS__ArraySort
|
|
6
5
|
local __TS__ArrayFindIndex = ____lualib.__TS__ArrayFindIndex
|
|
7
6
|
local __TS__ArraySplice = ____lualib.__TS__ArraySplice
|
|
8
7
|
local __TS__ArrayForEach = ____lualib.__TS__ArrayForEach
|
|
@@ -11,6 +10,7 @@ local ____log = require("src.functions.log")
|
|
|
11
10
|
local log = ____log.log
|
|
12
11
|
local ____sort = require("src.functions.sort")
|
|
13
12
|
local sortObjectArrayByKey = ____sort.sortObjectArrayByKey
|
|
13
|
+
local stableSort = ____sort.stableSort
|
|
14
14
|
local ____tstlClass = require("src.functions.tstlClass")
|
|
15
15
|
local getTSTLClassName = ____tstlClass.getTSTLClassName
|
|
16
16
|
local ____Feature = require("src.classes.private.Feature")
|
|
@@ -48,7 +48,8 @@ function CustomCallback.prototype.addSubscriber(self, priority, callbackFunc, ..
|
|
|
48
48
|
local subscription = {priority = priority, callbackFunc = callbackFunc, optionalArgs = optionalArgs}
|
|
49
49
|
local ____self_subscriptions_0 = self.subscriptions
|
|
50
50
|
____self_subscriptions_0[#____self_subscriptions_0 + 1] = subscription
|
|
51
|
-
|
|
51
|
+
self.subscriptions = stableSort(
|
|
52
|
+
nil,
|
|
52
53
|
self.subscriptions,
|
|
53
54
|
sortObjectArrayByKey(nil, "priority")
|
|
54
55
|
)
|
|
@@ -74,7 +74,7 @@ export declare function arrayRemoveIndex<T>(originalArray: T[] | readonly T[], .
|
|
|
74
74
|
* @returns Whether or not any array elements were removed.
|
|
75
75
|
*/
|
|
76
76
|
export declare function arrayRemoveIndexInPlace<T>(array: T[], ...indexesToRemove: int[]): boolean;
|
|
77
|
-
export declare function arrayToString
|
|
77
|
+
export declare function arrayToString(array: unknown[]): string;
|
|
78
78
|
/**
|
|
79
79
|
* Helper function to combine two or more arrays. Returns a new array that is the composition of all
|
|
80
80
|
* of the specified arrays.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../../src/functions/array.ts"],"names":[],"mappings":";;;AAMA;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC3B,MAAM,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,EAC1B,MAAM,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,GACzB,OAAO,CAST;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC3B,aAAa,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,EACjC,GAAG,gBAAgB,EAAE,CAAC,EAAE,GACvB,CAAC,EAAE,CAIL;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,c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AE,GAAG,EAAE,GAAG,OAAO,CAavD;AAED,iEAAiE;AACjE,wBAAgB,cAAc,CAAC,CAAC,EAC9B,YAAY,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,EAChC,WAAW,EAAE,KAAK,CAAC,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,CAAC,GACrC,OAAO,CAET;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,aAAa,EAAE,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,EACjC,SAAS,GAAE,IAAI,GAAG,GAAqB,GACtC,CAAC,EAAE,CAKL;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,KAAK,EAAE,CAAC,EAAE,EACV,SAAS,GAAE,IAAI,GAAG,GAAqB,GACtC,IAAI,CAWN;AAED,+DAA+D;AAC/D,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,MAAM,EAAE,GAAG,MAAM,CAEpE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAM3E"}
|
|
@@ -35,4 +35,10 @@ export declare function sortObjectArrayByKey(key: string): (a: unknown, b: unkno
|
|
|
35
35
|
* https://stackoverflow.com/questions/16096872/how-to-sort-2-dimensional-array-by-column-value
|
|
36
36
|
*/
|
|
37
37
|
export declare function sortTwoDimensionalArray<T>(a: T[], b: T[]): -1 | 0 | 1;
|
|
38
|
+
/**
|
|
39
|
+
* Helper function to sort an array in a stable way.
|
|
40
|
+
*
|
|
41
|
+
* This is useful because by default, the transpiled `Array.sort` method from TSTL is not stable.
|
|
42
|
+
*/
|
|
43
|
+
export declare function stableSort<T>(array: T[], sortFunc?: (a: T, b: T) => -1 | 0 | 1): T[];
|
|
38
44
|
//# sourceMappingURL=sort.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../../src/functions/sort.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../../src/functions/sort.ts"],"names":[],"mappings":"AA8BA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,OACnC,OAAO,KAAK,OAAO,KAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAsB5C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAiDrE;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAC1B,KAAK,EAAE,CAAC,EAAE,EACV,QAAQ,GAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,GAAG,CAAc,GAChD,CAAC,EAAE,CAuDL"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__ArraySlice = ____lualib.__TS__ArraySlice
|
|
1
3
|
local ____exports = {}
|
|
2
4
|
local ____types = require("src.functions.types")
|
|
3
5
|
local isNumber = ____types.isNumber
|
|
@@ -5,10 +7,10 @@ local isString = ____types.isString
|
|
|
5
7
|
local isTable = ____types.isTable
|
|
6
8
|
local function sortNormal(self, a, b)
|
|
7
9
|
if not isNumber(nil, a) and not isString(nil, a) then
|
|
8
|
-
error("Failed to sort since the first value was not a number or string
|
|
10
|
+
error("Failed to normal sort since the first value was not a number or string and was instead: " .. type(a))
|
|
9
11
|
end
|
|
10
12
|
if not isNumber(nil, b) and not isString(nil, b) then
|
|
11
|
-
error("Failed to sort since the second value was not a number or string
|
|
13
|
+
error("Failed to normal sort since the second value was not a number or string and was instead: " .. type(b))
|
|
12
14
|
end
|
|
13
15
|
if a < b then
|
|
14
16
|
return -1
|
|
@@ -38,10 +40,10 @@ end
|
|
|
38
40
|
function ____exports.sortObjectArrayByKey(self, key)
|
|
39
41
|
return function(____, a, b)
|
|
40
42
|
if not isTable(nil, a) then
|
|
41
|
-
error(("Failed to sort an object by the key of \"" .. key) .. "\" since the first element was not a table
|
|
43
|
+
error((("Failed to sort an object array by the key of \"" .. key) .. "\" since the first element was not a table and was instead: ") .. type(a))
|
|
42
44
|
end
|
|
43
45
|
if not isTable(nil, b) then
|
|
44
|
-
error(("Failed to sort an object by the key of \"" .. key) .. "\" since the second element was not a table.")
|
|
46
|
+
error(((("Failed to sort an object array by the key of \"" .. key) .. "\" since the second element was not a table and was instead: ") .. type(b)) .. ".")
|
|
45
47
|
end
|
|
46
48
|
local aValue = a[key]
|
|
47
49
|
local bValue = b[key]
|
|
@@ -92,4 +94,46 @@ function ____exports.sortTwoDimensionalArray(self, a, b)
|
|
|
92
94
|
end
|
|
93
95
|
return sortNormal(nil, firstElement1, firstElement2)
|
|
94
96
|
end
|
|
97
|
+
--- Helper function to sort an array in a stable way.
|
|
98
|
+
--
|
|
99
|
+
-- This is useful because by default, the transpiled `Array.sort` method from TSTL is not stable.
|
|
100
|
+
function ____exports.stableSort(self, array, sortFunc)
|
|
101
|
+
if sortFunc == nil then
|
|
102
|
+
sortFunc = sortNormal
|
|
103
|
+
end
|
|
104
|
+
if #array <= 1 then
|
|
105
|
+
return array
|
|
106
|
+
end
|
|
107
|
+
local middleIndex = math.floor(#array / 2)
|
|
108
|
+
local leftArray = __TS__ArraySlice(array, 0, middleIndex)
|
|
109
|
+
local rightArray = __TS__ArraySlice(array, middleIndex)
|
|
110
|
+
local sortedLeftArray = ____exports.stableSort(nil, leftArray, sortFunc)
|
|
111
|
+
local sortedRightArray = ____exports.stableSort(nil, rightArray, sortFunc)
|
|
112
|
+
local mergedArray = {}
|
|
113
|
+
local leftIndex = 0
|
|
114
|
+
local rightIndex = 0
|
|
115
|
+
while leftIndex < #sortedLeftArray and rightIndex < #sortedRightArray do
|
|
116
|
+
local left = sortedLeftArray[leftIndex + 1]
|
|
117
|
+
local right = sortedRightArray[rightIndex + 1]
|
|
118
|
+
local sortResult = sortFunc(nil, left, right)
|
|
119
|
+
if sortResult == -1 or sortResult == 0 then
|
|
120
|
+
mergedArray[#mergedArray + 1] = left
|
|
121
|
+
leftIndex = leftIndex + 1
|
|
122
|
+
else
|
|
123
|
+
mergedArray[#mergedArray + 1] = right
|
|
124
|
+
rightIndex = rightIndex + 1
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
while leftIndex < #sortedLeftArray do
|
|
128
|
+
local left = sortedLeftArray[leftIndex + 1]
|
|
129
|
+
mergedArray[#mergedArray + 1] = left
|
|
130
|
+
leftIndex = leftIndex + 1
|
|
131
|
+
end
|
|
132
|
+
while rightIndex < #sortedRightArray do
|
|
133
|
+
local right = sortedRightArray[rightIndex + 1]
|
|
134
|
+
mergedArray[#mergedArray + 1] = right
|
|
135
|
+
rightIndex = rightIndex + 1
|
|
136
|
+
end
|
|
137
|
+
return mergedArray
|
|
138
|
+
end
|
|
95
139
|
return ____exports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../src/functions/string.ts"],"names":[],"mappings":"AAAA,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../src/functions/string.ts"],"names":[],"mappings":"AAAA,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAU5D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,MAAM,EAAE,GACd,MAAM,GAAG,SAAS,CAYpB;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE7E;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,GAChB,MAAM,CAGR;AAED,8FAA8F;AAC9F,wBAAgB,+BAA+B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAGnE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,GAAG,UAAU,EAAE,MAAM,EAAE,GACtB,MAAM,CAMR;AAED,gGAAgG;AAChG,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAMjE;AAED,gGAAgG;AAChG,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAOjE"}
|
|
@@ -7,6 +7,9 @@ local __TS__StringSlice = ____lualib.__TS__StringSlice
|
|
|
7
7
|
local __TS__StringEndsWith = ____lualib.__TS__StringEndsWith
|
|
8
8
|
local ____exports = {}
|
|
9
9
|
function ____exports.capitalizeFirstLetter(self, ____string)
|
|
10
|
+
if ____string == "" then
|
|
11
|
+
return ____string
|
|
12
|
+
end
|
|
10
13
|
local firstCharacter = string.sub(____string, 1, 1)
|
|
11
14
|
local capitalizedFirstLetter = string.upper(firstCharacter)
|
|
12
15
|
local restOfString = string.sub(____string, 2)
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
export * from "./classes/DefaultMap";
|
|
2
|
+
export * from "./classes/ModFeature";
|
|
3
|
+
export * from "./classes/ModUpgraded";
|
|
4
|
+
export * from "./core/cachedClasses";
|
|
5
|
+
export * from "./core/constants";
|
|
6
|
+
export * from "./core/constantsFirstLast";
|
|
7
|
+
export * from "./core/upgradeMod";
|
|
8
|
+
export * from "./enums/AmbushType";
|
|
9
|
+
export * from "./enums/CornerType";
|
|
10
|
+
export * from "./enums/HealthType";
|
|
11
|
+
export * from "./enums/ISCFeature";
|
|
12
|
+
export * from "./enums/LadderSubTypeCustom";
|
|
13
|
+
export * from "./enums/ModCallbackCustom";
|
|
14
|
+
export * from "./enums/MysteriousPaperEffect";
|
|
15
|
+
export * from "./enums/PocketItemType";
|
|
16
|
+
export * from "./enums/RockAltType";
|
|
17
|
+
export * from "./enums/SaveDataKey";
|
|
18
|
+
export * from "./enums/SerializationType";
|
|
19
|
+
export * from "./enums/SlotDestructionType";
|
|
20
|
+
export * from "./enums/StatType";
|
|
21
|
+
export * from "./functions/ambush";
|
|
22
|
+
export * from "./functions/array";
|
|
23
|
+
export * from "./functions/arrayLua";
|
|
24
|
+
export * from "./functions/benchmark";
|
|
25
|
+
export * from "./functions/bitSet128";
|
|
26
|
+
export * from "./functions/bitwise";
|
|
27
|
+
export * from "./functions/bombs";
|
|
28
|
+
export * from "./functions/bosses";
|
|
29
|
+
export * from "./functions/cards";
|
|
30
|
+
export * from "./functions/challenges";
|
|
31
|
+
export * from "./functions/characters";
|
|
32
|
+
export * from "./functions/charge";
|
|
33
|
+
export * from "./functions/chargeBar";
|
|
34
|
+
export * from "./functions/collectibles";
|
|
35
|
+
export * from "./functions/collectibleTag";
|
|
36
|
+
export * from "./functions/color";
|
|
37
|
+
export * from "./functions/console";
|
|
38
|
+
export * from "./functions/curses";
|
|
39
|
+
export * from "./functions/debugFunctions";
|
|
40
|
+
export * from "./functions/decorators";
|
|
41
|
+
export * from "./functions/deepCopy";
|
|
42
|
+
export * from "./functions/deepCopyTests";
|
|
43
|
+
export * from "./functions/dimensions";
|
|
44
|
+
export * from "./functions/direction";
|
|
45
|
+
export * from "./functions/doors";
|
|
46
|
+
export * from "./functions/easing";
|
|
47
|
+
export * from "./functions/effects";
|
|
48
|
+
export * from "./functions/emptyRoom";
|
|
49
|
+
export * from "./functions/entities";
|
|
50
|
+
export * from "./functions/entitiesSpecific";
|
|
51
|
+
export * from "./functions/entityTypes";
|
|
52
|
+
export * from "./functions/enums";
|
|
53
|
+
export * from "./functions/familiars";
|
|
54
|
+
export * from "./functions/flag";
|
|
55
|
+
export * from "./functions/globals";
|
|
56
|
+
export * from "./functions/gridEntities";
|
|
57
|
+
export * from "./functions/gridEntitiesSpecific";
|
|
58
|
+
export * from "./functions/gridIndex";
|
|
59
|
+
export * from "./functions/hex";
|
|
60
|
+
export * from "./functions/initArray";
|
|
61
|
+
export * from "./functions/input";
|
|
62
|
+
export * from "./functions/isaacAPIClass";
|
|
63
|
+
export * from "./functions/itemPool";
|
|
64
|
+
export * from "./functions/jsonHelpers";
|
|
65
|
+
export * from "./functions/jsonRoom";
|
|
66
|
+
export * from "./functions/kColor";
|
|
67
|
+
export * from "./functions/language";
|
|
68
|
+
export * from "./functions/level";
|
|
69
|
+
export * from "./functions/levelGrid";
|
|
70
|
+
export * from "./functions/log";
|
|
71
|
+
export * from "./functions/logEntities";
|
|
72
|
+
export * from "./functions/logMisc";
|
|
73
|
+
export * from "./functions/map";
|
|
74
|
+
export * from "./functions/math";
|
|
75
|
+
export * from "./functions/merge";
|
|
76
|
+
export * from "./functions/mergeTests";
|
|
77
|
+
export * from "./functions/minimap";
|
|
78
|
+
export * from "./functions/modFeatures";
|
|
79
|
+
export * from "./functions/nextStage";
|
|
80
|
+
export * from "./functions/npcs";
|
|
81
|
+
export * from "./functions/pickups";
|
|
82
|
+
export * from "./functions/pickupsSpecific";
|
|
83
|
+
export * from "./functions/pickupVariants";
|
|
84
|
+
export * from "./functions/pills";
|
|
85
|
+
export * from "./functions/playerCenter";
|
|
86
|
+
export * from "./functions/playerDataStructures";
|
|
87
|
+
export * from "./functions/playerHealth";
|
|
88
|
+
export * from "./functions/playerIndex";
|
|
89
|
+
export * from "./functions/players";
|
|
90
|
+
export * from "./functions/playerStats";
|
|
91
|
+
export * from "./functions/pocketItems";
|
|
92
|
+
export * from "./functions/positionVelocity";
|
|
93
|
+
export * from "./functions/pressurePlate";
|
|
94
|
+
export * from "./functions/projectiles";
|
|
95
|
+
export * from "./functions/random";
|
|
96
|
+
export * from "./functions/readOnly";
|
|
97
|
+
export * from "./functions/revive";
|
|
98
|
+
export * from "./functions/rng";
|
|
99
|
+
export * from "./functions/rockAlt";
|
|
100
|
+
export * from "./functions/roomData";
|
|
101
|
+
export * from "./functions/roomGrid";
|
|
102
|
+
export * from "./functions/rooms";
|
|
103
|
+
export * from "./functions/roomShape";
|
|
104
|
+
export * from "./functions/roomShapeWalls";
|
|
105
|
+
export * from "./functions/roomTransition";
|
|
106
|
+
export * from "./functions/run";
|
|
107
|
+
export * from "./functions/seeds";
|
|
108
|
+
export * from "./functions/serialization";
|
|
109
|
+
export * from "./functions/set";
|
|
110
|
+
export * from "./functions/slots";
|
|
111
|
+
export * from "./functions/sort";
|
|
112
|
+
export * from "./functions/sound";
|
|
113
|
+
export * from "./functions/spawnCollectible";
|
|
114
|
+
export * from "./functions/sprites";
|
|
115
|
+
export * from "./functions/stage";
|
|
116
|
+
export * from "./functions/stats";
|
|
117
|
+
export * from "./functions/string";
|
|
118
|
+
export * from "./functions/table";
|
|
119
|
+
export * from "./functions/tears";
|
|
120
|
+
export * from "./functions/transformations";
|
|
121
|
+
export * from "./functions/trinketGive";
|
|
122
|
+
export * from "./functions/trinkets";
|
|
123
|
+
export * from "./functions/tstlClass";
|
|
124
|
+
export * from "./functions/types";
|
|
125
|
+
export * from "./functions/ui";
|
|
126
|
+
export * from "./functions/utils";
|
|
127
|
+
export * from "./functions/vector";
|
|
128
|
+
export * from "./functions/weighted";
|
|
129
|
+
export * from "./interfaces/ChargeBarSprites";
|
|
130
|
+
export * from "./interfaces/Corner";
|
|
131
|
+
export * from "./interfaces/CustomStageTSConfig";
|
|
132
|
+
export * from "./interfaces/GridEntityCustomData";
|
|
133
|
+
export * from "./interfaces/JSONRoomsFile";
|
|
134
|
+
export * from "./interfaces/PlayerHealth";
|
|
135
|
+
export * from "./interfaces/PocketItemDescription";
|
|
136
|
+
export * from "./interfaces/RoomDescription";
|
|
137
|
+
export * from "./interfaces/SaveData";
|
|
138
|
+
export * from "./interfaces/StatTypeType";
|
|
139
|
+
export * from "./interfaces/TrinketSituation";
|
|
140
|
+
export * from "./interfaces/TSTLClassMetatable";
|
|
141
|
+
export * from "./maps/cardNameToTypeMap";
|
|
142
|
+
export * from "./maps/characterNameToTypeMap";
|
|
143
|
+
export * from "./maps/pillNameToEffectMap";
|
|
144
|
+
export * from "./maps/roomNameToTypeMap";
|
|
145
|
+
export * from "./maps/transformationNameToPlayerFormMap";
|
|
146
|
+
export * from "./objects/colors";
|
|
147
|
+
export * from "./objects/kColors";
|
|
148
|
+
export * from "./types/AllButFirst";
|
|
149
|
+
export * from "./types/AllButLast";
|
|
150
|
+
export * from "./types/AnyClass";
|
|
151
|
+
export * from "./types/AnyEntity";
|
|
152
|
+
export * from "./types/AnyFunction";
|
|
153
|
+
export * from "./types/AnyGridEntity";
|
|
154
|
+
export * from "./types/CollectibleIndex";
|
|
155
|
+
export * from "./types/ConversionHeartSubType";
|
|
156
|
+
export * from "./types/Decrement";
|
|
157
|
+
export * from "./types/EntityID";
|
|
158
|
+
export * from "./types/FunctionTuple";
|
|
159
|
+
export * from "./types/GridEntityID";
|
|
160
|
+
export * from "./types/HasFunction";
|
|
161
|
+
export * from "./types/Immutable";
|
|
162
|
+
export * from "./types/Increment";
|
|
163
|
+
export * from "./types/LowercaseKeys";
|
|
164
|
+
export * from "./types/NaturalNumbersLessThan";
|
|
165
|
+
export * from "./types/NaturalNumbersLessThanOrEqualTo";
|
|
166
|
+
export * from "./types/PickingUpItem";
|
|
167
|
+
export * from "./types/PickupIndex";
|
|
168
|
+
export * from "./types/PlayerIndex";
|
|
169
|
+
export * from "./types/PossibleStatType";
|
|
170
|
+
export * from "./types/PublicInterface";
|
|
171
|
+
export * from "./types/Range";
|
|
172
|
+
export * from "./types/ReadonlyMap";
|
|
173
|
+
export * from "./types/ReadonlySet";
|
|
174
|
+
export * from "./types/StartsWithLowercase";
|
|
175
|
+
export * from "./types/StartsWithUppercase";
|
|
176
|
+
export * from "./types/TSTLClass";
|
|
177
|
+
export * from "./types/Tuple";
|
|
178
|
+
export * from "./types/TupleToIntersection";
|
|
179
|
+
export * from "./types/TupleToUnion";
|
|
180
|
+
export * from "./types/TupleWithMaxLength";
|
|
181
|
+
export * from "./types/UnionToIntersection";
|
|
182
|
+
export * from "./types/UppercaseKeys";
|
|
183
|
+
export * from "./types/WeightedArray";
|
|
184
|
+
export * from "./types/Writable";
|
|
185
|
+
export * from "isaac-typescript-definitions";
|
|
186
|
+
//# sourceMappingURL=indexLua.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indexLua.d.ts","sourceRoot":"","sources":["../../../../../packages/isaacscript-common/src/indexLua.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mB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