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

@@ -14,7 +14,7 @@ namespace Content.Shared.Ghost.Roles
}
[NetSerializable, Serializable]
public class GhostRolesEuiState : EuiStateBase
public sealed class GhostRolesEuiState : EuiStateBase
{
public GhostRoleInfo[] GhostRoles { get; }
@@ -25,7 +25,7 @@ namespace Content.Shared.Ghost.Roles
}
[NetSerializable, Serializable]
public class GhostRoleTakeoverRequestMessage : EuiMessageBase
public sealed class GhostRoleTakeoverRequestMessage : EuiMessageBase
{
public uint Identifier { get; }
@@ -36,7 +36,7 @@ namespace Content.Shared.Ghost.Roles
}
[NetSerializable, Serializable]
public class GhostRoleWindowCloseMessage : EuiMessageBase
public sealed class GhostRoleWindowCloseMessage : EuiMessageBase
{
}
}

View File

@@ -6,7 +6,7 @@ using Robust.Shared.Serialization;
namespace Content.Shared.Ghost.Roles
{
[Serializable, NetSerializable]
public class MakeGhostRoleEuiState : EuiStateBase
public sealed class MakeGhostRoleEuiState : EuiStateBase
{
public MakeGhostRoleEuiState(EntityUid entityUid)
{

View File

@@ -5,7 +5,7 @@ using Robust.Shared.Serialization;
namespace Content.Shared.Ghost.Roles
{
[Serializable, NetSerializable]
public class MakeGhostRoleWindowClosedMessage : EuiMessageBase
public sealed class MakeGhostRoleWindowClosedMessage : EuiMessageBase
{
}
}

View File

@@ -5,7 +5,7 @@ using Robust.Shared.Serialization;
namespace Content.Shared.Ghost.Roles
{
[Serializable, NetSerializable]
public class GhostRole
public sealed class GhostRole
{
public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;

View File

@@ -9,7 +9,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Shared.Ghost
{
[NetworkedComponent()]
public class SharedGhostComponent : Component
public abstract class SharedGhostComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
public bool CanGhostInteract
@@ -65,7 +65,7 @@ namespace Content.Shared.Ghost
}
[Serializable, NetSerializable]
public class GhostComponentState : ComponentState
public sealed class GhostComponentState : ComponentState
{
public bool CanReturnToBody { get; }
public bool CanGhostInteract { get; }

View File

@@ -43,7 +43,7 @@ namespace Content.Shared.Ghost
/// Response is sent via <see cref="GhostWarpsResponseEvent"/>
/// </summary>
[Serializable, NetSerializable]
public class GhostWarpsRequestEvent : EntityEventArgs
public sealed class GhostWarpsRequestEvent : EntityEventArgs
{
}
@@ -52,7 +52,7 @@ namespace Content.Shared.Ghost
/// Contains players, and locations a ghost can warp to
/// </summary>
[Serializable, NetSerializable]
public class GhostWarpsResponseEvent : EntityEventArgs
public sealed class GhostWarpsResponseEvent : EntityEventArgs
{
public GhostWarpsResponseEvent(List<string> locations, Dictionary<EntityUid, string> players)
{
@@ -75,7 +75,7 @@ namespace Content.Shared.Ghost
/// A client to server request for their ghost to be warped to a location
/// </summary>
[Serializable, NetSerializable]
public class GhostWarpToLocationRequestEvent : EntityEventArgs
public sealed class GhostWarpToLocationRequestEvent : EntityEventArgs
{
/// <summary>
/// The location name to warp to.
@@ -92,7 +92,7 @@ namespace Content.Shared.Ghost
/// A client to server request for their ghost to be warped to an entity
/// </summary>
[Serializable, NetSerializable]
public class GhostWarpToTargetRequestEvent : EntityEventArgs
public sealed class GhostWarpToTargetRequestEvent : EntityEventArgs
{
public EntityUid Target { get; }
@@ -106,7 +106,7 @@ namespace Content.Shared.Ghost
/// A client to server request for their ghost to return to body
/// </summary>
[Serializable, NetSerializable]
public class GhostReturnToBodyRequest : EntityEventArgs
public sealed class GhostReturnToBodyRequest : EntityEventArgs
{
}
@@ -114,7 +114,7 @@ namespace Content.Shared.Ghost
/// A server to client update with the available ghost role count
/// </summary>
[Serializable, NetSerializable]
public class GhostUpdateGhostRoleCountEvent : EntityEventArgs
public sealed class GhostUpdateGhostRoleCountEvent : EntityEventArgs
{
public int AvailableGhostRoles { get; }