mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
30 lines
958 B
C#
30 lines
958 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace EggLink.DanhengServer.Data.Excel;
|
|
|
|
[ResourceEntity("GridFightShopPrice.json")]
|
|
public class GridFightShopPriceExcel : ExcelResource
|
|
{
|
|
public uint Rarity { get; set; }
|
|
public uint BuyGoldStar1 { get; set; }
|
|
public uint BuyGoldStar2 { get; set; }
|
|
public uint BuyGoldStar3 { get; set; }
|
|
public uint BuyGoldStar4 { get; set; }
|
|
public uint SellGoldStar1 { get; set; }
|
|
public uint SellGoldStar2 { get; set; }
|
|
public uint SellGoldStar3 { get; set; }
|
|
public uint SellGoldStar4 { get; set; }
|
|
|
|
[JsonIgnore] public List<uint> BuyGoldList => [BuyGoldStar1, BuyGoldStar2, BuyGoldStar3, BuyGoldStar4];
|
|
[JsonIgnore] public List<uint> SellGoldList => [SellGoldStar1, SellGoldStar2, SellGoldStar3, SellGoldStar4];
|
|
|
|
public override int GetId()
|
|
{
|
|
return (int)Rarity;
|
|
}
|
|
|
|
public override void Loaded()
|
|
{
|
|
GameData.GridFightShopPriceData.TryAdd(Rarity, this);
|
|
}
|
|
} |