Sailing¶
Methods to interact with the sailing gametab:
ERSSailingTab¶
ERSSailingTab = enum(FACILITIES, STATS, CREW);
Enum represinting the available sailing tabs.
TRSSailing¶
Main record responsible with handling the Sailing gametab.
Sailing.IsOpen¶
function TRSSailing.IsOpen(): Boolean;
Returns true/false if the sailing tab is open.
Example:
WriteLn Sailing.IsOpen();
Sailing.Open¶
function TRSSailing.Open(): Boolean;
Attempts to open the sailing gametab.
Example:
WriteLn Sailing.Open();
Sailing.BoatName¶
property TRSSailing.BoatName: String;
Returns the boat name
Example:
WriteLn Sailing.BoatName;
Sailing.BoatHealth¶
property TRSSailing.BoatHealth: Integer;
Returns the boat current health
Example:
WriteLn Sailing.BoatName;
Sailing.GetTab¶
function TRSSailing.GetTab(): ERSSailingTab;
Returns the currently active ERSSailingTab.
Example:
WriteLn Sailing.GetTab();
Sailing.OpenTab¶
function TRSSailing.OpenTab(tab: ERSSailingTab): Boolean;
Attempts to open the specified tab ERSSailingTab.
Example:
WriteLn Sailing.OpenTab(ERSSailingTab.CREW);
Sailing.GetFacilitySlots¶
function TRSSailing.GetFacilitySlots(): TSailingFacilitySlotArray;
Returns a TSailingFacilitySlotArray of the facility slots that are currently visible.
This will only return those that have their buttons and/or icons fully visible.
Example:
WriteLn Sailing.GetFacilitySlots();
Sailing variable¶
Global TRSSailing variable.