Files
DanhengServer-OpenSource/Common/Data/Excel/RogueDLCAreaExcel.cs
Somebody 87d228eb79 Feature:Asynchronous Operation & Formatting Code
- Now the async operation is enabled!
- Code formatted by Resharper plugin <3
2024-07-22 17:12:03 +08:00

41 lines
1.0 KiB
C#

using Newtonsoft.Json;
namespace EggLink.DanhengServer.Data.Excel;
[ResourceEntity("RogueDLCArea.json")]
public class RogueDLCAreaExcel : ExcelResource
{
public int AreaID { get; set; }
public string SubType { get; set; } = "";
public List<int> LayerIDList { get; set; } = [];
public List<int> DifficultyID { get; set; } = [];
public int FirstReward { get; set; }
public List<RogueDLCAreaScoreMap> AreaScoreMap { get; set; } = [];
[JsonIgnore] public int RogueVersionId { get; set; }
public override int GetId()
{
return AreaID;
}
public override void Loaded()
{
GameData.RogueDLCAreaData[AreaID] = this;
if (SubType.Contains("Nous"))
RogueVersionId = 202;
else
RogueVersionId = 201;
}
}
public class RogueDLCAreaScoreMap
{
[JsonProperty("NALLPFKBHIO")] public int Layer { get; set; }
[JsonProperty("GGOHPEDAKJE")] public int ExploreScore { get; set; }
[JsonProperty("BELDLJADLKO")] public int FinishScore { get; set; }
}