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]
|
2025-04-07 15:58:43 +02:00
|
|
|
|
public Array<LootItem> StartingEquipment { get; set; } = [];
|
2025-02-21 11:39:22 +01:00
|
|
|
|
|
2025-04-07 15:58:43 +02:00
|
|
|
|
[Export]
|
|
|
|
|
|
public Array<LootItem> RemoveEquipment { get; set; } = [];
|
|
|
|
|
|
|
2025-02-21 11:39:22 +01:00
|
|
|
|
public override string ToString()
|
|
|
|
|
|
{
|
|
|
|
|
|
return $"EggIndex: {EggIndex}, Equipment: {string.Join("," ,StartingEquipment.Select(x => x.ItemKey))}";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|