Show / Hide Table of Contents

Class PortableGeneratorComponent

Responsible for power output switching & UI logic on portable generators.

Inheritance
System.Object
PortableGeneratorComponent
Namespace: Content.Shared.Power.Generator
Assembly: Content.Shared.dll
Syntax
public sealed class PortableGeneratorComponent : Component
Remarks

A portable generator is expected to have the following components: SolidFuelGeneratorAdapterComponent FuelGeneratorComponent.

Properties

| Improve this Doc View Source

StartChance

Chance that this generator will start. If it fails, the user has to try again.

Declaration
public float StartChance { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

StartSound

Sound that plays when attempting to start this generator.

Declaration
public SoundSpecifier StartSound { get; set; }
Property Value
Type Description
Robust.Shared.Audio.SoundSpecifier
| Improve this Doc View Source

StartSoundEmpty

Sound that plays when attempting to start this generator. Plays instead of StartSound if the generator has no fuel (dumbass).

Declaration
public SoundSpecifier StartSoundEmpty { get; set; }
Property Value
Type Description
Robust.Shared.Audio.SoundSpecifier
| Improve this Doc View Source

StartTime

Amount of time it takes to attempt to start the generator.

Declaration
public TimeSpan StartTime { get; set; }
Property Value
Type Description
TimeSpan

See Also

SharedPortableGeneratorSystem
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾