branchrust_reboot/main/syncvarscancel
115 Commits over 120 Days - 0.04cph!
First compiling example of cheaper single server -> client sync vars 🎉
Ensure base entity initialises SyncVar hooks
Clearer naming for handlers, Sync and Replicate
Client.Connection receive methods.
Initial code generator to hook SyncVar OnValueChanged method to our SendSyncVar method (server only)
Only give a damn about single SyncVars for now
BaseEntity Single SyncVar header, object and send methods
Minor SyncVar code cleanup
Enable encryption
+ BaseEntity.SyncVar (doesn't compile)
Added implicit conversion operators
Add correct list of allowed types
Proper client receive method
Runtime hash set to check for allowed types. This should be done in code gen instead
Added SyncVarConditional, this ensures a Func successfully return true before calling OnValueSync
Created base SyncVar class. Use generics and hook the getter/setter instead to save on memory