cirnogodot/Scripts/Resources/MapStartDataResource.cs

20 lines
484 B
C#
Raw Normal View History

2025-02-21 11:39:22 +01:00
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; } = new Array<LootItem>();
public override string ToString()
{
return $"EggIndex: {EggIndex}, Equipment: {string.Join("," ,StartingEquipment.Select(x => x.ItemKey))}";
}
}