Skip to content

Commit

Permalink
move data containers into features directory
Browse files Browse the repository at this point in the history
  • Loading branch information
floribe2000 committed Oct 28, 2023
1 parent 261f93b commit 7b740f2
Show file tree
Hide file tree
Showing 58 changed files with 93 additions and 93 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@page "/acceleration-charts"

@using WoWsShipBuilder.DataContainers
@using WoWsShipBuilder.DataStructures
@using WoWsShipBuilder.DataStructures.Ship
@using WoWsShipBuilder.Features.BallisticCharts
@using WoWsShipBuilder.Features.BallisticCharts.Data
@using WoWsShipBuilder.Features.Builds
@using WoWsShipBuilder.Features.Builds.Components
@using WoWsShipBuilder.Features.DataContainers
@using WoWsShipBuilder.Infrastructure.ApplicationData
@using WoWsShipBuilder.Infrastructure.DataTransfer
@using WoWsShipBuilder.Infrastructure.GameData
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using WoWsShipBuilder.DataContainers;
using WoWsShipBuilder.DataStructures;
using WoWsShipBuilder.DataStructures.Projectile;
using WoWsShipBuilder.Features.DataContainers;

namespace WoWsShipBuilder.Features.BallisticCharts;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@page "/charts"
@using WoWsShipBuilder.DataContainers
@using WoWsShipBuilder.DataStructures
@using WoWsShipBuilder.DataStructures.Ship
@using WoWsShipBuilder.DataStructures.Projectile
@using WoWsShipBuilder.Features.BallisticCharts.Data
@using WoWsShipBuilder.Features.Builds
@using WoWsShipBuilder.Features.Builds.Components
@using WoWsShipBuilder.Features.DataContainers
@using WoWsShipBuilder.Infrastructure.ApplicationData
@using WoWsShipBuilder.Infrastructure.DataTransfer
@using WoWsShipBuilder.Infrastructure.GameData
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@using WoWsShipBuilder.DataContainers
@using WoWsShipBuilder.Features.BallisticCharts.Data
@using WoWsShipBuilder.Features.BallisticCharts.Data
@using WoWsShipBuilder.Infrastructure.Localization
@using WoWsShipBuilder.Infrastructure.Localization.Resources

@implements IAsyncDisposable
@inject IJSRuntime Runtime
@inject ILocalizer Localizer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
@using System.Collections.Specialized
@using System.Linq
@using DynamicData
@using WoWsShipBuilder.DataContainers
@using WoWsShipBuilder.DataStructures
@using WoWsShipBuilder.DataStructures.Ship
@using WoWsShipBuilder.Features.BallisticCharts.Data
@using WoWsShipBuilder.Features.Builds
@using WoWsShipBuilder.Features.DataContainers
@using WoWsShipBuilder.Infrastructure.DataTransfer
@using WoWsShipBuilder.Infrastructure.Localization.Resources
@using WoWsShipBuilder.Infrastructure.Utility
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@using WoWsShipBuilder.DataStructures
@using System.Text
@using WoWsShipBuilder.DataContainers
@using System.Text
@using WoWsShipBuilder.DataStructures
@using WoWsShipBuilder.Features.ShipStats.ViewModels
@using WoWsShipBuilder.DataStructures.Captain
@using WoWsShipBuilder.Infrastructure.Localization.Resources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@using WoWsShipBuilder.DataContainers
@using WoWsShipBuilder.Features.DataContainers
@using WoWsShipBuilder.Features.ShipStats.Components
@using WoWsShipBuilder.Infrastructure.Localization
@using WoWsShipBuilder.Infrastructure.Utility
@using ConsumableDataContainer = WoWsShipBuilder.DataContainers.ConsumableDataContainer

@inherits ReactiveComponentBase<WoWsShipBuilder.Features.ShipStats.ViewModels.ConsumableViewModel>
@inject ILocalizer Localizer

Expand Down Expand Up @@ -113,4 +113,4 @@
}
}

}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@using WoWsShipBuilder.DataStructures.Upgrade
@using WoWsShipBuilder.DataContainers
@using WoWsShipBuilder.Features.DataContainers
@using WoWsShipBuilder.Features.ShipStats.ViewModels
@using WoWsShipBuilder.Infrastructure.Localization.Resources
@using WoWsShipBuilder.Infrastructure.Utility

@inherits ReactiveComponentBase<WoWsShipBuilder.Features.ShipStats.ViewModels.UpgradePanelViewModelBase>
@inject ILocalizer Localizer

Expand Down Expand Up @@ -99,4 +100,4 @@
return "min-width: 60px; width: 60px; height: 60px; padding: 2px;";
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@using WoWsShipBuilder.DataContainers
@using WoWsShipBuilder.Features.DataContainers
@using WoWsShipBuilder.Infrastructure.Localization.Resources
@using WoWsShipBuilder.Infrastructure.Utility

@inherits ReactiveComponentBase<WoWsShipBuilder.Features.ShipStats.ViewModels.SignalSelectorViewModel>
@inject ILocalizer Localizer

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ReactiveUI;
using WoWsShipBuilder.DataContainers;
using WoWsShipBuilder.DataStructures.Ship;
using WoWsShipBuilder.Features.DataContainers;
using WoWsShipBuilder.Features.ShipStats.ViewModels;
using WoWsShipBuilder.Infrastructure.ApplicationData;
using WoWsShipBuilder.Infrastructure.DataTransfer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using WoWsShipBuilder.DataStructures.Ship;
using WoWsShipBuilder.Infrastructure.ApplicationData;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

public static class AccelerationCalculator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using WoWsShipBuilder.Infrastructure.ApplicationData;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record AirstrikeDataContainer : DataContainerBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using WoWsShipBuilder.Infrastructure.GameData;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record CvAircraftDataContainer : DataContainerBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using WoWsShipBuilder.DataStructures.Ship;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record DepthChargesLauncherDataContainer : DataContainerBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using WoWsShipBuilder.Infrastructure.Utility;

// ReSharper disable UnusedAutoPropertyAccessor.Global
namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record MainBatteryDataContainer : DataContainerBase
Expand Down Expand Up @@ -246,16 +246,16 @@ public partial record MainBatteryDataContainer : DataContainerBase

private bool ShouldDisplayHeDpm(object obj)
{
return DisplayHeDpm;
return this.DisplayHeDpm;
}

private bool ShouldDisplayApDpm(object obj)
{
return DisplayApDpm;
return this.DisplayApDpm;
}

private bool ShouldDisplaySapDpm(object obj)
{
return DisplaySapDpm;
return this.DisplaySapDpm;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using WoWsShipBuilder.DataStructures.Ship;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record PingerGunDataContainer : DataContainerBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using WoWsShipBuilder.Infrastructure.GameData;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record SecondaryBatteryDataContainer : DataContainerBase
Expand Down Expand Up @@ -142,6 +142,6 @@ public partial record SecondaryBatteryDataContainer : DataContainerBase

private bool ShouldDisplayFpm(object obj)
{
return DisplayFpm;
return this.DisplayFpm;
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using WoWsShipBuilder.DataStructures.Ship;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

public record SecondaryBatteryUiDataContainer(List<SecondaryBatteryDataContainer>? Secondaries)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using WoWsShipBuilder.DataStructures.Ship;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record TorpedoArmamentDataContainer : DataContainerBase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

public static class Constants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using WoWsShipBuilder.DataStructures.Ship;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

public static class DataContainerUtility
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using WoWsShipBuilder.Infrastructure.GameData;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record BombDataContainer : ProjectileDataContainer
Expand Down Expand Up @@ -118,6 +118,6 @@ public static BombDataContainer FromBombName(string name, List<(string name, flo

private bool ShouldDisplayBlastPenetration(object obj)
{
return ShowBlastPenetration;
return this.ShowBlastPenetration;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using WoWsShipBuilder.Infrastructure.ApplicationData;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record DepthChargeDataContainer : ProjectileDataContainer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using WoWsShipBuilder.DataElements;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

public abstract record ProjectileDataContainer : DataContainerBase;
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using WoWsShipBuilder.Infrastructure.GameData;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record RocketDataContainer : ProjectileDataContainer
Expand Down Expand Up @@ -112,6 +112,6 @@ public static RocketDataContainer FromRocketName(string name, List<(string name,

private bool ShouldDisplayBlastPenetration(object obj)
{
return ShowBlastPenetration;
return this.ShowBlastPenetration;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using WoWsShipBuilder.Infrastructure.GameData;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record ShellDataContainer : DataContainerBase
Expand Down Expand Up @@ -216,6 +216,6 @@ private static ShellDataContainer ProcessShell(List<(string Name, float Value)>

private bool ShouldDisplayBlastPenetration(object obj)
{
return ShowBlastPenetration;
return this.ShowBlastPenetration;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using WoWsShipBuilder.Infrastructure.GameData;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record TorpedoDataContainer : ProjectileDataContainer
Expand Down Expand Up @@ -205,6 +205,6 @@ public static List<TorpedoDataContainer> FromTorpedoName(List<string> torpedoNam

private bool ShouldDisplayName(object obj)
{
return IsFromPlane;
return this.IsFromPlane;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using WoWsShipBuilder.Infrastructure.Utility;

// ReSharper disable InconsistentNaming
namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

public record AntiAirDataContainer
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using WoWsShipBuilder.DataElements;
using WoWsShipBuilder.DataElements.DataElementAttributes;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record AuraDataDataContainer : DataContainerBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using WoWsShipBuilder.DataStructures.Ship;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record ConcealmentDataContainer : DataContainerBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using WoWsShipBuilder.Infrastructure.GameData;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record ConsumableDataContainer : DataContainerBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using WoWsShipBuilder.DataStructures.Ship;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record ManeuverabilityDataContainer : DataContainerBase
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using WoWsShipBuilder.DataStructures.Ship;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

public record ShipDataContainer(string Index)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using WoWsShipBuilder.DataStructures.Ship;

// ReSharper disable InconsistentNaming
namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record SpecialAbilityDataContainer : DataContainerBase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using WoWsShipBuilder.DataStructures.Ship;
using WoWsShipBuilder.Infrastructure.Utility;

namespace WoWsShipBuilder.DataContainers;
namespace WoWsShipBuilder.Features.DataContainers;

[DataContainer]
public partial record SurvivabilityDataContainer : DataContainerBase
Expand Down
Loading

0 comments on commit 7b740f2

Please sign in to comment.