Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
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!