Use typed audio stats for equipped items

This commit is contained in:
Meta Vens 2026-06-14 07:08:06 +01:00
commit 6707dcaba8
160 changed files with 535 additions and 270 deletions

View file

@ -58,10 +58,26 @@ internal static class AetheriaRuntimeCatalogSnapshotMapper
item.DockingMaxSizeX,
item.DockingMaxSizeY,
item.ActionBarIcon,
item.AudioStats.Select(FromState).ToArray(),
item.SimpleCommodityCategory,
item.CompoundCommodityCategory);
}
private static AetheriaRuntimeAudioStat FromState(AetheriaItemAudioStat stat)
{
return new AetheriaRuntimeAudioStat(stat.Parameter, FromState(stat.Stat));
}
private static AetheriaRuntimePerformanceStat FromState(AetheriaItemPerformanceStat stat)
{
return new AetheriaRuntimePerformanceStat(
stat.Min,
stat.Max,
stat.HeatExponentMultiplier,
stat.DurabilityExponentMultiplier,
stat.QualityExponent);
}
private static AetheriaRuntimeShapeCell FromState(AetheriaShapeCell cell)
{
return new AetheriaRuntimeShapeCell(cell.X, cell.Y);