summaryrefslogtreecommitdiff
path: root/core/io/multiplayer_peer.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-08-12 21:07:44 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-08-18 12:37:45 +0100
commitb05cb0fd7d7e4a195359d258fabe33d76976a7a9 (patch)
tree952ce5f53b320fa4cdf275092f5b46ca121f3ff0 /core/io/multiplayer_peer.cpp
parent2a9c4a59dfd2d0f25e2789d8339f91f97f5dd2bb (diff)
[Net] Add state sync to replicator.
Like the spawn/despawn feature, it can be completely overridden with 2 custom callables. The callables will be called with the list of tracked objects. In SERVER mode, objects are automatically tracked, while in CUSTOM mode you can manually track them via `track`/`untrack` (but that's optional). The default sync only happens from server to client, with batch updates, over unreliable channel (but with custom ordering). The default sync will warn you, if your state representation gets too big.
Diffstat (limited to 'core/io/multiplayer_peer.cpp')
0 files changed, 0 insertions, 0 deletions