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
Fuel
Properties
| Improve this Doc View SourceStartChance
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. |
StartSound
Sound that plays when attempting to start this generator.
Declaration
public SoundSpecifier StartSound { get; set; }
Property Value
Type | Description |
---|---|
Robust. |
StartSoundEmpty
Sound that plays when attempting to start this generator.
Plays instead of Start
Declaration
public SoundSpecifier StartSoundEmpty { get; set; }
Property Value
Type | Description |
---|---|
Robust. |
StartTime
Amount of time it takes to attempt to start the generator.
Declaration
public TimeSpan StartTime { get; set; }
Property Value
Type | Description |
---|---|
Time |