Class MultiRelation<TRelation1, TRelation2>
Base class for conditions that interact with two 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>
Inherited Members
Namespace: Unity.MARS
Syntax
public class MultiRelation<TRelation1, TRelation2> : MultiRelationBase, ISimulatable, IComponentHost<IRelation>, ISerializationCallbackReceiver where TRelation1 : SubRelation, IRelation, new()
where TRelation2 : SubRelation, IRelation, new()
Type Parameters
Name | Description |
---|---|
TRelation1 | The type of the first SubRelation |
TRelation2 | The type of the second 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 |
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 |