Cleanup todos, run VS cleanup & enforce file scoped namespacing
This commit is contained in:
@@ -27,6 +27,7 @@ csharp_new_line_before_finally = true
|
|||||||
csharp_new_line_before_members_in_object_initializers = true
|
csharp_new_line_before_members_in_object_initializers = true
|
||||||
csharp_new_line_before_members_in_anonymous_types = true
|
csharp_new_line_before_members_in_anonymous_types = true
|
||||||
csharp_new_line_between_query_expression_clauses = true
|
csharp_new_line_between_query_expression_clauses = true
|
||||||
|
csharp_style_namespace_declarations = file_scoped:warning
|
||||||
|
|
||||||
# Indentation preferences
|
# Indentation preferences
|
||||||
csharp_indent_block_contents = true
|
csharp_indent_block_contents = true
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ using SPTarkov.Server.Core.Models.Spt.Templates;
|
|||||||
using SPTarkov.Server.Core.Utils;
|
using SPTarkov.Server.Core.Utils;
|
||||||
using SPTarkov.Server.Core.Utils.Cloners;
|
using SPTarkov.Server.Core.Utils.Cloners;
|
||||||
using SPTarkov.Server.Core.Utils.Json;
|
using SPTarkov.Server.Core.Utils.Json;
|
||||||
using SPTarkov.Server.Core.Utils.Json.Converters;
|
|
||||||
|
|
||||||
namespace Benchmarks;
|
namespace Benchmarks;
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
using SPTarkov.Server.Core.Models.Spt.Mod;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using SPTarkov.Server.Core.Models.Spt.Mod;
|
|
||||||
|
|
||||||
namespace SPTarkov.Server.Core.Extensions
|
namespace SPTarkov.Server.Core.Extensions
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ using SPTarkov.Server.Core.Helpers;
|
|||||||
using SPTarkov.Server.Core.Models.Common;
|
using SPTarkov.Server.Core.Models.Common;
|
||||||
using SPTarkov.Server.Core.Models.Eft.Common;
|
using SPTarkov.Server.Core.Models.Eft.Common;
|
||||||
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
||||||
using SPTarkov.Server.Core.Models.Enums;
|
|
||||||
using SPTarkov.Server.Core.Models.Spt.Config;
|
using SPTarkov.Server.Core.Models.Spt.Config;
|
||||||
using SPTarkov.Server.Core.Models.Spt.Services;
|
using SPTarkov.Server.Core.Models.Spt.Services;
|
||||||
using SPTarkov.Server.Core.Models.Utils;
|
using SPTarkov.Server.Core.Models.Utils;
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ using SPTarkov.Server.Core.Helpers;
|
|||||||
using SPTarkov.Server.Core.Models.Common;
|
using SPTarkov.Server.Core.Models.Common;
|
||||||
using SPTarkov.Server.Core.Models.Eft.Common;
|
using SPTarkov.Server.Core.Models.Eft.Common;
|
||||||
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
||||||
using SPTarkov.Server.Core.Models.Enums;
|
|
||||||
using SPTarkov.Server.Core.Models.Spt.Config;
|
using SPTarkov.Server.Core.Models.Spt.Config;
|
||||||
using SPTarkov.Server.Core.Servers;
|
using SPTarkov.Server.Core.Servers;
|
||||||
using SPTarkov.Server.Core.Services;
|
using SPTarkov.Server.Core.Services;
|
||||||
|
|||||||
-1
@@ -7,7 +7,6 @@ using SPTarkov.Server.Core.Models.Common;
|
|||||||
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
||||||
using SPTarkov.Server.Core.Models.Eft.Dialog;
|
using SPTarkov.Server.Core.Models.Eft.Dialog;
|
||||||
using SPTarkov.Server.Core.Models.Eft.Profile;
|
using SPTarkov.Server.Core.Models.Eft.Profile;
|
||||||
using SPTarkov.Server.Core.Models.Enums;
|
|
||||||
using SPTarkov.Server.Core.Models.Utils;
|
using SPTarkov.Server.Core.Models.Utils;
|
||||||
using SPTarkov.Server.Core.Services;
|
using SPTarkov.Server.Core.Services;
|
||||||
using SPTarkov.Server.Core.Utils.Cloners;
|
using SPTarkov.Server.Core.Utils.Cloners;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
using SPTarkov.DI.Annotations;
|
using SPTarkov.DI.Annotations;
|
||||||
using SPTarkov.Server.Core.Models.Common;
|
using SPTarkov.Server.Core.Models.Common;
|
||||||
using SPTarkov.Server.Core.Models.Eft.Common;
|
using SPTarkov.Server.Core.Models.Eft.Common;
|
||||||
using SPTarkov.Server.Core.Models.Enums;
|
|
||||||
using SPTarkov.Server.Core.Models.Spt.Presets;
|
using SPTarkov.Server.Core.Models.Spt.Presets;
|
||||||
using SPTarkov.Server.Core.Services;
|
using SPTarkov.Server.Core.Services;
|
||||||
using SPTarkov.Server.Core.Utils.Cloners;
|
using SPTarkov.Server.Core.Utils.Cloners;
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
using System;
|
using System.Text.Json.Nodes;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Text.Json.Nodes;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using SPTarkov.DI.Annotations;
|
using SPTarkov.DI.Annotations;
|
||||||
using SPTarkov.Server.Core.Models.Eft.Profile;
|
using SPTarkov.Server.Core.Models.Eft.Profile;
|
||||||
|
|
||||||
|
|||||||
@@ -83,23 +83,17 @@ public record LocationBase
|
|||||||
public int BotMax { get; set; }
|
public int BotMax { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Is not used in 33420 TODO: still needed?
|
/// Is not used in 33420
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonPropertyName("BotMaxPlayer")]
|
[JsonPropertyName("BotMaxPlayer")]
|
||||||
public int? BotMaxPlayer { get; set; }
|
public int? BotMaxPlayer { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Is not used in 33420 TODO: still needed?
|
/// Is not used in 33420
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonPropertyName("BotMaxTimePlayer")]
|
[JsonPropertyName("BotMaxTimePlayer")]
|
||||||
public int? BotMaxTimePlayer { get; set; }
|
public int? BotMaxTimePlayer { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Does not even exist in the client in 33420 TODO: still needed?
|
|
||||||
/// </summary>
|
|
||||||
[JsonPropertyName("BotMaxPvE")]
|
|
||||||
public int? BotMaxPvE { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Weighting on how likely a bot will be Normal difficulty
|
/// Weighting on how likely a bot will be Normal difficulty
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ using SPTarkov.DI.Annotations;
|
|||||||
using SPTarkov.Server.Core.Helpers;
|
using SPTarkov.Server.Core.Helpers;
|
||||||
using SPTarkov.Server.Core.Models.Common;
|
using SPTarkov.Server.Core.Models.Common;
|
||||||
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
||||||
using SPTarkov.Server.Core.Models.Enums;
|
|
||||||
using SPTarkov.Server.Core.Models.Utils;
|
using SPTarkov.Server.Core.Models.Utils;
|
||||||
using SPTarkov.Server.Core.Utils;
|
using SPTarkov.Server.Core.Utils;
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ using SPTarkov.Server.Core.Generators;
|
|||||||
using SPTarkov.Server.Core.Helpers;
|
using SPTarkov.Server.Core.Helpers;
|
||||||
using SPTarkov.Server.Core.Models.Common;
|
using SPTarkov.Server.Core.Models.Common;
|
||||||
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
||||||
using SPTarkov.Server.Core.Models.Enums;
|
|
||||||
using SPTarkov.Server.Core.Models.Spt.Bots;
|
using SPTarkov.Server.Core.Models.Spt.Bots;
|
||||||
using SPTarkov.Server.Core.Models.Utils;
|
using SPTarkov.Server.Core.Models.Utils;
|
||||||
using SPTarkov.Server.Core.Utils.Cloners;
|
using SPTarkov.Server.Core.Utils.Cloners;
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ using SPTarkov.DI.Annotations;
|
|||||||
using SPTarkov.Server.Core.Helpers;
|
using SPTarkov.Server.Core.Helpers;
|
||||||
using SPTarkov.Server.Core.Models.Common;
|
using SPTarkov.Server.Core.Models.Common;
|
||||||
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
||||||
using SPTarkov.Server.Core.Models.Enums;
|
|
||||||
using SPTarkov.Server.Core.Models.Spt.Bots;
|
using SPTarkov.Server.Core.Models.Spt.Bots;
|
||||||
using SPTarkov.Server.Core.Models.Spt.Config;
|
using SPTarkov.Server.Core.Models.Spt.Config;
|
||||||
using SPTarkov.Server.Core.Models.Utils;
|
using SPTarkov.Server.Core.Models.Utils;
|
||||||
|
|||||||
@@ -514,7 +514,6 @@ public class PostDbLoadService(
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
map.Base.BotMaxPvE = cap;
|
|
||||||
map.Base.BotMax = cap;
|
map.Base.BotMax = cap;
|
||||||
|
|
||||||
// make values no larger than 30 secs
|
// make values no larger than 30 secs
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ using SPTarkov.Server.Core.Extensions;
|
|||||||
using SPTarkov.Server.Core.Helpers;
|
using SPTarkov.Server.Core.Helpers;
|
||||||
using SPTarkov.Server.Core.Models.Common;
|
using SPTarkov.Server.Core.Models.Common;
|
||||||
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
using SPTarkov.Server.Core.Models.Eft.Common.Tables;
|
||||||
using SPTarkov.Server.Core.Models.Enums;
|
|
||||||
using SPTarkov.Server.Core.Models.Utils;
|
using SPTarkov.Server.Core.Models.Utils;
|
||||||
|
|
||||||
namespace SPTarkov.Server.Core.Services;
|
namespace SPTarkov.Server.Core.Services;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
using System.Security.AccessControl;
|
|
||||||
using SPTarkov.DI.Annotations;
|
using SPTarkov.DI.Annotations;
|
||||||
|
|
||||||
namespace SPTarkov.Server.Core.Utils;
|
namespace SPTarkov.Server.Core.Utils;
|
||||||
|
|||||||
Reference in New Issue
Block a user