StringTableEntry
public partial struct StringTableEntryInherits from System.ValueType
#Constructors
#StringTableEntry(StringTableEntry)
public StringTableEntry(StringTableEntry s)Parameters
- The instance to copy values from.
#Fields
#Comment
public string Comment;Type String
#File
public string File;Type String
#ID
public string ID;Type String
#Language
public string Language;Type String
#LineNumber
public string LineNumber;Type String
#Lock
public string Lock;Type String
This field contains the first 8 characters of the SHA-256 hash of the line's text as it appeared in the base localization CSV file.
When a new StringTableEntry is created in a localized CSV file for a .yarn file, the Lock value is copied over from the base CSV file, and used for the translated entry.
Because the base localization CSV is regenerated every time the .yarn file is imported, the base localization Lock value will change if a line's text changes. This means that if the base lock and translated lock differ, the translated line is out of date, and needs to be updated.
#Node
public string Node;Type String
#Text
#Methods
#CreateCSV(IEnumerable<StringTableEntry>)
entries.public static string CreateCSV(IEnumerable<StringTableEntry> entries)Parameters
entriesIEnumerable<Yarn.Unity.StringTableEntry>The StringTableEntry values to generate the spreadsheet from.
Returns String: A string containing CSV-formatted data.
#Equals(object)
public override bool Equals(object obj)Parameters
objobject
Returns Boolean
#GetHashCode()
public override int GetHashCode()Returns Int32
#ParseFromCSV(string)
sourceText,
and produces a collection of StringTableEntry structs.public static IEnumerable<StringTableEntry> ParseFromCSV(string sourceText)Parameters
sourceTextstringA string containing CSV-formatted data.
Returns IEnumerable: The parsed collection of StringTableEntry
structs.
Exceptions
ArgumentExceptionThrown when an error occurs when parsing the string.
#ToString()
public override string ToString()Returns String
Generated from Yarn Spinner for Unity 3.3.