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

public class LifeStoneInfo {
    /// <summary>
    /// width, height of LifeStone
    /// ex)  □
    ///     □□
    ///     □
    ///   (2,3)
    /// </summary>
    Vector2Int size;
    /// <summary>
    /// contents of LifeStone from bottom left.
    /// A: Normal lifestone
    /// B: Gold lifestone
    /// C: Amethyst lifestone
    /// 
    /// ex)  A
    ///     BC
    ///     A
    ///     "A BC A"
    /// </summary>
    string fill;
	
	public LifeStoneInfo(Vector2Int size, string fill)
    {
        this.size = size;
        this.fill = fill;
    }
    public Vector2Int getSize()
    {
        return size;
    }
	public int getAmount()
	{
		int count = 0;
		for (int i = 0; i < fill.Length; i++)
			if (fill[i] != ' ') count++;
		return count;
	}
    public string getFill()
    {
        return fill;
    }
}
