Experienced TLDR setup.
Updated 9 months 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
.BindSyncedEntry
for 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!