cirnogodot/Scripts/Resources/MapStartDataResource.cs
2025-04-07 15:58:43 +02:00

23 lines
No EOL
546 B
C#

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))}";
}
}