From 51ad9434bb2118ad4d5dd796d047415c76e99ccc Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 8 Feb 2017 15:51:22 -0500 Subject: Shop work. - Shop Editor implemented. - Shop List implemented. - Shops are now a way to earn Codepoints. --- ShiftOS.Objects/Shop.cs | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'ShiftOS.Objects/Shop.cs') diff --git a/ShiftOS.Objects/Shop.cs b/ShiftOS.Objects/Shop.cs index d20fecb..36c15a7 100644 --- a/ShiftOS.Objects/Shop.cs +++ b/ShiftOS.Objects/Shop.cs @@ -11,6 +11,7 @@ namespace ShiftOS.Objects public string Name { get; set; } public string Description { get; set; } public List Items { get; set; } + public string Owner { get; set; } } public abstract class ShopItem @@ -18,26 +19,7 @@ namespace ShiftOS.Objects public string Name { get; set; } public string Description { get; set; } public int Cost { get; set; } - public string ShopOwner { get; set; } - - - protected abstract void OnBuy(); - - protected abstract void GiveCPToShopOwner(int cp); - - public bool Buy(ref Save buyer) - { - if(buyer.Codepoints >= Cost) - { - buyer.Codepoints -= Cost; - OnBuy(); - GiveCPToShopOwner(Cost); - return true; - } - else - { - return false; - } - } + public int FileType { get; set; } + public byte[] MUDFile { get; set; } } } -- cgit v1.2.3