@quenty/humanoiddescriptionutils 7.0.0-canary.331.7eefa75.0 → 7.0.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 +76 -1
- package/LICENSE.md +1 -1
- package/package.json +6 -6
- package/src/Shared/HumanoidDescriptionUtils.lua +24 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,82 @@
|
|
|
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
|
-
# [7.0.0
|
|
6
|
+
# [7.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoiddescriptionutils@6.9.0...@quenty/humanoiddescriptionutils@7.0.0) (2023-10-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/humanoiddescriptionutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [6.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoiddescriptionutils@6.8.0...@quenty/humanoiddescriptionutils@6.9.0) (2023-08-23)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @quenty/humanoiddescriptionutils
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [6.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoiddescriptionutils@6.7.0...@quenty/humanoiddescriptionutils@6.8.0) (2023-07-28)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @quenty/humanoiddescriptionutils
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [6.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoiddescriptionutils@6.6.0...@quenty/humanoiddescriptionutils@6.7.0) (2023-07-25)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* Add HumanoidDescriptionUtils.promiseApplyDescriptionReset(humanoid, description, assetTypeVerification) ([21cc6f2](https://github.com/Quenty/NevermoreEngine/commit/21cc6f2c6786cc340d0f57e0c29ee4f124be1e64))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# [6.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoiddescriptionutils@6.5.0...@quenty/humanoiddescriptionutils@6.6.0) (2023-06-17)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @quenty/humanoiddescriptionutils
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# [6.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoiddescriptionutils@6.4.1...@quenty/humanoiddescriptionutils@6.5.0) (2023-04-10)
|
|
50
|
+
|
|
51
|
+
**Note:** Version bump only for package @quenty/humanoiddescriptionutils
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
## [6.4.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoiddescriptionutils@6.4.0...@quenty/humanoiddescriptionutils@6.4.1) (2023-04-07)
|
|
58
|
+
|
|
59
|
+
**Note:** Version bump only for package @quenty/humanoiddescriptionutils
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# [6.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoiddescriptionutils@6.3.0...@quenty/humanoiddescriptionutils@6.4.0) (2023-03-31)
|
|
66
|
+
|
|
67
|
+
**Note:** Version bump only for package @quenty/humanoiddescriptionutils
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
# [6.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoiddescriptionutils@6.2.0...@quenty/humanoiddescriptionutils@6.3.0) (2023-03-05)
|
|
74
|
+
|
|
75
|
+
**Note:** Version bump only for package @quenty/humanoiddescriptionutils
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# [6.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/humanoiddescriptionutils@6.1.0...@quenty/humanoiddescriptionutils@6.2.0) (2023-02-27)
|
|
7
82
|
|
|
8
83
|
**Note:** Version bump only for package @quenty/humanoiddescriptionutils
|
|
9
84
|
|
package/LICENSE.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/humanoiddescriptionutils",
|
|
3
|
-
"version": "7.0.0
|
|
3
|
+
"version": "7.0.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": "7.0.0
|
|
29
|
-
"@quenty/loader": "
|
|
30
|
-
"@quenty/playersservicepromises": "7.0.0
|
|
31
|
-
"@quenty/promise": "7.0.0
|
|
28
|
+
"@quenty/insertserviceutils": "^7.0.0",
|
|
29
|
+
"@quenty/loader": "^7.0.0",
|
|
30
|
+
"@quenty/playersservicepromises": "^7.0.0",
|
|
31
|
+
"@quenty/promise": "^7.0.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "fdeae46099587019ec5fc15317dc673aed379400"
|
|
37
37
|
}
|
|
@@ -14,7 +14,7 @@ local PlayersServicePromises = require("PlayersServicePromises")
|
|
|
14
14
|
local HumanoidDescriptionUtils = {}
|
|
15
15
|
|
|
16
16
|
--[=[
|
|
17
|
-
Promises to apply a humaoid
|
|
17
|
+
Promises to apply a humaoid description
|
|
18
18
|
@param humanoid Humanoid
|
|
19
19
|
@param description HumanoidDescription
|
|
20
20
|
@return Promise
|
|
@@ -35,6 +35,29 @@ function HumanoidDescriptionUtils.promiseApplyDescription(humanoid, description)
|
|
|
35
35
|
end)
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
+
--[=[
|
|
39
|
+
Promises to apply a humaoid description reset call
|
|
40
|
+
|
|
41
|
+
@param humanoid Humanoid
|
|
42
|
+
@param description HumanoidDescription
|
|
43
|
+
@param assetTypeVerification AssetTypeVerification
|
|
44
|
+
@return Promise
|
|
45
|
+
]=]
|
|
46
|
+
function HumanoidDescriptionUtils.promiseApplyDescriptionReset(humanoid, description, assetTypeVerification)
|
|
47
|
+
assert(typeof(humanoid) == "Instance" and humanoid:IsA("Humanoid"), "Bad humanoid")
|
|
48
|
+
assert(typeof(description) == "Instance" and description:IsA("HumanoidDescription"), "Bad description")
|
|
49
|
+
|
|
50
|
+
return Promise.spawn(function(resolve, reject)
|
|
51
|
+
local ok, err = pcall(function()
|
|
52
|
+
humanoid:ApplyDescriptionReset(description, assetTypeVerification)
|
|
53
|
+
end)
|
|
54
|
+
if not ok then
|
|
55
|
+
reject(err)
|
|
56
|
+
return
|
|
57
|
+
end
|
|
58
|
+
resolve()
|
|
59
|
+
end)
|
|
60
|
+
end
|
|
38
61
|
--[=[
|
|
39
62
|
Applies humanoid description from userName.
|
|
40
63
|
@param humanoid Humanoid
|