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

@@ -23,7 +23,7 @@ namespace Content.Server.Atmos.Reactions
}
[Prototype("gasReaction")]
public class GasReactionPrototype : IPrototype
public sealed class GasReactionPrototype : IPrototype
{
[ViewVariables]
[DataField("id", required: true)]

View File

@@ -10,7 +10,7 @@ namespace Content.Server.Atmos.Reactions
{
[UsedImplicitly]
[DataDefinition]
public class PlasmaFireReaction : IGasReactionEffect
public sealed class PlasmaFireReaction : IGasReactionEffect
{
public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, AtmosphereSystem atmosphereSystem)
{

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Atmos.Reactions
{
[UsedImplicitly]
[DataDefinition]
public class TritiumFireReaction : IGasReactionEffect
public sealed class TritiumFireReaction : IGasReactionEffect
{
public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, AtmosphereSystem atmosphereSystem)
{

View File

@@ -13,7 +13,7 @@ namespace Content.Server.Atmos.Reactions
{
[UsedImplicitly]
[DataDefinition]
public class WaterVaporReaction : IGasReactionEffect
public sealed class WaterVaporReaction : IGasReactionEffect
{
[DataField("reagent")] public string? Reagent { get; } = null;
@@ -37,7 +37,7 @@ namespace Content.Server.Atmos.Reactions
// Remove the moles from the mixture...
mixture.AdjustMoles(GasId, -MolesPerUnit);
var tileRef = tile.GridIndices.GetTileRef(tile.GridIndex);
var tileRef = tile.GridIndices.GetTileRef(tile.GridIndex);
EntitySystem.Get<SpillableSystem>()
.SpillAt(tileRef, new Solution(Reagent, FixedPoint2.New(MolesPerUnit)), PuddlePrototype, sound: false);