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

@@ -5,7 +5,7 @@ using Robust.Shared.Serialization.Manager.Attributes;
namespace Content.Shared.StatusEffect
{
[Prototype("statusEffect")]
public class StatusEffectPrototype : IPrototype
public sealed class StatusEffectPrototype : IPrototype
{
[DataField("id", required: true)]
public string ID { get; } = default!;

View File

@@ -12,7 +12,7 @@ namespace Content.Shared.StatusEffect
[RegisterComponent]
[NetworkedComponent]
[Friend(typeof(StatusEffectsSystem))]
public class StatusEffectsComponent : Component
public sealed class StatusEffectsComponent : Component
{
[ViewVariables]
public Dictionary<string, StatusEffectState> ActiveEffects = new();
@@ -28,7 +28,7 @@ namespace Content.Shared.StatusEffect
/// Holds information about an active status effect.
/// </summary>
[Serializable, NetSerializable]
public class StatusEffectState
public sealed class StatusEffectState
{
/// <summary>
/// The start and end times of the status effect.
@@ -59,7 +59,7 @@ namespace Content.Shared.StatusEffect
}
[Serializable, NetSerializable]
public class StatusEffectsComponentState : ComponentState
public sealed class StatusEffectsComponentState : ComponentState
{
public Dictionary<string, StatusEffectState> ActiveEffects;
public List<string> AllowedEffects;