2023-07-31 14:42:38 -04:00
|
|
|
|
using Content.Shared.Materials;
|
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Power.Generator;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// This is used for allowing you to insert fuel into gens.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[RegisterComponent, Access(typeof(GeneratorSystem))]
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class SolidFuelGeneratorAdapterComponent : Component
|
2023-07-31 14:42:38 -04:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The material to accept as fuel.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("fuelMaterial", customTypeSerializer: typeof(PrototypeIdSerializer<MaterialPrototype>)), ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
|
public string FuelMaterial = "Plasma";
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// How much fuel that material should count for.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[DataField("multiplier"), ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
|
public float Multiplier = 1.0f;
|
|
|
|
|
|
}
|