Class MultiRelation<TRelation1, TRelation2, TRelation3>
Base class for conditions that interact with three traits at once This handles all the necessary wiring of making sure the SubRelations are properly serialized, available for queries and that each SubRelation has a proper reference back to the host
Inheritance
MultiRelation<TRelation1, TRelation2, TRelation3>
Inherited Members
Namespace: Unity.MARS
Syntax
public class MultiRelation<TRelation1, TRelation2, TRelation3> : MultiRelationBase, ISimulatable, IComponentHost<IRelation>, ISerializationCallbackReceiver where TRelation1 : SubRelation, IRelation, new()
where TRelation2 : SubRelation, IRelation, new()
where TRelation3 : SubRelation, IRelation, new()
Type Parameters
Name | Description |
---|---|
TRelation1 | The type of the first SubRelation |
TRelation2 | The type of the second SubRelation |
TRelation3 | The type of the third SubRelation |
Fields
m_Relation1
Declaration
protected TRelation1 m_Relation1
Field Value
Type | Description |
---|---|
TRelation1 |
m_Relation2
Declaration
protected TRelation2 m_Relation2
Field Value
Type | Description |
---|---|
TRelation2 |
m_Relation3
Declaration
protected TRelation3 m_Relation3
Field Value
Type | Description |
---|---|
TRelation3 |
Methods
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()
SetChildren(Proxy, Proxy)
Declaration
public override void SetChildren(Proxy context1, Proxy context2)
Parameters
Type | Name | Description |
---|---|---|
Proxy | context1 | |
Proxy | context2 |