yae openworld but dialogs aren't triggered

This commit is contained in:
rafi1212122
2023-06-12 20:06:26 +07:00
parent f9e0aa8e1f
commit bfe8347610
26 changed files with 537 additions and 12 deletions

View File

@@ -0,0 +1,53 @@
using Newtonsoft.Json;
namespace Common.Utils.ExcelReader
{
public class OpenWorldCycleData : BaseExcelReader<OpenWorldCycleData, OpenWorldCycleDataExcel>
{
public override string FileName { get { return "OpenWorldCycleData.json"; } }
public uint GetInitCycle(uint mapId)
{
return (uint?)All.Where(x => x.CycleMap == mapId).OrderBy(x => x.Cycle).FirstOrDefault()?.Cycle ?? 0;
}
public uint GetNextCycle(uint mapId, uint cycle)
{
return (uint?)All.Where(x => x.CycleMap == mapId && x.Cycle > cycle).OrderBy(x => x.Cycle).FirstOrDefault()?.Cycle ?? cycle;
}
}
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public partial class OpenWorldCycleDataExcel
{
[JsonProperty("level")]
public int Level { get; set; }
[JsonProperty("needstory")]
public int Needstory { get; set; }
[JsonProperty("finishreward")]
public int Finishreward { get; set; }
[JsonProperty("cycleMap")]
public int CycleMap { get; set; }
[JsonProperty("hardLvKey")]
public string HardLvKey { get; set; }
[JsonProperty("CycleName")]
public HashName CycleName { get; set; }
[JsonProperty("EntranceScene")]
public int EntranceScene { get; set; }
[JsonProperty("EntranceImg1")]
public string EntranceImg1 { get; set; }
[JsonProperty("DataImpl")]
public object DataImpl { get; set; }
[JsonProperty("cycle")]
public int Cycle { get; set; }
}
}

View File

@@ -0,0 +1,77 @@
using Newtonsoft.Json;
namespace Common.Utils.ExcelReader
{
public class OpenWorldMap : BaseExcelReader<OpenWorldMap, OpenWorldMapExcel>
{
public override string FileName { get { return "OpenWorldMap.json"; } }
}
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
public partial class OpenWorldMapExcel
{
[JsonProperty("MapType")]
public int MapType { get; set; }
[JsonProperty("UnlockLv")]
public int UnlockLv { get; set; }
[JsonProperty("UnlockStoryId")]
public int UnlockStoryId { get; set; }
[JsonProperty("ShowTime")]
public string ShowTime { get; set; }
[JsonProperty("UnlockTime")]
public string UnlockTime { get; set; }
[JsonProperty("QuestSlotNum")]
public int QuestSlotNum { get; set; }
[JsonProperty("QuestSettleType")]
public int QuestSettleType { get; set; }
[JsonProperty("MapNameText")]
public HashName MapNameText { get; set; }
[JsonProperty("MapContentText")]
public HashName MapContentText { get; set; }
[JsonProperty("HpRecoverInterval")]
public int HpRecoverInterval { get; set; }
[JsonProperty("HpRecoverPercent")]
public int HpRecoverPercent { get; set; }
[JsonProperty("QuestMapUIManager")]
public string QuestMapUiManager { get; set; }
[JsonProperty("SelectDailyQuestPage")]
public string SelectDailyQuestPage { get; set; }
[JsonProperty("SettlementPage")]
public string SettlementPage { get; set; }
[JsonProperty("ShopOpenWorldPage")]
public string ShopOpenWorldPage { get; set; }
[JsonProperty("ShopTypeList")]
public object[] ShopTypeList { get; set; }
[JsonProperty("MapInfoText")]
public HashName MapInfoText { get; set; }
[JsonProperty("QuestInfoText")]
public HashName QuestInfoText { get; set; }
[JsonProperty("MapSelectPath")]
public string MapSelectPath { get; set; }
[JsonProperty("DataImpl")]
public object DataImpl { get; set; }
[JsonProperty("MapId")]
public int MapId { get; set; }
}
}