Class StagingRulesUpdateProvider
Default staging rules update provider
Namespace: UnityEngine.Industrial.Configuring.Staging
Syntax
public class StagingRulesUpdateProvider : IStagingRulesUpdateProvider
Constructors
StagingRulesUpdateProvider()
Initializes a new instance of the StagingRulesUpdateProvider class.
Declaration
public StagingRulesUpdateProvider()
Properties
Instance
Gets the instance.
Declaration
public static StagingRulesUpdateProvider Instance { get; }
Property Value
Type | Description |
---|---|
StagingRulesUpdateProvider | The instance. |
Methods
Add(Type, StagingRulesUpdater)
Adds an custom rules updater for staging rule type
Declaration
public void Add(Type stagingRule, StagingRulesUpdater updater)
Parameters
Type | Name | Description |
---|---|---|
Type | stagingRule | The staging rule. |
StagingRulesUpdater | updater | The updater. |
Exceptions
Type | Condition |
---|---|
InvalidCastException | Staging rule should be subclass of StagingRule |
Add<T>(T, StagingRulesUpdater)
Adds an custom rules updater for staging rule type
Declaration
public void Add<T>(T stagingRule, StagingRulesUpdater updater)
where T : StagingRule
Parameters
Type | Name | Description |
---|---|---|
T | stagingRule | The staging rule. |
StagingRulesUpdater | updater | The updater. |
Type Parameters
Name | Description |
---|---|
T |
Provide(StagingRule)
Provides the specified rule.
Declaration
public StagingRulesUpdater Provide(StagingRule rule)
Parameters
Type | Name | Description |
---|---|---|
StagingRule | rule | The rule. |
Returns
Type | Description |
---|---|
StagingRulesUpdater | StagingRulesUpdater. |