Class CombinedCondition
Class CombinedCondition.
Namespace: UnityEngine.Industrial.Configuring.Core.Ruling
Syntax
[Serializable]
public class CombinedCondition : MultiItemCondition, IRuleCondition
Constructors
CombinedCondition()
Initializes a new instance of the CombinedCondition class.
Declaration
public CombinedCondition()
Properties
Conditions
Gets the conditions.
Declaration
public IReadOnlyList<IRuleCondition> Conditions { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<IRuleCondition> | The conditions. |
Methods
Add(IRuleCondition)
Adds the specified condition.
Declaration
public bool Add(IRuleCondition condition)
Parameters
Type | Name | Description |
---|---|---|
IRuleCondition | condition | The condition. |
Returns
Type | Description |
---|---|
Boolean |
|
Applies(RuleExecutionContext)
Applieses the specified context.
Declaration
public override bool Applies(RuleExecutionContext context)
Parameters
Type | Name | Description |
---|---|---|
RuleExecutionContext | context | The context. |
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
ClearEmptyChildren()
Clears the empty children.
Declaration
public void ClearEmptyChildren()
Insert(Int32, IRuleCondition)
Inserts the specified index.
Declaration
public bool Insert(int index, IRuleCondition condition)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index. |
IRuleCondition | condition | The condition. |
Returns
Type | Description |
---|---|
Boolean |
|
Remove(IRuleCondition)
Removes the specified condition.
Declaration
public bool Remove(IRuleCondition condition)
Parameters
Type | Name | Description |
---|---|---|
IRuleCondition | condition | The condition. |
Returns
Type | Description |
---|---|
Boolean |
|
SetAt(Int32, IRuleCondition)
Sets at.
Declaration
public bool SetAt(int index, IRuleCondition condition)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index. |
IRuleCondition | condition | The condition. |
Returns
Type | Description |
---|---|
Boolean |
|