CargoHold¶
Methods to interact with the cargo hold interface.
TRSCargoHold type¶
Main record to interact with the CargoHold interface.
CargoHold.FindCargoBoundaries¶
function TRSCargoHold.FindCargoBoundaries(): TBoxArray;
Finds item boundaries and returns them as a TBoxArray.
CargoHold.FindToolBoundaries¶
function TRSCargoHold.FindToolBoundaries(): TBoxArray;
Finds item boundaries and returns them as a TBoxArray.
CargoHold.SetupInterface¶
procedure TRSCargoHold.SetupInterface();
Internal method used to setup the TRSCargoHold coordinates. This is automatically called for you on the CargoHold variable.
CargoHold.IsOpen¶
function TRSCargoHold.IsOpen(): Boolean;
Returns true if the CargoHold pin is open.
Example:
WriteLn CargoHold.IsOpen();
CargoHold.WaitOpen¶
function TRSCargoHold.WaitOpen(time: Integer = 600; interval: Integer = -1): Boolean;
Returns true if the CargoHold pin opens within time milliseconds..
Example:
WriteLn CargoHold.WaitOpen();
CargoHold.Close¶
function TRSCargoHold.Close(escape: Boolean): Boolean;
function TRSCargoHold.Close(escapeProbability: Single = 0): Boolean; overload;
Closes the CargoHold, depending on escape or `escapeProbability the function
will either click the button or press escape key.
Example:
WriteLn CargoHold.Close();
CargoHold variable¶
Global TRSCargoHold variable.