Dock
A value shape that methods take or return.
Getting one
player:sailing():dock(…)Fields
| Field | Type | Description |
|---|---|---|
id | number | The dock's id, 0 to 60. |
name | string | Its name ("Port Sarim"). |
kind | DockKind | A port or a mooring point. |
level | number | The Sailing level it needs. |
quest | Quest? | The quest it needs, nil for none. |
object | number? | Its gangplank or mooring object's id, nil when the game has none by the dock's name. |
Returned by
| Method | Returns | Description |
|---|---|---|
Sailing.dock | Dock? | The dock with this id; nil for an id the game does not list. |
Sailing.docks | { Dock } | Every port and mooring point, in the game's table order. |