Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Static Public Member Functions | List of all members
PartModuleUtil Class Reference

Static Public Member Functions

static string PrintResourceRequirements (string caption="Requires:", params ModuleResource[] reqs)
 Return formatted string of the Resource Requirements for provided array. More...
 
static string PrintResourceRequirements (bool showFlowModeDesc, string caption="Requires:", params ModuleResource[] reqs)
 Return formatted string of the Resource Requirements for provided array. More...
 
static string PrintResourceRequirements (string caption="Requires", string color="#99ff00ff", params ModuleResource[] reqs)
 Return formatted string of the Resource Requirements for provided array. More...
 
static string PrintResourceRequirements (bool showFlowModeDesc, string caption="Requires", string color="#99ff00ff", params ModuleResource[] reqs)
 Return formatted string of the Resource Requirements for provided array. More...
 
static string PrintResourceRequirements (string caption="Requires:", double mult=1d, params ModuleResource[] reqs)
 Return formatted string of the Resource Requirements for provided array. More...
 
static string PrintResourceRequirements (bool showFlowModeDesc, string caption="Requires:", double mult=1d, params ModuleResource[] reqs)
 Return formatted string of the Resource Requirements for provided array. More...
 
static string PrintResourceRequirements (string caption="Requires:", string color="#99ff00ff", double mult=1d, params ModuleResource[] reqs)
 Return formatted string of the Resource Requirements for provided array. More...
 
static string PrintResourceRequirements (bool showFlowModeDesc, string caption="Requires", string color="#99ff00ff", double mult=1d, params ModuleResource[] reqs)
 Return formatted string of the Resource Requirements for provided array. More...
 

Member Function Documentation

static string PartModuleUtil.PrintResourceRequirements ( string  caption = "Requires:",
params ModuleResource[]  reqs 
)
inlinestatic

Return formatted string of the Resource Requirements for provided array.

Parameters
captionCaption String
reqsarray of ModuleResource to list in the output.
Returns
static string PartModuleUtil.PrintResourceRequirements ( bool  showFlowModeDesc,
string  caption = "Requires:",
params ModuleResource[]  reqs 
)
inlinestatic

Return formatted string of the Resource Requirements for provided array.

Parameters
showFlowModeDescIf true will also include a flow mode description for each resource.
captionCaption String
reqsarray of ModuleResource to list in the output.
Returns
static string PartModuleUtil.PrintResourceRequirements ( string  caption = "Requires",
string  color = "#99ff00ff",
params ModuleResource[]  reqs 
)
inlinestatic

Return formatted string of the Resource Requirements for provided array.

Parameters
captionCaption String
colorA html color tag for the Caption text color.
reqsarray of ModuleResource to list in the output.
Returns
static string PartModuleUtil.PrintResourceRequirements ( bool  showFlowModeDesc,
string  caption = "Requires",
string  color = "#99ff00ff",
params ModuleResource[]  reqs 
)
inlinestatic

Return formatted string of the Resource Requirements for provided array.

Parameters
showFlowModeDescIf true will also include a flow mode description for each resource.
captionCaption String
colorA html color tag for the Caption text color.
reqsarray of ModuleResource to list in the output.
Returns
static string PartModuleUtil.PrintResourceRequirements ( string  caption = "Requires:",
double  mult = 1d,
params ModuleResource[]  reqs 
)
inlinestatic

Return formatted string of the Resource Requirements for provided array.

Parameters
captionCaption String
multMultiplier to apply to the rate
reqsarray of ModuleResource to list in the output.
Returns
static string PartModuleUtil.PrintResourceRequirements ( bool  showFlowModeDesc,
string  caption = "Requires:",
double  mult = 1d,
params ModuleResource[]  reqs 
)
inlinestatic

Return formatted string of the Resource Requirements for provided array.

Parameters
showFlowModeDescIf true will also include a flow mode description for each resource.
captionCaption String
multMultiplier to apply to the rate
reqsarray of ModuleResource to list in the output.
Returns
static string PartModuleUtil.PrintResourceRequirements ( string  caption = "Requires:",
string  color = "#99ff00ff",
double  mult = 1d,
params ModuleResource[]  reqs 
)
inlinestatic

Return formatted string of the Resource Requirements for provided array.

Parameters
captionCaption String
colorA html color tag for the Caption text color.
multMultiplier to apply to the rate
reqsarray of ModuleResource to list in the output.
Returns
static string PartModuleUtil.PrintResourceRequirements ( bool  showFlowModeDesc,
string  caption = "Requires",
string  color = "#99ff00ff",
double  mult = 1d,
params ModuleResource[]  reqs 
)
inlinestatic

Return formatted string of the Resource Requirements for provided array.

Parameters
showFlowModeDescIf true will also include a flow mode description for each resource.
captionCaption String
colorA html color tag for the Caption text color.
multMultiplier to apply to the rate
reqsarray of ModuleResource to list in the output.
Returns

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