6
StarHorizon_Public/Content.Server/_NF/Atmos/Components/RandomGasDepositComponent.cs
2026-01-24 12:49:55 +03:00

24 lines
803 B
C#

using Content.Server._NF.Atmos.Systems;
using Content.Shared._NF.Atmos.Prototypes;
using Robust.Shared.Prototypes;
namespace Content.Shared._NF.Atmos.Components;
[RegisterComponent, Access(typeof(GasDepositSystem))]
public sealed partial class RandomGasDepositComponent : Component
{
/// <summary>
/// The name of the prototype used to populate the gas deposit in this entity.
/// If null or invalid, will be selected from existing set at random.
/// </summary>
[DataField]
public ProtoId<GasDepositPrototype>? DepositPrototype;
/// <summary>
/// A scale factor on the deposit's size.
/// After each gas is chosen from the deposit prototype, the scale factor is multiplied into the deposit size.
/// </summary>
[DataField]
public float Scale = 1.0f;
}