RandomLineTagGenerator
A line tag generator that produces line IDs containing a random hexadecimal
string.
public class RandomLineTagGenerator : ILineTagGeneratorInherits from System.Object
Implements Yarn.Compiler.ILineTagGenerator
#Methods
#GenerateLineTag(string, int)
Generates a unique line tag.
public string GenerateLineTag(string node, int lineIndex)Parameters
nodestringThe node in which the line existlineIndexintThe relative line number of the dialogue.
Returns String: The generated line tag.
#PrepareForLines(Dictionary<string, List<ILineTagGenerator.LineTagContext>>, HashSet<string>)
Called by Yarn Spinner before any line generation is
public void PrepareForLines(Dictionary<string, List<ILineTagGenerator.LineTagContext>> LineContexts, HashSet<string> excludedIDs)Parameters
LineContextsDictionary<string, List<Yarn.Compiler.ILineTagGenerator.LineTagContext>>The combined information of all nodes and linesexcludedIDsHashSet<string>A collection of strings that should not be used for generation.
Generated from Yarn Spinner for Unity 3.3.