61 lines
2.2 KiB
C#
61 lines
2.2 KiB
C#
![]() |
using System;
|
||
|
using BlueWater.Interfaces;
|
||
|
using Newtonsoft.Json;
|
||
|
using Sirenix.OdinInspector;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace DDD.ScriptableObjects
|
||
|
{
|
||
|
[Serializable]
|
||
|
public class CraftRecipeData : IIdx
|
||
|
{
|
||
|
[BoxGroup("Json 데이터 영역")]
|
||
|
[JsonProperty]
|
||
|
[field: SerializeField, Tooltip("Idx"), BoxGroup("Json 데이터 영역")]
|
||
|
public string Idx { get; set; }
|
||
|
|
||
|
[JsonProperty]
|
||
|
[field: SerializeField, Tooltip("이름"), BoxGroup("Json 데이터 영역")]
|
||
|
public string Name { get; set; }
|
||
|
|
||
|
[JsonProperty]
|
||
|
[field: SerializeField, Tooltip("설명"), BoxGroup("Json 데이터 영역")]
|
||
|
public string Description { get; set; }
|
||
|
|
||
|
[JsonProperty]
|
||
|
[field: SerializeField, Tooltip("가격"), BoxGroup("Json 데이터 영역")]
|
||
|
public int Price { get; set; }
|
||
|
|
||
|
[JsonProperty]
|
||
|
[field: SerializeField, Tooltip("1번 재료 Idx"), BoxGroup("Json 데이터 영역")]
|
||
|
public string IngredientIdx1 { get; set; }
|
||
|
|
||
|
[JsonProperty]
|
||
|
[field: SerializeField, Tooltip("1번 재료 갯수"), BoxGroup("Json 데이터 영역")]
|
||
|
public int IngredientCount1 { get; set; }
|
||
|
|
||
|
[JsonProperty]
|
||
|
[field: SerializeField, Tooltip("2번 재료 Idx"), BoxGroup("Json 데이터 영역")]
|
||
|
public string IngredientIdx2 { get; set; }
|
||
|
|
||
|
[JsonProperty]
|
||
|
[field: SerializeField, Tooltip("2번 재료 갯수"), BoxGroup("Json 데이터 영역")]
|
||
|
public int IngredientCount2 { get; set; }
|
||
|
|
||
|
[JsonProperty]
|
||
|
[field: SerializeField, Tooltip("3번 재료 Idx"), BoxGroup("Json 데이터 영역")]
|
||
|
public string IngredientIdx3 { get; set; }
|
||
|
|
||
|
[JsonProperty]
|
||
|
[field: SerializeField, Tooltip("3번 재료 갯수"), BoxGroup("Json 데이터 영역")]
|
||
|
public int IngredientCount3 { get; set; }
|
||
|
|
||
|
[JsonProperty]
|
||
|
[field: SerializeField, Tooltip("제작 순서"), BoxGroup("Json 데이터 영역")]
|
||
|
public int CraftOrder { get; set; }
|
||
|
|
||
|
[BoxGroup("직접 추가하는 영역")]
|
||
|
[field: SerializeField, BoxGroup("직접 추가하는 영역")]
|
||
|
public Sprite Sprite { get; set; }
|
||
|
}
|
||
|
}
|