summaryrefslogtreecommitdiff
path: root/scripts/items/ItemDefinition.cs
blob: 394cd2da0b44e2daedf5b3cddebd3775e5f4c5fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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<StatModifierResource> StatModifiers { get; set; } = new();
    [Export] public Array<EffectModifierResource> EffectModifiers { get; set; } = new();
}