Class MultiCondition<TCondition1, TCondition2, TCondition3>
Base class for conditions that interact with three traits at once This handles all the necessary wiring of making sure the SubConditions are properly serialized, available for queries and that each SubCondition has a proper reference back to the host
Inheritance
MultiCondition<TCondition1, TCondition2, TCondition3>
Inherited Members
Namespace: Unity.MARS
Syntax
public class MultiCondition<TCondition1, TCondition2, TCondition3> : MultiConditionBase, ISimulatable, IComponentHost<ICondition>, ISerializationCallbackReceiver where TCondition1 : SubCondition, ICondition, new()
where TCondition2 : SubCondition, ICondition, new()
where TCondition3 : SubCondition, ICondition, new()
Type Parameters
Name | Description |
---|---|
TCondition1 | The type of the first SubCondition |
TCondition2 | The type of the second SubCondition |
TCondition3 | The type of the third SubCondition |
Constructors
MultiCondition()
Declaration
public MultiCondition()
Fields
m_Condition1
Declaration
protected TCondition1 m_Condition1
Field Value
Type | Description |
---|---|
TCondition1 |
m_Condition2
Declaration
protected TCondition2 m_Condition2
Field Value
Type | Description |
---|---|
TCondition2 |
m_Condition3
Declaration
protected TCondition3 m_Condition3
Field Value
Type | Description |
---|---|
TCondition3 |
Methods
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()