
You are viewing a potentially older version of this package. View Latest Version

If this actually gets some use maybe I'll write some better documentation. I hate documenting :(
Some cursed code that deals with reflection to be able to handle CSync's requirement for generic types. Static members are not one and the same in generic types and one exists for each generic type. Using reflection, it grabs the members needed for CSync's functionality and handle it the same way so that there isn't the same static code for each different class that uses CSync's SyncedInstance class.
How the heck do I even write a wiki?
InitInstance(this); with EasySync.SyncManager.RegisterForSyncing(this, GUID);.PluginInfo.PLUGIN_GUID. Just any string that is unique enough to not be used by others mistakenly.SyncedInstanceContainer. It's only useful you need to resync the settings with your code using container.RequestSync() for whatever reason.EasySync.SyncManager.UnregisterFromSyncing(GUID) but currently that only stops it from syncing automatically on player joins.