Power Circuit

Parent

A Object that represents a power circuit separated by power switches.

Properties

batteryCapacity : Float

The energy capacity all batteries of the network combined provide.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Battery Capacity

batteryInput : Float

The power that gone into batteries in the last tick.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Battery Input

batteryIn : Float

The amount of energy that currently gets stored in every battery of the whole network.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Battery Input

batteryOut : Float

The amount of energy that currently discharges from every battery in the whole network.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Battery Output

batteryStore : Float

The amount of energy currently stored in all battereies of the network combined.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Battery Store

batteryStorePercent : Float

The fill status in percent of all battereies of the network combined.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Battery Store Percentage

batteryTimeUntilEmpty : Float

The time in seconds until every battery in the network is empty.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Battery Time until Empty

batteryTimeUntilFull : Float

The time in seconds until every battery in the network is filled.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Battery Time until Full

capacity : Float

The power capacity of the whole network in the last tick. (The max amount of power available in the last tick)

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Capacity

consumption : Float

The power consumption of the whole circuit in thge last tick.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Consumption

hasBatteries : Bool

True if the power circuit has batteries connected to it.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Has Batteries

isFuesed : Bool

True if the fuse in the network triggered.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Is Fuesed

maxPowerConsumption : Float

The maximum consumption of power in the last tick.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Max Power Consumption

production : Float

The amount of power produced by the whole circuit in the last tick.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Production

productionBoost : Float

The amount of production boost applied to this circuit.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Production Boost

productionBoostPercent : Float

The amount of production boost applied to this circuit in percent.

Details
Flags ReadOnly RuntimeSync RuntimeParallel

Display Name

Production Boost Percent

Functions

getGroupPrioritySwitches () → switches : Array<Trace<CircuitSwitchPriority>>

Returns a list of all priority switches in the circuit.

Details

Flags

RuntimeSync RuntimeParallel MemberFunc

Display Name

Get Group Priority Switches

Return Values
Name Type Description

Switches switches

Array<Trace<CircuitSwitchPriority>>

A list of all priority switches in the circuit.

resetFuse ()

Resets the fuse of this circuit

Details

Flags

RuntimeSync MemberFunc

Display Name

Reset Fuse

Signals

PowerFuseChanged ()

Get Triggered when the fuse state of the power circuit changes.