CapersProject/Assets/02.Scripts/Item/ItemData.cs
Nam Tae Gun 87aa509cfc #7, #8 타이쿤 손님 테이블 상호작용 및 손님 Ai 추가
+ ItemTable excel, json, so 수정
+ 손님 추가 -> 빈 자리 찾기 -> 음료 주문 -> 퇴장 구현
+ 일부 BehaviorTree Action 변경
2024-06-19 03:16:19 +09:00

55 lines
1.2 KiB
C#

using System;
using BlueWater.Interfaces;
using UnityEngine;
namespace BlueWater.Items
{
public enum ItemCategory
{
None = 0,
FoodIngredient,
Currency,
Dish,
Drink,
Quest = 9
}
public enum ItemType
{
None = 0,
Meat,
Fish,
Egg,
Fruit,
Shellfish,
Seasoning
}
[Serializable]
public class ItemData : IIdx
{
[field: SerializeField, Tooltip("고유 식별 ID")]
public int Idx { get; set; }
[field: SerializeField, Tooltip("이름")]
public string Name { get; set; }
[field: SerializeField, Tooltip("아이템 종류")]
public ItemCategory Category { get; set; }
[field: SerializeField, Tooltip("재료 종류")]
public ItemType Type { get; set; }
[field: SerializeField, Tooltip("가격")]
public int Price { get; set; }
[field: SerializeField, Tooltip("무게")]
public int Weight { get; set; }
[field: SerializeField, Tooltip("스프라이트")]
public Sprite Sprite { get; set; }
[field: SerializeField, Tooltip("설명"), TextArea(3, 10)]
public string Description { get; set; }
}
}