@quenty/bodycolorsutils 7.18.4-canary.559.9f38947.0 → 7.19.0-canary.559.b31717d.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,7 +3,7 @@
|
|
|
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
|
-
|
|
6
|
+
# [7.19.0-canary.559.b31717d.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/bodycolorsutils@7.18.3...@quenty/bodycolorsutils@7.19.0-canary.559.b31717d.0) (2025-05-10)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @quenty/bodycolorsutils
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/bodycolorsutils",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.19.0-canary.559.b31717d.0",
|
|
4
4
|
"description": "Body color helper utilities for merging and representing body colors over the network and datastore",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/attributeutils": "14.
|
|
29
|
-
"@quenty/color3serializationutils": "2.2.
|
|
30
|
-
"@quenty/color3utils": "11.
|
|
31
|
-
"@quenty/loader": "10.8.
|
|
32
|
-
"@quenty/rx": "13.
|
|
33
|
-
"@quenty/table": "3.7.
|
|
28
|
+
"@quenty/attributeutils": "14.18.0-canary.559.b31717d.0",
|
|
29
|
+
"@quenty/color3serializationutils": "2.2.2",
|
|
30
|
+
"@quenty/color3utils": "11.19.0-canary.559.b31717d.0",
|
|
31
|
+
"@quenty/loader": "10.8.3",
|
|
32
|
+
"@quenty/rx": "13.18.0-canary.559.b31717d.0",
|
|
33
|
+
"@quenty/table": "3.7.4"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "b31717d8c9f7620c457f5018a2affa760a65334a"
|
|
39
39
|
}
|
|
@@ -8,11 +8,11 @@ local Table = require("Table")
|
|
|
8
8
|
|
|
9
9
|
return Table.readonly({
|
|
10
10
|
ATTRIBUTE_MAPPING = {
|
|
11
|
-
headColor = "HeadColor"
|
|
12
|
-
leftArmColor = "LeftArmColor"
|
|
13
|
-
leftLegColor = "LeftLegColor"
|
|
14
|
-
rightArmColor = "RightArmColor"
|
|
15
|
-
rightLegColor = "RightLegColor"
|
|
16
|
-
torsoColor = "TorsoColor"
|
|
17
|
-
}
|
|
18
|
-
})
|
|
11
|
+
headColor = "HeadColor";
|
|
12
|
+
leftArmColor = "LeftArmColor";
|
|
13
|
+
leftLegColor = "LeftLegColor";
|
|
14
|
+
rightArmColor = "RightArmColor";
|
|
15
|
+
rightLegColor = "RightLegColor";
|
|
16
|
+
torsoColor = "TorsoColor";
|
|
17
|
+
};
|
|
18
|
+
})
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
local require = require(script.Parent.loader).load(script)
|
|
9
9
|
|
|
10
|
-
local BodyColorsDataConstants = require("BodyColorsDataConstants")
|
|
11
|
-
local Color3SerializationUtils = require("Color3SerializationUtils")
|
|
12
10
|
local Color3Utils = require("Color3Utils")
|
|
11
|
+
local Color3SerializationUtils = require("Color3SerializationUtils")
|
|
12
|
+
local BodyColorsDataConstants = require("BodyColorsDataConstants")
|
|
13
13
|
|
|
14
14
|
local BodyColorsDataUtils = {}
|
|
15
15
|
|
|
@@ -338,15 +338,9 @@ end
|
|
|
338
338
|
@param humanoidDescription HumanoidDescription
|
|
339
339
|
@return BodyColors
|
|
340
340
|
]=]
|
|
341
|
-
function BodyColorsDataUtils.applyToHumanoidDescription(
|
|
342
|
-
bodyColorsData: BodyColorsData,
|
|
343
|
-
humanoidDescription: HumanoidDescription
|
|
344
|
-
)
|
|
341
|
+
function BodyColorsDataUtils.applyToHumanoidDescription(bodyColorsData: BodyColorsData, humanoidDescription: HumanoidDescription)
|
|
345
342
|
assert(BodyColorsDataUtils.isBodyColorsData(bodyColorsData), "Bad bodyColorsData")
|
|
346
|
-
assert(
|
|
347
|
-
typeof(humanoidDescription) == "Instance" and humanoidDescription:IsA("HumanoidDescription"),
|
|
348
|
-
"Bad humanoidDescription"
|
|
349
|
-
)
|
|
343
|
+
assert(typeof(humanoidDescription) == "Instance" and humanoidDescription:IsA("HumanoidDescription"), "Bad humanoidDescription")
|
|
350
344
|
|
|
351
345
|
if bodyColorsData.headColor then
|
|
352
346
|
humanoidDescription.HeadColor = bodyColorsData.headColor
|
|
@@ -373,4 +367,4 @@ function BodyColorsDataUtils.applyToHumanoidDescription(
|
|
|
373
367
|
end
|
|
374
368
|
end
|
|
375
369
|
|
|
376
|
-
return BodyColorsDataUtils
|
|
370
|
+
return BodyColorsDataUtils
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
local require = require(script.Parent.loader).load(script)
|
|
6
6
|
|
|
7
|
-
local BodyColorsDataConstants = require("BodyColorsDataConstants")
|
|
8
|
-
local BodyColorsDataUtils = require("BodyColorsDataUtils")
|
|
9
7
|
local Rx = require("Rx")
|
|
8
|
+
local BodyColorsDataConstants = require("BodyColorsDataConstants")
|
|
10
9
|
local RxAttributeUtils = require("RxAttributeUtils")
|
|
10
|
+
local BodyColorsDataUtils = require("BodyColorsDataUtils")
|
|
11
11
|
|
|
12
12
|
local RxBodyColorsDataUtils = {}
|
|
13
13
|
|
|
@@ -28,26 +28,22 @@ function RxBodyColorsDataUtils.observeFromAttributes(instance)
|
|
|
28
28
|
|
|
29
29
|
return Rx.combineLatest(observables):Pipe({
|
|
30
30
|
Rx.map(function(latestValues)
|
|
31
|
-
|
|
31
|
+
local bodyColorsData = {}
|
|
32
32
|
|
|
33
33
|
for key, attributeName in BodyColorsDataConstants.ATTRIBUTE_MAPPING do
|
|
34
34
|
local value = latestValues[key]
|
|
35
35
|
if typeof(value) == "Color3" then
|
|
36
36
|
bodyColorsData[key] = value
|
|
37
37
|
else
|
|
38
|
-
warn(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
attributeName,
|
|
42
|
-
typeof(value)
|
|
43
|
-
)
|
|
44
|
-
)
|
|
38
|
+
warn(string.format("[RxBodyColorsDataUtils.observeFromAttributes] - Bad attribute %q of type %q",
|
|
39
|
+
attributeName,
|
|
40
|
+
typeof(value)))
|
|
45
41
|
end
|
|
46
42
|
end
|
|
47
43
|
|
|
48
44
|
return BodyColorsDataUtils.createBodyColorsData(bodyColorsData)
|
|
49
|
-
end)
|
|
45
|
+
end);
|
|
50
46
|
})
|
|
51
47
|
end
|
|
52
48
|
|
|
53
|
-
return RxBodyColorsDataUtils
|
|
49
|
+
return RxBodyColorsDataUtils
|