Seal/abstract/virtual everything (#6739)

This commit is contained in:
mirrorcult
2022-02-16 00:23:23 -07:00
committed by GitHub
parent 4dfcacb86a
commit ec4d4688c7
1771 changed files with 2216 additions and 2164 deletions

View File

@@ -7,7 +7,7 @@ namespace Content.Server.AI.Pathfinding.Accessible
/// A group of homogenous PathfindingNodes inside a single chunk
/// </summary>
/// Makes the graph smaller and quicker to traverse
public class PathfindingRegion : IEquatable<PathfindingRegion>
public sealed class PathfindingRegion : IEquatable<PathfindingRegion>
{
/// <summary>
/// Bottom-left reference node of the region

View File

@@ -9,7 +9,7 @@ using Robust.Shared.Utility;
namespace Content.Server.AI.Pathfinding.Pathfinders
{
public class AStarPathfindingJob : Job<Queue<TileRef>>
public sealed class AStarPathfindingJob : Job<Queue<TileRef>>
{
#if DEBUG
public static event Action<SharedAiDebug.AStarRouteDebug>? DebugRoute;

View File

@@ -11,7 +11,7 @@ using Robust.Shared.Utility;
namespace Content.Server.AI.Pathfinding.Pathfinders
{
public class JpsPathfindingJob : Job<Queue<TileRef>>
public sealed class JpsPathfindingJob : Job<Queue<TileRef>>
{
// Some of this is probably fugly due to other structural changes in pathfinding so it could do with optimisation
// Realistically it's probably not getting used given it doesn't support tile costs which can be very useful

View File

@@ -3,7 +3,7 @@ using System.Collections.Generic;
namespace Content.Server.AI.Pathfinding.Pathfinders
{
public class PathfindingComparer : IComparer<ValueTuple<float, PathfindingNode>>
public sealed class PathfindingComparer : IComparer<ValueTuple<float, PathfindingNode>>
{
public int Compare((float, PathfindingNode) x, (float, PathfindingNode) y)
{

View File

@@ -9,7 +9,7 @@ using Robust.Shared.Timing;
namespace Content.Server.AI.Pathfinding
{
public class PathfindingChunkUpdateMessage : EntityEventArgs
public sealed class PathfindingChunkUpdateMessage : EntityEventArgs
{
public PathfindingChunk Chunk { get; }
@@ -19,7 +19,7 @@ namespace Content.Server.AI.Pathfinding
}
}
public class PathfindingChunk
public sealed class PathfindingChunk
{
public TimeSpan LastUpdate { get; private set; }
public GridId GridId { get; }

View File

@@ -13,7 +13,7 @@ using Robust.Shared.Utility;
namespace Content.Server.AI.Pathfinding
{
public class PathfindingNode
public sealed class PathfindingNode
{
public PathfindingChunk ParentChunk => _parentChunk;
private readonly PathfindingChunk _parentChunk;

View File

@@ -27,7 +27,7 @@ namespace Content.Server.AI.Pathfinding
/// This system handles pathfinding graph updates as well as dispatches to the pathfinder
/// (90% of what it's doing is graph updates so not much point splitting the 2 roles)
/// </summary>
public class PathfindingSystem : EntitySystem
public sealed class PathfindingSystem : EntitySystem
{
[Dependency] private readonly IMapManager _mapManager = default!;
[Dependency] private readonly IEntityManager _entityManager = default!;

View File

@@ -11,7 +11,7 @@ namespace Content.Server.AI.Pathfinding
{
#if DEBUG
[UsedImplicitly]
public class ServerPathfindingDebugSystem : EntitySystem
public sealed class ServerPathfindingDebugSystem : EntitySystem
{
public override void Initialize()
{