space_ex v0.8.0 SpaceEx.SpaceCenter.Resources
Represents the collection of resources stored in a vessel, stage or part.
Created by calling SpaceEx.SpaceCenter.Vessel.resources/1,
SpaceEx.SpaceCenter.Vessel.resources_in_decouple_stage/3 or
SpaceEx.SpaceCenter.Part.resources/1.
Link to this section Summary
Functions
All the individual resources that can be stored
Returns the amount of a resource that is currently stored
Returns the density of a resource, in \(kg/l\)
Whether use of all the resources are enabled
Returns the flow mode of a resource
Check whether the named resource can be stored
Returns the amount of a resource that can be stored
A list of resource names that can be stored
Whether use of all the resources are enabled
All the individual resources with the given name that can be stored
Link to this section Functions
All the individual resources that can be stored.
Returns: [resource, ...], where resource is a reference to a SpaceEx.SpaceCenter.Resource object
Returns the amount of a resource that is currently stored.
name— The name of the resource.
Returns: a low-precision decimal
Returns the density of a resource, in \(kg/l\).
name— The name of the resource.
Returns: a low-precision decimal
Whether use of all the resources are enabled.
This is true if all of the resources are enabled.
If any of the resources are not enabled, this is false.
Returns: true or false
Returns the flow mode of a resource.
name— The name of the resource.
Returns: a Elixir.SpaceEx.SpaceCenter.ResourceFlowMode value in atom form
Check whether the named resource can be stored.
name— The name of the resource.
Returns: true or false
Returns the amount of a resource that can be stored.
name— The name of the resource.
Returns: a low-precision decimal
A list of resource names that can be stored.
Returns: [str, ...], where str is a string
Whether use of all the resources are enabled.
This is true if all of the resources are enabled.
If any of the resources are not enabled, this is false.
Returns: :ok
All the individual resources with the given name that can be stored.
Returns: [resource, ...], where resource is a reference to a SpaceEx.SpaceCenter.Resource object