Refactor project into smaller chunks

This commit is contained in:
Alex
2025-01-19 17:45:48 +00:00
parent 0da8875946
commit b5240a615e
719 changed files with 376 additions and 325 deletions
+24 -9
View File
@@ -1,14 +1,29 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputType>Library</OutputType>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Core\Core.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Libraries\Core\Core.csproj">
<Private>false</Private>
<CopyLocal>false</CopyLocal>
<CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
</ProjectReference>
<ProjectReference Include="..\Libraries\SptDependencyInjection\SptDependencyInjection.csproj">
<Private>false</Private>
<CopyLocal>false</CopyLocal>
<CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
</ProjectReference>
<ProjectReference Include="..\SptCommon\SptCommon.csproj">
<Private>false</Private>
<CopyLocal>false</CopyLocal>
<CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies>
</ProjectReference>
</ItemGroup>
</Project>
+1 -1
View File
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Enums;
using Core.Models.Spt.Config;
using Core.Servers;
+1 -1
View File
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Hideout;
using Core.Models.Enums;
using Core.Models.Utils;
+1 -1
View File
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Logging;
using Core.Models.Utils;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Utils;
using Core.Servers;
using Core.Services;
-2
View File
@@ -1,2 +0,0 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Utils;
@@ -1,16 +1,15 @@
using Core.Annotations;
using Core.Context;
using Core.Controllers;
using Core.Models.Eft.Bot;
using Core.Models.Eft.Common;
using Core.Models.Eft.Match;
using Core.Utils;
using SptCommon.Annotations;
namespace Core.Callbacks;
[Injectable(InjectableTypeOverride = typeof(BotCallbacks))]
public class BotCallbacks
(
public class BotCallbacks(
BotController _botController,
HttpResponseUtil _httpResponseUtil,
ApplicationContext _applicationContext
@@ -47,7 +46,8 @@ public class BotCallbacks
if (difficulty == "core")
return _httpResponseUtil.NoBody(_botController.GetBotCoreDifficulty());
var raidConfig = _applicationContext.GetLatestValue(ContextVariableType.RAID_CONFIGURATION)?.GetValue<GetRaidConfigurationRequestData>();
var raidConfig = _applicationContext.GetLatestValue(ContextVariableType.RAID_CONFIGURATION)
?.GetValue<GetRaidConfigurationRequestData>();
return _httpResponseUtil.NoBody(_botController.GetBotDifficulty(type, difficulty, raidConfig));
}
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Builds;
using Core.Models.Eft.Common;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common;
using Core.Utils;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Spt.Config;
using Core.Models.Spt.Logging;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.Customization;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Services;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.DI;
using Core.Models.Eft.Common;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.DI;
using Core.Models.Eft.Common;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.DI;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Helpers;
using Core.Models.Eft.Common;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.DI;
using Core.Models.Eft.Common;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Context;
using Core.DI;
using Core.Servers;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.InRaid;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.DI;
using Core.Models.Eft.Common;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.Inventory;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.ItemEvent;
using Core.Models.Enums;
using Core.Routers;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.Launcher;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Launcher;
using Core.Models.Spt.Launcher;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.Location;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.Match;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.ItemEvent;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Request;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.DI;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.Prestige;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.Launcher;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.ItemEvent;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.DI;
using Core.Models.Eft.Common;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.ItemEvent;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.DI;
using Core.Models.Spt.Config;
using Core.Servers;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.ItemEvent;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.DI;
using Core.Models.Eft.Common;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Utils;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Controllers;
using Core.Models.Eft.Common;
using Core.Models.Eft.ItemEvent;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
namespace Core.Context;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Profile;
using Core.Services;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Context;
using Core.Generators;
using Core.Helpers;
@@ -14,7 +14,7 @@ using Core.Servers;
using Core.Services;
using Core.Utils;
using Core.Utils.Cloners;
using Core.Utils.Extensions;
using SptCommon.Extensions;
namespace Core.Controllers;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Models.Eft.Builds;
using Core.Models.Eft.PresetBuild;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Spt.Logging;
using Core.Models.Utils;
using LogLevel = Core.Models.Spt.Logging.LogLevel;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Helpers.Dialogue;
using Core.Models.Eft.Dialog;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Context;
using Core.Helpers;
using Core.Models.Eft.Common;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
namespace Core.Controllers;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Health;
using Core.Models.Eft.ItemEvent;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Generators;
using Core.Helpers;
using Core.Models.Eft.Common;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Context;
using Core.Helpers;
using Core.Models.Eft.InRaid;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.Insurance;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Generators;
using Core.Helpers;
using Core.Models.Eft.Common;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.Launcher;
@@ -9,7 +9,7 @@ using Core.Models.Utils;
using Core.Servers;
using Core.Services;
using Core.Utils;
using Core.Utils.Extensions;
using SptCommon.Extensions;
using Info = Core.Models.Eft.Profile.Info;
namespace Core.Controllers;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.Launcher;
@@ -8,7 +8,7 @@ using Core.Models.Utils;
using Core.Servers;
using Core.Services;
using Core.Utils;
using Core.Utils.Extensions;
using SptCommon.Extensions;
using Info = Core.Models.Eft.Profile.Info;
namespace Core.Controllers;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.Location;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Match;
namespace Core.Controllers;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.ItemEvent;
using Core.Models.Eft.Notes;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Models.Eft.Notifier;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Models.Utils;
using Core.Services;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Generators;
using Core.Helpers;
using Core.Models.Eft.Common;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.ItemEvent;
@@ -803,7 +803,7 @@ public class RagfairController
var sellInOncePiece = playerOffer.SellInOnePiece.GetValueOrDefault(false);
if (!sellInOncePiece)
{
count = playerOffer.Items.Sum(offerItem => offerItem.Upd?.StackObjectsCount ?? 0);
count = (int) playerOffer.Items.Sum(offerItem => offerItem.Upd?.StackObjectsCount ?? 0);
}
var tax = _ragfairTaxService.CalculateTax(
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.ItemEvent;
using Core.Models.Eft.Repair;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.ItemEvent;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Generators;
using Core.Helpers;
using Core.Models.Eft.Common.Tables;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Generators;
using Core.Helpers;
using Core.Models.Eft.Weather;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.ItemEvent;
using Core.Models.Eft.Wishlist;
+18
View File
@@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputType>Library</OutputType>
</PropertyGroup>
<ItemGroup>
<Folder Include="Utils\Extensions\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\SptDependencyInjection\SptDependencyInjection.csproj" />
</ItemGroup>
</Project>
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
using Core.Models.Enums;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Models.Common;
using Core.Models.Eft.Common;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Context;
using Core.Helpers;
using Core.Models.Eft.Common.Tables;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Common;
using Core.Models.Eft.Bot;
using Core.Models.Eft.Common.Tables;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common.Tables;
using Core.Models.Enums;
using Core.Models.Spt.Bots;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Generators.WeaponGen;
using Core.Helpers;
using Core.Models.Eft.Common;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common.Tables;
using Core.Models.Spt.Config;
using Core.Servers;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common;
namespace Core.Generators;
@@ -1,5 +1,5 @@
using System.Text.Json.Serialization;
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
using Core.Models.Spt.Config;
@@ -1,5 +1,5 @@
using System.Text.Json.Serialization;
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Common;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common.Tables;
namespace Core.Generators;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.Ragfair;
using Core.Models.Spt.Config;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
using Core.Models.Enums;
@@ -10,7 +10,7 @@ using Core.Helpers;
using Core.Servers;
using Core.Services;
using Core.Utils.Collections;
using Core.Utils.Extensions;
using SptCommon.Extensions;
using BodyPart = Core.Models.Spt.Config.BodyPart;
namespace Core.Generators;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Models.Eft.Common.Tables;
using Core.Models.Enums;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.Hideout;
using Core.Models.Spt.Hideout;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Utils;
@@ -1,4 +1,4 @@
using Core.Annotations;
using SptCommon.Annotations;
using Core.Helpers;
using Core.Models.Eft.Common.Tables;
using Core.Models.Enums;

Some files were not shown because too many files have changed in this diff Show More