Barotrauma Client Doc
Barotrauma.Items.Components.GridInfo Class Reference

Public Member Functions

 GridInfo (int id)
 
void RemoveConnection (Connection c)
 
void AddConnection (Connection c)
 
void AddSrc (Connection c)
 

Public Attributes

readonly int ID
 
float Voltage = 0
 
float Load = 0
 
float Power = 0
 
readonly List< ConnectionConnections = new List<Connection>()
 
readonly SortedList< PowerPriority, PowerSourceGroupPowerSourceGroups = new SortedList<PowerPriority, PowerSourceGroup>()
 

Detailed Description

Constructor & Destructor Documentation

◆ GridInfo()

Barotrauma.Items.Components.GridInfo.GridInfo ( int  id)

Member Function Documentation

◆ AddConnection()

void Barotrauma.Items.Components.GridInfo.AddConnection ( Connection  c)

◆ AddSrc()

void Barotrauma.Items.Components.GridInfo.AddSrc ( Connection  c)

◆ RemoveConnection()

void Barotrauma.Items.Components.GridInfo.RemoveConnection ( Connection  c)

Member Data Documentation

◆ Connections

readonly List<Connection> Barotrauma.Items.Components.GridInfo.Connections = new List<Connection>()

◆ ID

readonly int Barotrauma.Items.Components.GridInfo.ID

◆ Load

float Barotrauma.Items.Components.GridInfo.Load = 0

◆ Power

float Barotrauma.Items.Components.GridInfo.Power = 0

◆ PowerSourceGroups

readonly SortedList<PowerPriority, PowerSourceGroup> Barotrauma.Items.Components.GridInfo.PowerSourceGroups = new SortedList<PowerPriority, PowerSourceGroup>()

◆ Voltage

float Barotrauma.Items.Components.GridInfo.Voltage = 0