Chirp.cs 882 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using Newtonsoft.Json;
  2. using System;
  3. using UnityEngine;
  4. namespace DataTools
  5. {
  6. [Serializable]
  7. public class Chirp
  8. {
  9. [JsonProperty]
  10. [SerializeField]
  11. private int time;
  12. [JsonProperty]
  13. [SerializeField]
  14. private int[] followers = new int[3];
  15. public Chirp(int fol1, int fol2, int fol3)
  16. {
  17. followers = new int[3] { fol1, fol2, fol3 };
  18. }
  19. [JsonIgnore]
  20. public int Time
  21. {
  22. get
  23. {
  24. return time;
  25. }
  26. set
  27. {
  28. time = value;
  29. }
  30. }
  31. [JsonIgnore]
  32. public int[] Followers
  33. {
  34. get
  35. {
  36. return followers;
  37. }
  38. set
  39. {
  40. followers = value;
  41. }
  42. }
  43. }
  44. }