StateSyncable

The StateSyncable template is an implementation which handles the syncing of member attributes into are PluginState.custom store during plugin load/unload. This allows plugin developers to simply attach the @Synced UDA to any attributes they wish to be stored, and then call stateLoad and stateUnload in the plugin load/unload functions.

Members

Functions

stateLoad
void stateLoad(PluginState state)

Loads all custom attribute state from a PluginState.

stateUnload
void stateUnload(PluginState state)

Unloads all custom attributes into a PluginState.

Meta