TypeBase
Provides the base class for all concrete types.
public abstract class TypeBase : IType, IEquatable<TypeBase>Inherits from System.Object
Implements Yarn.IType, System.IEquatable{Yarn.TypeBase}
#Properties
#ConvertibleToTypes
Gets the collection of types that this type may be converted to.
public IReadOnlyCollection<IType> ConvertibleToTypes { get }Type IReadOnlyCollection
#Description
Gets a string describing this type.
public abstract string Description { get; }Type String
#Methods
Gets the collection of methods that are defined on this type.
public virtual IReadOnlyDictionary<string, Delegate> Methods { get }Type IReadOnlyDictionary
#Name
Gets the name of this type.
public abstract string Name { get; }Type String
#Parent
#TypeMembers
Gets a dictionary containing the members of this type.
public IReadOnlyDictionary<string, ITypeMember> TypeMembers { get }Type IReadOnlyDictionary
#Methods
#Equals(object)
public override bool Equals(object obj)Parameters
objobject
Returns Boolean
#Equals(TypeBase)
#GetHashCode()
public override int GetHashCode()Returns Int32
#IsAncestorOf(TypeBase)
Gets whether this type is an ancestor of
other.public bool IsAncestorOf(TypeBase other)Parameters
otherYarn.TypeBaseThe type to check.
Returns Boolean: true if this type is an ancestor of
other; false
otherwise.
#IsConvertibleTo(TypeBase)
Checks if this type is convertible to the type represented by
otherType.public bool IsConvertibleTo(TypeBase otherType)Parameters
otherTypeYarn.TypeBaseThe type to check.
Returns Boolean: true if this type is convertible to
otherType.
A type is convertible to another type if:
- there is an explicit conversion available, or
- it is a descendant of that type, or
- the two types are identical.
#ToString()
public override string ToString();Returns String
Generated from Yarn Spinner for Unity 3.3.