diff options
Diffstat (limited to 'ShiftOS.Objects')
| -rw-r--r-- | ShiftOS.Objects/Shop.cs | 24 |
1 files changed, 3 insertions, 21 deletions
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<ShopItem> 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; } } } |
