54 lines
993 B
C#
54 lines
993 B
C#
using System;
|
|
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
namespace BlueWaterProject
|
|
{
|
|
public enum ItemCategory
|
|
{
|
|
NONE = 0,
|
|
FOOD_INGREDIENT,
|
|
CURRENCY,
|
|
QUEST = 9
|
|
}
|
|
|
|
public enum ItemType
|
|
{
|
|
NONE = 0,
|
|
MEAT,
|
|
FISH,
|
|
EGG,
|
|
FRUIT,
|
|
SHELLFISH,
|
|
SEASONING
|
|
}
|
|
|
|
[Serializable]
|
|
public class Item
|
|
{
|
|
[Tooltip("고유 식별 ID"), Required]
|
|
public int idx;
|
|
|
|
[Tooltip("이름")]
|
|
public string name;
|
|
|
|
[Tooltip("아이템 종류")]
|
|
public ItemCategory category;
|
|
|
|
[Tooltip("재료 종류")]
|
|
public ItemType type;
|
|
|
|
[Tooltip("가격")]
|
|
public int price;
|
|
|
|
[Tooltip("무게")]
|
|
public int weight;
|
|
|
|
[Tooltip("스프라이트")]
|
|
public Sprite sprite;
|
|
|
|
[Tooltip("설명"), TextArea(3, 10)]
|
|
public string description;
|
|
}
|
|
} |