Yarnspinnex.Line (yarnspinnex v0.3.0)

Copy Markdown View Source

One line of dialogue as returned by Yarnspinnex.step/3: the speaker, the text with its interpolations applied, and the #tags written after it. id is the value of the #line: tag when present - Yarn's localization key for the line.

Summary

Types

t()

@type t() :: %Yarnspinnex.Line{
  id: String.t() | nil,
  speaker: String.t() | nil,
  tags: [String.t()],
  text: String.t()
}