@quenty/gameconfig 12.24.2 → 12.24.3
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 +8 -0
- package/package.json +24 -24
- package/src/Client/Config/Config/GameConfigClient.lua +12 -2
- package/src/Server/Config/Config/GameConfig.lua +13 -4
- package/src/Server/GameConfigService.lua +1 -1
- package/src/Shared/Config/Asset/GameConfigAssetBase.lua +1 -1
- package/src/Shared/Config/Config/GameConfigBase.lua +2 -2
- package/src/Shared/Config/Picker/GameConfigPicker.lua +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [12.24.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/gameconfig@12.24.2...@quenty/gameconfig@12.24.3) (2025-04-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/gameconfig
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [12.24.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/gameconfig@12.24.0...@quenty/gameconfig@12.24.2) (2025-04-07)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/gameconfig",
|
|
3
|
-
"version": "12.24.
|
|
3
|
+
"version": "12.24.3",
|
|
4
4
|
"description": "Configuration service to specify Roblox badges, products, and other specific assets.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -27,31 +27,31 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@quenty/attributeutils": "^14.17.
|
|
31
|
-
"@quenty/badgeutils": "^10.10.
|
|
32
|
-
"@quenty/baseobject": "^10.8.
|
|
33
|
-
"@quenty/binder": "^14.19.
|
|
34
|
-
"@quenty/brio": "^14.17.
|
|
35
|
-
"@quenty/clienttranslator": "^14.19.
|
|
36
|
-
"@quenty/cmdrservice": "^13.22.
|
|
37
|
-
"@quenty/instanceutils": "^13.17.
|
|
38
|
-
"@quenty/loader": "^10.8.
|
|
39
|
-
"@quenty/maid": "^3.4.
|
|
40
|
-
"@quenty/marketplaceutils": "^11.11.
|
|
41
|
-
"@quenty/observablecollection": "^12.20.
|
|
42
|
-
"@quenty/playerutils": "^8.17.
|
|
30
|
+
"@quenty/attributeutils": "^14.17.3",
|
|
31
|
+
"@quenty/badgeutils": "^10.10.4",
|
|
32
|
+
"@quenty/baseobject": "^10.8.3",
|
|
33
|
+
"@quenty/binder": "^14.19.3",
|
|
34
|
+
"@quenty/brio": "^14.17.3",
|
|
35
|
+
"@quenty/clienttranslator": "^14.19.3",
|
|
36
|
+
"@quenty/cmdrservice": "^13.22.3",
|
|
37
|
+
"@quenty/instanceutils": "^13.17.3",
|
|
38
|
+
"@quenty/loader": "^10.8.3",
|
|
39
|
+
"@quenty/maid": "^3.4.3",
|
|
40
|
+
"@quenty/marketplaceutils": "^11.11.4",
|
|
41
|
+
"@quenty/observablecollection": "^12.20.3",
|
|
42
|
+
"@quenty/playerutils": "^8.17.3",
|
|
43
43
|
"@quenty/preferredparentutils": "^4.3.2",
|
|
44
|
-
"@quenty/promise": "^10.10.
|
|
44
|
+
"@quenty/promise": "^10.10.4",
|
|
45
45
|
"@quenty/pseudolocalize": "^3.4.2",
|
|
46
|
-
"@quenty/remotefunctionutils": "^10.10.
|
|
47
|
-
"@quenty/remoting": "^12.18.
|
|
48
|
-
"@quenty/rx": "^13.17.
|
|
49
|
-
"@quenty/rxbinderutils": "^14.19.
|
|
50
|
-
"@quenty/servicebag": "^11.11.
|
|
51
|
-
"@quenty/statestack": "^14.18.
|
|
46
|
+
"@quenty/remotefunctionutils": "^10.10.4",
|
|
47
|
+
"@quenty/remoting": "^12.18.3",
|
|
48
|
+
"@quenty/rx": "^13.17.3",
|
|
49
|
+
"@quenty/rxbinderutils": "^14.19.3",
|
|
50
|
+
"@quenty/servicebag": "^11.11.4",
|
|
51
|
+
"@quenty/statestack": "^14.18.3",
|
|
52
52
|
"@quenty/string": "^3.3.3",
|
|
53
|
-
"@quenty/table": "^3.7.
|
|
54
|
-
"@quenty/valueobject": "^13.17.
|
|
53
|
+
"@quenty/table": "^3.7.4",
|
|
54
|
+
"@quenty/valueobject": "^13.17.3"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "b06c070ae91d5dab7bd8de6e290ad2caabb15d8f"
|
|
57
57
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
--!strict
|
|
1
2
|
--[=[
|
|
2
3
|
See [GameConfigBase] for API and [GameConfigService] for usage.
|
|
3
4
|
@class GameConfigClient
|
|
@@ -8,12 +9,21 @@ local require = require(script.Parent.loader).load(script)
|
|
|
8
9
|
|
|
9
10
|
local GameConfigBase = require("GameConfigBase")
|
|
10
11
|
local GameConfigBindersClient = require("GameConfigBindersClient")
|
|
12
|
+
local _ServiceBag = require("ServiceBag")
|
|
11
13
|
|
|
12
14
|
local GameConfigClient = setmetatable({}, GameConfigBase)
|
|
13
15
|
GameConfigClient.ClassName = "GameConfigClient"
|
|
14
16
|
GameConfigClient.__index = GameConfigClient
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
export type GameConfigClient = typeof(setmetatable(
|
|
19
|
+
{} :: {
|
|
20
|
+
_serviceBag: _ServiceBag.ServiceBag,
|
|
21
|
+
_gameConfigBindersClient: any,
|
|
22
|
+
},
|
|
23
|
+
{} :: typeof({ __index = GameConfigClient })
|
|
24
|
+
)) & GameConfigBase.GameConfigBase
|
|
25
|
+
|
|
26
|
+
function GameConfigClient.new(folder: Folder, serviceBag: _ServiceBag.ServiceBag): GameConfigClient
|
|
17
27
|
local self = setmetatable(GameConfigBase.new(folder), GameConfigClient)
|
|
18
28
|
|
|
19
29
|
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
@@ -24,7 +34,7 @@ function GameConfigClient.new(folder, serviceBag)
|
|
|
24
34
|
return self
|
|
25
35
|
end
|
|
26
36
|
|
|
27
|
-
function GameConfigClient
|
|
37
|
+
function GameConfigClient.GetGameConfigAssetBinder(self: GameConfigClient)
|
|
28
38
|
return self._gameConfigBindersClient.GameConfigAsset
|
|
29
39
|
end
|
|
30
40
|
|
|
@@ -10,18 +10,27 @@ local GameConfigBase = require("GameConfigBase")
|
|
|
10
10
|
local GameConfigBindersServer = require("GameConfigBindersServer")
|
|
11
11
|
local GameConfigAssetTypes = require("GameConfigAssetTypes")
|
|
12
12
|
local GameConfigUtils = require("GameConfigUtils")
|
|
13
|
+
local _ServiceBag = require("ServiceBag")
|
|
13
14
|
|
|
14
15
|
local GameConfig = setmetatable({}, GameConfigBase)
|
|
15
16
|
GameConfig.ClassName = "GameConfig"
|
|
16
17
|
GameConfig.__index = GameConfig
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
export type GameConfig = typeof(setmetatable(
|
|
20
|
+
{} :: {
|
|
21
|
+
_serviceBag: any,
|
|
22
|
+
_gameConfigBindersServer: any,
|
|
23
|
+
},
|
|
24
|
+
{} :: typeof({ __index = GameConfig })
|
|
25
|
+
)) & GameConfigBase.GameConfigBase
|
|
26
|
+
|
|
27
|
+
function GameConfig.new(obj: Instance, serviceBag: _ServiceBag.ServiceBag): GameConfig
|
|
28
|
+
local self: GameConfig = setmetatable(GameConfigBase.new(obj) :: any, GameConfig)
|
|
20
29
|
|
|
21
30
|
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
22
31
|
self._gameConfigBindersServer = self._serviceBag:GetService(GameConfigBindersServer)
|
|
23
32
|
|
|
24
|
-
for _, assetType in
|
|
33
|
+
for _, assetType in GameConfigAssetTypes do
|
|
25
34
|
GameConfigUtils.getOrCreateAssetFolder(self._obj, assetType)
|
|
26
35
|
end
|
|
27
36
|
|
|
@@ -30,7 +39,7 @@ function GameConfig.new(obj: Instance, serviceBag)
|
|
|
30
39
|
return self
|
|
31
40
|
end
|
|
32
41
|
|
|
33
|
-
function GameConfig
|
|
42
|
+
function GameConfig.GetGameConfigAssetBinder(self: GameConfig)
|
|
34
43
|
return self._gameConfigBindersServer.GameConfigAsset
|
|
35
44
|
end
|
|
36
45
|
|
|
@@ -32,7 +32,7 @@ export type GameConfigAssetBase = typeof(setmetatable(
|
|
|
32
32
|
_descriptionTranslationKey: AttributeValue.AttributeValue<string>,
|
|
33
33
|
_configTranslator: _JSONTranslator.JSONTranslator,
|
|
34
34
|
},
|
|
35
|
-
{ __index = GameConfigAssetBase}
|
|
35
|
+
{} :: typeof({ __index = GameConfigAssetBase })
|
|
36
36
|
))
|
|
37
37
|
|
|
38
38
|
--[=[
|
|
@@ -43,8 +43,8 @@ export type GameConfigBase = typeof(setmetatable(
|
|
|
43
43
|
_assetKeyToAssetConfig: any,
|
|
44
44
|
_assetIdToAssetConfig: any,
|
|
45
45
|
},
|
|
46
|
-
{ __index = GameConfigBase}
|
|
47
|
-
))
|
|
46
|
+
{} :: typeof({ __index = GameConfigBase })
|
|
47
|
+
)) & BaseObject.BaseObject
|
|
48
48
|
|
|
49
49
|
--[=[
|
|
50
50
|
Constructs a new game config.
|
|
@@ -28,10 +28,9 @@ GameConfigPicker.__index = GameConfigPicker
|
|
|
28
28
|
export type GameConfigPicker = typeof(setmetatable(
|
|
29
29
|
{} :: {
|
|
30
30
|
_serviceBag: _ServiceBag.ServiceBag,
|
|
31
|
-
_maid: _Maid.Maid,
|
|
32
31
|
},
|
|
33
|
-
{ __index = GameConfigPicker }
|
|
34
|
-
))
|
|
32
|
+
{} :: typeof({ __index = GameConfigPicker })
|
|
33
|
+
)) & BaseObject.BaseObject
|
|
35
34
|
type GameConfigAssetType = _GameConfigAssetTypes.GameConfigAssetType
|
|
36
35
|
type GameConfigAssetBase = _GameConfigAssetBase.GameConfigAssetBase
|
|
37
36
|
|