mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 18:23:58 +00:00
23 lines
1.1 KiB
C#
23 lines
1.1 KiB
C#
using MikuSB.Data.Excel;
|
|
|
|
namespace MikuSB.Data;
|
|
|
|
public static class GameData
|
|
{
|
|
public static Dictionary<uint, CardExcel> CardData { get; private set; } = [];
|
|
public static Dictionary<uint, WeaponExcel> WeaponData { get; private set; } = [];
|
|
public static Dictionary<uint, CardSkinExcel> CardSkinData { get; private set; } = [];
|
|
public static Dictionary<uint, SuppliesExcel> SuppliesData { get; private set; } = [];
|
|
public static Dictionary<int, UpgradeExpExcel> UpgradeExpData { get; private set; } = [];
|
|
public static Dictionary<int, BreakLevelLimitExcel> BreakLevelLimitData { get; private set; } = [];
|
|
public static Dictionary<int, RecycleExcel> RecycleData { get; private set; } = [];
|
|
}
|
|
|
|
public static class GameResourceTemplateId
|
|
{
|
|
public static ulong FromGdpl(uint genre, uint detail, uint particular, uint level) =>
|
|
((ulong)level << 48) | ((ulong)particular << 32) | ((ulong)detail << 16) | genre;
|
|
|
|
public static ulong FromGdpl(IReadOnlyList<uint> gdpl) =>
|
|
gdpl.Count >= 4 ? FromGdpl(gdpl[0], gdpl[1], gdpl[2], gdpl[3]) : 0;
|
|
} |