using Content.Shared.Chemistry.Components.SolutionManager; using Content.Shared.Chemistry.EntitySystems; using Content.Shared.Chemistry.Reagent; using Content.Shared.FixedPoint; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; namespace Content.Server.Power.Generator; /// /// This is used for chemical fuel input into generators. /// [RegisterComponent, Access(typeof(GeneratorSystem))] public sealed partial class ChemicalFuelGeneratorAdapterComponent : Component { /// /// The reagent to accept as fuel. /// [DataField("reagent", customTypeSerializer: typeof(PrototypeIdSerializer))] [ViewVariables(VVAccess.ReadWrite)] public string Reagent = "WeldingFuel"; /// /// The solution on the to use. /// [DataField("solution")] [ViewVariables(VVAccess.ReadWrite)] public string Solution = "tank"; /// /// Value to multiply reagent amount by to get fuel amount. /// [DataField("multiplier"), ViewVariables(VVAccess.ReadWrite)] public float Multiplier = 1f; /// /// How much reagent (can be fractional) is left in the generator. /// Stored in units of . /// [DataField("fractionalReagent"), ViewVariables(VVAccess.ReadWrite)] public float FractionalReagent; }