Interface IMyBatteryBlock
Describes battery block (PB scripting interface)
Inherited Members
Namespace: Sandbox.ModAPI.Ingame
Assembly: Sandbox.Common.dll
Syntax
public interface IMyBatteryBlock : IMyPowerProducer, IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity
Properties
ChargeMode
Gets or sets charge mode
Declaration
ChargeMode ChargeMode { get; set; }
Property Value
Type | Description |
---|---|
ChargeMode |
CurrentInput
Gets current power input
Declaration
float CurrentInput { get; }
Property Value
Type | Description |
---|---|
System.Single |
CurrentStoredPower
Gets current stored power
Declaration
float CurrentStoredPower { get; }
Property Value
Type | Description |
---|---|
System.Single |
HasCapacityRemaining
Gets whether this battery block has any remaining capacity
Declaration
bool HasCapacityRemaining { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsCharging
Gets whether this battery block is charging
Declaration
bool IsCharging { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaxInput
Gets current maximum power input
Declaration
float MaxInput { get; }
Property Value
Type | Description |
---|---|
System.Single |
MaxStoredPower
Gets maximum stored power
Declaration
float MaxStoredPower { get; }
Property Value
Type | Description |
---|---|
System.Single |
OnlyDischarge
Obsolete
Declaration
bool OnlyDischarge { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
OnlyRecharge
Obsolete
Declaration
bool OnlyRecharge { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SemiautoEnabled
Obsolete
Declaration
bool SemiautoEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |