Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Content.Server.Actions.Actions
|
||||
{
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class CombatMode : IToggleAction
|
||||
public sealed class CombatMode : IToggleAction
|
||||
{
|
||||
public bool DoToggleAction(ToggleActionEventArgs args)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Content.Server.Actions.Actions
|
||||
/// </summary>
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class DebugInstant : IInstantAction, IInstantItemAction
|
||||
public sealed class DebugInstant : IInstantAction, IInstantItemAction
|
||||
{
|
||||
[DataField("message")] public string Message { get; [UsedImplicitly] private set; } = "Instant action used.";
|
||||
[DataField("cooldown")] public float Cooldown { get; [UsedImplicitly] private set; }
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Content.Server.Actions.Actions
|
||||
{
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class DebugTargetEntity : ITargetEntityAction, ITargetEntityItemAction
|
||||
public sealed class DebugTargetEntity : ITargetEntityAction, ITargetEntityItemAction
|
||||
{
|
||||
public void DoTargetEntityAction(TargetEntityItemActionEventArgs args)
|
||||
{
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Content.Server.Actions.Actions
|
||||
{
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class DebugTargetPoint : ITargetPointAction, ITargetPointItemAction
|
||||
public sealed class DebugTargetPoint : ITargetPointAction, ITargetPointItemAction
|
||||
{
|
||||
public void DoTargetPointAction(TargetPointItemActionEventArgs args)
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Content.Server.Actions.Actions
|
||||
{
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class DebugToggle : IToggleAction, IToggleItemAction
|
||||
public sealed class DebugToggle : IToggleAction, IToggleItemAction
|
||||
{
|
||||
[DataField("messageOn")] public string MessageOn { get; private set; } = "on!";
|
||||
[DataField("messageOff")] public string MessageOff { get; private set; } = "off!";
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace Content.Server.Actions.Actions
|
||||
{
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class DisarmAction : ITargetEntityAction
|
||||
public sealed class DisarmAction : ITargetEntityAction
|
||||
{
|
||||
[DataField("failProb")] private float _failProb = 0.4f;
|
||||
[DataField("pushProb")] private float _pushProb = 0.4f;
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Content.Server.Actions.Actions
|
||||
/// </summary>
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class GhostBoo : IInstantAction
|
||||
public sealed class GhostBoo : IInstantAction
|
||||
{
|
||||
[DataField("radius")] private float _radius = 3;
|
||||
[DataField("cooldown")] private float _cooldown = 120;
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Content.Server.Actions.Actions
|
||||
/// </summary>
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class ToggleGuardianAction : IInstantAction
|
||||
public sealed class ToggleGuardianAction : IInstantAction
|
||||
{
|
||||
[DataField("cooldown")] public float Cooldown { get; [UsedImplicitly] private set; }
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Content.Server.Actions.Actions
|
||||
/// </summary>
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class PAIMidi : IInstantAction
|
||||
public sealed class PAIMidi : IInstantAction
|
||||
{
|
||||
|
||||
public void DoInstantAction(InstantActionEventArgs args)
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Content.Server.Actions.Actions
|
||||
{
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class ScreamAction : IInstantAction, ISerializationHooks
|
||||
public sealed class ScreamAction : IInstantAction, ISerializationHooks
|
||||
{
|
||||
private const float Variation = 0.125f;
|
||||
private const float Volume = 4f;
|
||||
|
||||
@@ -2,7 +2,7 @@ using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Server.Actions.Events
|
||||
{
|
||||
public class DisarmAttemptEvent : CancellableEntityEventArgs
|
||||
public sealed class DisarmAttemptEvent : CancellableEntityEventArgs
|
||||
{
|
||||
public readonly EntityUid TargetUid;
|
||||
public readonly EntityUid DisarmerUid;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Content.Server.Actions.Spells
|
||||
{
|
||||
[UsedImplicitly]
|
||||
[DataDefinition]
|
||||
public class GiveItemSpell : IInstantAction
|
||||
public sealed class GiveItemSpell : IInstantAction
|
||||
{ //TODO: Needs to be an EntityPrototype for proper validation
|
||||
[ViewVariables] [DataField("castMessage")] public string? CastMessage { get; set; } = default!;
|
||||
[ViewVariables] [DataField("cooldown")] public float CoolDown { get; set; } = 1f;
|
||||
|
||||
Reference in New Issue
Block a user