2025-01-28 14:05:38 +01:00
|
|
|
|
using Godot;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Cirno.Scripts.Resources;
|
|
|
|
|
|
|
|
|
|
|
|
[GlobalClass]
|
|
|
|
|
|
public partial class LootItem : Resource
|
|
|
|
|
|
{
|
2025-02-10 17:29:14 +01:00
|
|
|
|
[Export] public string ItemName { get; set; }
|
|
|
|
|
|
[Export] public string ItemKey { get; set; }
|
2025-01-28 14:05:38 +01:00
|
|
|
|
[Export] public ItemTypes Item;
|
2025-02-11 11:50:45 +01:00
|
|
|
|
[Export] public WeaponResource WeaponData { get; set; }
|
2025-01-28 14:05:38 +01:00
|
|
|
|
[Export] public int Amount;
|
2025-01-30 17:24:40 +01:00
|
|
|
|
[Export] public int Max;
|
2025-01-31 13:03:38 +01:00
|
|
|
|
[Export] public bool PickupIfMaxed;
|
|
|
|
|
|
[Export] public bool ConsumeOnUse;
|
2025-02-10 17:29:14 +01:00
|
|
|
|
[Export] public UiItemType UiType;
|
|
|
|
|
|
|
2025-01-31 13:03:38 +01:00
|
|
|
|
[Export] public AtlasTexture InventorySprite;
|
|
|
|
|
|
[Export] public SpriteFrames WorldSprite;
|
2025-02-10 17:29:14 +01:00
|
|
|
|
[Export] public PackedScene HudItemScene;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum UiItemType
|
|
|
|
|
|
{
|
|
|
|
|
|
NoUI,
|
|
|
|
|
|
Icon,
|
|
|
|
|
|
IconText
|
2025-01-28 14:05:38 +01:00
|
|
|
|
}
|