From 3d6b71ef0ca77956242261a79d635a13558a0c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9C=A7=E9=9B=A8=E7=83=A8?= Date: Wed, 12 Jun 2024 21:53:27 +0800 Subject: [PATCH] implement SingleItemStack, prepare for combine master --- scripts/item/SingleItemStack.cs | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/scripts/item/SingleItemStack.cs b/scripts/item/SingleItemStack.cs index d7c3415..86850bf 100644 --- a/scripts/item/SingleItemStack.cs +++ b/scripts/item/SingleItemStack.cs @@ -10,7 +10,7 @@ namespace ColdMint.scripts.item; /// Item stack of single item /// //maybe we'd move this into inventory namespace -public struct SingleItemStack(IItem_New item) : IItemStack +public class SingleItemStack(IItem_New item) : IItemStack { public IItem_New Item { get; init; } = item; @@ -28,14 +28,29 @@ public struct SingleItemStack(IItem_New item) : IItemStack public int CanTakeFrom(IItemStack itemStack) => 0; public int TakeFrom(IItemStack itemStack) => 0; + + public IItem_New? GetItem() + { + throw new NotImplementedException(); + } + + public IItem_New? PickItem() + { + throw new NotImplementedException(); + } + + public IItemStack? PickItems(int value) + { + throw new NotImplementedException(); + } public int RemoveItem(int number) { - + throw new NotImplementedException(); } public void ClearStack() { - throw new System.NotImplementedException(); + throw new NotImplementedException(); } } \ No newline at end of file