Table of Contents

Class ProductDefinitionWrapper

Namespace
S1API.Products
Assembly
S1API.dll

Selects the most specific API wrapper for a registered native product definition.

public static class ProductDefinitionWrapper
Inheritance
ProductDefinitionWrapper
Inherited Members

Remarks

The wrapper exposes native-family types when available and returns CustomProductDefinition only for definitions registered through S1API's custom-product metadata. It never changes the native definition or its identity.

Methods

Wrap(ProductDefinition)

Returns the most specific wrapper available for a product definition.

public static ProductDefinition Wrap(ProductDefinition def)

Parameters

def ProductDefinition

The product definition to classify.

Returns

ProductDefinition

A typed wrapper, or def when no more specific wrapper applies.