Chapter.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. using Newtonsoft.Json;
  2. using Newtonsoft.Json.Converters;
  3. using System;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. namespace DataTools
  7. {
  8. [Serializable]
  9. public class Chapter : DataObject
  10. {
  11. [Header("ACTIONS")]
  12. [JsonProperty]
  13. [SerializeField]
  14. protected List<ChapterElement> elements;
  15. [Header("CONVERSATIONS")]
  16. [JsonProperty]
  17. [SerializeField]
  18. protected List<Conversation> conversations;
  19. [Header("QUESTS")]
  20. [JsonProperty]
  21. [SerializeField]
  22. protected List<Quest> quests;
  23. [Header("ASSISTANCES")]
  24. [JsonProperty]
  25. [SerializeField]
  26. protected List<Assistance> Assistances;
  27. [Header("GIGS")]
  28. [JsonProperty]
  29. [SerializeField]
  30. protected List<Gig> gigs;
  31. [Header("TWEETS")]
  32. [JsonProperty]
  33. [SerializeField]
  34. protected List<Tweet> tweets;
  35. [JsonIgnore]
  36. public List<Assistance> GetAssistances
  37. {
  38. get
  39. {
  40. return Assistances;
  41. }
  42. set
  43. {
  44. Assistances = value;
  45. }
  46. }
  47. [JsonIgnore]
  48. public List<ChapterElement> Elements
  49. {
  50. get
  51. {
  52. return elements;
  53. }
  54. set
  55. {
  56. elements = value;
  57. }
  58. }
  59. [JsonIgnore]
  60. public List<Conversation> Conversations
  61. {
  62. get
  63. {
  64. return conversations;
  65. }
  66. set
  67. {
  68. conversations = value;
  69. }
  70. }
  71. [JsonIgnore]
  72. public List<Quest> Quests
  73. {
  74. get
  75. {
  76. return quests;
  77. }
  78. set
  79. {
  80. quests = value;
  81. }
  82. }
  83. [JsonIgnore]
  84. public List<Gig> Gigs
  85. {
  86. get
  87. {
  88. return gigs;
  89. }
  90. set
  91. {
  92. gigs = value;
  93. }
  94. }
  95. [JsonIgnore]
  96. public List<Tweet> Tweets
  97. {
  98. get
  99. {
  100. return tweets;
  101. }
  102. set
  103. {
  104. tweets = value;
  105. }
  106. }
  107. }
  108. }