Class SaveStoreRegistry
- Namespace
- Aarthificial.Safekeeper.Stores
- Assembly
- Aarthificial.Safekeeper.dll
A static registry for ISaveStores.
public static class SaveStoreRegistry
- Inheritance
-
SaveStoreRegistry
- Inherited Members
Methods
Clear()
Clear the registry.
public static bool Clear()
Returns
- bool
Whether any stores were removed.
Remarks
Ideally, stores should remove themselves from the registry. During development, it may be useful to use this method to check if all stores are properly removed and log a warning otherwise.
OnLoad(SaveControllerBase)
Invoke OnLoad(SaveControllerBase) on all registered stores.
public static void OnLoad(SaveControllerBase save)
Parameters
save
SaveControllerBaseThe current save controller.
OnSave(SaveControllerBase)
Invoke OnSave(SaveControllerBase) on all registered stores.
public static void OnSave(SaveControllerBase save)
Parameters
save
SaveControllerBase
Register(ISaveStore)
Register a store.
public static void Register(ISaveStore store)
Parameters
store
ISaveStoreThe store to register.
Unregister(ISaveStore)
Unregister a store.
public static void Unregister(ISaveStore store)
Parameters
store
ISaveStoreThe store to unregister.