Assistance.cs 961 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using Newtonsoft.Json;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. [Serializable]
  7. public class Assistance : DataObject
  8. {
  9. [JsonProperty]
  10. [SerializeField]
  11. public string Location;
  12. [JsonProperty]
  13. [SerializeField]
  14. public List<Instruction> Instructions;
  15. [JsonProperty]
  16. [SerializeField]
  17. public Currency Reward;
  18. public Assistance(string ID,string Location,List<Instruction> Instructions,Currency Reward)
  19. {
  20. this.id = ID;
  21. this.Location = Location;
  22. this.Instructions = Instructions;
  23. this.Reward = Reward;
  24. }
  25. }
  26. [Serializable]
  27. public class Instruction
  28. {
  29. [JsonProperty]
  30. [SerializeField]
  31. public string ConversationID;
  32. [JsonProperty]
  33. [SerializeField]
  34. public GigAction[] actions;
  35. public Instruction(string ConvID, GigAction[] actions)
  36. {
  37. ConversationID = ConvID;
  38. this.actions = actions;
  39. }
  40. }