mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 06:43:57 +00:00
add interactable scene but cant switch yet
This commit is contained in:
21
Common/Data/Excel/ArItemExcel.cs
Normal file
21
Common/Data/Excel/ArItemExcel.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
24
Common/Data/Excel/ManifestationExcel.cs
Normal file
24
Common/Data/Excel/ManifestationExcel.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user