@quenty/idleservice 8.0.0-canary.331.7eefa75.0 → 8.0.0-canary.ff9fb44.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 +116 -1
- package/LICENSE.md +1 -1
- package/package.json +12 -12
- package/src/Client/IdleServiceClient.lua +5 -9
- package/src/Client/IdleTargetCalculator.lua +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,122 @@
|
|
|
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.0.0-canary.
|
|
6
|
+
# [8.0.0-canary.ff9fb44.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.24.0...@quenty/idleservice@8.0.0-canary.ff9fb44.0) (2023-06-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/idleservice
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [7.24.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.23.0...@quenty/idleservice@7.24.0) (2023-05-26)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* Initial refactor of guis to use ValueObject instead of ValueObject ([723aba0](https://github.com/Quenty/NevermoreEngine/commit/723aba0208cae7e06c9d8bf2d8f0092d042d70ea))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [7.23.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.22.0...@quenty/idleservice@7.23.0) (2023-05-08)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @quenty/idleservice
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [7.22.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.21.0...@quenty/idleservice@7.22.0) (2023-04-20)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @quenty/idleservice
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# [7.21.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.20.1...@quenty/idleservice@7.21.0) (2023-04-10)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @quenty/idleservice
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## [7.20.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.20.0...@quenty/idleservice@7.20.1) (2023-04-07)
|
|
50
|
+
|
|
51
|
+
**Note:** Version bump only for package @quenty/idleservice
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# [7.20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.19.0...@quenty/idleservice@7.20.0) (2023-04-06)
|
|
58
|
+
|
|
59
|
+
**Note:** Version bump only for package @quenty/idleservice
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# [7.19.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.18.0...@quenty/idleservice@7.19.0) (2023-04-03)
|
|
66
|
+
|
|
67
|
+
**Note:** Version bump only for package @quenty/idleservice
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
# [7.18.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.17.0...@quenty/idleservice@7.18.0) (2023-03-31)
|
|
74
|
+
|
|
75
|
+
**Note:** Version bump only for package @quenty/idleservice
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# [7.17.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.16.0...@quenty/idleservice@7.17.0) (2023-03-31)
|
|
82
|
+
|
|
83
|
+
**Note:** Version bump only for package @quenty/idleservice
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
# [7.16.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.15.1...@quenty/idleservice@7.16.0) (2023-03-28)
|
|
90
|
+
|
|
91
|
+
**Note:** Version bump only for package @quenty/idleservice
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## [7.15.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.15.0...@quenty/idleservice@7.15.1) (2023-03-06)
|
|
98
|
+
|
|
99
|
+
**Note:** Version bump only for package @quenty/idleservice
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
# [7.15.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.14.0...@quenty/idleservice@7.15.0) (2023-03-05)
|
|
106
|
+
|
|
107
|
+
**Note:** Version bump only for package @quenty/idleservice
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
# [7.14.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.13.0...@quenty/idleservice@7.14.0) (2023-03-03)
|
|
114
|
+
|
|
115
|
+
**Note:** Version bump only for package @quenty/idleservice
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
# [7.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/idleservice@7.12.0...@quenty/idleservice@7.13.0) (2023-02-27)
|
|
7
122
|
|
|
8
123
|
**Note:** Version bump only for package @quenty/idleservice
|
|
9
124
|
|
package/LICENSE.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/idleservice",
|
|
3
|
-
"version": "8.0.0-canary.
|
|
3
|
+
"version": "8.0.0-canary.ff9fb44.0",
|
|
4
4
|
"description": "Helps track whether or not a player is idle and if so, then can show UI or other cute things.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"Quenty"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@quenty/baseobject": "6.1
|
|
31
|
-
"@quenty/humanoidtracker": "
|
|
32
|
-
"@quenty/loader": "6.1
|
|
33
|
-
"@quenty/maid": "2.
|
|
34
|
-
"@quenty/ragdoll": "10.0.0-canary.
|
|
35
|
-
"@quenty/rx": "
|
|
36
|
-
"@quenty/servicebag": "6.
|
|
37
|
-
"@quenty/statestack": "
|
|
38
|
-
"@quenty/valuebaseutils": "
|
|
39
|
-
"@quenty/valueobject": "
|
|
30
|
+
"@quenty/baseobject": "6.2.1",
|
|
31
|
+
"@quenty/humanoidtracker": "7.14.0",
|
|
32
|
+
"@quenty/loader": "6.2.1",
|
|
33
|
+
"@quenty/maid": "2.5.0",
|
|
34
|
+
"@quenty/ragdoll": "10.0.0-canary.ff9fb44.0",
|
|
35
|
+
"@quenty/rx": "7.11.0",
|
|
36
|
+
"@quenty/servicebag": "6.7.0",
|
|
37
|
+
"@quenty/statestack": "8.14.0",
|
|
38
|
+
"@quenty/valuebaseutils": "7.14.0",
|
|
39
|
+
"@quenty/valueobject": "7.14.0"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "ff9fb44bc6867fe6ac15ea58a744a028212c8601"
|
|
45
45
|
}
|
|
@@ -13,7 +13,6 @@ local VRService = game:GetService("VRService")
|
|
|
13
13
|
local Maid = require("Maid")
|
|
14
14
|
local RagdollBindersClient = require("RagdollBindersClient")
|
|
15
15
|
local Rx = require("Rx")
|
|
16
|
-
local RxValueBaseUtils = require("RxValueBaseUtils")
|
|
17
16
|
local StateStack = require("StateStack")
|
|
18
17
|
local ValueObject = require("ValueObject")
|
|
19
18
|
|
|
@@ -42,16 +41,13 @@ function IdleServiceClient:Init(serviceBag)
|
|
|
42
41
|
self._disableStack = StateStack.new(false)
|
|
43
42
|
self._maid:GiveTask(self._disableStack)
|
|
44
43
|
|
|
45
|
-
self._enabled =
|
|
46
|
-
self._enabled.Value = true
|
|
44
|
+
self._enabled = ValueObject.new(true, "boolean")
|
|
47
45
|
self._maid:GiveTask(self._enabled)
|
|
48
46
|
|
|
49
|
-
self._showIdleUI =
|
|
50
|
-
self._showIdleUI.Value = false
|
|
47
|
+
self._showIdleUI = ValueObject.new(false, "boolean")
|
|
51
48
|
self._maid:GiveTask(self._showIdleUI)
|
|
52
49
|
|
|
53
|
-
self._humanoidIdle =
|
|
54
|
-
self._humanoidIdle.Value = false
|
|
50
|
+
self._humanoidIdle = ValueObject.new(false, "boolean")
|
|
55
51
|
self._maid:GiveTask(self._humanoidIdle)
|
|
56
52
|
|
|
57
53
|
self._lastPosition = ValueObject.new(nil)
|
|
@@ -132,7 +128,7 @@ end
|
|
|
132
128
|
@return Observable<boolean>
|
|
133
129
|
]=]
|
|
134
130
|
function IdleServiceClient:ObserveHumanoidIdle()
|
|
135
|
-
return
|
|
131
|
+
return self._humanoidIdle:Observe()
|
|
136
132
|
end
|
|
137
133
|
|
|
138
134
|
--[=[
|
|
@@ -148,7 +144,7 @@ end
|
|
|
148
144
|
@return Observable<boolean>
|
|
149
145
|
]=]
|
|
150
146
|
function IdleServiceClient:ObserveShowIdleUI()
|
|
151
|
-
return
|
|
147
|
+
return self._showIdleUI:Observe()
|
|
152
148
|
end
|
|
153
149
|
|
|
154
150
|
--[=[
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
local require = require(script.Parent.loader).load(script)
|
|
8
8
|
|
|
9
9
|
local BaseObject = require("BaseObject")
|
|
10
|
-
local
|
|
10
|
+
local ValueObject = require("ValueObject")
|
|
11
11
|
|
|
12
12
|
local DIST_BEFORE_MOVEMENT = 0.15
|
|
13
13
|
local TIME_UNTIL_IDLE = 1
|
|
@@ -19,8 +19,7 @@ IdleTargetCalculator.__index = IdleTargetCalculator
|
|
|
19
19
|
function IdleTargetCalculator.new()
|
|
20
20
|
local self = setmetatable(BaseObject.new(), IdleTargetCalculator)
|
|
21
21
|
|
|
22
|
-
self._disableContextUI =
|
|
23
|
-
self._disableContextUI.Value = false
|
|
22
|
+
self._disableContextUI = ValueObject.new(false, "boolean")
|
|
24
23
|
self._maid:GiveTask(self._disableContextUI)
|
|
25
24
|
|
|
26
25
|
self.Changed = self._disableContextUI.Changed
|
|
@@ -34,7 +33,7 @@ end
|
|
|
34
33
|
|
|
35
34
|
|
|
36
35
|
function IdleTargetCalculator:ObserveShouldDisableContextUI()
|
|
37
|
-
return
|
|
36
|
+
return self._disableContextUI:Observe()
|
|
38
37
|
end
|
|
39
38
|
|
|
40
39
|
function IdleTargetCalculator:SetTarget(targetPosition)
|