branchrust_reboot/main/hackweek_syncvarscancel
19 Commits over 0 Days - ∞cph!
Fixed broken packing attributes
Implement the packed attribute:
- Should we send this sync var itself or with all other sync vars
- This allows the user to weigh up header cost of sending the sync var alone vs along with all other sync vars
- Only sends this specific var if its dirty, whereas packed sync vars are all resend even if only one is dirty
wip: Kill sync var tick on object death
wip: Automatically sync vars should any change. Uses a polling method for now:
- Invoke poll in fixed repeat time
- Syncvar handler no longer requires default value
Perform type checks on initial sync var generation pass
wip: Added bidirectional client -> server / server -> client var sync. Syncvars can be declared as chaving client authority
wip: working server -> client syncing
wip: Took me a day to realise there were seperate writer methods for client and server
Server receive methods
- Setup testing
- More logcs
- Client sync var debugging
Setup both client and server send methods
Generated code compile errors
- Added sync var handlers to detect changes in sync vars
- Generated at code gen
- Overridable methods to check if should update and reset update checks
- Successfully made read/write serverside methods for any sync var contained inside an entity
- Managed to remove variable ids and rely on constant ordering/reading (sync vars are now cheaper than RPCs bandwith wise)
- Pack all sync vars into one packet (might need adjustment)
- Cleaned up code
- Fixed a bunch of generation errors
- Added sync var receive code gen (net read method infered from variable type)
- Sync var pooled strings added to manifest
- SyncVar write and send methods
- Start of codegen
- BaseNetworkable & EntityComponent methods
- Remove ServerManager receive method for now
- Fill out client receive method for sync var
- Handle message case in Client.Connection
- Added attribute (toggleable client authority)
- Limit SyncVars to a set of 14 specific types
- Static helper methods
- Added packet id
- Handle message case in ServerManager
- Initial OnSyncVarMessage method