Space Engineers
Public Member Functions | Public Attributes | Properties | List of all members
Sandbox.Game.GameSystems.Electricity.MyBattery Class Reference

Public Member Functions

 MyBattery (MyCharacter owner)
 
void Init (MyObjectBuilder_Battery builder, List< MyResourceSinkInfo > additionalSinks=null, List< MyResourceSourceInfo > additionalSources=null)
 
MyObjectBuilder_Battery GetObjectBuilder ()
 
float Sink_ComputeRequiredPower ()
 
void UpdateOnServer100 ()
 
void DebugDepleteBattery ()
 

Public Attributes

const float EnergyCriticalThreshold = 0.10f
 
const float EnergyLowThreshold = 0.25f
 

Properties

bool IsEnergyCritical [get]
 
bool IsEnergyLow [get]
 
MyCharacter Owner [get]
 
MyResourceSinkComponent ResourceSink [get]
 
MyResourceSourceComponent ResourceSource [get]
 
bool OwnedByLocalPlayer [get, set]
 

Detailed Description

Definition at line 23 of file MyBattery.cs.

Constructor & Destructor Documentation

Sandbox.Game.GameSystems.Electricity.MyBattery.MyBattery ( MyCharacter  owner)
inline

Definition at line 48 of file MyBattery.cs.

Member Function Documentation

void Sandbox.Game.GameSystems.Electricity.MyBattery.DebugDepleteBattery ( )
inline

Definition at line 171 of file MyBattery.cs.

MyObjectBuilder_Battery Sandbox.Game.GameSystems.Electricity.MyBattery.GetObjectBuilder ( )
inline

Definition at line 111 of file MyBattery.cs.

void Sandbox.Game.GameSystems.Electricity.MyBattery.Init ( MyObjectBuilder_Battery  builder,
List< MyResourceSinkInfo additionalSinks = null,
List< MyResourceSourceInfo additionalSources = null 
)
inline

Definition at line 55 of file MyBattery.cs.

float Sandbox.Game.GameSystems.Electricity.MyBattery.Sink_ComputeRequiredPower ( )
inline

Definition at line 119 of file MyBattery.cs.

void Sandbox.Game.GameSystems.Electricity.MyBattery.UpdateOnServer100 ( )
inline

Definition at line 127 of file MyBattery.cs.

Member Data Documentation

const float Sandbox.Game.GameSystems.Electricity.MyBattery.EnergyCriticalThreshold = 0.10f

Definition at line 29 of file MyBattery.cs.

const float Sandbox.Game.GameSystems.Electricity.MyBattery.EnergyLowThreshold = 0.25f

Definition at line 30 of file MyBattery.cs.

Property Documentation

bool Sandbox.Game.GameSystems.Electricity.MyBattery.IsEnergyCritical
get

Definition at line 34 of file MyBattery.cs.

bool Sandbox.Game.GameSystems.Electricity.MyBattery.IsEnergyLow
get

Definition at line 35 of file MyBattery.cs.

bool Sandbox.Game.GameSystems.Electricity.MyBattery.OwnedByLocalPlayer
getset

Definition at line 46 of file MyBattery.cs.

MyCharacter Sandbox.Game.GameSystems.Electricity.MyBattery.Owner
get

Definition at line 38 of file MyBattery.cs.

MyResourceSinkComponent Sandbox.Game.GameSystems.Electricity.MyBattery.ResourceSink
get

Definition at line 40 of file MyBattery.cs.

MyResourceSourceComponent Sandbox.Game.GameSystems.Electricity.MyBattery.ResourceSource
get

Definition at line 41 of file MyBattery.cs.


The documentation for this class was generated from the following file: