mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-14 20:54:17 +01:00
THis is the current stuff.
This commit is contained in:
parent
1a4672a901
commit
99f87c744b
11 changed files with 24 additions and 3977 deletions
|
|
@ -6,36 +6,15 @@ using Dalamud.Data;
|
|||
using Glamourer.Structs;
|
||||
using Lumina.Excel.GeneratedSheets;
|
||||
using Penumbra.GameData.Enums;
|
||||
using Penumbra.GameData.Structs;
|
||||
using Item = Glamourer.Structs.Item;
|
||||
using Stain = Glamourer.Structs.Stain;
|
||||
|
||||
namespace Glamourer;
|
||||
|
||||
public static class GameData
|
||||
{
|
||||
private static Dictionary<StainId, Stain>? _stains;
|
||||
private static Dictionary<EquipSlot, List<Item>>? _itemsBySlot;
|
||||
private static Dictionary<byte, Job>? _jobs;
|
||||
private static Dictionary<ushort, JobGroup>? _jobGroups;
|
||||
private static ModelData? _models;
|
||||
private static RestrictedGear? _restrictedGear;
|
||||
|
||||
public static RestrictedGear RestrictedGear(DataManager dataManager)
|
||||
=> _restrictedGear ??= new RestrictedGear(dataManager);
|
||||
|
||||
public static ModelData Models(DataManager dataManager)
|
||||
=> _models ??= new ModelData(dataManager);
|
||||
|
||||
public static IReadOnlyDictionary<StainId, Stain> Stains(DataManager dataManager)
|
||||
{
|
||||
if (_stains != null)
|
||||
return _stains;
|
||||
|
||||
var sheet = dataManager.GetExcelSheet<Lumina.Excel.GeneratedSheets.Stain>()!;
|
||||
_stains = sheet.Where(s => s.Color != 0).ToDictionary(s => (StainId)s.RowId, s => new Stain((byte)s.RowId, s));
|
||||
return _stains;
|
||||
}
|
||||
|
||||
public static IReadOnlyDictionary<EquipSlot, List<Item>> ItemsBySlot(DataManager dataManager)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue