using System; using KamiLib.Classes; using Lumina.Excel.Sheets; namespace Mappy.Classes.Caches; public class GatheringPointIconCache : Cache { protected override uint LoadValue(uint key) { var gatheringPoint = Service.DataManager.GetExcelSheet().GetRow(key); var gatheringPointBase = Service.DataManager.GetExcelSheet().GetRow(gatheringPoint.GatheringPointBase.RowId); return gatheringPointBase.GatheringType.RowId switch { 0 => 60438, 1 => 60437, 2 => 60433, 3 => 60432, 5 => 60445, _ => throw new Exception($"Unknown Gathering Type: {gatheringPointBase.GatheringType.RowId}"), }; } }