using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "New ItemInfo", menuName = "Solid/Data/ItemInfo", order = 0)]
[System.Serializable]
public class ItemInfo : ScriptableObject
{
    //public static bool operator ==(ItemInfo itemInfo, ItemKind itemKind)
    //{
    //    return itemInfo == null || itemInfo.itemKind != itemKind ? false : true;
    //}
    //public static bool operator !=(ItemInfo itemInfo, ItemKind itemKind)
    //{
    //}

    public static bool CheckItemKind(ItemInfo itemInfo, ItemKind itemKind)
    {
        return itemInfo == null || itemInfo.itemKind != itemKind ? false : true;
    }
    public string itemTag => itemName;
    public string itemName;
    [TextArea(1, 3)]
    public string content;
    public ItemKind itemKind;
    public ItemType itemType;
    public Sprite IconSprite;
}
public enum ItemKind
{
    C_Glasses = -5,//콧수염안경
    C_Woman = -4,//여장
    C_Chef = -3,//요리사복장
    C_Guard = -2,//경비복장
    C_Nomarl = -1,//기본복장
    None = 0,
    Cocktail = 1,//칵테일
    Powder = 2,//파우더
    GlassSlipper = 3,//유리구두
    Clipper = 4,//이발기
    Toy = 5,//장난감
    SilverSpoon = 6,//은수저
    Hellmet = 7,//투구
    MopHead = 8,//대걸래 머리
    GeneralHead = 9,//장군투구
    Dishcloth = 10,//행주
    Ranmen = 11,//라면
    Dumbbell = 12,//덤벨
    MopStick = 13,//대걸래 스틱
    PrisonKey = 14,//감옥열쇠
    Candy = 15,//사탕
    PoisonFood = 16,//독 샐러드
    Drass = 17,//드레스
    Memo = 18,//쪽지
}
public enum ItemType
{
    Item = 0,
    Clothes = 1,
}
