mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* giant protoid cleanup * yml changes * ! --------- Co-authored-by: deltanedas <@deltanedas:goida.zip>
39 lines
1.2 KiB
C#
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;
|
|
}
|