ChapterElement.cs 753 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using System;
  5. using Newtonsoft;
  6. using Newtonsoft.Json;
  7. using Newtonsoft.Json.Converters;
  8. namespace DataTools
  9. {
  10. public enum ElementType
  11. {
  12. Quest,
  13. Conversation,
  14. Tweet,
  15. Assist,
  16. Chapter
  17. }
  18. [Serializable]
  19. public class ChapterElement : DataObject
  20. {
  21. [JsonProperty]
  22. [JsonConverter(typeof(StringEnumConverter))]
  23. [SerializeField]
  24. private ElementType type;
  25. [JsonIgnore]
  26. public ElementType Type
  27. {
  28. get
  29. {
  30. return type;
  31. }
  32. set
  33. {
  34. type = value;
  35. }
  36. }
  37. }
  38. }