mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-12 13:04:33 +01:00
22 lines
590 B
C#
22 lines
590 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace KianaBH.Data.Excel;
|
|
|
|
[ResourceEntity("MaterialData.json")]
|
|
public class MaterialDataExcel : ExcelResource
|
|
{
|
|
[JsonPropertyName("ID")] public int Id { get; set; }
|
|
[JsonPropertyName("rarity")] public int Rarity { get; set; }
|
|
[JsonPropertyName("maxRarity")] public int MaxRarity { get; set; }
|
|
[JsonPropertyName("quantityLimit")] public int QuantityLimit { get; set; }
|
|
|
|
public override int GetId()
|
|
{
|
|
return Id;
|
|
}
|
|
|
|
public override void Loaded()
|
|
{
|
|
GameData.MaterialData.Add(Id, this);
|
|
}
|
|
} |