isaacscript-common 25.0.0 → 25.0.1
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/isaacscript-common.lua +35 -43
- package/dist/src/arrays/cachedEnumValues.d.ts +1 -1
- package/dist/src/arrays/cachedEnumValues.d.ts.map +1 -1
- package/dist/src/arrays/cachedEnumValues.lua +1 -1
- package/dist/src/enums/{SerializationBrand.d.ts → private/SerializationBrand.d.ts} +0 -0
- package/dist/src/enums/private/SerializationBrand.d.ts.map +1 -0
- package/dist/src/enums/{SerializationBrand.lua → private/SerializationBrand.lua} +0 -0
- package/dist/src/functions/bitSet128.lua +1 -1
- package/dist/src/functions/color.lua +1 -1
- package/dist/src/functions/deepCopy.d.ts.map +1 -1
- package/dist/src/functions/deepCopy.lua +3 -2
- package/dist/src/functions/deepCopyTests.lua +1 -1
- package/dist/src/functions/kColor.lua +1 -1
- package/dist/src/functions/merge.d.ts.map +1 -1
- package/dist/src/functions/merge.lua +3 -2
- package/dist/src/functions/rng.lua +1 -1
- package/dist/src/functions/serialization.d.ts.map +1 -1
- package/dist/src/functions/serialization.lua +0 -20
- package/dist/src/functions/vector.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/dist/src/objects/isaacAPIClassTypeToBrand.d.ts +1 -1
- package/dist/src/objects/isaacAPIClassTypeToBrand.d.ts.map +1 -1
- package/dist/src/objects/isaacAPIClassTypeToBrand.lua +1 -1
- package/dist/src/serialization.d.ts +9 -0
- package/dist/src/serialization.d.ts.map +1 -0
- package/dist/src/serialization.lua +22 -0
- package/package.json +1 -1
- package/src/arrays/cachedEnumValues.ts +1 -1
- package/src/enums/{SerializationBrand.ts → private/SerializationBrand.ts} +0 -0
- package/src/functions/bitSet128.ts +1 -1
- package/src/functions/color.ts +1 -1
- package/src/functions/deepCopy.ts +2 -2
- package/src/functions/deepCopyTests.ts +1 -1
- package/src/functions/kColor.ts +1 -1
- package/src/functions/merge.ts +2 -2
- package/src/functions/rng.ts +1 -1
- package/src/functions/serialization.ts +1 -24
- package/src/functions/vector.ts +1 -1
- package/src/index.ts +0 -1
- package/src/objects/isaacAPIClassTypeToBrand.ts +1 -1
- package/src/serialization.ts +22 -0
- package/dist/index.rollup.d.ts +0 -15715
- package/dist/src/enums/SerializationBrand.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 25.0.
|
|
3
|
+
isaacscript-common 25.0.1
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -15770,7 +15770,7 @@ ____exports.fonts.terminus:Load("font/terminus.fnt")
|
|
|
15770
15770
|
____exports.fonts.upheaval:Load("font/upheaval.fnt")
|
|
15771
15771
|
return ____exports
|
|
15772
15772
|
end,
|
|
15773
|
-
["src.enums.SerializationBrand"] = function(...)
|
|
15773
|
+
["src.enums.private.SerializationBrand"] = function(...)
|
|
15774
15774
|
local ____exports = {}
|
|
15775
15775
|
____exports.SerializationBrand = {}
|
|
15776
15776
|
____exports.SerializationBrand.DEFAULT_MAP = "__TSTL_DEFAULT_MAP"
|
|
@@ -16084,7 +16084,7 @@ local ____exports = {}
|
|
|
16084
16084
|
local RECOMMENDED_SHIFT_IDX, OBJECT_NAME
|
|
16085
16085
|
local ____cachedClasses = require("src.core.cachedClasses")
|
|
16086
16086
|
local game = ____cachedClasses.game
|
|
16087
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
16087
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
16088
16088
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
16089
16089
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
16090
16090
|
local isaacAPIClassEquals = ____isaacAPIClass.isaacAPIClassEquals
|
|
@@ -16905,7 +16905,7 @@ return ____exports
|
|
|
16905
16905
|
["src.functions.bitSet128"] = function(...)
|
|
16906
16906
|
local ____exports = {}
|
|
16907
16907
|
local OBJECT_NAME
|
|
16908
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
16908
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
16909
16909
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
16910
16910
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
16911
16911
|
local isIsaacAPIClassOfType = ____isaacAPIClass.isIsaacAPIClassOfType
|
|
@@ -16970,7 +16970,7 @@ return ____exports
|
|
|
16970
16970
|
["src.functions.color"] = function(...)
|
|
16971
16971
|
local ____exports = {}
|
|
16972
16972
|
local OBJECT_NAME
|
|
16973
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
16973
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
16974
16974
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
16975
16975
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
16976
16976
|
local isaacAPIClassEquals = ____isaacAPIClass.isaacAPIClassEquals
|
|
@@ -17083,7 +17083,7 @@ return ____exports
|
|
|
17083
17083
|
["src.functions.kColor"] = function(...)
|
|
17084
17084
|
local ____exports = {}
|
|
17085
17085
|
local OBJECT_NAME
|
|
17086
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
17086
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
17087
17087
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
17088
17088
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
17089
17089
|
local isaacAPIClassEquals = ____isaacAPIClass.isaacAPIClassEquals
|
|
@@ -17483,7 +17483,7 @@ return ____exports
|
|
|
17483
17483
|
["src.functions.vector"] = function(...)
|
|
17484
17484
|
local ____exports = {}
|
|
17485
17485
|
local OBJECT_NAME
|
|
17486
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
17486
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
17487
17487
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
17488
17488
|
local ____direction = require("src.functions.direction")
|
|
17489
17489
|
local angleToDirection = ____direction.angleToDirection
|
|
@@ -20368,7 +20368,7 @@ local SoundEffect = ____isaac_2Dtypescript_2Ddefinitions.SoundEffect
|
|
|
20368
20368
|
local TrinketSlot = ____isaac_2Dtypescript_2Ddefinitions.TrinketSlot
|
|
20369
20369
|
local ____HealthType = require("src.enums.HealthType")
|
|
20370
20370
|
local HealthType = ____HealthType.HealthType
|
|
20371
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
20371
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
20372
20372
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
20373
20373
|
local ____StatType = require("src.enums.StatType")
|
|
20374
20374
|
local StatType = ____StatType.StatType
|
|
@@ -33419,13 +33419,32 @@ return ____exports
|
|
|
33419
33419
|
["src.classes.features.other.saveDataManager.constants"] = function(...)
|
|
33420
33420
|
local ____exports = {}
|
|
33421
33421
|
____exports.SAVE_DATA_MANAGER_DEBUG = false
|
|
33422
|
+
return ____exports
|
|
33423
|
+
end,
|
|
33424
|
+
["src.serialization"] = function(...)
|
|
33425
|
+
local ____lualib = require("lualib_bundle")
|
|
33426
|
+
local __TS__New = ____lualib.__TS__New
|
|
33427
|
+
local ____exports = {}
|
|
33428
|
+
local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
|
|
33429
|
+
local SERIALIZATION_BRAND_VALUES = ____cachedEnumValues.SERIALIZATION_BRAND_VALUES
|
|
33430
|
+
local ____types = require("src.functions.types")
|
|
33431
|
+
local isString = ____types.isString
|
|
33432
|
+
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
33433
|
+
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
33434
|
+
local SERIALIZATION_BRAND_SET = __TS__New(ReadonlySet, SERIALIZATION_BRAND_VALUES)
|
|
33435
|
+
function ____exports.isSerializationBrand(self, key)
|
|
33436
|
+
if not isString(nil, key) then
|
|
33437
|
+
return false
|
|
33438
|
+
end
|
|
33439
|
+
return SERIALIZATION_BRAND_SET:has(key)
|
|
33440
|
+
end
|
|
33422
33441
|
return ____exports
|
|
33423
33442
|
end,
|
|
33424
33443
|
["src.objects.isaacAPIClassTypeToBrand"] = function(...)
|
|
33425
33444
|
local ____exports = {}
|
|
33426
33445
|
local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
|
|
33427
33446
|
local CopyableIsaacAPIClassType = ____isaac_2Dtypescript_2Ddefinitions.CopyableIsaacAPIClassType
|
|
33428
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
33447
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
33429
33448
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
33430
33449
|
____exports.ISAAC_API_CLASS_TYPE_TO_BRAND = {
|
|
33431
33450
|
[CopyableIsaacAPIClassType.BIT_SET_128] = SerializationBrand.BIT_SET_128,
|
|
@@ -33438,7 +33457,6 @@ return ____exports
|
|
|
33438
33457
|
end,
|
|
33439
33458
|
["src.functions.serialization"] = function(...)
|
|
33440
33459
|
local ____lualib = require("lualib_bundle")
|
|
33441
|
-
local __TS__New = ____lualib.__TS__New
|
|
33442
33460
|
local __TS__TypeOf = ____lualib.__TS__TypeOf
|
|
33443
33461
|
local __TS__ObjectEntries = ____lualib.__TS__ObjectEntries
|
|
33444
33462
|
local __TS__ObjectValues = ____lualib.__TS__ObjectValues
|
|
@@ -33446,18 +33464,13 @@ local __TS__ArrayMap = ____lualib.__TS__ArrayMap
|
|
|
33446
33464
|
local __TS__ArraySome = ____lualib.__TS__ArraySome
|
|
33447
33465
|
local ____exports = {}
|
|
33448
33466
|
local getSerializedTableType
|
|
33449
|
-
local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
|
|
33450
|
-
local SERIALIZATION_BRAND_VALUES = ____cachedEnumValues.SERIALIZATION_BRAND_VALUES
|
|
33451
33467
|
local ____isaacAPIClassTypeToBrand = require("src.objects.isaacAPIClassTypeToBrand")
|
|
33452
33468
|
local ISAAC_API_CLASS_TYPE_TO_BRAND = ____isaacAPIClassTypeToBrand.ISAAC_API_CLASS_TYPE_TO_BRAND
|
|
33453
33469
|
local ____isaacAPIClassTypeToFunctions = require("src.objects.isaacAPIClassTypeToFunctions")
|
|
33454
33470
|
local ISAAC_API_CLASS_TYPE_TO_FUNCTIONS = ____isaacAPIClassTypeToFunctions.ISAAC_API_CLASS_TYPE_TO_FUNCTIONS
|
|
33455
|
-
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
33456
|
-
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
33457
33471
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
33458
33472
|
local getIsaacAPIClassName = ____isaacAPIClass.getIsaacAPIClassName
|
|
33459
33473
|
local ____types = require("src.functions.types")
|
|
33460
|
-
local isString = ____types.isString
|
|
33461
33474
|
local isTable = ____types.isTable
|
|
33462
33475
|
local isUserdata = ____types.isUserdata
|
|
33463
33476
|
function getSerializedTableType(self, serializedIsaacAPIClass)
|
|
@@ -33470,7 +33483,6 @@ function getSerializedTableType(self, serializedIsaacAPIClass)
|
|
|
33470
33483
|
end
|
|
33471
33484
|
return nil
|
|
33472
33485
|
end
|
|
33473
|
-
local SERIALIZATION_BRAND_SET = __TS__New(ReadonlySet, SERIALIZATION_BRAND_VALUES)
|
|
33474
33486
|
function ____exports.copyIsaacAPIClass(self, isaacAPIClass)
|
|
33475
33487
|
if not isUserdata(nil, isaacAPIClass) then
|
|
33476
33488
|
error("Failed to copy an Isaac API class since the provided object was of type: " .. __TS__TypeOf(isaacAPIClass))
|
|
@@ -33511,12 +33523,6 @@ function ____exports.isCopyableIsaacAPIClass(self, object)
|
|
|
33511
33523
|
function(____, identityFunction) return identityFunction(nil, object) end
|
|
33512
33524
|
)
|
|
33513
33525
|
end
|
|
33514
|
-
function ____exports.isSerializationBrand(self, key)
|
|
33515
|
-
if not isString(nil, key) then
|
|
33516
|
-
return false
|
|
33517
|
-
end
|
|
33518
|
-
return SERIALIZATION_BRAND_SET:has(key)
|
|
33519
|
-
end
|
|
33520
33526
|
function ____exports.isSerializedIsaacAPIClass(self, object)
|
|
33521
33527
|
local allFunctions = __TS__ObjectValues(ISAAC_API_CLASS_TYPE_TO_FUNCTIONS)
|
|
33522
33528
|
local isSerializedFunctions = __TS__ArrayMap(
|
|
@@ -33559,10 +33565,12 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
33559
33565
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
33560
33566
|
local ____constants = require("src.classes.features.other.saveDataManager.constants")
|
|
33561
33567
|
local SAVE_DATA_MANAGER_DEBUG = ____constants.SAVE_DATA_MANAGER_DEBUG
|
|
33562
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
33568
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
33563
33569
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
33564
33570
|
local ____SerializationType = require("src.enums.SerializationType")
|
|
33565
33571
|
local SerializationType = ____SerializationType.SerializationType
|
|
33572
|
+
local ____serialization = require("src.serialization")
|
|
33573
|
+
local isSerializationBrand = ____serialization.isSerializationBrand
|
|
33566
33574
|
local ____array = require("src.functions.array")
|
|
33567
33575
|
local isArray = ____array.isArray
|
|
33568
33576
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
@@ -33573,7 +33581,6 @@ local ____serialization = require("src.functions.serialization")
|
|
|
33573
33581
|
local copyIsaacAPIClass = ____serialization.copyIsaacAPIClass
|
|
33574
33582
|
local deserializeIsaacAPIClass = ____serialization.deserializeIsaacAPIClass
|
|
33575
33583
|
local isCopyableIsaacAPIClass = ____serialization.isCopyableIsaacAPIClass
|
|
33576
|
-
local isSerializationBrand = ____serialization.isSerializationBrand
|
|
33577
33584
|
local isSerializedIsaacAPIClass = ____serialization.isSerializedIsaacAPIClass
|
|
33578
33585
|
local serializeIsaacAPIClass = ____serialization.serializeIsaacAPIClass
|
|
33579
33586
|
local ____sort = require("src.functions.sort")
|
|
@@ -34120,10 +34127,12 @@ local ____exports = {}
|
|
|
34120
34127
|
local mergeSerializedArray, mergeSerializedTSTLObject, mergeSerializedTable
|
|
34121
34128
|
local ____constants = require("src.classes.features.other.saveDataManager.constants")
|
|
34122
34129
|
local SAVE_DATA_MANAGER_DEBUG = ____constants.SAVE_DATA_MANAGER_DEBUG
|
|
34123
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
34130
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
34124
34131
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
34125
34132
|
local ____SerializationType = require("src.enums.SerializationType")
|
|
34126
34133
|
local SerializationType = ____SerializationType.SerializationType
|
|
34134
|
+
local ____serialization = require("src.serialization")
|
|
34135
|
+
local isSerializationBrand = ____serialization.isSerializationBrand
|
|
34127
34136
|
local ____array = require("src.functions.array")
|
|
34128
34137
|
local isArray = ____array.isArray
|
|
34129
34138
|
local ____deepCopy = require("src.functions.deepCopy")
|
|
@@ -34132,7 +34141,6 @@ local ____log = require("src.functions.log")
|
|
|
34132
34141
|
local log = ____log.log
|
|
34133
34142
|
local ____serialization = require("src.functions.serialization")
|
|
34134
34143
|
local deserializeIsaacAPIClass = ____serialization.deserializeIsaacAPIClass
|
|
34135
|
-
local isSerializationBrand = ____serialization.isSerializationBrand
|
|
34136
34144
|
local isSerializedIsaacAPIClass = ____serialization.isSerializedIsaacAPIClass
|
|
34137
34145
|
local ____table = require("src.functions.table")
|
|
34138
34146
|
local clearTable = ____table.clearTable
|
|
@@ -45215,7 +45223,7 @@ local ____exports = {}
|
|
|
45215
45223
|
local copiedObjectIsTable, copiedObjectHasKeyAndValueString, copiedTableHasKeyAndValueNumber, copiedTableDoesNotCoerceTypes, copiedObjectHasNoReferencesForPrimitivesForward, copiedObjectHasNoReferencesForPrimitivesBackward, copiedObjectHasNoReferencesForArray, copiedObjectHasChildObject, copiedMapIsMap, copiedMapHasValue, copiedSetIsSet, copiedSetHasValue, copiedMapHasChildMap, copiedDefaultMapHasChildDefaultMap, copiedDefaultMapHasBrand, copiedSerializedMapHasStringKey, copiedSerializedMapHasNumberKey, copiedSerializedDefaultMapHasStringKey, copiedSerializedDefaultMapHasNumberKey
|
|
45216
45224
|
local ____DefaultMap = require("src.classes.DefaultMap")
|
|
45217
45225
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
45218
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
45226
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
45219
45227
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
45220
45228
|
local ____SerializationType = require("src.enums.SerializationType")
|
|
45221
45229
|
local SerializationType = ____SerializationType.SerializationType
|
|
@@ -52172,14 +52180,6 @@ do
|
|
|
52172
52180
|
end
|
|
52173
52181
|
end
|
|
52174
52182
|
end
|
|
52175
|
-
do
|
|
52176
|
-
local ____export = require("src.enums.SerializationBrand")
|
|
52177
|
-
for ____exportKey, ____exportValue in pairs(____export) do
|
|
52178
|
-
if ____exportKey ~= "default" then
|
|
52179
|
-
____exports[____exportKey] = ____exportValue
|
|
52180
|
-
end
|
|
52181
|
-
end
|
|
52182
|
-
end
|
|
52183
52183
|
do
|
|
52184
52184
|
local ____export = require("src.enums.SerializationType")
|
|
52185
52185
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
@@ -53280,14 +53280,6 @@ do
|
|
|
53280
53280
|
end
|
|
53281
53281
|
end
|
|
53282
53282
|
end
|
|
53283
|
-
do
|
|
53284
|
-
local ____export = require("src.enums.SerializationBrand")
|
|
53285
|
-
for ____exportKey, ____exportValue in pairs(____export) do
|
|
53286
|
-
if ____exportKey ~= "default" then
|
|
53287
|
-
____exports[____exportKey] = ____exportValue
|
|
53288
|
-
end
|
|
53289
|
-
end
|
|
53290
|
-
end
|
|
53291
53283
|
do
|
|
53292
53284
|
local ____export = require("src.enums.SerializationType")
|
|
53293
53285
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ActiveSlot, CacheFlag, ControllerIndex, DoorSlot, DoorSlotFlag, GridEntityType, GridEntityXMLType, ItemConfigCardType, ItemConfigTag, ItemPoolType, Keyboard, PillColor, PlayerForm, PocketItemSlot, RoomShape, SoundEffect, TrinketSlot } from "isaac-typescript-definitions";
|
|
2
2
|
import { HealthType } from "../enums/HealthType";
|
|
3
|
-
import { SerializationBrand } from "../enums/SerializationBrand";
|
|
3
|
+
import { SerializationBrand } from "../enums/private/SerializationBrand";
|
|
4
4
|
import { StatType } from "../enums/StatType";
|
|
5
5
|
export declare const ACTIVE_SLOT_VALUES: readonly ActiveSlot[];
|
|
6
6
|
export declare const CACHE_FLAG_VALUES: readonly CacheFlag[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cachedEnumValues.d.ts","sourceRoot":"","sources":["../../../src/arrays/cachedEnumValues.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,SAAS,EACT,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,UAAU,EACV,cAAc,EACd,SAAS,EACT,WAAW,EACX,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"cachedEnumValues.d.ts","sourceRoot":"","sources":["../../../src/arrays/cachedEnumValues.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,SAA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9B,CAAC;AAEhC,eAAO,MAAM,iBAAiB,EAAE,SAAS,SAAS,EAA6B,CAAC;AAEhF,eAAO,MAAM,0BAA0B,EAAE,SAAS,kBAAkB,EACjC,CAAC;AAEpC,eAAO,MAAM,mBAAmB,EAAE,SAAS,WAAW,EAC1B,CAAC;AAE7B,eAAO,MAAM,gBAAgB,EAAE,SAAS,QAAQ,EAA4B,CAAC;AAE7E,eAAO,MAAM,mBAAmB,EAAE,SAAS,WAAW,EAC1B,CAAC"}
|
|
@@ -19,7 +19,7 @@ local SoundEffect = ____isaac_2Dtypescript_2Ddefinitions.SoundEffect
|
|
|
19
19
|
local TrinketSlot = ____isaac_2Dtypescript_2Ddefinitions.TrinketSlot
|
|
20
20
|
local ____HealthType = require("src.enums.HealthType")
|
|
21
21
|
local HealthType = ____HealthType.HealthType
|
|
22
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
22
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
23
23
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
24
24
|
local ____StatType = require("src.enums.StatType")
|
|
25
25
|
local StatType = ____StatType.StatType
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SerializationBrand.d.ts","sourceRoot":"","sources":["../../../../src/enums/private/SerializationBrand.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,kBAAkB;IAE5B,WAAW,uBAAuB;IAClC,GAAG,eAAe;IAClB,GAAG,eAAe;IAGlB,WAAW,kBAAkB;IAC7B,KAAK,YAAY;IACjB,OAAO,cAAc;IACrB,GAAG,UAAU;IACb,MAAM,aAAa;IAEnB;;;OAGG;IACH,iBAAiB,6BAA6B;IAE9C;;;;;;;;;;OAUG;IACH,uBAAuB,mCAAmC;IAE1D;;;OAGG;IACH,UAAU,iBAAiB;CAC5B"}
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local OBJECT_NAME
|
|
3
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
3
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
4
4
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
5
5
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
6
6
|
local isIsaacAPIClassOfType = ____isaacAPIClass.isIsaacAPIClassOfType
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local OBJECT_NAME
|
|
3
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
3
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
4
4
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
5
5
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
6
6
|
local isaacAPIClassEquals = ____isaacAPIClass.isaacAPIClassEquals
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepCopy.d.ts","sourceRoot":"","sources":["../../../src/functions/deepCopy.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"deepCopy.d.ts","sourceRoot":"","sources":["../../../src/functions/deepCopy.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAuB7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAExB,KAAK,EAAE,CAAC,EACR,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,IAAI,EAC1C,oBAAoB,CAAC,EAAE,MAAM,EAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC5C,SAAS,CAAC,EAAE,OAAO,GAClB,CAAC,CAAC;AACL,wBAAgB,QAAQ,CAEtB,KAAK,EAAE,OAAO,EACd,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,CAAC,EAAE,MAAM,EAC7B,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC5C,SAAS,CAAC,EAAE,OAAO,GAClB,OAAO,CAAC"}
|
|
@@ -11,10 +11,12 @@ local ____DefaultMap = require("src.classes.DefaultMap")
|
|
|
11
11
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
12
12
|
local ____constants = require("src.classes.features.other.saveDataManager.constants")
|
|
13
13
|
local SAVE_DATA_MANAGER_DEBUG = ____constants.SAVE_DATA_MANAGER_DEBUG
|
|
14
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
14
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
15
15
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
16
16
|
local ____SerializationType = require("src.enums.SerializationType")
|
|
17
17
|
local SerializationType = ____SerializationType.SerializationType
|
|
18
|
+
local ____serialization = require("src.serialization")
|
|
19
|
+
local isSerializationBrand = ____serialization.isSerializationBrand
|
|
18
20
|
local ____array = require("src.functions.array")
|
|
19
21
|
local isArray = ____array.isArray
|
|
20
22
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
@@ -25,7 +27,6 @@ local ____serialization = require("src.functions.serialization")
|
|
|
25
27
|
local copyIsaacAPIClass = ____serialization.copyIsaacAPIClass
|
|
26
28
|
local deserializeIsaacAPIClass = ____serialization.deserializeIsaacAPIClass
|
|
27
29
|
local isCopyableIsaacAPIClass = ____serialization.isCopyableIsaacAPIClass
|
|
28
|
-
local isSerializationBrand = ____serialization.isSerializationBrand
|
|
29
30
|
local isSerializedIsaacAPIClass = ____serialization.isSerializedIsaacAPIClass
|
|
30
31
|
local serializeIsaacAPIClass = ____serialization.serializeIsaacAPIClass
|
|
31
32
|
local ____sort = require("src.functions.sort")
|
|
@@ -7,7 +7,7 @@ local ____exports = {}
|
|
|
7
7
|
local copiedObjectIsTable, copiedObjectHasKeyAndValueString, copiedTableHasKeyAndValueNumber, copiedTableDoesNotCoerceTypes, copiedObjectHasNoReferencesForPrimitivesForward, copiedObjectHasNoReferencesForPrimitivesBackward, copiedObjectHasNoReferencesForArray, copiedObjectHasChildObject, copiedMapIsMap, copiedMapHasValue, copiedSetIsSet, copiedSetHasValue, copiedMapHasChildMap, copiedDefaultMapHasChildDefaultMap, copiedDefaultMapHasBrand, copiedSerializedMapHasStringKey, copiedSerializedMapHasNumberKey, copiedSerializedDefaultMapHasStringKey, copiedSerializedDefaultMapHasNumberKey
|
|
8
8
|
local ____DefaultMap = require("src.classes.DefaultMap")
|
|
9
9
|
local DefaultMap = ____DefaultMap.DefaultMap
|
|
10
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
10
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
11
11
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
12
12
|
local ____SerializationType = require("src.enums.SerializationType")
|
|
13
13
|
local SerializationType = ____SerializationType.SerializationType
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local OBJECT_NAME
|
|
3
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
3
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
4
4
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
5
5
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
6
6
|
local isaacAPIClassEquals = ____isaacAPIClass.isaacAPIClassEquals
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/functions/merge.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../src/functions/merge.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAa7C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,KAAK,CACnB,SAAS,EACL,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,GAC1B,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,GACvB,GAAG,CAAC,SAAS,CAAC,EAClB,QAAQ,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,EACpC,oBAAoB,EAAE,MAAM,EAC5B,iBAAiB,2BAAiC,GACjD,IAAI,CAyCN"}
|
|
@@ -5,10 +5,12 @@ local ____exports = {}
|
|
|
5
5
|
local mergeSerializedArray, mergeSerializedTSTLObject, mergeSerializedTable
|
|
6
6
|
local ____constants = require("src.classes.features.other.saveDataManager.constants")
|
|
7
7
|
local SAVE_DATA_MANAGER_DEBUG = ____constants.SAVE_DATA_MANAGER_DEBUG
|
|
8
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
8
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
9
9
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
10
10
|
local ____SerializationType = require("src.enums.SerializationType")
|
|
11
11
|
local SerializationType = ____SerializationType.SerializationType
|
|
12
|
+
local ____serialization = require("src.serialization")
|
|
13
|
+
local isSerializationBrand = ____serialization.isSerializationBrand
|
|
12
14
|
local ____array = require("src.functions.array")
|
|
13
15
|
local isArray = ____array.isArray
|
|
14
16
|
local ____deepCopy = require("src.functions.deepCopy")
|
|
@@ -17,7 +19,6 @@ local ____log = require("src.functions.log")
|
|
|
17
19
|
local log = ____log.log
|
|
18
20
|
local ____serialization = require("src.functions.serialization")
|
|
19
21
|
local deserializeIsaacAPIClass = ____serialization.deserializeIsaacAPIClass
|
|
20
|
-
local isSerializationBrand = ____serialization.isSerializationBrand
|
|
21
22
|
local isSerializedIsaacAPIClass = ____serialization.isSerializedIsaacAPIClass
|
|
22
23
|
local ____table = require("src.functions.table")
|
|
23
24
|
local clearTable = ____table.clearTable
|
|
@@ -4,7 +4,7 @@ local ____exports = {}
|
|
|
4
4
|
local RECOMMENDED_SHIFT_IDX, OBJECT_NAME
|
|
5
5
|
local ____cachedClasses = require("src.core.cachedClasses")
|
|
6
6
|
local game = ____cachedClasses.game
|
|
7
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
7
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
8
8
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
9
9
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
10
10
|
local isaacAPIClassEquals = ____isaacAPIClass.isaacAPIClassEquals
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../../../src/functions/serialization.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../../../src/functions/serialization.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EAErB,iCAAiC,EACjC,uBAAuB,EAEvB,uBAAuB,EACxB,MAAM,yCAAyC,CAAC;AAIjD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,qBAAqB,EAC/D,aAAa,EAAE,CAAC,GACf,CAAC,CAoCH;AAED;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,SAAS,uBAAuB,EAE3C,uBAAuB,EAAE,WAAW,GACnC,uBAAuB,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAkChD;AAoBD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,OAAO,GACd,MAAM,IAAI,qBAAqB,CAIjC;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,OAAO,GACd,MAAM,IAAI,uBAAuB,CAQnC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,qBAAqB,EACpE,aAAa,EAAE,CAAC,GACf,iCAAiC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAoChD"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
local ____lualib = require("lualib_bundle")
|
|
2
|
-
local __TS__New = ____lualib.__TS__New
|
|
3
2
|
local __TS__TypeOf = ____lualib.__TS__TypeOf
|
|
4
3
|
local __TS__ObjectEntries = ____lualib.__TS__ObjectEntries
|
|
5
4
|
local __TS__ObjectValues = ____lualib.__TS__ObjectValues
|
|
@@ -7,18 +6,13 @@ local __TS__ArrayMap = ____lualib.__TS__ArrayMap
|
|
|
7
6
|
local __TS__ArraySome = ____lualib.__TS__ArraySome
|
|
8
7
|
local ____exports = {}
|
|
9
8
|
local getSerializedTableType
|
|
10
|
-
local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
|
|
11
|
-
local SERIALIZATION_BRAND_VALUES = ____cachedEnumValues.SERIALIZATION_BRAND_VALUES
|
|
12
9
|
local ____isaacAPIClassTypeToBrand = require("src.objects.isaacAPIClassTypeToBrand")
|
|
13
10
|
local ISAAC_API_CLASS_TYPE_TO_BRAND = ____isaacAPIClassTypeToBrand.ISAAC_API_CLASS_TYPE_TO_BRAND
|
|
14
11
|
local ____isaacAPIClassTypeToFunctions = require("src.objects.isaacAPIClassTypeToFunctions")
|
|
15
12
|
local ISAAC_API_CLASS_TYPE_TO_FUNCTIONS = ____isaacAPIClassTypeToFunctions.ISAAC_API_CLASS_TYPE_TO_FUNCTIONS
|
|
16
|
-
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
17
|
-
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
18
13
|
local ____isaacAPIClass = require("src.functions.isaacAPIClass")
|
|
19
14
|
local getIsaacAPIClassName = ____isaacAPIClass.getIsaacAPIClassName
|
|
20
15
|
local ____types = require("src.functions.types")
|
|
21
|
-
local isString = ____types.isString
|
|
22
16
|
local isTable = ____types.isTable
|
|
23
17
|
local isUserdata = ____types.isUserdata
|
|
24
18
|
function getSerializedTableType(self, serializedIsaacAPIClass)
|
|
@@ -31,7 +25,6 @@ function getSerializedTableType(self, serializedIsaacAPIClass)
|
|
|
31
25
|
end
|
|
32
26
|
return nil
|
|
33
27
|
end
|
|
34
|
-
local SERIALIZATION_BRAND_SET = __TS__New(ReadonlySet, SERIALIZATION_BRAND_VALUES)
|
|
35
28
|
--- Helper function to generically copy an Isaac API class without knowing what specific type of
|
|
36
29
|
-- class it is. (This is used by the save data manager.)
|
|
37
30
|
--
|
|
@@ -85,19 +78,6 @@ function ____exports.isCopyableIsaacAPIClass(self, object)
|
|
|
85
78
|
function(____, identityFunction) return identityFunction(nil, object) end
|
|
86
79
|
)
|
|
87
80
|
end
|
|
88
|
-
--- Helper function to check if a key of a table in the "save#.dat" file is a serialization brand
|
|
89
|
-
-- inserted by the save data manager (i.e. the `deepCopy` function).
|
|
90
|
-
--
|
|
91
|
-
-- This is marked internal because end-users would not normally be iterating through a serialized
|
|
92
|
-
-- object directly.
|
|
93
|
-
--
|
|
94
|
-
-- @internal
|
|
95
|
-
function ____exports.isSerializationBrand(self, key)
|
|
96
|
-
if not isString(nil, key) then
|
|
97
|
-
return false
|
|
98
|
-
end
|
|
99
|
-
return SERIALIZATION_BRAND_SET:has(key)
|
|
100
|
-
end
|
|
101
81
|
--- Helper function to generically check if a given Lua table is a serialized Isaac API class. (This
|
|
102
82
|
-- is used by the save data manager when reading data from the "save#.dat" file.)
|
|
103
83
|
--
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local OBJECT_NAME
|
|
3
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
3
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
4
4
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
5
5
|
local ____direction = require("src.functions.direction")
|
|
6
6
|
local angleToDirection = ____direction.angleToDirection
|
package/dist/src/index.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ export * from "./enums/MysteriousPaperEffect";
|
|
|
15
15
|
export * from "./enums/PocketItemType";
|
|
16
16
|
export * from "./enums/RockAltType";
|
|
17
17
|
export * from "./enums/SaveDataKey";
|
|
18
|
-
export * from "./enums/SerializationBrand";
|
|
19
18
|
export * from "./enums/SerializationType";
|
|
20
19
|
export * from "./enums/SlotDestructionType";
|
|
21
20
|
export * from "./enums/StatType";
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.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,2B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;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC"}
|
package/dist/src/index.lua
CHANGED
|
@@ -135,14 +135,6 @@ do
|
|
|
135
135
|
end
|
|
136
136
|
end
|
|
137
137
|
end
|
|
138
|
-
do
|
|
139
|
-
local ____export = require("src.enums.SerializationBrand")
|
|
140
|
-
for ____exportKey, ____exportValue in pairs(____export) do
|
|
141
|
-
if ____exportKey ~= "default" then
|
|
142
|
-
____exports[____exportKey] = ____exportValue
|
|
143
|
-
end
|
|
144
|
-
end
|
|
145
|
-
end
|
|
146
138
|
do
|
|
147
139
|
local ____export = require("src.enums.SerializationType")
|
|
148
140
|
for ____exportKey, ____exportValue in pairs(____export) do
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SerializationBrand } from "../enums/SerializationBrand";
|
|
1
|
+
import { SerializationBrand } from "../enums/private/SerializationBrand";
|
|
2
2
|
export declare const ISAAC_API_CLASS_TYPE_TO_BRAND: {
|
|
3
3
|
readonly BitSet128: SerializationBrand.BIT_SET_128;
|
|
4
4
|
readonly Color: SerializationBrand.COLOR;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isaacAPIClassTypeToBrand.d.ts","sourceRoot":"","sources":["../../../src/objects/isaacAPIClassTypeToBrand.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"isaacAPIClassTypeToBrand.d.ts","sourceRoot":"","sources":["../../../src/objects/isaacAPIClassTypeToBrand.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,eAAO,MAAM,6BAA6B;;;;;;CAMgC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
|
|
3
3
|
local CopyableIsaacAPIClassType = ____isaac_2Dtypescript_2Ddefinitions.CopyableIsaacAPIClassType
|
|
4
|
-
local ____SerializationBrand = require("src.enums.SerializationBrand")
|
|
4
|
+
local ____SerializationBrand = require("src.enums.private.SerializationBrand")
|
|
5
5
|
local SerializationBrand = ____SerializationBrand.SerializationBrand
|
|
6
6
|
____exports.ISAAC_API_CLASS_TYPE_TO_BRAND = {
|
|
7
7
|
[CopyableIsaacAPIClassType.BIT_SET_128] = SerializationBrand.BIT_SET_128,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helper function to check if a key of a table in the "save#.dat" file is a serialization brand
|
|
3
|
+
* inserted by the save data manager (i.e. the `deepCopy` function).
|
|
4
|
+
*
|
|
5
|
+
* This is separated from the other serialization functions because end-users would not normally be
|
|
6
|
+
* iterating through a serialized object directly.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isSerializationBrand(key: unknown): boolean;
|
|
9
|
+
//# sourceMappingURL=serialization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialization.d.ts","sourceRoot":"","sources":["../../src/serialization.ts"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAM1D"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
local ____lualib = require("lualib_bundle")
|
|
2
|
+
local __TS__New = ____lualib.__TS__New
|
|
3
|
+
local ____exports = {}
|
|
4
|
+
local ____cachedEnumValues = require("src.arrays.cachedEnumValues")
|
|
5
|
+
local SERIALIZATION_BRAND_VALUES = ____cachedEnumValues.SERIALIZATION_BRAND_VALUES
|
|
6
|
+
local ____types = require("src.functions.types")
|
|
7
|
+
local isString = ____types.isString
|
|
8
|
+
local ____ReadonlySet = require("src.types.ReadonlySet")
|
|
9
|
+
local ReadonlySet = ____ReadonlySet.ReadonlySet
|
|
10
|
+
local SERIALIZATION_BRAND_SET = __TS__New(ReadonlySet, SERIALIZATION_BRAND_VALUES)
|
|
11
|
+
--- Helper function to check if a key of a table in the "save#.dat" file is a serialization brand
|
|
12
|
+
-- inserted by the save data manager (i.e. the `deepCopy` function).
|
|
13
|
+
--
|
|
14
|
+
-- This is separated from the other serialization functions because end-users would not normally be
|
|
15
|
+
-- iterating through a serialized object directly.
|
|
16
|
+
function ____exports.isSerializationBrand(self, key)
|
|
17
|
+
if not isString(nil, key) then
|
|
18
|
+
return false
|
|
19
|
+
end
|
|
20
|
+
return SERIALIZATION_BRAND_SET:has(key)
|
|
21
|
+
end
|
|
22
|
+
return ____exports
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
TrinketSlot,
|
|
21
21
|
} from "isaac-typescript-definitions";
|
|
22
22
|
import { HealthType } from "../enums/HealthType";
|
|
23
|
-
import { SerializationBrand } from "../enums/SerializationBrand";
|
|
23
|
+
import { SerializationBrand } from "../enums/private/SerializationBrand";
|
|
24
24
|
import { StatType } from "../enums/StatType";
|
|
25
25
|
import { getEnumValues } from "../functions/enums";
|
|
26
26
|
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CopyableIsaacAPIClassType } from "isaac-typescript-definitions";
|
|
2
|
-
import { SerializationBrand } from "../enums/SerializationBrand";
|
|
2
|
+
import { SerializationBrand } from "../enums/private/SerializationBrand";
|
|
3
3
|
import { isIsaacAPIClassOfType } from "./isaacAPIClass";
|
|
4
4
|
import {
|
|
5
5
|
copyUserdataValuesToTable,
|
package/src/functions/color.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CopyableIsaacAPIClassType } from "isaac-typescript-definitions";
|
|
2
|
-
import { SerializationBrand } from "../enums/SerializationBrand";
|
|
2
|
+
import { SerializationBrand } from "../enums/private/SerializationBrand";
|
|
3
3
|
import { isaacAPIClassEquals, isIsaacAPIClassOfType } from "./isaacAPIClass";
|
|
4
4
|
import { getRandom } from "./random";
|
|
5
5
|
import { getRandomSeed, isRNG, newRNG } from "./rng";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DefaultMap } from "../classes/DefaultMap";
|
|
2
2
|
import { SAVE_DATA_MANAGER_DEBUG } from "../classes/features/other/saveDataManager/constants";
|
|
3
|
-
import { SerializationBrand } from "../enums/SerializationBrand";
|
|
3
|
+
import { SerializationBrand } from "../enums/private/SerializationBrand";
|
|
4
4
|
import { SerializationType } from "../enums/SerializationType";
|
|
5
|
+
import { isSerializationBrand } from "../serialization";
|
|
5
6
|
import { AnyClass } from "../types/AnyClass";
|
|
6
7
|
import { TSTLClass } from "../types/TSTLClass";
|
|
7
8
|
import { isArray } from "./array";
|
|
@@ -11,7 +12,6 @@ import {
|
|
|
11
12
|
copyIsaacAPIClass,
|
|
12
13
|
deserializeIsaacAPIClass,
|
|
13
14
|
isCopyableIsaacAPIClass,
|
|
14
|
-
isSerializationBrand,
|
|
15
15
|
isSerializedIsaacAPIClass,
|
|
16
16
|
serializeIsaacAPIClass,
|
|
17
17
|
} from "./serialization";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultMap } from "../classes/DefaultMap";
|
|
2
|
-
import { SerializationBrand } from "../enums/SerializationBrand";
|
|
2
|
+
import { SerializationBrand } from "../enums/private/SerializationBrand";
|
|
3
3
|
import { SerializationType } from "../enums/SerializationType";
|
|
4
4
|
import { arrayEquals } from "./array";
|
|
5
5
|
import { deepCopy } from "./deepCopy";
|
package/src/functions/kColor.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CopyableIsaacAPIClassType } from "isaac-typescript-definitions";
|
|
2
|
-
import { SerializationBrand } from "../enums/SerializationBrand";
|
|
2
|
+
import { SerializationBrand } from "../enums/private/SerializationBrand";
|
|
3
3
|
import { isaacAPIClassEquals, isIsaacAPIClassOfType } from "./isaacAPIClass";
|
|
4
4
|
import { getRandom } from "./random";
|
|
5
5
|
import { getRandomSeed, isRNG, newRNG } from "./rng";
|