Quest.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using System;
  5. //using WebTools.Currencies.Datas;
  6. using Newtonsoft.Json;
  7. [Serializable]
  8. public class Quest : DataObject
  9. {
  10. [JsonProperty]
  11. [SerializeField]
  12. public Task[] tasks;
  13. [JsonProperty]
  14. [SerializeField]
  15. public Currency reward;
  16. [JsonProperty]
  17. [SerializeField]
  18. public string Description;
  19. public Quest(string id, Task[] tasks, Currency reward,string Description)
  20. {
  21. this.id = id;
  22. this.tasks = tasks;
  23. this.reward = reward;
  24. this.Description = Description;
  25. }
  26. }
  27. //[Serializable]
  28. //public class Missions : List<Mission>
  29. //{
  30. //}
  31. //[Serializable]
  32. //public class Mission
  33. //{
  34. // [JsonProperty]
  35. // [SerializeField]
  36. // public string title;
  37. // [JsonProperty]
  38. // [SerializeField]
  39. // public Task[] tasks;
  40. // [JsonProperty]
  41. // [SerializeField]
  42. // public string tweetID;
  43. // [JsonProperty]
  44. // [SerializeField]
  45. // public string CallID;
  46. // public Mission(string title, string tweetID, string callID)
  47. // {
  48. // this.title = title;
  49. // this.tweetID = tweetID;
  50. // this.CallID = callID;
  51. // }
  52. //}
  53. //[Serializable]
  54. //public class Tasks : List<Task>
  55. //{
  56. //}