isaacscript-common 1.2.219 → 1.2.222

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.
Files changed (40) hide show
  1. package/dist/enums/private/SerializableIsaacAPIClassType.d.ts +7 -0
  2. package/dist/enums/private/SerializableIsaacAPIClassType.lua +8 -0
  3. package/dist/enums/private/SerializationBrand.d.ts +1 -0
  4. package/dist/enums/private/SerializationBrand.lua +1 -0
  5. package/dist/features/extraConsoleCommands/commands.lua +3 -2
  6. package/dist/features/saveDataManager/merge.d.ts +1 -0
  7. package/dist/features/saveDataManager/merge.lua +7 -19
  8. package/dist/functions/collectibles.d.ts +6 -2
  9. package/dist/functions/collectibles.lua +41 -2
  10. package/dist/functions/color.d.ts +9 -3
  11. package/dist/functions/color.lua +26 -15
  12. package/dist/functions/deepCopy.d.ts +1 -0
  13. package/dist/functions/deepCopy.lua +35 -34
  14. package/dist/functions/isaacAPIClass.d.ts +25 -0
  15. package/dist/functions/isaacAPIClass.lua +52 -0
  16. package/dist/functions/kColor.d.ts +30 -0
  17. package/dist/functions/kColor.lua +90 -0
  18. package/dist/functions/log.lua +3 -3
  19. package/dist/functions/rng.d.ts +6 -3
  20. package/dist/functions/rng.lua +7 -3
  21. package/dist/functions/roomData.d.ts +7 -0
  22. package/dist/functions/roomData.lua +10 -0
  23. package/dist/functions/rooms.d.ts +4 -0
  24. package/dist/functions/rooms.lua +32 -6
  25. package/dist/functions/serialization.d.ts +5 -0
  26. package/dist/functions/serialization.lua +115 -0
  27. package/dist/functions/sprite.d.ts +10 -0
  28. package/dist/functions/sprite.lua +32 -0
  29. package/dist/functions/table.d.ts +4 -4
  30. package/dist/functions/vector.d.ts +6 -3
  31. package/dist/functions/vector.lua +7 -3
  32. package/dist/index.d.ts +3 -1
  33. package/dist/index.lua +24 -8
  34. package/dist/types/private/IsaacAPIClass.d.ts +4 -0
  35. package/dist/types/private/IsaacAPIClass.lua +3 -0
  36. package/dist/types/private/SerializableIsaacAPIClass.d.ts +4 -0
  37. package/dist/types/private/SerializableIsaacAPIClass.lua +3 -0
  38. package/dist/types/private/SerializedIsaacAPIClass.d.ts +4 -0
  39. package/dist/types/private/SerializedIsaacAPIClass.lua +3 -0
  40. package/package.json +2 -2
package/dist/index.lua CHANGED
@@ -411,6 +411,14 @@ do
411
411
  end
412
412
  end
413
413
  end
414
+ do
415
+ local ____export = require("functions.isaacAPIClass")
416
+ for ____exportKey, ____exportValue in pairs(____export) do
417
+ if ____exportKey ~= "default" then
418
+ ____exports[____exportKey] = ____exportValue
419
+ end
420
+ end
421
+ end
414
422
  do
415
423
  local ____export = require("functions.jsonHelpers")
416
424
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -427,6 +435,14 @@ do
427
435
  end
428
436
  end
429
437
  end
438
+ do
439
+ local ____export = require("functions.kColor")
440
+ for ____exportKey, ____exportValue in pairs(____export) do
441
+ if ____exportKey ~= "default" then
442
+ ____exports[____exportKey] = ____exportValue
443
+ end
444
+ end
445
+ end
430
446
  do
431
447
  local ____export = require("functions.language")
432
448
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -592,6 +608,14 @@ do
592
608
  end
593
609
  end
594
610
  end
611
+ do
612
+ local ____export = require("functions.serialization")
613
+ for ____exportKey, ____exportValue in pairs(____export) do
614
+ if ____exportKey ~= "default" then
615
+ ____exports[____exportKey] = ____exportValue
616
+ end
617
+ end
618
+ end
595
619
  do
596
620
  local ____export = require("functions.set")
597
621
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -704,14 +728,6 @@ do
704
728
  end
705
729
  end
706
730
  end
707
- do
708
- local ____export = require("functions.userdata")
709
- for ____exportKey, ____exportValue in pairs(____export) do
710
- if ____exportKey ~= "default" then
711
- ____exports[____exportKey] = ____exportValue
712
- end
713
- end
714
- end
715
731
  do
716
732
  local ____export = require("functions.utils")
717
733
  for ____exportKey, ____exportValue in pairs(____export) do
@@ -0,0 +1,4 @@
1
+ /// <reference types="typescript-to-lua/language-extensions" />
2
+ export declare type IsaacAPIClass = LuaTable<string, unknown> & {
3
+ __isaacAPIClassBrand: unknown;
4
+ };
@@ -0,0 +1,3 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ return ____exports
@@ -0,0 +1,4 @@
1
+ import { IsaacAPIClass } from "./IsaacAPIClass";
2
+ export declare type SerializableIsaacAPIClass = IsaacAPIClass & {
3
+ __serializableIsaacAPIClassBrand: unknown;
4
+ };
@@ -0,0 +1,3 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ return ____exports
@@ -0,0 +1,4 @@
1
+ /// <reference types="typescript-to-lua/language-extensions" />
2
+ export declare type SerializedIsaacAPIClass = LuaTable<string, unknown> & {
3
+ __serializedIsaacAPIClassBrand: unknown;
4
+ };
@@ -0,0 +1,3 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ return ____exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.219",
3
+ "version": "1.2.222",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",
@@ -25,7 +25,7 @@
25
25
  "dist/**/*.d.ts"
26
26
  ],
27
27
  "devDependencies": {
28
- "isaac-typescript-definitions": "^1.0.379",
28
+ "isaac-typescript-definitions": "^1.0.380",
29
29
  "isaacscript-lint": "^1.0.95",
30
30
  "isaacscript-tsconfig": "^1.1.8",
31
31
  "typedoc": "^0.22.13",