aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Objects
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-08 15:51:22 -0500
committerMichael <[email protected]>2017-02-08 15:51:22 -0500
commit51ad9434bb2118ad4d5dd796d047415c76e99ccc (patch)
treea0b770b4824e72b24968a0451378aa33ecdb7d85 /ShiftOS.Objects
parenta4b49ab68b4383e84ee200f47ea21ed1b4b22ffa (diff)
downloadshiftos_thereturn-51ad9434bb2118ad4d5dd796d047415c76e99ccc.tar.gz
shiftos_thereturn-51ad9434bb2118ad4d5dd796d047415c76e99ccc.tar.bz2
shiftos_thereturn-51ad9434bb2118ad4d5dd796d047415c76e99ccc.zip
Shop work.
- Shop Editor implemented. - Shop List implemented. - Shops are now a way to earn Codepoints.
Diffstat (limited to 'ShiftOS.Objects')
-rw-r--r--ShiftOS.Objects/Shop.cs24
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; }
}
}