Assistance.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. namespace DataTools
  6. {
  7. [Serializable]
  8. public class Assistance : DataObject
  9. {
  10. [JsonProperty]
  11. [SerializeField]
  12. private string location;
  13. [JsonProperty]
  14. [SerializeField]
  15. private List<Instruction> instructions;
  16. [JsonProperty]
  17. [SerializeField]
  18. private Currency reward;
  19. public Assistance(string location, List<Instruction> instructions, Currency reward)
  20. {
  21. this.location = location;
  22. this.instructions = instructions;
  23. this.reward = reward;
  24. }
  25. [JsonIgnore]
  26. public string Location
  27. {
  28. get
  29. {
  30. return location;
  31. }
  32. set
  33. {
  34. location = value;
  35. }
  36. }
  37. [JsonIgnore]
  38. public List<Instruction> Instructions
  39. {
  40. get
  41. {
  42. return instructions;
  43. }
  44. set
  45. {
  46. instructions = value;
  47. }
  48. }
  49. [JsonIgnore]
  50. public Currency Reward
  51. {
  52. get
  53. {
  54. return reward;
  55. }
  56. set
  57. {
  58. reward = value;
  59. }
  60. }
  61. }
  62. }