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

@@ -8,7 +8,7 @@ namespace Content.Shared.Interaction
/// Raised directed on the used object when clicking on another object before an interaction is handled.
/// </summary>
[PublicAPI]
public class BeforeRangedInteractEvent : HandledEntityEventArgs
public sealed class BeforeRangedInteractEvent : HandledEntityEventArgs
{
/// <summary>
/// Entity that triggered the interaction.

View File

@@ -2,7 +2,7 @@
namespace Content.Shared.Interaction.Events
{
public class AttackAttemptEvent : CancellableEntityEventArgs
public sealed class AttackAttemptEvent : CancellableEntityEventArgs
{
public EntityUid Uid { get; }
public EntityUid? Target { get; }

View File

@@ -2,7 +2,7 @@
namespace Content.Shared.Interaction.Events
{
public class ChangeDirectionAttemptEvent : CancellableEntityEventArgs
public sealed class ChangeDirectionAttemptEvent : CancellableEntityEventArgs
{
public ChangeDirectionAttemptEvent(EntityUid uid)
{

View File

@@ -2,7 +2,7 @@
namespace Content.Shared.Interaction.Events
{
public class UseAttemptEvent : CancellableEntityEventArgs
public sealed class UseAttemptEvent : CancellableEntityEventArgs
{
public UseAttemptEvent(EntityUid uid)
{

View File

@@ -22,7 +22,7 @@ namespace Content.Shared.Interaction
void Activate(ActivateEventArgs eventArgs);
}
public class ActivateEventArgs : EventArgs, ITargetedInteractEventArgs
public sealed class ActivateEventArgs : EventArgs, ITargetedInteractEventArgs
{
public ActivateEventArgs(EntityUid user, EntityUid target)
{
@@ -38,7 +38,7 @@ namespace Content.Shared.Interaction
/// Raised when an entity is activated in the world.
/// </summary>
[PublicAPI]
public class ActivateInWorldEvent : HandledEntityEventArgs, ITargetedInteractEventArgs
public sealed class ActivateInWorldEvent : HandledEntityEventArgs, ITargetedInteractEventArgs
{
/// <summary>
/// Entity that activated the target world entity.

View File

@@ -29,7 +29,7 @@ namespace Content.Shared.Interaction
Task<bool> AfterInteract(AfterInteractEventArgs eventArgs);
}
public class AfterInteractEventArgs : EventArgs
public sealed class AfterInteractEventArgs : EventArgs
{
public EntityUid User { get; }
public EntityCoordinates ClickLocation { get; }

View File

@@ -15,7 +15,7 @@ namespace Content.Shared.Interaction
void Dropped(DroppedEventArgs eventArgs);
}
public class DroppedEventArgs : EventArgs
public sealed class DroppedEventArgs : EventArgs
{
public DroppedEventArgs(EntityUid user)
{
@@ -29,7 +29,7 @@ namespace Content.Shared.Interaction
/// Raised when an entity is dropped
/// </summary>
[PublicAPI]
public class DroppedEvent : HandledEntityEventArgs
public sealed class DroppedEvent : HandledEntityEventArgs
{
/// <summary>
/// Entity that dropped the item.

View File

@@ -19,7 +19,7 @@ namespace Content.Shared.Interaction
bool InteractHand(InteractHandEventArgs eventArgs);
}
public class InteractHandEventArgs : EventArgs, ITargetedInteractEventArgs
public sealed class InteractHandEventArgs : EventArgs, ITargetedInteractEventArgs
{
public InteractHandEventArgs(EntityUid user, EntityUid target)
{
@@ -35,7 +35,7 @@ namespace Content.Shared.Interaction
/// Raised directed on a target entity when it is interacted with by a user with an empty hand.
/// </summary>
[PublicAPI]
public class InteractHandEvent : HandledEntityEventArgs, ITargetedInteractEventArgs
public sealed class InteractHandEvent : HandledEntityEventArgs, ITargetedInteractEventArgs
{
/// <summary>
/// Entity that triggered the interaction.

View File

@@ -28,7 +28,7 @@ namespace Content.Shared.Interaction
Task<bool> InteractUsing(InteractUsingEventArgs eventArgs);
}
public class InteractUsingEventArgs : EventArgs, ITargetedInteractEventArgs
public sealed class InteractUsingEventArgs : EventArgs, ITargetedInteractEventArgs
{
public InteractUsingEventArgs(EntityUid user, EntityCoordinates clickLocation, EntityUid @using, EntityUid target)
{
@@ -48,7 +48,7 @@ namespace Content.Shared.Interaction
/// Raised when a target entity is interacted with by a user while holding an object in their hand.
/// </summary>
[PublicAPI]
public class InteractUsingEvent : HandledEntityEventArgs
public sealed class InteractUsingEvent : HandledEntityEventArgs
{
/// <summary>
/// Entity that triggered the interaction.

View File

@@ -8,7 +8,7 @@ namespace Content.Shared.Interaction
/// Raised when an entity is interacted with that is out of the user entity's range of direct use.
/// </summary>
[PublicAPI]
public class RangedInteractEvent : HandledEntityEventArgs
public sealed class RangedInteractEvent : HandledEntityEventArgs
{
/// <summary>
/// Entity that triggered the interaction.

View File

@@ -20,7 +20,7 @@ namespace Content.Shared.Interaction
bool UseEntity(UseEntityEventArgs eventArgs);
}
public class UseEntityEventArgs : EventArgs
public sealed class UseEntityEventArgs : EventArgs
{
public UseEntityEventArgs(EntityUid user)
{
@@ -34,7 +34,7 @@ namespace Content.Shared.Interaction
/// Raised when using the entity in your hands.
/// </summary>
[PublicAPI]
public class UseInHandEvent : HandledEntityEventArgs
public sealed class UseInHandEvent : HandledEntityEventArgs
{
/// <summary>
/// Entity holding the item in their hand.

View File

@@ -31,7 +31,7 @@ namespace Content.Shared.Interaction
/// Doesn't really fit with SharedInteractionSystem so it's not there.
/// </summary>
[UsedImplicitly]
public class RotateToFaceSystem : EntitySystem
public sealed class RotateToFaceSystem : EntitySystem
{
[Dependency] private readonly ActionBlockerSystem _actionBlockerSystem = default!;
public bool TryFaceCoordinates(EntityUid user, Vector2 coordinates)