Adjust file namespace scope (#19824)
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
using Content.Server.Singularity.EntitySystems;
|
||||
using Content.Shared.Atmos;
|
||||
using Content.Shared.Atmos.Prototypes;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
||||
|
||||
namespace Content.Server.Singularity.Components
|
||||
namespace Content.Server.Singularity.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Generates electricity from radiation.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(RadiationCollectorSystem))]
|
||||
public sealed partial class RadiationCollectorComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Generates electricity from radiation.
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[Access(typeof(RadiationCollectorSystem))]
|
||||
public sealed partial class RadiationCollectorComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// How much joules will collector generate for each rad.
|
||||
/// </summary>
|
||||
@@ -43,14 +41,14 @@ namespace Content.Server.Singularity.Components
|
||||
[DataField("radiationReactiveGases")]
|
||||
[ViewVariables(VVAccess.ReadWrite)]
|
||||
public List<RadiationReactiveGas>? RadiationReactiveGases;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Describes how a gas reacts to the collected radiation
|
||||
/// </summary>
|
||||
[DataDefinition]
|
||||
public sealed partial class RadiationReactiveGas
|
||||
{
|
||||
/// <summary>
|
||||
/// Describes how a gas reacts to the collected radiation
|
||||
/// </summary>
|
||||
[DataDefinition]
|
||||
public sealed partial class RadiationReactiveGas
|
||||
{
|
||||
/// <summary>
|
||||
/// The reactant gas
|
||||
/// </summary>
|
||||
@@ -86,5 +84,4 @@ namespace Content.Server.Singularity.Components
|
||||
/// </summary>
|
||||
[DataField("molarRatio")]
|
||||
public float MolarRatio = 1f;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,10 +11,10 @@ using Content.Shared.Examine;
|
||||
using Content.Server.Atmos;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Content.Server.Singularity.EntitySystems
|
||||
namespace Content.Server.Singularity.EntitySystems;
|
||||
|
||||
public sealed class RadiationCollectorSystem : EntitySystem
|
||||
{
|
||||
public sealed class RadiationCollectorSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IGameTiming _gameTiming = default!;
|
||||
[Dependency] private readonly PopupSystem _popupSystem = default!;
|
||||
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
|
||||
@@ -157,5 +157,4 @@ namespace Content.Server.Singularity.EntitySystems
|
||||
var state = component.Enabled ? RadiationCollectorVisualState.Active : RadiationCollectorVisualState.Deactive;
|
||||
_appearance.SetData(uid, RadiationCollectorVisuals.VisualState, state, appearance);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user