mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
36 lines
907 B
C#
36 lines
907 B
C#
using EggLink.DanhengServer.Enums.Item;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Converters;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EggLink.DanhengServer.Data.Excel
|
|
{
|
|
[ResourceEntity("EquipmentConfig.json")]
|
|
public class EquipmentConfigExcel : ExcelResource
|
|
{
|
|
public int EquipmentID { get; set; }
|
|
public bool Release { get; set; }
|
|
public int ExpType { get; set; }
|
|
|
|
[JsonConverter(typeof(StringEnumConverter))]
|
|
public RarityEnum Rarity { get; set; } = 0;
|
|
public override int GetId()
|
|
{
|
|
return EquipmentID;
|
|
}
|
|
|
|
public override void Loaded()
|
|
{
|
|
if (Release == false)
|
|
{
|
|
return;
|
|
}
|
|
GameData.EquipmentConfigData.Add(EquipmentID, this);
|
|
}
|
|
}
|
|
}
|