Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -9,7 +9,7 @@ using Robust.Shared.Prototypes;
|
||||
namespace Content.Server.Objectives.Commands
|
||||
{
|
||||
[AdminCommand(AdminFlags.Admin)]
|
||||
public class AddObjectiveCommand : IConsoleCommand
|
||||
public sealed class AddObjectiveCommand : IConsoleCommand
|
||||
{
|
||||
public string Command => "addobjective";
|
||||
public string Description => "Adds an objective to the player's mind.";
|
||||
|
||||
@@ -9,7 +9,7 @@ using Robust.Shared.IoC;
|
||||
namespace Content.Server.Objectives.Commands
|
||||
{
|
||||
[AdminCommand(AdminFlags.Admin)]
|
||||
public class ListObjectivesCommand : IConsoleCommand
|
||||
public sealed class ListObjectivesCommand : IConsoleCommand
|
||||
{
|
||||
public string Command => "lsobjectives";
|
||||
public string Description => "Lists all objectives in a players mind.";
|
||||
|
||||
@@ -8,7 +8,7 @@ using Robust.Shared.IoC;
|
||||
namespace Content.Server.Objectives.Commands
|
||||
{
|
||||
[AdminCommand(AdminFlags.Admin)]
|
||||
public class RemoveObjectiveCommand : IConsoleCommand
|
||||
public sealed class RemoveObjectiveCommand : IConsoleCommand
|
||||
{
|
||||
public string Command => "rmobjective";
|
||||
public string Description => "Removes an objective from the player's mind.";
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Content.Server.Objectives.Conditions
|
||||
{
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class DieCondition : IObjectiveCondition
|
||||
public sealed class DieCondition : IObjectiveCondition
|
||||
{
|
||||
private Mind.Mind? _mind;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Content.Server.Objectives.Conditions
|
||||
{
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class KillRandomPersonCondition : KillPersonCondition
|
||||
public sealed class KillRandomPersonCondition : KillPersonCondition
|
||||
{
|
||||
public override IObjectiveCondition GetAssigned(Mind.Mind mind)
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ using Content.Server.Roles;
|
||||
namespace Content.Server.Objectives.Conditions
|
||||
{
|
||||
[DataDefinition]
|
||||
public class RandomTraitorAliveCondition : IObjectiveCondition
|
||||
public sealed class RandomTraitorAliveCondition : IObjectiveCondition
|
||||
{
|
||||
protected Mind.Mind? Target;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Content.Server.Objectives.Conditions
|
||||
{
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class StayAliveCondition : IObjectiveCondition
|
||||
public sealed class StayAliveCondition : IObjectiveCondition
|
||||
{
|
||||
private Mind.Mind? _mind;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Content.Server.Objectives.Conditions
|
||||
{
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class StealCondition : IObjectiveCondition, ISerializationHooks
|
||||
public sealed class StealCondition : IObjectiveCondition, ISerializationHooks
|
||||
{
|
||||
private Mind.Mind? _mind;
|
||||
[DataField("prototype")] private string _prototypeId = string.Empty;
|
||||
|
||||
@@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables;
|
||||
|
||||
namespace Content.Server.Objectives
|
||||
{
|
||||
public class Objective : IEquatable<Objective>
|
||||
public sealed class Objective : IEquatable<Objective>
|
||||
{
|
||||
[ViewVariables]
|
||||
public readonly Mind.Mind Mind;
|
||||
|
||||
@@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables;
|
||||
namespace Content.Server.Objectives
|
||||
{
|
||||
[Prototype("objective")]
|
||||
public class ObjectivePrototype : IPrototype
|
||||
public sealed class ObjectivePrototype : IPrototype
|
||||
{
|
||||
[ViewVariables]
|
||||
[DataField("id", required: true)]
|
||||
|
||||
@@ -7,7 +7,7 @@ using Robust.Shared.Random;
|
||||
|
||||
namespace Content.Server.Objectives
|
||||
{
|
||||
public class ObjectivesManager : IObjectivesManager
|
||||
public sealed class ObjectivesManager : IObjectivesManager
|
||||
{
|
||||
[Dependency] private IPrototypeManager _prototypeManager = default!;
|
||||
[Dependency] private IRobustRandom _random = default!;
|
||||
|
||||
@@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
|
||||
namespace Content.Server.Objectives.Requirements
|
||||
{
|
||||
[DataDefinition]
|
||||
public class IncompatibleConditionsRequirement : IObjectiveRequirement
|
||||
public sealed class IncompatibleConditionsRequirement : IObjectiveRequirement
|
||||
{
|
||||
[DataField("conditions")]
|
||||
private readonly List<string> _incompatibleConditions = new();
|
||||
|
||||
@@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
|
||||
namespace Content.Server.Objectives.Requirements
|
||||
{
|
||||
[DataDefinition]
|
||||
public class IncompatibleObjectivesRequirement : IObjectiveRequirement
|
||||
public sealed class IncompatibleObjectivesRequirement : IObjectiveRequirement
|
||||
{
|
||||
[DataField("objectives")]
|
||||
private readonly List<string> _incompatibleObjectives = new();
|
||||
|
||||
@@ -8,7 +8,7 @@ using Content.Server.GameTicking.Rules;
|
||||
namespace Content.Server.Objectives.Requirements
|
||||
{
|
||||
[DataDefinition]
|
||||
public class MultipleTraitorsRequirement : IObjectiveRequirement
|
||||
public sealed class MultipleTraitorsRequirement : IObjectiveRequirement
|
||||
{
|
||||
[DataField("traitors")]
|
||||
private readonly int _requiredTraitors = 2;
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.Objectives.Requirements
|
||||
{
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class TraitorRequirement : IObjectiveRequirement
|
||||
public sealed class TraitorRequirement : IObjectiveRequirement
|
||||
{
|
||||
public bool CanBeAssigned(Mind.Mind mind)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user