mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 09:25:35 +00:00
17 lines
No EOL
364 B
C#
17 lines
No EOL
364 B
C#
using System.Linq;
|
|
using Godot;
|
|
using Godot.Collections;
|
|
|
|
namespace Cirno.Scripts.Resources;
|
|
|
|
[GlobalClass]
|
|
public partial class ItemsDatabase : Resource
|
|
{
|
|
[Export]
|
|
public Array<LootItem> LootItems { get; set; } = new();
|
|
|
|
public LootItem GetLootItem(string itemName)
|
|
{
|
|
return LootItems.FirstOrDefault(x => x.ItemKey == itemName);
|
|
}
|
|
} |