mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-14 13:54:43 +01:00
Init enter game
This commit is contained in:
22
Common/Data/Excel/MaterialDataExcel.cs
Normal file
22
Common/Data/Excel/MaterialDataExcel.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user