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