Class FlatFloorCondition.FloorTagSubCondition
Implements
Inherited Members
Namespace: Unity.MARS.Conditions
Assembly: Unity.MARS.dll
Syntax
[Serializable]
public class FlatFloorCondition.FloorTagSubCondition : SubCondition, ISemanticTagCondition, ICondition<bool>, ICondition, IConditionBase, IRequiresTraits<bool>, IRequiresTraits
Properties
matchRule
Whether to require the presence or absence of the tag
Declaration
public SemanticTagMatchRule matchRule { get; }
Property Value
| Type | Description |
|---|---|
| SemanticTagMatchRule |
traitName
What trait this condition is testing against
Declaration
public string traitName { 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 bool)
Describe how well a given piece of data matches a condition. 0 means the match is unacceptable, 1 means a perfect match
Declaration
public float RateDataMatch(ref bool data)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | data | The data to rate |
Returns
| Type | Description |
|---|---|
| float | A number from 0 to 1 indicating how well a piece of data watches this condition |