mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2026-11-05 15:11:59 +08:00
Add Shop models
This commit is contained in:
1 parent
d79b50527e
commit
086c4da557
14 files changed
+541
-45
No files matched your search
@@ -0,0 +1,13 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.Game.Shop
|
||||
{
|
||||
public struct ItemParamData
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
[JsonProperty("count")]
|
||||
public int Count { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.Game.Shop
|
||||
{
|
||||
public class ShopInfo
|
||||
{
|
||||
[JsonProperty("goodsId")]
|
||||
public int GoodsId { get; set; }
|
||||
|
||||
[JsonProperty("goodsItem")]
|
||||
public ItemParamData GoodsItem { get; set; }
|
||||
|
||||
[JsonProperty("scoin")]
|
||||
public int SCoin { get; set; }
|
||||
|
||||
[JsonProperty("costItemList")]
|
||||
public List<ItemParamData> CostItemList { get; set; }
|
||||
|
||||
[JsonProperty("boughtNum")]
|
||||
public int BoughtNum { get; set; }
|
||||
|
||||
[JsonProperty("buyLimit")]
|
||||
public int BuyLimit { get; set; }
|
||||
|
||||
[JsonProperty("beginTime")]
|
||||
public int BeginTime { get; set; }
|
||||
|
||||
[JsonProperty("endTime")]
|
||||
public int EndTime { get; set; } = 1924992000;
|
||||
|
||||
[JsonProperty("minLevel")]
|
||||
public int MinLevel { get; set; }
|
||||
|
||||
[JsonProperty("maxLevel")]
|
||||
public int MaxLevel { get; set; } = 61;
|
||||
|
||||
[JsonProperty("preGoodsIdList")]
|
||||
public List<int> PreGoodsIdList { get; set; } = new List<int>();
|
||||
|
||||
[JsonProperty("mcoin")]
|
||||
public int MCoin { get; set; }
|
||||
|
||||
[JsonProperty("hcoin")]
|
||||
public int HCoin { get; set; }
|
||||
|
||||
[JsonProperty("disableType")]
|
||||
public int DisableType { get; set; }
|
||||
|
||||
|
||||
[JsonProperty("secondarySheetId")]
|
||||
public int SecondarySheetId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace GrasscutterTools.Game.Shop
|
||||
{
|
||||
public class ShopTable
|
||||
{
|
||||
[JsonProperty("shopId")]
|
||||
public int ShopType { get; set; }
|
||||
|
||||
[JsonProperty("items")]
|
||||
public List<ShopInfo> Items { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user