12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- using Newtonsoft.Json;
- using System;
- using System.Collections.Generic;
- using UnityEngine;
- namespace DataTools
- {
- [Serializable]
- public class Assistance : DataObject
- {
- [JsonProperty]
- [SerializeField]
- private string location;
- [JsonProperty]
- [SerializeField]
- private List<Instruction> instructions;
- [JsonProperty]
- [SerializeField]
- private Currency reward;
- public Assistance(string location, List<Instruction> instructions, Currency reward)
- {
- this.location = location;
- this.instructions = instructions;
- this.reward = reward;
- }
- [JsonIgnore]
- public string Location
- {
- get
- {
- return location;
- }
- set
- {
- location = value;
- }
- }
- [JsonIgnore]
- public List<Instruction> Instructions
- {
- get
- {
- return instructions;
- }
- set
- {
- instructions = value;
- }
- }
- [JsonIgnore]
- public Currency Reward
- {
- get
- {
- return reward;
- }
- set
- {
- reward = value;
- }
- }
- }
- }
|