mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-10-21 19:59:48 +08:00
Impl ShopEditor UI (WIP)
This commit is contained in:
@@ -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}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
34
Source/GrasscutterTools/Game/Shop/ShopRefreshType.cs
Normal file
34
Source/GrasscutterTools/Game/Shop/ShopRefreshType.cs
Normal 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,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user