@rbxts/humanoid-stat-manager 1.0.24 → 1.0.26
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/out/client.d.ts +1 -5
- package/out/client.luau +5 -4
- package/out/index.d.ts +2 -6
- package/out/init.luau +7 -15
- package/out/server.d.ts +1 -5
- package/out/server.luau +4 -3
- package/package.json +1 -1
package/out/client.d.ts
CHANGED
package/out/client.luau
CHANGED
|
@@ -50,9 +50,10 @@ observeCharacters(function(char, player)
|
|
|
50
50
|
end
|
|
51
51
|
end)
|
|
52
52
|
RunService.Heartbeat:Connect(update)
|
|
53
|
-
|
|
53
|
+
--* @internal
|
|
54
|
+
local HumanoidStatManagerClient = {}
|
|
54
55
|
do
|
|
55
|
-
local _container =
|
|
56
|
+
local _container = HumanoidStatManagerClient
|
|
56
57
|
local function init()
|
|
57
58
|
-- This only exists to suggest/enforce initial requiring of the module.
|
|
58
59
|
end
|
|
@@ -70,12 +71,12 @@ remote.OnClientEvent:Connect(function(action, ...)
|
|
|
70
71
|
local args = { ... }
|
|
71
72
|
if action == "Add" then
|
|
72
73
|
local modifier = args[1]
|
|
73
|
-
|
|
74
|
+
HumanoidStatManagerClient.addModifier(modifier)
|
|
74
75
|
elseif action == "Remove" then
|
|
75
76
|
local id = args[1]
|
|
76
77
|
removeModifier(id)
|
|
77
78
|
end
|
|
78
79
|
end)
|
|
79
80
|
return {
|
|
80
|
-
|
|
81
|
+
HumanoidStatManagerClient = HumanoidStatManagerClient,
|
|
81
82
|
}
|
package/out/index.d.ts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
type ServerImpl = typeof import('./server')['HumanoidStatManager'];
|
|
4
|
-
const Client: ClientImpl;
|
|
5
|
-
const Server: ServerImpl;
|
|
6
|
-
}
|
|
1
|
+
export * from './server';
|
|
2
|
+
export * from './client';
|
package/out/init.luau
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
|
-
local
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
local _container = HumanoidStatManager
|
|
7
|
-
local Client = if RunService:IsClient() then TS.Promise.new(function(resolve)
|
|
8
|
-
resolve(TS.import(script, script, "client"))
|
|
9
|
-
end):expect().HumanoidStatManager else nil
|
|
10
|
-
_container.Client = Client
|
|
11
|
-
local Server = if RunService:IsServer() then TS.Promise.new(function(resolve)
|
|
12
|
-
resolve(TS.import(script, script, "server"))
|
|
13
|
-
end):expect().HumanoidStatManager else nil
|
|
14
|
-
_container.Server = Server
|
|
3
|
+
local exports = {}
|
|
4
|
+
for _k, _v in TS.import(script, script, "server") or {} do
|
|
5
|
+
exports[_k] = _v
|
|
15
6
|
end
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
for _k, _v in TS.import(script, script, "client") or {} do
|
|
8
|
+
exports[_k] = _v
|
|
9
|
+
end
|
|
10
|
+
return exports
|
package/out/server.d.ts
CHANGED
package/out/server.luau
CHANGED
|
@@ -30,9 +30,10 @@ RunService.Heartbeat:Connect(function()
|
|
|
30
30
|
humanoid.JumpHeight = calculateStat("JumpHeight", modifiers)
|
|
31
31
|
end
|
|
32
32
|
end)
|
|
33
|
-
|
|
33
|
+
--* @internal
|
|
34
|
+
local HumanoidStatManagerServer = {}
|
|
34
35
|
do
|
|
35
|
-
local _container =
|
|
36
|
+
local _container = HumanoidStatManagerServer
|
|
36
37
|
local function init()
|
|
37
38
|
-- This only exists to suggest/enforce initial requiring of the module.
|
|
38
39
|
end
|
|
@@ -90,5 +91,5 @@ do
|
|
|
90
91
|
_container.addModifier = addModifier
|
|
91
92
|
end
|
|
92
93
|
return {
|
|
93
|
-
|
|
94
|
+
HumanoidStatManagerServer = HumanoidStatManagerServer,
|
|
94
95
|
}
|