isaacscript-common 1.2.27 → 1.2.28
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/functions/sound.d.ts +1 -0
- package/dist/functions/sound.lua +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.lua +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function stopAllSoundEffects(): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
2
|
+
local ____exports = {}
|
|
3
|
+
local ____util = require("functions.util")
|
|
4
|
+
local getEnumValues = ____util.getEnumValues
|
|
5
|
+
function ____exports.stopAllSoundEffects(self)
|
|
6
|
+
local sfxManager = SFXManager()
|
|
7
|
+
for ____, soundEffect in ipairs(getEnumValues(nil, SoundEffect)) do
|
|
8
|
+
sfxManager:Stop(soundEffect)
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
return ____exports
|
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export * from "./functions/revive";
|
|
|
45
45
|
export * from "./functions/rooms";
|
|
46
46
|
export * from "./functions/seeds";
|
|
47
47
|
export * from "./functions/set";
|
|
48
|
+
export * from "./functions/sound";
|
|
48
49
|
export * from "./functions/spawnCollectible";
|
|
49
50
|
export * from "./functions/sprite";
|
|
50
51
|
export * from "./functions/stage";
|
package/dist/index.lua
CHANGED
|
@@ -370,6 +370,14 @@ do
|
|
|
370
370
|
end
|
|
371
371
|
end
|
|
372
372
|
end
|
|
373
|
+
do
|
|
374
|
+
local ____export = require("functions.sound")
|
|
375
|
+
for ____exportKey, ____exportValue in pairs(____export) do
|
|
376
|
+
if ____exportKey ~= "default" then
|
|
377
|
+
____exports[____exportKey] = ____exportValue
|
|
378
|
+
end
|
|
379
|
+
end
|
|
380
|
+
end
|
|
373
381
|
do
|
|
374
382
|
local ____export = require("functions.spawnCollectible")
|
|
375
383
|
for ____exportKey, ____exportValue in pairs(____export) do
|