Experienced TLDR setup.
Updated 2 years ago- Add reference to CSync and EasySync's DLLs.
- Create a
[DataContract] ExampleConfig : SyncedInstance<ExampleConfig>class. - Non-synced variables are
ConfigEntry<T>. Synced variables are[DataMember] public SyncedEntry<T>. - When binding in the constructor, use
.BindSyncedEntryfor synced entries. - Add to the constructor
EasySync.SyncManager.RegisterForSyncing(this, GUID);. - Create an instance but no need to store it.
- When accessing values, use
ExampleConfig.Instance. - Done!