using System.Xml.Serialization;

namespace Refresh.Interfaces.Game.Types.Lists;

[XmlRoot("resources")]
[XmlType("resources")]
public class SerializedResourceList
{
    public SerializedResourceList() {}
    
    public SerializedResourceList(IEnumerable<string> resources)
    {
        this.Items = resources.ToList();
    }

    [XmlElement("resource")]
    public List<string> Items { get; set; } = new();
}