add interactable scene but cant switch yet

This commit is contained in:
Naruse
2026-04-26 16:21:34 +08:00
parent f3d958a3ab
commit c9fad34a61
7 changed files with 126 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
namespace MikuSB.Data.Excel;
[ResourceEntity("ar_item.json")]
public class ArItemExcel : ExcelResource
{
public uint Genre { get; set; }
public uint Detail { get; set; }
public uint Particular { get; set; }
public uint Level { get; set; }
public string I18n { get; set; } = "";
public override uint GetId()
{
return (Genre << 24) | (Detail << 16) | (Particular << 8) | Level;
}
public override void Loaded()
{
GameData.ArItemData.Add(GetId(), this);
}
}

View File

@@ -0,0 +1,24 @@
using Newtonsoft.Json;
namespace MikuSB.Data.Excel;
[ResourceEntity("manifestation.json")]
public class ManifestationExcel : ExcelResource
{
public uint Genre { get; set; }
public uint Detail { get; set; }
public uint Particular { get; set; }
public uint Level { get; set; }
public string I18n { get; set; } = "";
[JsonProperty("profile")]public List<int> Profile { get; set; } = [];
public override uint GetId()
{
return (Genre << 24) | (Detail << 16) | (Particular << 8) | Level;
}
public override void Loaded()
{
GameData.ManifestationData.Add(GetId(), this);
}
}

View File

@@ -12,6 +12,8 @@ public static class GameData
public static Dictionary<int, BreakLevelLimitExcel> BreakLevelLimitData { get; private set; } = [];
public static Dictionary<int, RecycleExcel> RecycleData { get; private set; } = [];
public static Dictionary<uint, ChapterLevelExcel> ChapterLevelData { get; private set; } = [];
public static Dictionary<uint, ArItemExcel> ArItemData { get; private set; } = [];
public static Dictionary<uint, ManifestationExcel> ManifestationData { get; private set; } = [];
}
public static class GameResourceTemplateId

View File

@@ -19,7 +19,7 @@ public class InventoryData : BaseDatabaseDataHelper
public Dictionary<uint, GameSkinInfo> Skins { get; set; } = []; // Key: UniqueId
}
public abstract class BaseGameItemInfo
public class BaseGameItemInfo
{
public uint UniqueId { get; set; }
public ulong TemplateId { get; set; }