Class AlignmentCondition
Represents a situation where a given plane must match a given set of alignments
Inheritance
AlignmentCondition
Syntax
[ComponentTooltip("Requires the object (a surface) to have the specified alignment (horizontal, vertical, or other).")]
[MonoBehaviourComponentMenu(typeof(AlignmentCondition), "Condition/Alignment")]
[CreateFromDataOptions(0, true)]
public class AlignmentCondition : Condition<int>, ISimulatable, ICondition<int>, ICondition, IConditionBase, IRequiresTraits<int>, IRequiresTraits, ICreateFromData
Properties
alignment
Declaration
public MarsPlaneAlignment alignment { get; set; }
Property Value
Methods
Declaration
public string FormatDataString(TraitDataSnapshot data)
Parameters
Returns
Implements
GetConditionRatingForData(TraitDataSnapshot)
Declaration
public float GetConditionRatingForData(TraitDataSnapshot data)
Parameters
Returns
Implements
GetRequiredTraits()
Declaration
public override TraitRequirement[] GetRequiredTraits()
Returns
Overrides
IncludeData(TraitDataSnapshot)
Declaration
public void IncludeData(TraitDataSnapshot data)
Parameters
Implements
OptimizeForData(TraitDataSnapshot)
Declaration
public void OptimizeForData(TraitDataSnapshot data)
Parameters
Implements
RateDataMatch(ref Int32)
Declaration
public override float RateDataMatch(ref int data)
Parameters
Type |
Name |
Description |
Int32 |
data |
|
Returns
Overrides
Unity.MARS.Condition<System.Int32>.RateDataMatch(System.Int32)
Extension Methods