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