@quenty/hide 6.0.0-canary.367.e9fdcbc.0 → 6.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 +108 -1
- package/package.json +5 -5
- package/src/Client/HideClient.lua +7 -2
- package/src/Client/HideServiceClient.lua +18 -0
- package/src/Server/Hide.lua +6 -2
- package/src/Server/HideService.lua +18 -0
- package/src/Client/HideBindersClient.lua +0 -30
- package/src/Server/HideBindersServer.lua +0 -31
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,114 @@
|
|
|
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.0.0
|
|
6
|
+
# [6.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@5.29.0...@quenty/hide@6.0.0) (2023-10-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/hide
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [5.29.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@5.28.0...@quenty/hide@5.29.0) (2023-09-21)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @quenty/hide
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [5.28.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@5.27.0...@quenty/hide@5.28.0) (2023-09-04)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* Remove HideBindersClient and HideBindersServer and replace them with HideServiceClient and HideServiceServer ([b93f4d1](https://github.com/Quenty/NevermoreEngine/commit/b93f4d15735f0c6daa7a500594a4c043926d9427))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [5.27.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@5.26.0...@quenty/hide@5.27.0) (2023-08-23)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @quenty/hide
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# [5.26.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@5.25.0...@quenty/hide@5.26.0) (2023-08-01)
|
|
42
|
+
|
|
43
|
+
**Note:** Version bump only for package @quenty/hide
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# [5.25.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@5.24.0...@quenty/hide@5.25.0) (2023-07-28)
|
|
50
|
+
|
|
51
|
+
**Note:** Version bump only for package @quenty/hide
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
# [5.24.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@5.23.0...@quenty/hide@5.24.0) (2023-07-23)
|
|
58
|
+
|
|
59
|
+
**Note:** Version bump only for package @quenty/hide
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# [5.23.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@5.22.0...@quenty/hide@5.23.0) (2023-07-15)
|
|
66
|
+
|
|
67
|
+
**Note:** Version bump only for package @quenty/hide
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
# [5.22.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@5.21.1...@quenty/hide@5.22.0) (2023-07-10)
|
|
74
|
+
|
|
75
|
+
**Note:** Version bump only for package @quenty/hide
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## [5.21.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@5.21.0...@quenty/hide@5.21.1) (2023-06-24)
|
|
82
|
+
|
|
83
|
+
**Note:** Version bump only for package @quenty/hide
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
# [5.21.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@5.20.1...@quenty/hide@5.21.0) (2023-06-24)
|
|
90
|
+
|
|
91
|
+
**Note:** Version bump only for package @quenty/hide
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## [5.20.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@5.20.0...@quenty/hide@5.20.1) (2023-06-23)
|
|
98
|
+
|
|
99
|
+
**Note:** Version bump only for package @quenty/hide
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
# [5.20.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@5.19.0...@quenty/hide@5.20.0) (2023-06-17)
|
|
106
|
+
|
|
107
|
+
**Note:** Version bump only for package @quenty/hide
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
# [5.19.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/hide@5.18.0...@quenty/hide@5.19.0) (2023-06-05)
|
|
7
114
|
|
|
8
115
|
**Note:** Version bump only for package @quenty/hide
|
|
9
116
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/hide",
|
|
3
|
-
"version": "6.0.0
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Utility system that leverages the binder system to hide authored objects. Centralized here for cross-system communication.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/binder": "9.0.0
|
|
30
|
-
"@quenty/loader": "
|
|
31
|
-
"@quenty/servicebag": "
|
|
29
|
+
"@quenty/binder": "^9.0.0",
|
|
30
|
+
"@quenty/loader": "^7.0.0",
|
|
31
|
+
"@quenty/servicebag": "^7.0.0"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "fdeae46099587019ec5fc15317dc673aed379400"
|
|
37
37
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
--[=[
|
|
2
|
-
See [
|
|
2
|
+
See [Binder] for usage.
|
|
3
|
+
|
|
3
4
|
@client
|
|
4
5
|
@class HideClient
|
|
5
6
|
]=]
|
|
6
7
|
|
|
8
|
+
local require = require(script.Parent.loader).load(script)
|
|
9
|
+
|
|
10
|
+
local Binder = require("Binder")
|
|
11
|
+
|
|
7
12
|
local HideClient = {}
|
|
8
13
|
HideClient.ClassName = "HideClient"
|
|
9
14
|
HideClient.__index = HideClient
|
|
@@ -24,4 +29,4 @@ function HideClient:Destroy()
|
|
|
24
29
|
setmetatable(self, nil)
|
|
25
30
|
end
|
|
26
31
|
|
|
27
|
-
return HideClient
|
|
32
|
+
return Binder.new("Hide", HideClient)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
--[=[
|
|
2
|
+
@class HideServiceClient
|
|
3
|
+
]=]
|
|
4
|
+
|
|
5
|
+
local require = require(script.Parent.loader).load(script)
|
|
6
|
+
|
|
7
|
+
local HideServiceClient = {}
|
|
8
|
+
HideServiceClient.ServiceName = "HideServiceClient"
|
|
9
|
+
|
|
10
|
+
function HideServiceClient:Init(serviceBag)
|
|
11
|
+
assert(not self._serviceBag, "Already initialized")
|
|
12
|
+
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
13
|
+
|
|
14
|
+
-- Internal
|
|
15
|
+
self._serviceBag:GetService(require("HideClient"))
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
return HideServiceClient
|
package/src/Server/Hide.lua
CHANGED
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
Primarily used for authoring, this hides the tagged instance from render. Great for
|
|
3
3
|
making bounding boxes in studio that are then hidden upon runtime.
|
|
4
4
|
|
|
5
|
-
See [
|
|
5
|
+
See [Binder] for usage.
|
|
6
6
|
|
|
7
7
|
@server
|
|
8
8
|
@class Hide
|
|
9
9
|
]=]
|
|
10
10
|
|
|
11
|
+
local require = require(script.Parent.loader).load(script)
|
|
12
|
+
|
|
13
|
+
local Binder = require("Binder")
|
|
14
|
+
|
|
11
15
|
local Hide = {}
|
|
12
16
|
Hide.ClassName = "Hide"
|
|
13
17
|
Hide.__index = Hide
|
|
@@ -49,4 +53,4 @@ function Hide:Destroy()
|
|
|
49
53
|
setmetatable(self, nil)
|
|
50
54
|
end
|
|
51
55
|
|
|
52
|
-
return Hide
|
|
56
|
+
return Binder.new("Hide", Hide)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
--[=[
|
|
2
|
+
@class HideService
|
|
3
|
+
]=]
|
|
4
|
+
|
|
5
|
+
local require = require(script.Parent.loader).load(script)
|
|
6
|
+
|
|
7
|
+
local HideService = {}
|
|
8
|
+
HideService.ServiceName = "HideService"
|
|
9
|
+
|
|
10
|
+
function HideService:Init(serviceBag)
|
|
11
|
+
assert(not self._serviceBag, "Already initialized")
|
|
12
|
+
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
13
|
+
|
|
14
|
+
-- Internal
|
|
15
|
+
self._serviceBag:GetService(require("Hide"))
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
return HideService
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
--[=[
|
|
2
|
-
Initializes the hiding system on the client. See [HideBindersServer].
|
|
3
|
-
|
|
4
|
-
```lua
|
|
5
|
-
local HideBindersClient = require("HideBindersClient")
|
|
6
|
-
local ServiceBag = require("ServiceBag")
|
|
7
|
-
|
|
8
|
-
local serviceBag = ServiceBag.new()
|
|
9
|
-
serviceBag:GetService(HideBindersClient)
|
|
10
|
-
|
|
11
|
-
serviceBag:Init()
|
|
12
|
-
serviceBag:Start()
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
@client
|
|
16
|
-
@class HideBindersClient
|
|
17
|
-
]=]
|
|
18
|
-
|
|
19
|
-
local require = require(script.Parent.loader).load(script)
|
|
20
|
-
|
|
21
|
-
local BinderProvider = require("BinderProvider")
|
|
22
|
-
local Binder = require("Binder")
|
|
23
|
-
|
|
24
|
-
return BinderProvider.new(script.Name, function(self, serviceBag)
|
|
25
|
-
--[=[
|
|
26
|
-
@prop Hide Binder<HideClient>
|
|
27
|
-
@within HideBindersClient
|
|
28
|
-
]=]
|
|
29
|
-
self:Add(Binder.new("Hide", require("HideClient"), serviceBag))
|
|
30
|
-
end)
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
--[=[
|
|
2
|
-
Initializes the hiding system on the server. You can do this on the client
|
|
3
|
-
if you need to query for raycasting. See [HideBindersClient].
|
|
4
|
-
|
|
5
|
-
```lua
|
|
6
|
-
local HideBindersServer = require("HideBindersServer")
|
|
7
|
-
local ServiceBag = require("ServiceBag")
|
|
8
|
-
|
|
9
|
-
local serviceBag = ServiceBag.new()
|
|
10
|
-
serviceBag:GetService(HideBindersServer)
|
|
11
|
-
|
|
12
|
-
serviceBag:Init()
|
|
13
|
-
serviceBag:Start()
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
@server
|
|
17
|
-
@class HideBindersServer
|
|
18
|
-
]=]
|
|
19
|
-
|
|
20
|
-
local require = require(script.Parent.loader).load(script)
|
|
21
|
-
|
|
22
|
-
local BinderProvider = require("BinderProvider")
|
|
23
|
-
local Binder = require("Binder")
|
|
24
|
-
|
|
25
|
-
return BinderProvider.new(script.Name, function(self, serviceBag)
|
|
26
|
-
--[=[
|
|
27
|
-
@prop Hide Binder<Hide>
|
|
28
|
-
@within HideBindersServer
|
|
29
|
-
]=]
|
|
30
|
-
self:Add(Binder.new("Hide", require("Hide"), serviceBag))
|
|
31
|
-
end)
|