123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- using Newtonsoft.Json;
- using System;
- using UnityEngine;
- namespace DataTools
- {
- [Serializable]
- public class GigAction : DataObject
- {
- [JsonProperty]
- [SerializeField]
- private int energyCost;
- [JsonProperty]
- [SerializeField]
- private int stars;
- [JsonProperty]
- [SerializeField]
- private string tag;
- public GigAction(int energyCost, int stars, string tag)
- {
- this.energyCost = energyCost;
- this.stars = stars;
- this.tag = tag;
- }
- [JsonIgnore]
- public int EnergyCost
- {
- get
- {
- return energyCost;
- }
- set
- {
- energyCost = value;
- }
- }
- [JsonIgnore]
- public int Stars
- {
- get
- {
- return stars;
- }
- set
- {
- stars = value;
- }
- }
- [JsonIgnore]
- public string Tag
- {
- get
- {
- return tag;
- }
- set
- {
- tag = value;
- }
- }
- }
- }
|