Impl ShopEditor UI (WIP)

This commit is contained in:
2022-10-31 22:47:12 +08:00
parent 757bb2dd95
commit 52317d8d5a
11 changed files with 983 additions and 570 deletions

View File

@@ -66,8 +66,19 @@ namespace GrasscutterTools.Game.Shop
[JsonProperty("disableType")]
public int DisableType { get; set; }
[JsonProperty("secondarySheetId")]
public int SecondarySheetId { get; set; }
[JsonProperty("refreshType")]
public ShopRefreshType RefreshType { get; set; }
[JsonProperty("shopRefreshParam")]
public int ShopRefreshParam { get; set; }
public override string ToString()
{
return $"{GoodsId}:{GameData.Items[GoodsItem.Id]} x{GoodsItem.Count}";
}
}
}

View File

@@ -0,0 +1,34 @@
using Newtonsoft.Json;
namespace GrasscutterTools.Game.Shop
{
/// <summary>
/// 商品刷新类型
/// </summary>
public enum ShopRefreshType
{
/// <summary>
/// 不刷新
/// </summary>
[JsonProperty("NONE")]
None,
/// <summary>
/// 按天刷新
/// </summary>
[JsonProperty("SHOP_REFRESH_DAILY")]
Daily,
/// <summary>
/// 按周刷新
/// </summary>
[JsonProperty("SHOP_REFRESH_WEEKLY")]
Weekly,
/// <summary>
/// 按月刷新
/// </summary>
[JsonProperty("SHOP_REFRESH_MONTHLY")]
Monthly,
}
}