@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 CHANGED
@@ -1 +1,5 @@
1
- export {};
1
+ import { Modifier } from './shared';
2
+ export declare namespace HumanoidStatManagerClient {
3
+ function init(): void;
4
+ function addModifier(modifier: Omit<Modifier, 'startTime'>): () => void;
5
+ }
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
- --* @internal
54
- local HumanoidStatManager = {}
53
+ local HumanoidStatManagerClient = {}
55
54
  do
56
- local _container = HumanoidStatManager
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
- HumanoidStatManager.addModifier(modifier)
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
- HumanoidStatManager = HumanoidStatManager,
80
+ HumanoidStatManagerClient = HumanoidStatManagerClient,
82
81
  }
package/out/index.d.ts CHANGED
@@ -1,6 +1,2 @@
1
- import { HumanoidStatManager as HumanoidStatManagerServer } from './server';
2
- import { HumanoidStatManager as HumanoidStatManagerClient } from './client';
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 RunService = game:GetService("RunService")
4
- local HumanoidStatManager = {}
5
- do
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
- return {
17
- HumanoidStatManager = HumanoidStatManager,
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
@@ -1 +1,5 @@
1
- export {};
1
+ import { Modifier } from './shared';
2
+ export declare namespace HumanoidStatManagerServer {
3
+ function init(): void;
4
+ function addModifier(char: Model, modifier: Omit<Modifier, 'id' | 'startTime'>): () => void;
5
+ }
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
- --* @internal
34
- local HumanoidStatManager = {}
33
+ local HumanoidStatManagerServer = {}
35
34
  do
36
- local _container = HumanoidStatManager
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
- HumanoidStatManager = HumanoidStatManager,
93
+ HumanoidStatManagerServer = HumanoidStatManagerServer,
95
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/humanoid-stat-manager",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "",
5
5
  "main": "out/init.lua",
6
6
  "scripts": {