using System;
using GameCreator.Runtime.Common;

namespace GameCreator.Runtime.Variables
{
    [Title("Last Element")]
    [Category("Last Element")]
    
    [Description("Selects the element that's at the bottom of the list")]
    [Image(typeof(IconListLast), ColorTheme.Type.Yellow)]

    [Serializable]
    public class GetPickLast : TListGetPick
    {
        public override int GetIndex(int count) => count - 1;

        public override string ToString() => "Last";
    }
}