space_ex v0.8.0 SpaceEx.SpaceCenter.Resource

An individual resource stored within a part.

Created using methods in the SpaceEx.SpaceCenter.Resources class.

Link to this section Summary

Functions

The amount of the resource that is currently stored in the part

The density of the resource, in \(kg/l\)

Whether use of this resource is enabled

The flow mode of the resource

The total amount of the resource that can be stored in the part

The name of the resource

The part containing the resource

Whether use of this resource is enabled

Link to this section Functions

The amount of the resource that is currently stored in the part.

Returns: a low-precision decimal

The density of the resource, in \(kg/l\).

Returns: a low-precision decimal

Whether use of this resource is enabled.

Returns: true or false

Link to this function flow_mode(this)

The flow mode of the resource.

Returns: a Elixir.SpaceEx.SpaceCenter.ResourceFlowMode value in atom form

The total amount of the resource that can be stored in the part.

Returns: a low-precision decimal

The name of the resource.

Returns: a string

The part containing the resource.

Returns: a reference to a SpaceEx.SpaceCenter.Part object

Link to this function set_enabled(this, value)

Whether use of this resource is enabled.

Returns: :ok