Class CustomProductSaveProviderRegistry
Registers process-lifetime providers for custom-product save descriptors.
public static class CustomProductSaveProviderRegistry
- Inheritance
-
CustomProductSaveProviderRegistry
- Inherited Members
Remarks
Register providers during early mod initialization, before custom-product save restoration. Provider IDs are durable and case-insensitive. A conflicting provider cannot replace the provider that already owns that ID.
Methods
Register(ICustomProductSaveProvider)
Registers a save provider, or returns the existing equivalent provider.
public static ICustomProductSaveProvider Register(ICustomProductSaveProvider provider)
Parameters
providerICustomProductSaveProviderThe provider that reconstructs one family of saved custom products.
Returns
- ICustomProductSaveProvider
The registered provider, or the existing equivalent provider.
Exceptions
- ArgumentNullException
Thrown when
provideris null.- InvalidOperationException
Thrown when another provider already owns the same ID.