Class SerializedTraitRequirement
Inheritance
SerializedTraitRequirement
Syntax
[Serializable]
public class SerializedTraitRequirement : IEquatable<SerializedTraitRequirement>
Constructors
SerializedTraitRequirement()
Declaration
public SerializedTraitRequirement()
SerializedTraitRequirement(String, String, Boolean)
Declaration
public SerializedTraitRequirement(string traitName, string assemblyQualifiedTypeName, bool required = true)
Parameters
SerializedTraitRequirement(TraitRequirement)
Declaration
public SerializedTraitRequirement(TraitRequirement requirement)
Parameters
Properties
Required
Whether the trait is required for the query to match or Action to function.
Declaration
public bool Required { get; }
Property Value
TraitName
Declaration
public string TraitName { get; }
Property Value
TypeName
The assembly-qualified type name of the trait's value
Declaration
public string TypeName { get; }
Property Value
Methods
Equals(SerializedTraitRequirement)
Declaration
public bool Equals(SerializedTraitRequirement other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides