@quenty/playerhumanoidbinder 8.24.1-canary.405.6fa018e.0 → 8.25.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,9 +3,12 @@
|
|
|
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
|
+
# [8.25.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/playerhumanoidbinder@8.24.0...@quenty/playerhumanoidbinder@8.25.0) (2023-08-23)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add :ObserveAutomaticTagging() ([cafbc1a](https://github.com/Quenty/NevermoreEngine/commit/cafbc1ad1420e9476206c63c8e280ad0bc8f6a28))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/playerhumanoidbinder",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.25.0",
|
|
4
4
|
"description": "Binder that will automatically bind to each player's humanoid",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,13 +25,14 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/binder": "8.
|
|
29
|
-
"@quenty/humanoidtracker": "7.
|
|
30
|
-
"@quenty/loader": "6.
|
|
31
|
-
"@quenty/maid": "2.
|
|
28
|
+
"@quenty/binder": "^8.25.0",
|
|
29
|
+
"@quenty/humanoidtracker": "^7.22.0",
|
|
30
|
+
"@quenty/loader": "^6.3.0",
|
|
31
|
+
"@quenty/maid": "^2.6.0",
|
|
32
|
+
"@quenty/valueobject": "^7.22.0"
|
|
32
33
|
},
|
|
33
34
|
"publishConfig": {
|
|
34
35
|
"access": "public"
|
|
35
36
|
},
|
|
36
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "3b7e47e2180964b6b0b156d07814810e063ef7ed"
|
|
37
38
|
}
|
|
@@ -9,6 +9,7 @@ local Players = game:GetService("Players")
|
|
|
9
9
|
|
|
10
10
|
local Binder = require("Binder")
|
|
11
11
|
local Maid = require("Maid")
|
|
12
|
+
local ValueObject = require("ValueObject")
|
|
12
13
|
|
|
13
14
|
local PlayerCharacterBinder = setmetatable({}, Binder)
|
|
14
15
|
PlayerCharacterBinder.ClassName = "PlayerCharacterBinder"
|
|
@@ -37,8 +38,7 @@ function PlayerCharacterBinder:Init(...)
|
|
|
37
38
|
getmetatable(PlayerCharacterBinder).Init(self, ...)
|
|
38
39
|
|
|
39
40
|
if not self._shouldTag then
|
|
40
|
-
self._shouldTag =
|
|
41
|
-
self._shouldTag.Value = true
|
|
41
|
+
self._shouldTag = ValueObject.new(true, "boolean")
|
|
42
42
|
self._maid:GiveTask(self._shouldTag)
|
|
43
43
|
end
|
|
44
44
|
end
|
|
@@ -54,6 +54,21 @@ function PlayerCharacterBinder:SetAutomaticTagging(shouldTag)
|
|
|
54
54
|
self._shouldTag.Value = shouldTag
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
+
--[=[
|
|
58
|
+
@return Observable<boolean>
|
|
59
|
+
]=]
|
|
60
|
+
function PlayerCharacterBinder:ObserveAutomaticTagging()
|
|
61
|
+
return self._shouldTag:Observe()
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
--[=[
|
|
65
|
+
@param predicate function -- Optional predicate
|
|
66
|
+
@return Observable<Brio<boolean>>
|
|
67
|
+
]=]
|
|
68
|
+
function PlayerCharacterBinder:ObserveAutomaticTaggingBrio(predicate)
|
|
69
|
+
return self._shouldTag:ObserveBrio(predicate)
|
|
70
|
+
end
|
|
71
|
+
|
|
57
72
|
--[=[
|
|
58
73
|
Starts the binder. See [Binder.Start].
|
|
59
74
|
Should be done via a [ServiceBag].
|
|
@@ -10,6 +10,7 @@ local Players = game:GetService("Players")
|
|
|
10
10
|
local Binder = require("Binder")
|
|
11
11
|
local Maid = require("Maid")
|
|
12
12
|
local HumanoidTracker = require("HumanoidTracker")
|
|
13
|
+
local ValueObject = require("ValueObject")
|
|
13
14
|
|
|
14
15
|
local PlayerHumanoidBinder = setmetatable({}, Binder)
|
|
15
16
|
PlayerHumanoidBinder.ClassName = "PlayerHumanoidBinder"
|
|
@@ -38,8 +39,7 @@ function PlayerHumanoidBinder:Init(...)
|
|
|
38
39
|
getmetatable(PlayerHumanoidBinder).Init(self, ...)
|
|
39
40
|
|
|
40
41
|
if not self._shouldTag then
|
|
41
|
-
self._shouldTag =
|
|
42
|
-
self._shouldTag.Value = true
|
|
42
|
+
self._shouldTag = ValueObject.new(true, "boolean")
|
|
43
43
|
self._maid:GiveTask(self._shouldTag)
|
|
44
44
|
end
|
|
45
45
|
end
|
|
@@ -55,6 +55,21 @@ function PlayerHumanoidBinder:SetAutomaticTagging(shouldTag)
|
|
|
55
55
|
self._shouldTag.Value = shouldTag
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
--[=[
|
|
59
|
+
@return Observable<boolean>
|
|
60
|
+
]=]
|
|
61
|
+
function PlayerHumanoidBinder:ObserveAutomaticTagging()
|
|
62
|
+
return self._shouldTag:Observe()
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
--[=[
|
|
66
|
+
@param predicate function -- Optional predicate
|
|
67
|
+
@return Observable<Brio<boolean>>
|
|
68
|
+
]=]
|
|
69
|
+
function PlayerHumanoidBinder:ObserveAutomaticTaggingBrio(predicate)
|
|
70
|
+
return self._shouldTag:ObserveBrio(predicate)
|
|
71
|
+
end
|
|
72
|
+
|
|
58
73
|
--[=[
|
|
59
74
|
Starts the binder. See [Binder.Start].
|
|
60
75
|
Should be done via a [ServiceBag].
|