Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Content.Shared.Interaction.Events
|
||||
{
|
||||
public class ChangeDirectionAttemptEvent : CancellableEntityEventArgs
|
||||
public sealed class ChangeDirectionAttemptEvent : CancellableEntityEventArgs
|
||||
{
|
||||
public ChangeDirectionAttemptEvent(EntityUid uid)
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Content.Shared.Interaction.Events
|
||||
{
|
||||
public class UseAttemptEvent : CancellableEntityEventArgs
|
||||
public sealed class UseAttemptEvent : CancellableEntityEventArgs
|
||||
{
|
||||
public UseAttemptEvent(EntityUid uid)
|
||||
{
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user