tModLoader v0.11.8.9
A mod to make and play Terraria mods
|
This TypeConverter facilitates converting to and from the string Type. This is necessary for Objects that are to be used as Dictionary keys, since the JSON for keys needs to be a string. Classes annotated with this TypeConverter need to implement a static FromString method that returns T. More...
Public Member Functions | |
override bool | CanConvertFrom (ITypeDescriptorContext context, System.Type sourceType) |
override bool | CanConvertTo (ITypeDescriptorContext context, Type destinationType) |
override object | ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) |
This TypeConverter facilitates converting to and from the string Type. This is necessary for Objects that are to be used as Dictionary keys, since the JSON for keys needs to be a string. Classes annotated with this TypeConverter need to implement a static FromString method that returns T.
T | The Type that implementes the static FromString method that returns Type T. |
Definition at line 145 of file EntityDefinition.cs.
override bool Terraria.ModLoader.Config.ToFromStringConverter< T >.CanConvertFrom | ( | ITypeDescriptorContext | context, |
System.Type | sourceType | ||
) |
Definition at line 151 of file EntityDefinition.cs.
override bool Terraria.ModLoader.Config.ToFromStringConverter< T >.CanConvertTo | ( | ITypeDescriptorContext | context, |
Type | destinationType | ||
) |
Definition at line 147 of file EntityDefinition.cs.
override object Terraria.ModLoader.Config.ToFromStringConverter< T >.ConvertFrom | ( | ITypeDescriptorContext | context, |
System.Globalization.CultureInfo | culture, | ||
object | value | ||
) |
Definition at line 157 of file EntityDefinition.cs.