@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 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.2",
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.2",
31
- "@quenty/badgeutils": "^10.10.3",
32
- "@quenty/baseobject": "^10.8.2",
33
- "@quenty/binder": "^14.19.2",
34
- "@quenty/brio": "^14.17.2",
35
- "@quenty/clienttranslator": "^14.19.2",
36
- "@quenty/cmdrservice": "^13.22.2",
37
- "@quenty/instanceutils": "^13.17.2",
38
- "@quenty/loader": "^10.8.2",
39
- "@quenty/maid": "^3.4.2",
40
- "@quenty/marketplaceutils": "^11.11.3",
41
- "@quenty/observablecollection": "^12.20.2",
42
- "@quenty/playerutils": "^8.17.2",
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.3",
44
+ "@quenty/promise": "^10.10.4",
45
45
  "@quenty/pseudolocalize": "^3.4.2",
46
- "@quenty/remotefunctionutils": "^10.10.3",
47
- "@quenty/remoting": "^12.18.2",
48
- "@quenty/rx": "^13.17.2",
49
- "@quenty/rxbinderutils": "^14.19.2",
50
- "@quenty/servicebag": "^11.11.3",
51
- "@quenty/statestack": "^14.18.2",
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.3",
54
- "@quenty/valueobject": "^13.17.2"
53
+ "@quenty/table": "^3.7.4",
54
+ "@quenty/valueobject": "^13.17.3"
55
55
  },
56
- "gitHead": "64def70499ec067077ee39f279936b620b217847"
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
- function GameConfigClient.new(folder, serviceBag)
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:GetGameConfigAssetBinder()
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
- function GameConfig.new(obj: Instance, serviceBag)
19
- local self = setmetatable(GameConfigBase.new(obj), GameConfig)
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 pairs(GameConfigAssetTypes) do
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:GetGameConfigAssetBinder()
42
+ function GameConfig.GetGameConfigAssetBinder(self: GameConfig)
34
43
  return self._gameConfigBindersServer.GameConfigAsset
35
44
  end
36
45
 
@@ -27,7 +27,7 @@ export type GameConfigService = typeof(setmetatable(
27
27
  _configPicker: GameConfigPicker.GameConfigPicker,
28
28
  _getPreferredParent: () -> Instance,
29
29
  },
30
- { __index = GameConfigService }
30
+ {} :: typeof({ __index = GameConfigService })
31
31
  ))
32
32
 
33
33
  --[=[
@@ -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