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

@@ -6,7 +6,7 @@ using Robust.Shared.IoC;
namespace Content.Server.AI.WorldState.States.Hands
{
[UsedImplicitly]
public class AnyFreeHandState : StateData<bool>
public sealed class AnyFreeHandState : StateData<bool>
{
public override string Name => "AnyFreeHand";
public override bool GetValue()

View File

@@ -7,7 +7,7 @@ using Robust.Shared.IoC;
namespace Content.Server.AI.WorldState.States.Hands
{
[UsedImplicitly]
public class HandItemsState : StateData<List<EntityUid>>
public sealed class HandItemsState : StateData<List<EntityUid>>
{
public override string Name => "HandItems";
public override List<EntityUid> GetValue()

View File

@@ -8,7 +8,7 @@ using Robust.Shared.IoC;
namespace Content.Server.AI.WorldState.States.Nutrition
{
[UsedImplicitly]
public class ThirstyState : StateData<bool>
public sealed class ThirstyState : StateData<bool>
{
public override string Name => "Thirsty";

View File

@@ -3,8 +3,8 @@ namespace Content.Server.AI.WorldState.States.Utility
/// <summary>
/// Used by the utility AI to calc the adjusted scores
/// </summary>
public class ConsiderationState : StoredStateData<int>
public sealed class ConsiderationState : StoredStateData<int>
{
public override string Name => "Consideration";
}
}
}

View File

@@ -6,7 +6,7 @@ namespace Content.Server.AI.WorldState.States.Utility
/// Used for the utility AI; sets the threshold score we need to beat
/// </summary>
[UsedImplicitly]
public class LastUtilityScoreState : StateData<float>
public sealed class LastUtilityScoreState : StateData<float>
{
public override string Name => "LastBonus";
private float _value = 0.0f;