Class Condition<T1, T2>
Base class for conditions that interact with two traits at once
Inheritance
Condition<T1, T2>
Syntax
public abstract class Condition<T1, T2> : ConditionBase, ISimulatable, ICondition<T1, T2>, IConditionBase where T1 : struct where T2 : struct
Type Parameters
Name |
Description |
T1 |
The type of the first trait
|
T2 |
The type of the second trait
|
Properties
TraitName1
Declaration
public string TraitName1 { get; }
Property Value
Implements
TraitName2
Declaration
public string TraitName2 { get; }
Property Value
Implements
Methods
RateDataMatch(ref T1, ref T2)
Declaration
public abstract float RateDataMatch(ref T1 trait1, ref T2 trait2)
Parameters
Type |
Name |
Description |
T1 |
trait1 |
|
T2 |
trait2 |
|
Returns
Implements