Show / Hide Table of Contents

Class SharedGeneratorSystem

This handles small, portable generators that run off a material fuel.

Inheritance
System.Object
SharedGeneratorSystem
GeneratorSystem
Namespace: Content.Shared.Power.Generator
Assembly: Content.Shared.dll
Syntax
public abstract class SharedGeneratorSystem : EntitySystem

Methods

| Improve this Doc View Source

CalcFuelEfficiency(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

See Also

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