Class SharedGeneratorSystem
This handles small, portable generators that run off a material fuel.
Namespace: Content.Shared.Power.Generator
Assembly: Content.Shared.dll
Syntax
public abstract class SharedGeneratorSystem : EntitySystem
Methods
| Improve this Doc View SourceCalcFuelEfficiency(Single, Single, FuelGeneratorComponent)
Calculates the expected fuel efficiency based on the optimal and target power levels.
Declaration
public static float CalcFuelEfficiency(float targetPower, float optimalPower, FuelGeneratorComponent component)
Parameters
Type | Name | Description |
---|---|---|
System.Single | targetPower | Target power level |
System.Single | optimalPower | Optimal power level |
FuelGeneratorComponent | component |
Returns
Type | Description |
---|---|
System.Single | Expected fuel efficiency as a percentage |