Barotrauma Client Doc
Barotrauma.Items.Components.PowerRange Struct Reference

Public Member Functions

 PowerRange (float min, float max)
 
 PowerRange (float min, float max, float reactorMaxOutput)
 

Static Public Member Functions

static PowerRange operator+ (PowerRange a, PowerRange b)
 
static PowerRange operator- (PowerRange a, PowerRange b)
 

Public Attributes

readonly float Min
 
readonly float Max
 
readonly float ReactorMaxOutput
 Used by reactors to communicate their maximum output to each other so they can divide the grid load between each other in a sensible way More...
 

Static Public Attributes

static readonly PowerRange Zero = default
 

Detailed Description

Constructor & Destructor Documentation

◆ PowerRange() [1/2]

Barotrauma.Items.Components.PowerRange.PowerRange ( float  min,
float  max 
)

◆ PowerRange() [2/2]

Barotrauma.Items.Components.PowerRange.PowerRange ( float  min,
float  max,
float  reactorMaxOutput 
)

Member Function Documentation

◆ operator+()

static PowerRange Barotrauma.Items.Components.PowerRange.operator+ ( PowerRange  a,
PowerRange  b 
)
static

◆ operator-()

static PowerRange Barotrauma.Items.Components.PowerRange.operator- ( PowerRange  a,
PowerRange  b 
)
static

Member Data Documentation

◆ Max

readonly float Barotrauma.Items.Components.PowerRange.Max

◆ Min

readonly float Barotrauma.Items.Components.PowerRange.Min

◆ ReactorMaxOutput

readonly float Barotrauma.Items.Components.PowerRange.ReactorMaxOutput

Used by reactors to communicate their maximum output to each other so they can divide the grid load between each other in a sensible way

Definition at line 32 of file BarotraumaShared/SharedSource/Items/Components/Power/Powered.cs.

◆ Zero

readonly PowerRange Barotrauma.Items.Components.PowerRange.Zero = default
static