Files
HSMappy/Mappy/Classes/Caches/GatheringPointNameCache.cs
T
2026-02-26 03:54:51 -05:00

15 lines
576 B
C#

using KamiLib.Classes;
using Lumina.Excel.Sheets;
namespace Mappy.Classes.Caches;
public class GatheringPointNameCache : Cache<(uint dataId, string name), string>
{
protected override string LoadValue((uint dataId, string name) key)
{
var gatheringPoint = Service.DataManager.GetExcelSheet<GatheringPoint>().GetRow(key.dataId);
var gatheringPointBase = Service.DataManager.GetExcelSheet<GatheringPointBase>().GetRow(gatheringPoint.GatheringPointBase.RowId);
return $"Lv. {gatheringPointBase.GatheringLevel.ToString()} {key.name}";
}
}