Class RuntimeUIDataEngine
A local info engine implementation. The data can be filled inside Unity editor and used on configurator project directly.
Inherited Members
Namespace: UnityEngine.Industrial.Configuring.Providers
Syntax
public class RuntimeUIDataEngine : MonoBehaviour, IInfoEngine
Properties
CurrentProduct
Gets the current product.
Declaration
public Product CurrentProduct { get; }
Property Value
Type | Description |
---|---|
Product | The current product. |
ProductRuntimeUiData
Gets the product runtime UI data.
Declaration
public ProductRuntimeUIData ProductRuntimeUiData { get; }
Property Value
Type | Description |
---|---|
ProductRuntimeUIData | The product runtime UI data. |
Methods
Initialize(Configurator)
Initializes the specified configurator.
Declaration
public void Initialize(Configurator configurator)
Parameters
Type | Name | Description |
---|---|---|
Configurator | configurator | The configurator. |
Implements
OnContextModified(Context, InfoEngineOperation)
Called when [context modified].
Declaration
public SynchronousProviderOperation<InfoEngineReply> OnContextModified(Context context, InfoEngineOperation operation)
Parameters
Type | Name | Description |
---|---|---|
Context | context | The context. |
InfoEngineOperation | operation | The operation. |
Returns
Type | Description |
---|---|
SynchronousProviderOperation<InfoEngineReply> | SynchronousProviderOperation<InfoEngineReply>. |
Implements
OnFeatureModified(Feature, InfoEngineOperation)
Called when [feature modified].
Declaration
public SynchronousProviderOperation<InfoEngineReply> OnFeatureModified(Feature feature, InfoEngineOperation operation)
Parameters
Type | Name | Description |
---|---|---|
Feature | feature | The feature. |
InfoEngineOperation | operation | The operation. |
Returns
Type | Description |
---|---|
SynchronousProviderOperation<InfoEngineReply> | SynchronousProviderOperation<InfoEngineReply>. |
Implements
OnFeatureSetModified(FeatureSet, InfoEngineOperation)
Called when [feature set modified].
Declaration
public SynchronousProviderOperation<InfoEngineReply> OnFeatureSetModified(FeatureSet featureSet, InfoEngineOperation operation)
Parameters
Type | Name | Description |
---|---|---|
FeatureSet | featureSet | The feature set. |
InfoEngineOperation | operation | The operation. |
Returns
Type | Description |
---|---|
SynchronousProviderOperation<InfoEngineReply> | SynchronousProviderOperation<InfoEngineReply>. |
Implements
OnProductModified(Product, InfoEngineOperation)
Called when [product modified].
Declaration
public SynchronousProviderOperation<InfoEngineReply> OnProductModified(Product product, InfoEngineOperation operation)
Parameters
Type | Name | Description |
---|---|---|
Product | product | The product. |
InfoEngineOperation | operation | The operation. |
Returns
Type | Description |
---|---|
SynchronousProviderOperation<InfoEngineReply> | SynchronousProviderOperation<InfoEngineReply>. |
Implements
QueryContextCollectionDisplayInfo(Context, ContextCollection)
Queries the context collection display information.
Declaration
public ProviderOperation<InfoEngineReply<ContextCollection, ContextCollectionDisplayInfo>> QueryContextCollectionDisplayInfo(Context currentContext, ContextCollection contextCollection)
Parameters
Type | Name | Description |
---|---|---|
Context | currentContext | The current context. |
ContextCollection | contextCollection | The context collection. |
Returns
Type | Description |
---|---|
ProviderOperation<InfoEngineReply<ContextCollection, ContextCollectionDisplayInfo>> | ProviderOperation<InfoEngineReply<ContextCollection, ContextCollectionDisplayInfo>>. |
Implements
QueryFeatureDisplayInfo(Context, Feature)
Queries the feature display information.
Declaration
public ProviderOperation<InfoEngineReply<Feature, FeatureDisplayInfo>> QueryFeatureDisplayInfo(Context currentContext, Feature feature)
Parameters
Type | Name | Description |
---|---|---|
Context | currentContext | The current context. |
Feature | feature | The feature. |
Returns
Type | Description |
---|---|
ProviderOperation<InfoEngineReply<Feature, FeatureDisplayInfo>> | ProviderOperation<InfoEngineReply<Feature, FeatureDisplayInfo>>. |
Implements
Exceptions
Type | Condition |
---|---|
ArgumentNullException | feature |
QueryFeatureSetDisplayInfo(Context, FeatureSet)
Queries the feature set display information.
Declaration
public ProviderOperation<InfoEngineReply<FeatureSet, FeatureSetDisplayInfo>> QueryFeatureSetDisplayInfo(Context currentContext, FeatureSet featureSet)
Parameters
Type | Name | Description |
---|---|---|
Context | currentContext | The current context. |
FeatureSet | featureSet | The feature set. |
Returns
Type | Description |
---|---|
ProviderOperation<InfoEngineReply<FeatureSet, FeatureSetDisplayInfo>> | ProviderOperation<InfoEngineReply<FeatureSet, FeatureSetDisplayInfo>>. |
Implements
QueryProductInfo(Product)
Queries the product information.
Declaration
public ProviderOperation<InfoEngineReply<Product, ProductDisplayInfo>> QueryProductInfo(Product product)
Parameters
Type | Name | Description |
---|---|---|
Product | product | The product. |
Returns
Type | Description |
---|---|
ProviderOperation<InfoEngineReply<Product, ProductDisplayInfo>> | ProviderOperation<InfoEngineReply<Product, ProductDisplayInfo>>. |
Implements
RecordUndo(String)
Records the undo.
Declaration
public void RecordUndo(string change)
Parameters
Type | Name | Description |
---|---|---|
String | change | The change. |
Implements
SaveData()
Saves the data.
Declaration
public void SaveData()