@rbxts/replecs 0.2.0-cdtest.2 → 0.2.1
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
-- Compiled with roblox-ts
|
|
1
|
+
-- Compiled with roblox-ts v3.0.0
|
|
2
2
|
local TS = _G[script]
|
|
3
3
|
local exports = {}
|
|
4
|
-
for _k, _v in TS.import(script, TS.getModule(script, "@rbxts", "jecs")
|
|
4
|
+
for _k, _v in TS.import(script, TS.getModule(script, "@rbxts", "jecs").jecs) or {} do
|
|
5
5
|
exports[_k] = _v
|
|
6
6
|
end
|
|
7
7
|
return exports
|
package/out/replecs/client.luau
CHANGED
|
@@ -203,15 +203,15 @@ end
|
|
|
203
203
|
function client_replicator.entity_set_unreliable(
|
|
204
204
|
client: Client,
|
|
205
205
|
entity: Entity,
|
|
206
|
-
|
|
206
|
+
id: Entity,
|
|
207
207
|
value: any,
|
|
208
208
|
changed_hooks: ChangedHooksEntry?
|
|
209
209
|
)
|
|
210
210
|
if client.command_buffers_active then
|
|
211
211
|
local command_buffer = get_command_buffer(client, entity)
|
|
212
|
-
command_buffer.unreliable_components[
|
|
212
|
+
command_buffer.unreliable_components[id] = { value = value }
|
|
213
213
|
else
|
|
214
|
-
client_replicator.entity_set(client, entity,
|
|
214
|
+
client_replicator.entity_set(client, entity, id, value, changed_hooks)
|
|
215
215
|
end
|
|
216
216
|
end
|
|
217
217
|
|
|
@@ -631,11 +631,11 @@ function client_replicator.apply_command_buffer(
|
|
|
631
631
|
end
|
|
632
632
|
for component, value in command_buffer.components do
|
|
633
633
|
local component_hooks = client.network_hooks.changed[PAIR(components.reliable, component)]
|
|
634
|
-
client_replicator.entity_set(client, entity, component, value, component_hooks)
|
|
634
|
+
client_replicator.entity_set(client, entity, component, value.value, component_hooks)
|
|
635
635
|
end
|
|
636
636
|
for component, value in command_buffer.unreliable_components do
|
|
637
637
|
local component_hooks = client.network_hooks.changed[PAIR(components.unreliable, component)]
|
|
638
|
-
client_replicator.entity_set(client, entity, component, value, component_hooks)
|
|
638
|
+
client_replicator.entity_set(client, entity, component, value.value, component_hooks)
|
|
639
639
|
end
|
|
640
640
|
for component in command_buffer.remove do
|
|
641
641
|
local component_hooks = client.network_hooks.removed[PAIR(components.reliable, component)]
|
package/out/replecs/ver.luau
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
-- Automatically generated
|
|
2
|
+
return "0.2.1"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rbxts/replecs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Replication library for Jecs",
|
|
5
5
|
"main": "out/init.lua",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -41,6 +41,6 @@
|
|
|
41
41
|
"prettier": "^3.2.5"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@rbxts/jecs": "^0.9.0
|
|
44
|
+
"@rbxts/jecs": "^0.9.0"
|
|
45
45
|
}
|
|
46
46
|
}
|