Use typed audio stats for equipped items
This commit is contained in:
parent
d55eb38a3a
commit
6707dcaba8
160 changed files with 535 additions and 270 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue