2024-09-12 04:17:34 +00:00
|
|
|
using System;
|
2025-02-10 02:13:46 +00:00
|
|
|
using DDD.Interfaces;
|
2024-12-06 13:20:10 +00:00
|
|
|
using Newtonsoft.Json;
|
2024-09-12 04:17:34 +00:00
|
|
|
using Sirenix.OdinInspector;
|
|
|
|
using UnityEngine;
|
|
|
|
|
2025-02-10 02:13:46 +00:00
|
|
|
namespace DDD
|
2024-11-05 12:27:46 +00:00
|
|
|
{
|
2024-09-12 04:17:34 +00:00
|
|
|
[Serializable]
|
|
|
|
public class CardData : IIdx
|
|
|
|
{
|
|
|
|
[BoxGroup("Json 데이터 영역")]
|
2024-12-06 13:20:10 +00:00
|
|
|
[JsonProperty]
|
2024-09-12 04:17:34 +00:00
|
|
|
[field: SerializeField, Tooltip("Idx"), BoxGroup("Json 데이터 영역")]
|
|
|
|
public string Idx { get; set; }
|
|
|
|
|
2024-12-06 13:20:10 +00:00
|
|
|
[JsonProperty]
|
2024-09-12 04:17:34 +00:00
|
|
|
[field: SerializeField, Tooltip("Text"), BoxGroup("Json 데이터 영역")]
|
|
|
|
public string ScriptText { get; set; }
|
|
|
|
|
2024-12-06 13:20:10 +00:00
|
|
|
[JsonProperty]
|
2024-09-12 04:17:34 +00:00
|
|
|
[field: SerializeField, Tooltip("최대 값"), BoxGroup("Json 데이터 영역")]
|
|
|
|
public int Max { get; set; }
|
|
|
|
|
2024-09-24 10:09:17 +00:00
|
|
|
[BoxGroup("직접 추가하는 영역")]
|
|
|
|
[field: SerializeField, BoxGroup("직접 추가하는 영역")]
|
|
|
|
public Sprite Sprite { get; set; }
|
2024-09-12 04:17:34 +00:00
|
|
|
}
|
|
|
|
}
|