isaacscript-common 1.0.526 → 1.0.527

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.
@@ -0,0 +1,2 @@
1
+ /** Helper function to get the seed of the current run. */
2
+ export declare function getStartSeedString(): string;
@@ -0,0 +1,8 @@
1
+ --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
2
+ local ____exports = {}
3
+ function ____exports.getStartSeedString(self)
4
+ local game = Game()
5
+ local seeds = game:GetSeeds()
6
+ return seeds:GetStartSeedString()
7
+ end
8
+ return ____exports
package/dist/index.d.ts CHANGED
@@ -38,6 +38,7 @@ export * from "./functions/position";
38
38
  export * from "./functions/random";
39
39
  export * from "./functions/revive";
40
40
  export * from "./functions/rooms";
41
+ export * from "./functions/seeds";
41
42
  export * from "./functions/spawnCollectible";
42
43
  export * from "./functions/sprite";
43
44
  export * from "./functions/stage";
package/dist/index.lua CHANGED
@@ -310,6 +310,14 @@ do
310
310
  end
311
311
  end
312
312
  end
313
+ do
314
+ local ____export = require("functions.seeds")
315
+ for ____exportKey, ____exportValue in pairs(____export) do
316
+ if ____exportKey ~= "default" then
317
+ ____exports[____exportKey] = ____exportValue
318
+ end
319
+ end
320
+ end
313
321
  do
314
322
  local ____export = require("functions.spawnCollectible")
315
323
  for ____exportKey, ____exportValue in pairs(____export) do
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.0.526",
3
+ "version": "1.0.527",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",