mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-13 06:44:36 +01:00
LeShite abyss
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
using Common.Utils.ExcelReader;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace PemukulPaku.GameServer.Commands
|
||||
namespace Common.Utils.ExcelReader
|
||||
{
|
||||
internal class ExBossMonsterData : BaseExcelReader<ExBossMonsterData, ExBossMonsterDataExcel>
|
||||
public class ExBossMonsterData : BaseExcelReader<ExBossMonsterData, ExBossMonsterDataExcel>
|
||||
{
|
||||
public override string FileName { get { return "ExBossMonsterData.json"; } }
|
||||
}
|
||||
|
||||
38
Common/Utils/ExcelReader/UltraEndlessFloor.cs
Normal file
38
Common/Utils/ExcelReader/UltraEndlessFloor.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Common.Utils.ExcelReader
|
||||
{
|
||||
public class UltraEndlessFloor : BaseExcelReader<UltraEndlessFloor, UltraEndlessFloorExcel>
|
||||
{
|
||||
public override string FileName { get { return "UltraEndlessFloor.json"; } }
|
||||
|
||||
public List<UltraEndlessFloorExcel> GetFloorDatasFromStageId(int id)
|
||||
{
|
||||
return All.Where(floor => floor.StageId == id).ToList();
|
||||
}
|
||||
|
||||
public UltraEndlessFloorExcel? FromStageAndFloorId(int stageId, int floorId)
|
||||
{
|
||||
return All.FirstOrDefault(x => x.FloorId == floorId && x.StageId == stageId);
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
||||
public partial class UltraEndlessFloorExcel
|
||||
{
|
||||
[JsonProperty("NeedScore")]
|
||||
public int NeedScore { get; set; }
|
||||
|
||||
[JsonProperty("MaxScore")]
|
||||
public int MaxScore { get; set; }
|
||||
|
||||
[JsonProperty("DataImpl")]
|
||||
public object DataImpl { get; set; }
|
||||
|
||||
[JsonProperty("FloorID")]
|
||||
public int FloorId { get; set; }
|
||||
|
||||
[JsonProperty("StageID")]
|
||||
public int StageId { get; set; }
|
||||
}
|
||||
}
|
||||
48
Common/Utils/ExcelReader/UltraEndlessSite.cs
Normal file
48
Common/Utils/ExcelReader/UltraEndlessSite.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Common.Utils.ExcelReader
|
||||
{
|
||||
public class UltraEndlessSite : BaseExcelReader<UltraEndlessSite, UltraEndlessSiteExcel>
|
||||
{
|
||||
public override string FileName { get { return "UltraEndlessSite.json"; } }
|
||||
|
||||
public UltraEndlessSiteExcel? FromId(int id)
|
||||
{
|
||||
return All.Where(site => site.SiteId == id).FirstOrDefault();
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
|
||||
public partial class UltraEndlessSiteExcel
|
||||
{
|
||||
[JsonProperty("StageID")]
|
||||
public int StageId { get; set; }
|
||||
|
||||
[JsonProperty("BuffID")]
|
||||
public int BuffId { get; set; }
|
||||
|
||||
[JsonProperty("SiteNodeName")]
|
||||
public string SiteNodeName { get; set; }
|
||||
|
||||
[JsonProperty("PreSiteList")]
|
||||
public int[] PreSiteList { get; set; }
|
||||
|
||||
[JsonProperty("SiteName")]
|
||||
public string SiteName { get; set; }
|
||||
|
||||
[JsonProperty("LevelEndWebLink")]
|
||||
public string LevelEndWebLink { get; set; }
|
||||
|
||||
[JsonProperty("HardLevelGroup")]
|
||||
public int HardLevelGroup { get; set; }
|
||||
|
||||
[JsonProperty("WebLink")]
|
||||
public string WebLink { get; set; }
|
||||
|
||||
[JsonProperty("DataImpl")]
|
||||
public object DataImpl { get; set; }
|
||||
|
||||
[JsonProperty("SiteID")]
|
||||
public int SiteId { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user