From 567c422f8cd42eba2437f9a8c2522716a1649be7 Mon Sep 17 00:00:00 2001 From: hazel Date: Mon, 26 Jan 2026 22:04:39 +0100 Subject: celesteia archive, last updated april 9th 2024 Signed-off-by: hazel --- source/resources/types/ItemType.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 source/resources/types/ItemType.cs (limited to 'source/resources/types/ItemType.cs') diff --git a/source/resources/types/ItemType.cs b/source/resources/types/ItemType.cs new file mode 100644 index 0000000..8b1da27 --- /dev/null +++ b/source/resources/types/ItemType.cs @@ -0,0 +1,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; + } +} \ No newline at end of file -- cgit v1.2.3