mirror of
https://github.com/littensy/charm.git
synced 2026-10-21 11:44:08 +00:00
refactor: start charm-sync rewrite
This commit is contained in:
parent
4a07297a13
commit
079abaacc1
18 changed files with 468 additions and 560 deletions
20
packages/charm-sync/src/config.luau
Normal file
20
packages/charm-sync/src/config.luau
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
return {
|
||||
--- The interval at which to send patches to the client, in seconds.
|
||||
--- Defaults to `0` (patches are sent up to once per frame). Set to a
|
||||
--- negative value to disable automatic syncing.
|
||||
interval = 0,
|
||||
--- Whether the history of state changes since the client's last update
|
||||
--- should be preserved. This is useful for values that change multiple
|
||||
--- times per frame, where each individual change is important. Defaults
|
||||
--- to `false`.
|
||||
preserveHistory = false,
|
||||
--- When `true`, Charm will apply validation and serialize unsafe arrays
|
||||
--- to address remote event argument limitations. Defaults to `true`.
|
||||
--- This option should be disabled if your network library uses a custom
|
||||
--- serialization method (i.e. Zap, ByteNet) to prevent interference.
|
||||
autoSerialize = true,
|
||||
--- When `true`, patches will be validated before being sent to clients to
|
||||
--- enforce remote event limitations. Only checked in strict mode and if
|
||||
--- `autoSerialize` is enabled. Defaults to `true`.
|
||||
validatePatches = true,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue