mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EggLink.DanhengServer.Data.Excel
|
|
{
|
|
[ResourceEntity("RogueAreaConfig.json")]
|
|
public class RogueAreaConfigExcel : ExcelResource
|
|
{
|
|
public int RogueAreaID { get; set; }
|
|
public int AreaProgress { get; set; }
|
|
public int Difficulty { get; set; }
|
|
public int FirstReward { get; set; }
|
|
public Dictionary<int, int> ScoreMap { get; set; } = [];
|
|
|
|
[JsonIgnore]
|
|
public int MapId { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public Dictionary<int, RogueMapExcel> RogueMaps { get; set; } = [];
|
|
|
|
public override int GetId()
|
|
{
|
|
return RogueAreaID;
|
|
}
|
|
|
|
public override void Loaded()
|
|
{
|
|
GameData.RogueAreaConfigData.Add(RogueAreaID, this);
|
|
|
|
MapId = AreaProgress * 100 + Difficulty;
|
|
}
|
|
|
|
public override void AfterAllDone()
|
|
{
|
|
GameData.RogueMapData.TryGetValue(MapId, out var map);
|
|
if (map != null)
|
|
{
|
|
RogueMaps = map;
|
|
}
|
|
}
|
|
}
|
|
}
|