NamedType
Represents a simpler and more sourcegen cache friendly version of roslyns
INamedTypeSymbol.
This could be a lot more advanced but in practice we've seen this works well enough to give us the necessary functionality of the roslyn equivalent.(no declaration available)Inherits from System.Object
Implements System.IEquatable{Yarn.Shared.NamedType}
#Constructors
#NamedType()
public NamedType()Returns Void
#NamedType(string, string, string, YarnSpecialType, bool)
public NamedType(string fullyQualifiedType, string shortType, string longType, YarnSpecialType specialType, bool isUnityComponentType)Parameters
fullyQualifiedTypestringshortTypestringlongTypestringspecialTypeYarn.Shared.YarnSpecialTypeisUnityComponentTypebool
Returns Void
#Fields
#fullyQualifiedType
the fully qualified name (so including the little global::) of the type.
So for a line cancellation token you'd expect to see
global::Yarn.Unity.LineCancellationToken herepublic readonly string fullyQualifiedType;Type String
#isUnityComponentType
From inside this layer we can't know if a type is actually a unity component type or not.
There are some tricks we could do to make an educated guess but its much easier to just be told by another layer with more insight
public readonly bool isUnityComponentType;Type Boolean
#longType
The long form name of the type, includes the namespace basically.
So for a line cancellation token you'd expect to see
Yarn.Unity.LineCancellationToken herepublic readonly string longType;Type String
#shortType
The short form name of the type
So for a line cancellation token you'd expect to see
LineCancellationToken herepublic readonly string shortType;Type String
#specialType
The special type of this type, this is just a shorter and often more convenient way to filter a lot of types.
For basic types it will just be that type, for everything else (including tokens and enums and components) it will be other
public readonly YarnSpecialType specialType;Type YarnSpecialType
Generated from Yarn Spinner for Unity 3.3.