Table of Contents

Class CustomProductSaveProviderRegistry

Namespace
S1API.Products
Assembly
S1API.dll

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

provider ICustomProductSaveProvider

The provider that reconstructs one family of saved custom products.

Returns

ICustomProductSaveProvider

The registered provider, or the existing equivalent provider.

Exceptions

ArgumentNullException

Thrown when provider is null.

InvalidOperationException

Thrown when another provider already owns the same ID.