Files
DanhengServer-OpenSource/Common/Data/Excel/RogueMapExcel.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

27 lines
781 B
C#

namespace EggLink.DanhengServer.Data.Excel;
[ResourceEntity("RogueMap.json")]
public class RogueMapExcel : ExcelResource
{
public int RogueMapID { get; set; }
public int SiteID { get; set; }
public bool IsStart { get; set; }
public int PosX { get; set; }
public int PosY { get; set; }
public List<int> NextSiteIDList { get; set; } = [];
public List<int> LevelList { get; set; } = [];
public override int GetId()
{
return RogueMapID * 1000 + SiteID;
}
public override void Loaded()
{
if (GameData.RogueMapData.TryGetValue(RogueMapID, out var map))
map.Add(SiteID, this);
else
GameData.RogueMapData.Add(RogueMapID, new Dictionary<int, RogueMapExcel> { { SiteID, this } });
}
}