aboutsummaryrefslogtreecommitdiff
path: root/source/resources/types/ItemType.cs
blob: 8b1da27dbe0954309d4e91ca15a7b9e037df53a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using Celesteia.Game.Items;
using MonoGame.Extended.TextureAtlases;

namespace Celesteia.Resources.Types {
    public class ItemType : IResourceType {
        private byte id;
        public readonly string Name;
        public byte GetID() => id;
        public void SetID(byte value) => id = value;

        public ItemType(string name) {
            Name = name;
        }

        public string Lore = "";
        public TextureRegion2D Sprite = null;
        public int MaxStackSize = 99;
        public IItemActions Actions;
        public bool ConsumeOnUse;
    }
}