Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Content.Server.AI.Utility.Actions.Test
|
||||
/// <summary>
|
||||
/// Used for pathfinding debugging
|
||||
/// </summary>
|
||||
public class MoveRightAndLeftTen : UtilityAction
|
||||
public sealed class MoveRightAndLeftTen : UtilityAction
|
||||
{
|
||||
public override bool CanOverride => false;
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables;
|
||||
namespace Content.Server.AI.Utility
|
||||
{
|
||||
[Prototype("behaviorSet")]
|
||||
public class BehaviorSetPrototype : IPrototype
|
||||
public sealed class BehaviorSetPrototype : IPrototype
|
||||
{
|
||||
/// <summary>
|
||||
/// Name of the BehaviorSet.
|
||||
|
||||
@@ -4,7 +4,7 @@ using Content.Shared.Inventory;
|
||||
|
||||
namespace Content.Server.AI.Utility.Considerations.Clothing
|
||||
{
|
||||
public class ClothingInSlotCon : Consideration
|
||||
public sealed class ClothingInSlotCon : Consideration
|
||||
{
|
||||
|
||||
public ClothingInSlotCon Slot(string slot, Blackboard context)
|
||||
|
||||
@@ -5,7 +5,7 @@ using Robust.Shared.Reflection;
|
||||
|
||||
namespace Content.Server.AI.Utility.Considerations
|
||||
{
|
||||
public class ConsiderationsManager
|
||||
public sealed class ConsiderationsManager
|
||||
{
|
||||
private readonly Dictionary<Type, Consideration> _considerations = new();
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ using Content.Server.AI.WorldState;
|
||||
|
||||
namespace Content.Server.AI.Utility.Considerations
|
||||
{
|
||||
public class DummyCon : Consideration
|
||||
public sealed class DummyCon : Consideration
|
||||
{
|
||||
protected override float GetScore(Blackboard context) => 1.0f;
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Server.AI.Utility.Considerations.Hands
|
||||
{
|
||||
public class FreeHandCon : Consideration
|
||||
public sealed class FreeHandCon : Consideration
|
||||
{
|
||||
protected override float GetScore(Blackboard context)
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Server.AI.Utility.Considerations.Inventory
|
||||
{
|
||||
public class CanPutTargetInInventoryCon : Consideration
|
||||
public sealed class CanPutTargetInInventoryCon : Consideration
|
||||
{
|
||||
protected override float GetScore(Blackboard context)
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Server.AI.Utility.Considerations.Inventory
|
||||
{
|
||||
public class TargetInOurInventoryCon : Consideration
|
||||
public sealed class TargetInOurInventoryCon : Consideration
|
||||
{
|
||||
protected override float GetScore(Blackboard context)
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@ using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Server.AI.Utility.Considerations.Nutrition.Drink
|
||||
{
|
||||
public class ThirstCon : Consideration
|
||||
public sealed class ThirstCon : Consideration
|
||||
{
|
||||
protected override float GetScore(Blackboard context)
|
||||
{
|
||||
|
||||
@@ -158,7 +158,7 @@ namespace Content.Server.AI.Utility
|
||||
npc.AvailableActions.Sort(_comparer);
|
||||
}
|
||||
|
||||
private class NpcActionComparer : Comparer<IAiUtility>
|
||||
private sealed class NpcActionComparer : Comparer<IAiUtility>
|
||||
{
|
||||
public override int Compare(IAiUtility? x, IAiUtility? y)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user