From 7f4bd1856869d7ae10fa8f07708fbd75c5bb7b1e Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 23 Nov 2026 12:00:20 +0100 Subject: pes --- scripts/items/ItemDefinition.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 scripts/items/ItemDefinition.cs (limited to 'scripts/items/ItemDefinition.cs') diff --git a/scripts/items/ItemDefinition.cs b/scripts/items/ItemDefinition.cs new file mode 100644 index 0000000..394cd2d --- /dev/null +++ b/scripts/items/ItemDefinition.cs @@ -0,0 +1,22 @@ +using Godot; +using Godot.Collections; + +[GlobalClass] +public partial class ItemDefinition : Resource +{ + public enum ItemType + { + Passive, + Weapon + } + + [Export] public string Id { get; set; } = "item_id"; + [Export] public string DisplayName { get; set; } = "New Item"; + [Export(PropertyHint.MultilineText)] public string Description { get; set; } = string.Empty; + [Export] public Texture2D? Icon { get; set; } + [Export] public ItemType Type { get; set; } = ItemType.Passive; + + [Export] public PackedScene? WeaponScene { get; set; } + [Export] public Array StatModifiers { get; set; } = new(); + [Export] public Array EffectModifiers { get; set; } = new(); +} -- cgit v1.2.3