using Content.Shared.Atmos.Components; namespace Content.Shared.Atmos.EntitySystems; public abstract partial class SharedAtmosPipeAppearanceSystem : EntitySystem { /// /// Returns the max number of pipe layers supported by a entity. /// /// The entity being checked. /// The entity's , if available. /// Returns /// if the entity has the component, or 1 if it does not. protected int GetNumberOfPipeLayers(EntityUid uid, out AtmosPipeLayersComponent? atmosPipeLayers) { return TryComp(uid, out atmosPipeLayers) ? atmosPipeLayers.NumberOfPipeLayers : 1; } }