mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
38 lines
1006 B
C#
38 lines
1006 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace EggLink.DanhengServer.Data.Excel;
|
|
|
|
[ResourceEntity("GridFightCamp.json")]
|
|
public class GridFightCampExcel : ExcelResource
|
|
{
|
|
public uint ID { get; set; }
|
|
public uint SeasonID { get; set; }
|
|
public uint BossBattleArea { get; set; }
|
|
public uint IfRandomEnabled { get; set; }
|
|
public uint InitialRandomCode { get; set; }
|
|
public List<uint> BattleAreaList { get; set; } = [];
|
|
public List<uint> MonsterList { get; set; } = [];
|
|
|
|
[JsonIgnore] public List<GridFightMonsterExcel> Monsters { get; set; } = [];
|
|
|
|
public override int GetId()
|
|
{
|
|
return (int)ID;
|
|
}
|
|
|
|
public override void Loaded()
|
|
{
|
|
GameData.GridFightCampData.TryAdd(ID, this);
|
|
}
|
|
|
|
public override void AfterAllDone()
|
|
{
|
|
foreach (var monsterId in MonsterList)
|
|
{
|
|
if (GameData.GridFightMonsterData.TryGetValue(monsterId, out var monster))
|
|
{
|
|
Monsters.Add(monster);
|
|
}
|
|
}
|
|
}
|
|
} |