Show / Hide Table of Contents

Class SolidFuelGeneratorAdapterComponent

Fuels a FuelGeneratorComponent through solid materials.

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

Must be accompanied with a MaterialStorageComponent to store the actual material and handle insertion logic. You should set a whitelist there for the fuel material.

The component itself stores a "fractional" fuel value to allow stack materials to be gradually consumed.

Fields

| Improve this Doc View Source

FractionalMaterial

How much material (can be fractional) is left in the generator.

Declaration
public float FractionalMaterial
Field Value
Type Description
System.Single
| Improve this Doc View Source

FuelMaterial

The material to accept as fuel.

Declaration
public string FuelMaterial
Field Value
Type Description
System.String
| Improve this Doc View Source

Multiplier

Value to multiply material amount by to get fuel amount.

Declaration
public float Multiplier
Field Value
Type Description
System.Single
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾