store progress and fishing fixes

also some other stuff
This commit is contained in:
Lan
2020-04-02 15:12:21 +03:00
parent 9f81cf405c
commit 8b17cdf677
11 changed files with 457 additions and 114 deletions

View File

@@ -1,11 +1,13 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Kehyeedra3.Services.Models
{
public class StoreFront
{
public ulong Id { get; set; } = 0;
[Key]
public ulong Id { get; set; }
public ulong UserId { get; set; } = 0;
public StoreItemType StoreItemType { get; set; } = 0;
@@ -20,9 +22,8 @@ namespace Kehyeedra3.Services.Models
public class StoreInventory
{
public ulong ItemId { get; set; } = 0;
public ulong UserId { get; set; } = 0;
public StoreItemType StoreItemType { get; set; } = 0;
[Key]
public ulong InvId { get; set; }
public string Item { get; set; } = "";
public int Amount { get; set; } = 0;
public int Price { get; set; } = 0;
@@ -30,14 +31,15 @@ namespace Kehyeedra3.Services.Models
public class ItemOffer
{
[Key]
public ulong OfferId { get; set; }
public ulong BuyerId { get; set; }
public ulong StoreId { get; set; }
public StoreItemType StoreType { get; set; }
public ulong ItemId { get; set; }
public int Amount { get; set; }
public int OfferAmount { get; set; }
public bool IsPurchaseFromStore { get; set; }
public bool IsSellOffer { get; set; } = false;
}
public static class StoreUtilities