Basic functionality of VirCapture has been implemented.

This commit is contained in:
Kei-Luna
2026-05-24 09:17:32 +09:00
parent a50b0563be
commit 6b48c90783
8 changed files with 399 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
using Newtonsoft.Json;
namespace MikuSB.Data.Excel;
[ResourceEntity("item/templates/monster_card.json")]
public class MonsterCardExcel : ExcelResource
{
[JsonProperty("Genre")] public uint Genre { get; set; }
[JsonProperty("Detail")] public uint Detail { get; set; }
[JsonProperty("Particular")] public uint Particular { get; set; }
[JsonProperty("Level")] public uint Level { get; set; }
[JsonProperty("Color")] public uint Color { get; set; }
[JsonProperty("RikiId")] public uint RikiId { get; set; }
[JsonProperty("CostValue")] public uint CostValue { get; set; }
[JsonIgnore]
public ulong TemplateId => GameResourceTemplateId.FromGdpl(Genre, Detail, Particular, Level);
public override uint GetId() => Particular;
public override void Loaded()
{
GameData.MonsterCardData[TemplateId] = this;
}
}

View File

@@ -9,6 +9,7 @@ public class VirCaptureCaptureRegionExcel : ExcelResource
[JsonProperty("StartTime")] public string StartTime { get; set; } = "";
[JsonProperty("EndTime")] public string EndTime { get; set; } = "";
[JsonProperty("MapId")] public uint MapId { get; set; }
[JsonProperty("LevelRegionName")] public string LevelRegionName { get; set; } = "";
public override uint GetId() => Id;

View File

@@ -0,0 +1,18 @@
using Newtonsoft.Json;
namespace MikuSB.Data.Excel;
[ResourceEntity("dlc/vircapture/levellist.json")]
public class VirCaptureLevelListExcel : ExcelResource
{
[JsonProperty("Level")] public uint Level { get; set; }
[JsonProperty("Num")] public uint Num { get; set; }
[JsonProperty("MaxCost")] public uint MaxCost { get; set; }
public override uint GetId() => Level;
public override void Loaded()
{
GameData.VirCaptureLevelListData[Level] = this;
}
}

View File

@@ -54,6 +54,8 @@ public static class GameData
public static Dictionary<uint, VirCaptureSeasonExcel> VirCaptureSeasonData { get; private set; } = [];
public static Dictionary<uint, VirCaptureTrialTimeExcel> VirCaptureTrialTimeData { get; private set; } = [];
public static Dictionary<uint, VirCaptureCaptureRegionExcel> VirCaptureCaptureRegionData { get; private set; } = [];
public static Dictionary<uint, VirCaptureLevelListExcel> VirCaptureLevelListData { get; private set; } = [];
public static Dictionary<ulong, MonsterCardExcel> MonsterCardData { get; private set; } = [];
}
public static class GameResourceTemplateId