@quenty/humanoiddescriptionutils 10.12.4 → 10.12.5
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
|
+
## [10.12.5](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoiddescriptionutils@10.12.4...@quenty/humanoiddescriptionutils@10.12.5) (2026-01-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/humanoiddescriptionutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [10.12.4](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoiddescriptionutils@10.12.3...@quenty/humanoiddescriptionutils@10.12.4) (2025-12-31)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @quenty/humanoiddescriptionutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/humanoiddescriptionutils",
|
|
3
|
-
"version": "10.12.
|
|
3
|
+
"version": "10.12.5",
|
|
4
4
|
"description": "Handles actions involving HumanoidDescription objects, including loading character appearance.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/insertserviceutils": "^10.12.
|
|
29
|
-
"@quenty/loader": "^10.9.
|
|
30
|
-
"@quenty/playersservicepromises": "^10.12.
|
|
31
|
-
"@quenty/promise": "^10.12.
|
|
28
|
+
"@quenty/insertserviceutils": "^10.12.4",
|
|
29
|
+
"@quenty/loader": "^10.9.1",
|
|
30
|
+
"@quenty/playersservicepromises": "^10.12.4",
|
|
31
|
+
"@quenty/promise": "^10.12.4"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "44e41814ddc3c14c3879320a10ed2d8e88103a4c"
|
|
37
37
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
--!strict
|
|
1
2
|
--[=[
|
|
2
3
|
Handles actions involving HumanoidDescription objects, including loading character appearance.
|
|
3
4
|
@class HumanoidDescriptionUtils
|
|
@@ -19,7 +20,10 @@ local HumanoidDescriptionUtils = {}
|
|
|
19
20
|
@param description HumanoidDescription
|
|
20
21
|
@return Promise
|
|
21
22
|
]=]
|
|
22
|
-
function HumanoidDescriptionUtils.promiseApplyDescription(
|
|
23
|
+
function HumanoidDescriptionUtils.promiseApplyDescription(
|
|
24
|
+
humanoid: Humanoid,
|
|
25
|
+
description: HumanoidDescription
|
|
26
|
+
): Promise.Promise<()>
|
|
23
27
|
assert(typeof(humanoid) == "Instance" and humanoid:IsA("Humanoid"), "Bad humanoid")
|
|
24
28
|
assert(typeof(description) == "Instance" and description:IsA("HumanoidDescription"), "Bad description")
|
|
25
29
|
|
|
@@ -47,7 +51,7 @@ function HumanoidDescriptionUtils.promiseApplyDescriptionReset(
|
|
|
47
51
|
humanoid: Humanoid,
|
|
48
52
|
description: HumanoidDescription,
|
|
49
53
|
assetTypeVerification: Enum.AssetTypeVerification
|
|
50
|
-
)
|
|
54
|
+
): Promise.Promise<()>
|
|
51
55
|
assert(typeof(humanoid) == "Instance" and humanoid:IsA("Humanoid"), "Bad humanoid")
|
|
52
56
|
assert(typeof(description) == "Instance" and description:IsA("HumanoidDescription"), "Bad description")
|
|
53
57
|
|
|
@@ -68,7 +72,7 @@ end
|
|
|
68
72
|
@param userName string
|
|
69
73
|
@return Promise
|
|
70
74
|
]=]
|
|
71
|
-
function HumanoidDescriptionUtils.promiseApplyFromUserName(humanoid: Humanoid, userName: string)
|
|
75
|
+
function HumanoidDescriptionUtils.promiseApplyFromUserName(humanoid: Humanoid, userName: string): Promise.Promise<()>
|
|
72
76
|
return HumanoidDescriptionUtils.promiseFromUserName(userName):Then(function(description)
|
|
73
77
|
return HumanoidDescriptionUtils.promiseApplyDescription(humanoid, description)
|
|
74
78
|
end)
|
|
@@ -79,7 +83,7 @@ end
|
|
|
79
83
|
@param userName string
|
|
80
84
|
@return Promise<HumanoidDescription>
|
|
81
85
|
]=]
|
|
82
|
-
function HumanoidDescriptionUtils.promiseFromUserName(userName: string)
|
|
86
|
+
function HumanoidDescriptionUtils.promiseFromUserName(userName: string): Promise.Promise<HumanoidDescription>
|
|
83
87
|
return PlayersServicePromises.promiseUserIdFromName(userName):Then(function(userId)
|
|
84
88
|
return HumanoidDescriptionUtils.promiseFromUserId(userId)
|
|
85
89
|
end)
|
|
@@ -90,7 +94,7 @@ end
|
|
|
90
94
|
@param userId number
|
|
91
95
|
@return Promise<HumanoidDescription>
|
|
92
96
|
]=]
|
|
93
|
-
function HumanoidDescriptionUtils.promiseFromUserId(userId: number)
|
|
97
|
+
function HumanoidDescriptionUtils.promiseFromUserId(userId: number): Promise.Promise<HumanoidDescription>
|
|
94
98
|
assert(type(userId) == "number", "Bad userId")
|
|
95
99
|
|
|
96
100
|
return Promise.spawn(function(resolve, reject)
|
|
@@ -144,7 +148,7 @@ end
|
|
|
144
148
|
@param assetString string -- A comma seperated value of asset ids which should be numbers
|
|
145
149
|
@return { Promise<Instance> }
|
|
146
150
|
]=]
|
|
147
|
-
function HumanoidDescriptionUtils.getAssetPromisesFromString(assetString: string)
|
|
151
|
+
function HumanoidDescriptionUtils.getAssetPromisesFromString(assetString: string): { Promise.Promise<Instance> }
|
|
148
152
|
local promises = {}
|
|
149
153
|
for _, assetId in HumanoidDescriptionUtils.getAssetIdsFromString(assetString) do
|
|
150
154
|
table.insert(promises, InsertServiceUtils.promiseAsset(assetId))
|