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

public enum ButtonAction { press, hold}

[CreateAssetMenu(fileName = "new stat", menuName ="New player Stat")]
public class StatSO : ScriptableObject
{
    [SerializeField] string statName = "";
    [SerializeField] int statMin;
    [SerializeField] int statMax;
    [SerializeField] int tickSteps;
    [SerializeField] int clickStatHealAmount = 1;
    [SerializeField] Sprite statImage;
    [SerializeField] Sprite negativeStatImage;

    [SerializeField] Color statColor;
    [SerializeField] ButtonAction buttonAction;
    [SerializeField] ActionSO action;
    [SerializeField] ActionSO overflowAction;

    #region properties
    public string StatName { get => statName; }
    public int StatMin { get => statMin; }
    public int StatMax { get => statMax; }
    public int TickSteps { get => tickSteps; }
    public Sprite StatImage { get => statImage; }
    public Color StatColor { get => statColor; }
    public int ClickStatHealAmount { get => clickStatHealAmount; }
    public ButtonAction ButtonAction { get => buttonAction; }
    public ActionSO Action { get => action; set => action = value; }
    public ActionSO OverflowAction { get => overflowAction; set => overflowAction = value; }
    public Sprite NegativeStatImage { get => negativeStatImage; }
    #endregion
}