Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Ink / InkLibs / InkRuntime / Choice.cs
  1. using System.Collections.Generic;
  2. namespace Ink.Runtime
  3. {
  4. /// <summary>
  5. /// A generated Choice from the story.
  6. /// A single ChoicePoint in the Story could potentially generate
  7. /// different Choices dynamically dependent on state, so they're
  8. /// separated.
  9. /// </summary>
  10. public class Choice : Runtime.Object
  11. {
  12. /// <summary>
  13. /// The main text to presented to the player for this Choice.
  14. /// </summary>
  15. public string text { get; set; }
  16. /// <summary>
  17. /// The target path that the Story should be diverted to if
  18. /// this Choice is chosen.
  19. /// </summary>
  20. public string pathStringOnChoice {
  21. get {
  22. return targetPath.ToString ();
  23. }
  24. set {
  25. targetPath = new Path (value);
  26. }
  27. }
  28. /// <summary>
  29. /// Get the path to the original choice point - where was this choice defined in the story?
  30. /// </summary>
  31. /// <value>A dot separated path into the story data.</value>
  32. public string sourcePath;
  33. /// <summary>
  34. /// The original index into currentChoices list on the Story when
  35. /// this Choice was generated, for convenience.
  36. /// </summary>
  37. public int index { get; set; }
  38. public Path targetPath;
  39. public CallStack.Thread threadAtGeneration { get; set; }
  40. public int originalThreadIndex;
  41. public bool isInvisibleDefault;
  42. public List<string> tags;
  43. public Choice()
  44. {
  45. }
  46. }
  47. }