Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Network Flow

Sinistralis edited this page Aug 15, 2014 · 1 revision

All files (except renderables) exist originally on server.

Bundles get initialized on Server.

Bundles sent down to client as needed, loads them.

Loads client copy of entities contained within bundle. Any changes made to these entities are included in the packet, which will then be validated by the server copy using Synchronizable.server.recieve(data);

Returns a set of valid and invalid data via Synchronizable.server.send();

Synchronizable.client.recieve(data) will update the client Entity upon receiving a packet.

Synchronizable.client.send() sends up the packet that the client builds with each change, and restarts the cycle.

All attributes of an entity should use a getter/setter for properties that will require syncing, and is where the packet gets built at for each change. Is there a way to automate this?

Clone this wiki locally