Class TestMultiRelation.SameAlignmentRelation
Implements
Inherited Members
Namespace: Unity.MARS.Tests
Assembly: Unity.MARS.dll
Syntax
[Serializable]
public class TestMultiRelation.SameAlignmentRelation : SubRelation, IRelation<int>, IRelation, IRelationBase, IConditionBase, IRequiresTraits<int>, IRequiresTraits
Properties
child1TraitName
The trait to test against for the first child
Declaration
public string child1TraitName { get; }
Property Value
Type | Description |
---|---|
string |
child2TraitName
The trait to test against for the second child
Declaration
public string child2TraitName { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetRequiredTraits()
Get the TraitRequirements that are required by this object
Declaration
public TraitRequirement[] GetRequiredTraits()
Returns
Type | Description |
---|---|
TraitRequirement[] | The required traits |
RateDataMatch(ref int, ref int)
Compares the given trait data to the filter function
Declaration
public float RateDataMatch(ref int child1Data, ref int child2Data)
Parameters
Type | Name | Description |
---|---|---|
int | child1Data | The data being filtered against for the first child |
int | child2Data | The data being filtered against for the second child |
Returns
Type | Description |
---|---|
float | A number from 0 to 1 indicating how well a set of data matches |