Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Content.Shared.Damage
|
||||
[RegisterComponent]
|
||||
[NetworkedComponent()]
|
||||
[Friend(typeof(DamageableSystem))]
|
||||
public class DamageableComponent : Component, IRadiationAct, IExAct
|
||||
public sealed class DamageableComponent : Component, IRadiationAct, IExAct
|
||||
{
|
||||
/// <summary>
|
||||
/// This <see cref="DamageContainerPrototype"/> specifies what damage types are supported by this component.
|
||||
@@ -116,7 +116,7 @@ namespace Content.Shared.Damage
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class DamageableComponentState : ComponentState
|
||||
public sealed class DamageableComponentState : ComponentState
|
||||
{
|
||||
public readonly Dictionary<string, FixedPoint2> DamageDict;
|
||||
public readonly string? ModifierSetId;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace Content.Shared.Damage.Components
|
||||
// TODO It'd be nice if this could be a destructible threshold, but on the other hand,
|
||||
// that doesn't really work with events at all, and
|
||||
[RegisterComponent, NetworkedComponent]
|
||||
public class SlowOnDamageComponent : Component
|
||||
public sealed class SlowOnDamageComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Damage -> movespeed dictionary. This is -damage-, not -health-.
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace Content.Shared.Damage
|
||||
/// </summary>
|
||||
[DataDefinition]
|
||||
[Serializable, NetSerializable]
|
||||
[Virtual]
|
||||
public class DamageModifierSet
|
||||
{
|
||||
[DataField("coefficients", customTypeSerializer: typeof(PrototypeIdDictionarySerializer<float, DamageTypePrototype>))]
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Content.Shared.Damage
|
||||
/// functions to apply resistance sets and supports basic math operations to modify this dictionary.
|
||||
/// </remarks>
|
||||
[DataDefinition]
|
||||
public class DamageSpecifier : IEquatable<DamageSpecifier>
|
||||
public sealed class DamageSpecifier : IEquatable<DamageSpecifier>
|
||||
{
|
||||
[JsonPropertyName("types")]
|
||||
[DataField("types", customTypeSerializer: typeof(PrototypeIdDictionarySerializer<FixedPoint2, DamageTypePrototype>))]
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Content.Shared.Damage
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class DamageVisualizerGroupData : ICloneable
|
||||
public sealed class DamageVisualizerGroupData : ICloneable
|
||||
{
|
||||
public List<string> GroupList;
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace Content.Shared.Damage.Prototypes
|
||||
/// </remarks>
|
||||
[Prototype("damageContainer")]
|
||||
[Serializable, NetSerializable]
|
||||
public class DamageContainerPrototype : IPrototype
|
||||
public sealed class DamageContainerPrototype : IPrototype
|
||||
{
|
||||
[ViewVariables]
|
||||
[DataField("id", required: true)]
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Content.Shared.Damage.Prototypes
|
||||
/// </remarks>
|
||||
[Prototype("damageGroup")]
|
||||
[Serializable, NetSerializable]
|
||||
public class DamageGroupPrototype : IPrototype
|
||||
public sealed class DamageGroupPrototype : IPrototype
|
||||
{
|
||||
[DataField("id", required: true)] public string ID { get; } = default!;
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Content.Shared.Damage.Prototypes
|
||||
/// just want normal data to be deserialized.
|
||||
/// </remarks>
|
||||
[Prototype("damageModifierSet")]
|
||||
public class DamageModifierSetPrototype : DamageModifierSet, IPrototype
|
||||
public sealed class DamageModifierSetPrototype : DamageModifierSet, IPrototype
|
||||
{
|
||||
[ViewVariables]
|
||||
[DataField("id", required: true)]
|
||||
|
||||
@@ -6,11 +6,11 @@ using Robust.Shared.Serialization.Manager.Attributes;
|
||||
namespace Content.Shared.Damage.Prototypes
|
||||
{
|
||||
/// <summary>
|
||||
/// A single damage type. These types are grouped together in <see cref="DamageGroupPrototype"/>s.
|
||||
/// A single damage type. These types are grouped together in <see cref="DamageGroupPrototype"/>s.
|
||||
/// </summary>
|
||||
[Prototype("damageType")]
|
||||
[Serializable, NetSerializable]
|
||||
public class DamageTypePrototype : IPrototype
|
||||
public sealed class DamageTypePrototype : IPrototype
|
||||
{
|
||||
[DataField("id", required: true)]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Shared.Damage.Prototypes;
|
||||
/// Prototype for examinable damage messages.
|
||||
/// </summary>
|
||||
[Prototype("examinableDamage")]
|
||||
public class ExaminableDamagePrototype : IPrototype
|
||||
public sealed class ExaminableDamagePrototype : IPrototype
|
||||
{
|
||||
[DataField("id", required: true)]
|
||||
public string ID { get; } = default!;
|
||||
|
||||
@@ -10,7 +10,7 @@ using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared.Damage
|
||||
{
|
||||
public class DamageableSystem : EntitySystem
|
||||
public sealed class DamageableSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
||||
|
||||
@@ -220,7 +220,7 @@ namespace Content.Shared.Damage
|
||||
///
|
||||
/// For example, armor.
|
||||
/// </summary>
|
||||
public class DamageModifyEvent : EntityEventArgs, IInventoryRelayEvent
|
||||
public sealed class DamageModifyEvent : EntityEventArgs, IInventoryRelayEvent
|
||||
{
|
||||
// Whenever locational damage is a thing, this should just check only that bit of armour.
|
||||
public SlotFlags TargetSlots { get; } = ~SlotFlags.POCKET;
|
||||
@@ -233,7 +233,7 @@ namespace Content.Shared.Damage
|
||||
}
|
||||
}
|
||||
|
||||
public class DamageChangedEvent : EntityEventArgs
|
||||
public sealed class DamageChangedEvent : EntityEventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// This is the component whose damage was changed.
|
||||
|
||||
@@ -7,7 +7,7 @@ using Robust.Shared.IoC;
|
||||
|
||||
namespace Content.Shared.Damage
|
||||
{
|
||||
public class SlowOnDamageSystem : EntitySystem
|
||||
public sealed class SlowOnDamageSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly MovementSpeedModifierSystem _movementSpeedModifierSystem = default!;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user