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

@@ -7,7 +7,7 @@ namespace Content.Shared.Throwing
/// Raised when throwing the entity in your hands.
/// </summary>
[PublicAPI]
public class ThrownEvent : HandledEntityEventArgs
public sealed class ThrownEvent : HandledEntityEventArgs
{
/// <summary>
/// Entity that threw the item.

View File

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

View File

@@ -36,7 +36,7 @@ namespace Content.Shared.Throwing
/// <summary>
/// Raised directed on the target entity being hit by the thrown entity.
/// </summary>
public class ThrowHitByEvent : ThrowEvent
public sealed class ThrowHitByEvent : ThrowEvent
{
public ThrowHitByEvent(EntityUid? user, EntityUid thrown, EntityUid target) : base(user, thrown, target)
{
@@ -46,7 +46,7 @@ namespace Content.Shared.Throwing
/// <summary>
/// Raised directed on the thrown entity that hits another.
/// </summary>
public class ThrowDoHitEvent : ThrowEvent
public sealed class ThrowDoHitEvent : ThrowEvent
{
public ThrowDoHitEvent(EntityUid? user, EntityUid thrown, EntityUid target) : base(user, thrown, target)
{

View File

@@ -6,13 +6,13 @@ using Robust.Shared.Serialization;
namespace Content.Shared.Throwing
{
[RegisterComponent, NetworkedComponent]
public class ThrownItemComponent : Component
public sealed class ThrownItemComponent : Component
{
public EntityUid? Thrower { get; set; }
}
[Serializable, NetSerializable]
public class ThrownItemComponentState : ComponentState
public sealed class ThrownItemComponentState : ComponentState
{
public EntityUid? Thrower { get; }