GigAction.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. using Newtonsoft.Json;
  2. using System;
  3. using UnityEngine;
  4. namespace DataTools
  5. {
  6. [Serializable]
  7. public class GigAction : DataObject
  8. {
  9. [JsonProperty]
  10. [SerializeField]
  11. private int energyCost;
  12. [JsonProperty]
  13. [SerializeField]
  14. private int stars;
  15. [JsonProperty]
  16. [SerializeField]
  17. private string tag;
  18. public GigAction(int energyCost, int stars, string tag)
  19. {
  20. this.energyCost = energyCost;
  21. this.stars = stars;
  22. this.tag = tag;
  23. }
  24. [JsonIgnore]
  25. public int EnergyCost
  26. {
  27. get
  28. {
  29. return energyCost;
  30. }
  31. set
  32. {
  33. energyCost = value;
  34. }
  35. }
  36. [JsonIgnore]
  37. public int Stars
  38. {
  39. get
  40. {
  41. return stars;
  42. }
  43. set
  44. {
  45. stars = value;
  46. }
  47. }
  48. [JsonIgnore]
  49. public string Tag
  50. {
  51. get
  52. {
  53. return tag;
  54. }
  55. set
  56. {
  57. tag = value;
  58. }
  59. }
  60. }
  61. }