mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-02-14 19:30:01 +01:00
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using Content.Shared.Atmos.Prototypes;
|
|
using Content.Shared.Body.Components;
|
|
using Content.Shared.Body.Systems;
|
|
using Robust.Shared.Configuration;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Atmos.EntitySystems
|
|
{
|
|
public abstract partial class SharedAtmosphereSystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
|
|
[Dependency] private readonly SharedInternalsSystem _internals = default!;
|
|
[Dependency] private readonly IConfigurationManager _cfg = default!;
|
|
|
|
private EntityQuery<InternalsComponent> _internalsQuery;
|
|
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
_internalsQuery = GetEntityQuery<InternalsComponent>();
|
|
|
|
InitializeBreathTool();
|
|
InitializeGases();
|
|
InitializeCVars();
|
|
}
|
|
|
|
public GasPrototype GetGas(int gasId) => GasPrototypes[gasId];
|
|
|
|
public GasPrototype GetGas(Gas gasId) => GasPrototypes[(int) gasId];
|
|
|
|
public IEnumerable<GasPrototype> Gases => GasPrototypes;
|
|
}
|
|
}
|