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

public enum TeaType
{
    None,
    Black,
    Green,
    Red
}

public enum DrinkRenderMode
{
    Order,
    Physical,
    Progress,
}

public class Drink
{
    public DrinkRenderMode drinkOrigination = DrinkRenderMode.Order;

    public float progressFillTime = 0.0f;
    public float progressFillDuration = 1.0f;
    public float progressStopAt = 10.0f;

    public int IceLevel = 0;
    // 0 - No Ice
    // 1 - Light Ice
    // 2 - Regular Ice

    public bool HasBoba = false;

    public TeaType TeaType = TeaType.None;

    public float TeaLevel = 0.0f; // How high the tea is filled

    public bool Sealed = false;

    // Returns if 2 drinks are fuzzy enough similar. This is useful for matching served drinks to orders
    public bool Matches(Drink other)
    {
        return
            IceLevel == other.IceLevel &&
            HasBoba == other.HasBoba &&
            TeaType == other.TeaType &&
            Sealed == other.Sealed;
    }
}
