@quenty/playerhumanoidbinder 8.17.0 → 8.18.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,17 @@
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
+ # [8.18.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/playerhumanoidbinder@8.17.0...@quenty/playerhumanoidbinder@8.18.0) (2023-06-17)
7
+
8
+
9
+ ### Features
10
+
11
+ * Binders can be initialized by the ServiceBag directly instead of requireing a BinderProvider ([28ce17f](https://github.com/Quenty/NevermoreEngine/commit/28ce17fe254b7fdce115132244ca1a6e8693d24b))
12
+
13
+
14
+
15
+
16
+
6
17
  # [8.17.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/playerhumanoidbinder@8.16.0...@quenty/playerhumanoidbinder@8.17.0) (2023-06-05)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/playerhumanoidbinder
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/playerhumanoidbinder",
3
- "version": "8.17.0",
3
+ "version": "8.18.0",
4
4
  "description": "Binder that will automatically bind to each player's humanoid",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,13 +25,13 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/binder": "^8.17.0",
29
- "@quenty/humanoidtracker": "^7.15.0",
28
+ "@quenty/binder": "^8.18.0",
29
+ "@quenty/humanoidtracker": "^7.16.0",
30
30
  "@quenty/loader": "^6.2.1",
31
31
  "@quenty/maid": "^2.5.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "d8ad8f8567843d3867b6c06c8c57ec4493672335"
36
+ "gitHead": "dc77d6de09e9eb9d3fd6dafd790c052d8393d38f"
37
37
  }
@@ -24,13 +24,25 @@ PlayerCharacterBinder.__index = PlayerCharacterBinder
24
24
  function PlayerCharacterBinder.new(tag, class, ...)
25
25
  local self = setmetatable(Binder.new(tag, class, ...), PlayerCharacterBinder)
26
26
 
27
- self._shouldTag = Instance.new("BoolValue")
28
- self._shouldTag.Value = true
29
- self._maid:GiveTask(self._shouldTag)
30
-
31
27
  return self
32
28
  end
33
29
 
30
+ --[=[
31
+ Inits the binder. See [Binder.Init].
32
+ Should be done via a [ServiceBag].
33
+
34
+ @param ... any
35
+ ]=]
36
+ function PlayerCharacterBinder:Init(...)
37
+ getmetatable(PlayerCharacterBinder).Init(self, ...)
38
+
39
+ if not self._shouldTag then
40
+ self._shouldTag = Instance.new("BoolValue")
41
+ self._shouldTag.Value = true
42
+ self._maid:GiveTask(self._shouldTag)
43
+ end
44
+ end
45
+
34
46
  --[=[
35
47
  Sets whether tagging should be enabled
36
48
  @param shouldTag boolean
@@ -25,13 +25,25 @@ PlayerHumanoidBinder.__index = PlayerHumanoidBinder
25
25
  function PlayerHumanoidBinder.new(tag, class, ...)
26
26
  local self = setmetatable(Binder.new(tag, class, ...), PlayerHumanoidBinder)
27
27
 
28
- self._shouldTag = Instance.new("BoolValue")
29
- self._shouldTag.Value = true
30
- self._maid:GiveTask(self._shouldTag)
31
-
32
28
  return self
33
29
  end
34
30
 
31
+ --[=[
32
+ Inits the binder. See [Binder.Init].
33
+ Should be done via a [ServiceBag].
34
+
35
+ @param ... any
36
+ ]=]
37
+ function PlayerHumanoidBinder:Init(...)
38
+ getmetatable(PlayerHumanoidBinder).Init(self, ...)
39
+
40
+ if not self._shouldTag then
41
+ self._shouldTag = Instance.new("BoolValue")
42
+ self._shouldTag.Value = true
43
+ self._maid:GiveTask(self._shouldTag)
44
+ end
45
+ end
46
+
35
47
  --[=[
36
48
  Sets whether tagging should be enabled
37
49
  @param shouldTag boolean