@quenty/soundgroup 1.20.4-canary.559.339cfa7.0 → 1.21.0-canary.0a5db80.0
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/CHANGELOG.md +2 -10
- package/package.json +11 -11
- package/src/Client/SoundGroupServiceClient.lua +1 -1
- package/src/Server/SoundGroupService.lua +2 -2
- package/src/Shared/Effects/SoundEffectsList.lua +5 -5
- package/src/Shared/Effects/SoundEffectsRegistry.lua +5 -8
- package/src/Shared/SoundEffectService.lua +12 -10
- package/src/Shared/SoundGroupTracker.lua +5 -5
- package/src/Shared/Utils/SoundGroupPathUtils.lua +1 -1
- package/test/scripts/Client/ClientMain.client.lua +1 -1
- package/test/scripts/Server/ServerMain.server.lua +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,20 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [1.21.0-canary.0a5db80.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/soundgroup@1.20.2...@quenty/soundgroup@1.21.0-canary.0a5db80.0) (2025-05-10)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
|
10
10
|
|
|
11
|
-
* Additional type checking updates ([
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## [1.20.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/soundgroup@1.20.2...@quenty/soundgroup@1.20.3) (2025-04-10)
|
|
18
|
-
|
|
19
|
-
**Note:** Version bump only for package @quenty/soundgroup
|
|
11
|
+
* Additional type checking updates ([7e008c5](https://github.com/Quenty/NevermoreEngine/commit/7e008c58547bd00b5904e56541454a38c8d72ccc))
|
|
20
12
|
|
|
21
13
|
|
|
22
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/soundgroup",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0-canary.0a5db80.0",
|
|
4
4
|
"description": "Service and utility methods to working with sound groups and sounds in Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,18 +25,18 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/baseobject": "10.
|
|
29
|
-
"@quenty/counter": "7.
|
|
30
|
-
"@quenty/instanceutils": "13.
|
|
31
|
-
"@quenty/loader": "10.
|
|
32
|
-
"@quenty/maid": "3.
|
|
33
|
-
"@quenty/observablecollection": "12.
|
|
34
|
-
"@quenty/rx": "13.
|
|
35
|
-
"@quenty/table": "3.
|
|
36
|
-
"@quenty/valueobject": "13.
|
|
28
|
+
"@quenty/baseobject": "10.9.0-canary.0a5db80.0",
|
|
29
|
+
"@quenty/counter": "7.18.0-canary.0a5db80.0",
|
|
30
|
+
"@quenty/instanceutils": "13.18.0-canary.0a5db80.0",
|
|
31
|
+
"@quenty/loader": "10.9.0-canary.0a5db80.0",
|
|
32
|
+
"@quenty/maid": "3.5.0-canary.0a5db80.0",
|
|
33
|
+
"@quenty/observablecollection": "12.21.0-canary.0a5db80.0",
|
|
34
|
+
"@quenty/rx": "13.18.0-canary.0a5db80.0",
|
|
35
|
+
"@quenty/table": "3.8.0-canary.0a5db80.0",
|
|
36
|
+
"@quenty/valueobject": "13.18.0-canary.0a5db80.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "0a5db8004684dc3e76fd5944599a22602d48cfa9"
|
|
42
42
|
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
local require = require(script.Parent.loader).load(script)
|
|
6
6
|
|
|
7
7
|
local Maid = require("Maid")
|
|
8
|
-
local ServiceBag = require("ServiceBag")
|
|
9
8
|
local WellKnownSoundGroups = require("WellKnownSoundGroups")
|
|
9
|
+
local ServiceBag = require("ServiceBag")
|
|
10
10
|
|
|
11
11
|
local SoundGroupService = {}
|
|
12
12
|
SoundGroupService.ServiceName = "SoundGroupService"
|
|
@@ -32,4 +32,4 @@ function SoundGroupService:Destroy()
|
|
|
32
32
|
self._maid:DoCleaning()
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
-
return SoundGroupService
|
|
35
|
+
return SoundGroupService
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
local require = require(script.Parent.loader).load(script)
|
|
9
9
|
|
|
10
10
|
local BaseObject = require("BaseObject")
|
|
11
|
-
local
|
|
11
|
+
local ObservableList = require("ObservableList")
|
|
12
12
|
local Maid = require("Maid")
|
|
13
13
|
local MaidTaskUtils = require("MaidTaskUtils")
|
|
14
|
-
local
|
|
15
|
-
local
|
|
14
|
+
local ValueObject = require("ValueObject")
|
|
15
|
+
local Counter = require("Counter")
|
|
16
16
|
local Rx = require("Rx")
|
|
17
17
|
local Signal = require("Signal")
|
|
18
|
-
local
|
|
18
|
+
local Observable = require("Observable")
|
|
19
19
|
|
|
20
20
|
local SoundEffectsList = setmetatable({}, BaseObject)
|
|
21
21
|
SoundEffectsList.ClassName = "SoundEffectsList"
|
|
@@ -140,4 +140,4 @@ function SoundEffectsList.ApplyEffects(self: SoundEffectsList, instance: SoundGr
|
|
|
140
140
|
end
|
|
141
141
|
end
|
|
142
142
|
|
|
143
|
-
return SoundEffectsList
|
|
143
|
+
return SoundEffectsList
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
local require = require(script.Parent.loader).load(script)
|
|
10
10
|
|
|
11
11
|
local BaseObject = require("BaseObject")
|
|
12
|
-
local Brio = require("Brio")
|
|
13
12
|
local Maid = require("Maid")
|
|
14
|
-
local Observable = require("Observable")
|
|
15
13
|
local ObservableMap = require("ObservableMap")
|
|
16
|
-
local ObservableSet = require("ObservableSet")
|
|
17
14
|
local SoundEffectsList = require("SoundEffectsList")
|
|
18
15
|
local SoundGroupPathUtils = require("SoundGroupPathUtils")
|
|
16
|
+
local ObservableSet = require("ObservableSet")
|
|
17
|
+
local Observable = require("Observable")
|
|
18
|
+
local Brio = require("Brio")
|
|
19
19
|
|
|
20
20
|
local SoundEffectsRegistry = setmetatable({}, BaseObject)
|
|
21
21
|
SoundEffectsRegistry.ClassName = "SoundEffectsRegistry"
|
|
@@ -68,10 +68,7 @@ function SoundEffectsRegistry.ObserveActiveEffectsPathBrios(
|
|
|
68
68
|
return self._activeEffectsPathSet:ObserveItemsBrio() :: any
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
-
function SoundEffectsRegistry._getOrCreateEffectList(
|
|
72
|
-
self: SoundEffectsRegistry,
|
|
73
|
-
soundGroupPath: string
|
|
74
|
-
): SoundEffectsList.SoundEffectsList
|
|
71
|
+
function SoundEffectsRegistry._getOrCreateEffectList(self: SoundEffectsRegistry, soundGroupPath: string): SoundEffectsList.SoundEffectsList
|
|
75
72
|
assert(SoundGroupPathUtils.isSoundGroupPath(soundGroupPath), "Bad soundGroupPath")
|
|
76
73
|
|
|
77
74
|
local found = self._pathToEffectList:Get(soundGroupPath)
|
|
@@ -103,4 +100,4 @@ function SoundEffectsRegistry._getOrCreateEffectList(
|
|
|
103
100
|
return soundEffectsList
|
|
104
101
|
end
|
|
105
102
|
|
|
106
|
-
return SoundEffectsRegistry
|
|
103
|
+
return SoundEffectsRegistry
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
local require = require(script.Parent.loader).load(script)
|
|
8
8
|
|
|
9
|
-
local RunService = game:GetService("RunService")
|
|
10
9
|
local SoundService = game:GetService("SoundService")
|
|
10
|
+
local RunService = game:GetService("RunService")
|
|
11
11
|
|
|
12
12
|
local Maid = require("Maid")
|
|
13
|
-
local ServiceBag = require("ServiceBag")
|
|
14
13
|
local SoundEffectsRegistry = require("SoundEffectsRegistry")
|
|
15
14
|
local SoundGroupPathUtils = require("SoundGroupPathUtils")
|
|
16
15
|
local SoundGroupTracker = require("SoundGroupTracker")
|
|
17
16
|
local WellKnownSoundGroups = require("WellKnownSoundGroups")
|
|
17
|
+
local ServiceBag = require("ServiceBag")
|
|
18
18
|
|
|
19
19
|
local SoundEffectService = {}
|
|
20
20
|
SoundEffectService.ServiceName = "SoundEffectService"
|
|
@@ -97,13 +97,14 @@ function SoundEffectService:_setupEffectApplication()
|
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
local maid, soundGroup = brio:ToMaidAndValue()
|
|
100
|
-
maid:GiveTask(self._tracker:ObserveSoundGroupPath(soundGroup)
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
100
|
+
maid:GiveTask(self._tracker:ObserveSoundGroupPath(soundGroup)
|
|
101
|
+
:Subscribe(function(soundGroupPath)
|
|
102
|
+
if soundGroupPath then
|
|
103
|
+
maid._currentEffects = self._soundEffectsRegister:ApplyEffects(soundGroupPath, soundGroup)
|
|
104
|
+
else
|
|
105
|
+
maid._currentEffects = nil
|
|
106
|
+
end
|
|
107
|
+
end))
|
|
107
108
|
end))
|
|
108
109
|
|
|
109
110
|
-- Render sound groups
|
|
@@ -121,8 +122,9 @@ function SoundEffectService:_setupEffectApplication()
|
|
|
121
122
|
end))
|
|
122
123
|
end
|
|
123
124
|
|
|
125
|
+
|
|
124
126
|
function SoundEffectService:Destroy()
|
|
125
127
|
self._maid:DoCleaning()
|
|
126
128
|
end
|
|
127
129
|
|
|
128
|
-
return SoundEffectService
|
|
130
|
+
return SoundEffectService
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
local require = require(script.Parent.loader).load(script)
|
|
7
7
|
|
|
8
8
|
local BaseObject = require("BaseObject")
|
|
9
|
+
local RxInstanceUtils = require("RxInstanceUtils")
|
|
10
|
+
local ObservableMapList = require("ObservableMapList")
|
|
9
11
|
local Maid = require("Maid")
|
|
10
|
-
local Observable = require("Observable")
|
|
11
12
|
local ObservableMap = require("ObservableMap")
|
|
12
|
-
local ObservableMapList = require("ObservableMapList")
|
|
13
|
-
local Rx = require("Rx")
|
|
14
|
-
local RxInstanceUtils = require("RxInstanceUtils")
|
|
15
13
|
local SoundGroupPathUtils = require("SoundGroupPathUtils")
|
|
14
|
+
local Rx = require("Rx")
|
|
15
|
+
local Observable = require("Observable")
|
|
16
16
|
|
|
17
17
|
local SoundGroupTracker = setmetatable({}, BaseObject)
|
|
18
18
|
SoundGroupTracker.ClassName = "SoundGroupTracker"
|
|
@@ -123,4 +123,4 @@ function SoundGroupTracker._track(self: SoundGroupTracker, observeRootPath, pare
|
|
|
123
123
|
end
|
|
124
124
|
end
|
|
125
125
|
|
|
126
|
-
return SoundGroupTracker
|
|
126
|
+
return SoundGroupTracker
|