29 lines
861 B
C#
29 lines
861 B
C#
using System;
|
|
using DDD.Interfaces;
|
|
using Newtonsoft.Json;
|
|
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
|
|
namespace DDD
|
|
{
|
|
[Serializable]
|
|
public class CardData : IIdx
|
|
{
|
|
[BoxGroup("Json 데이터 영역")]
|
|
[JsonProperty]
|
|
[field: SerializeField, Tooltip("Idx"), BoxGroup("Json 데이터 영역")]
|
|
public string Idx { get; set; }
|
|
|
|
[JsonProperty]
|
|
[field: SerializeField, Tooltip("Text"), BoxGroup("Json 데이터 영역")]
|
|
public string ScriptText { get; set; }
|
|
|
|
[JsonProperty]
|
|
[field: SerializeField, Tooltip("최대 값"), BoxGroup("Json 데이터 영역")]
|
|
public int Max { get; set; }
|
|
|
|
[BoxGroup("직접 추가하는 영역")]
|
|
[field: SerializeField, BoxGroup("직접 추가하는 영역")]
|
|
public Sprite Sprite { get; set; }
|
|
}
|
|
} |