isaacscript-common 1.2.119 → 1.2.120
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.
|
@@ -38,6 +38,7 @@ function ____exports.enableAllSound(self, key)
|
|
|
38
38
|
local musicManager = MusicManager()
|
|
39
39
|
musicManager:Enable()
|
|
40
40
|
end
|
|
41
|
+
stopAllSoundEffects(nil)
|
|
41
42
|
end
|
|
42
43
|
function ____exports.disableAllSound(self, key)
|
|
43
44
|
if not initialized then
|
|
@@ -49,5 +50,6 @@ function ____exports.disableAllSound(self, key)
|
|
|
49
50
|
musicWasEnabled = musicManager:IsEnabled()
|
|
50
51
|
end
|
|
51
52
|
v.run.disableSoundSet:add(key)
|
|
53
|
+
stopAllSoundEffects(nil)
|
|
52
54
|
end
|
|
53
55
|
return ____exports
|
|
@@ -48,6 +48,9 @@ export declare const ensureAllCases: (obj: never) => never;
|
|
|
48
48
|
*
|
|
49
49
|
* For a more in depth explanation, see:
|
|
50
50
|
* https://isaacscript.github.io/docs/gotchas#iterating-over-enums
|
|
51
|
+
*
|
|
52
|
+
* You can also use this function for vanilla enums, which can make code easier to read than using
|
|
53
|
+
* `pairs` or `Object.values()`.
|
|
51
54
|
*/
|
|
52
55
|
export declare function getEnumValues<T>(transpiledEnum: T): Array<T[keyof T]>;
|
|
53
56
|
/**
|