using System.Linq;
using Godot;
using Godot.Collections;

namespace Cirno.Scripts.Resources;

[GlobalClass]
public partial class MapStartDataResource : Resource
{
    [Export]
    public int EggIndex { get; set; }
    
    [Export]
    public Array<LootItem> StartingEquipment { get; set; } = [];

    [Export]
    public Array<LootItem> RemoveEquipment { get; set; } = [];
    
    public override string ToString()
    {
        return $"EggIndex: {EggIndex}, Equipment: {string.Join("," ,StartingEquipment.Select(x => x.ItemKey))}";
    }
}