@quenty/humanoiddescriptionutils 10.11.0 → 10.11.1-canary.39d0eda.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
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.11.1-canary.39d0eda.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoiddescriptionutils@10.11.0...@quenty/humanoiddescriptionutils@10.11.1-canary.39d0eda.0) (2025-08-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/humanoiddescriptionutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [10.11.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoiddescriptionutils@10.10.4...@quenty/humanoiddescriptionutils@10.11.0) (2025-05-10)
|
|
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.11.0",
|
|
3
|
+
"version": "10.11.1-canary.39d0eda.0",
|
|
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": "
|
|
29
|
-
"@quenty/loader": "
|
|
30
|
-
"@quenty/playersservicepromises": "
|
|
31
|
-
"@quenty/promise": "
|
|
28
|
+
"@quenty/insertserviceutils": "10.11.1-canary.39d0eda.0",
|
|
29
|
+
"@quenty/loader": "10.9.0",
|
|
30
|
+
"@quenty/playersservicepromises": "10.11.1-canary.39d0eda.0",
|
|
31
|
+
"@quenty/promise": "10.11.1-canary.39d0eda.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "39d0edaa45d0c4812b43f2a64ad543fac3f79423"
|
|
37
37
|
}
|
|
@@ -19,7 +19,7 @@ local HumanoidDescriptionUtils = {}
|
|
|
19
19
|
@param description HumanoidDescription
|
|
20
20
|
@return Promise
|
|
21
21
|
]=]
|
|
22
|
-
function HumanoidDescriptionUtils.promiseApplyDescription(humanoid, description)
|
|
22
|
+
function HumanoidDescriptionUtils.promiseApplyDescription(humanoid: Humanoid, description: HumanoidDescription)
|
|
23
23
|
assert(typeof(humanoid) == "Instance" and humanoid:IsA("Humanoid"), "Bad humanoid")
|
|
24
24
|
assert(typeof(description) == "Instance" and description:IsA("HumanoidDescription"), "Bad description")
|
|
25
25
|
|
|
@@ -43,7 +43,11 @@ end
|
|
|
43
43
|
@param assetTypeVerification AssetTypeVerification
|
|
44
44
|
@return Promise
|
|
45
45
|
]=]
|
|
46
|
-
function HumanoidDescriptionUtils.promiseApplyDescriptionReset(
|
|
46
|
+
function HumanoidDescriptionUtils.promiseApplyDescriptionReset(
|
|
47
|
+
humanoid: Humanoid,
|
|
48
|
+
description: HumanoidDescription,
|
|
49
|
+
assetTypeVerification: Enum.AssetTypeVerification
|
|
50
|
+
)
|
|
47
51
|
assert(typeof(humanoid) == "Instance" and humanoid:IsA("Humanoid"), "Bad humanoid")
|
|
48
52
|
assert(typeof(description) == "Instance" and description:IsA("HumanoidDescription"), "Bad description")
|
|
49
53
|
|
|
@@ -64,7 +68,7 @@ end
|
|
|
64
68
|
@param userName string
|
|
65
69
|
@return Promise
|
|
66
70
|
]=]
|
|
67
|
-
function HumanoidDescriptionUtils.promiseApplyFromUserName(humanoid, userName)
|
|
71
|
+
function HumanoidDescriptionUtils.promiseApplyFromUserName(humanoid: Humanoid, userName: string)
|
|
68
72
|
return HumanoidDescriptionUtils.promiseFromUserName(userName):Then(function(description)
|
|
69
73
|
return HumanoidDescriptionUtils.promiseApplyDescription(humanoid, description)
|
|
70
74
|
end)
|
|
@@ -75,7 +79,7 @@ end
|
|
|
75
79
|
@param userName string
|
|
76
80
|
@return Promise<HumanoidDescription>
|
|
77
81
|
]=]
|
|
78
|
-
function HumanoidDescriptionUtils.promiseFromUserName(userName)
|
|
82
|
+
function HumanoidDescriptionUtils.promiseFromUserName(userName: string)
|
|
79
83
|
return PlayersServicePromises.promiseUserIdFromName(userName):Then(function(userId)
|
|
80
84
|
return HumanoidDescriptionUtils.promiseFromUserId(userId)
|
|
81
85
|
end)
|
|
@@ -86,7 +90,7 @@ end
|
|
|
86
90
|
@param userId number
|
|
87
91
|
@return Promise<HumanoidDescription>
|
|
88
92
|
]=]
|
|
89
|
-
function HumanoidDescriptionUtils.promiseFromUserId(userId)
|
|
93
|
+
function HumanoidDescriptionUtils.promiseFromUserId(userId: number)
|
|
90
94
|
assert(type(userId) == "number", "Bad userId")
|
|
91
95
|
|
|
92
96
|
return Promise.spawn(function(resolve, reject)
|
|
@@ -112,7 +116,7 @@ end
|
|
|
112
116
|
@param assetString string -- A comma seperated value of asset ids which should be numbers
|
|
113
117
|
@return { number }
|
|
114
118
|
]=]
|
|
115
|
-
function HumanoidDescriptionUtils.getAssetIdsFromString(assetString)
|
|
119
|
+
function HumanoidDescriptionUtils.getAssetIdsFromString(assetString: string): { number }
|
|
116
120
|
if assetString == "" then
|
|
117
121
|
return {}
|
|
118
122
|
end
|
|
@@ -140,7 +144,7 @@ end
|
|
|
140
144
|
@param assetString string -- A comma seperated value of asset ids which should be numbers
|
|
141
145
|
@return { Promise<Instance> }
|
|
142
146
|
]=]
|
|
143
|
-
function HumanoidDescriptionUtils.getAssetPromisesFromString(assetString)
|
|
147
|
+
function HumanoidDescriptionUtils.getAssetPromisesFromString(assetString: string)
|
|
144
148
|
local promises = {}
|
|
145
149
|
for _, assetId in HumanoidDescriptionUtils.getAssetIdsFromString(assetString) do
|
|
146
150
|
table.insert(promises, InsertServiceUtils.promiseAsset(assetId))
|