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 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.Single |
StartSound
Sound that plays when attempting to start this generator.
Declaration
public SoundSpecifier StartSound { get; set; }
Property Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |
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 |
StartTime
Amount of time it takes to attempt to start the generator.
Declaration
public TimeSpan StartTime { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |