CatStation/Content.Server/Power/Generator/SolidFuelGeneratorAdapterComponent.cs
deltanedas cf7fde3d62
Big prototype and datafield cleanup (#45202)
* giant protoid cleanup

* yml changes

* !

---------

Co-authored-by: deltanedas <@deltanedas:goida.zip>
2026-08-12 02:07:22 +00:00

39 lines
1.2 KiB
C#

using Content.Shared.Materials;
using Content.Shared.Power.Generator;
using Robust.Shared.Prototypes;
namespace Content.Server.Power.Generator;
/// <summary>
/// Fuels a <see cref="FuelGeneratorComponent"/> through solid materials.
/// </summary>
/// <remarks>
/// <para>
/// Must be accompanied with a <see cref="MaterialStorageComponent"/> to store the actual material and handle insertion logic.
/// You should set a whitelist there for the fuel material.
/// </para>
/// <para>
/// The component itself stores a "fractional" fuel value to allow stack materials to be gradually consumed.
/// </para>
/// </remarks>
[RegisterComponent, Access(typeof(GeneratorSystem))]
public sealed partial class SolidFuelGeneratorAdapterComponent : Component
{
/// <summary>
/// The material to accept as fuel.
/// </summary>
[DataField]
public ProtoId<MaterialPrototype> FuelMaterial = "Plasma";
/// <summary>
/// How much material (can be fractional) is left in the generator.
/// </summary>
[DataField]
public float FractionalMaterial;
/// <summary>
/// Value to multiply material amount by to get fuel amount.
/// </summary>
[DataField]
public float Multiplier;
}