class Route (server-side)
Available since version: 0.3.0
Represents a complete route between two waypoint names computed from server-side waynet JSON data.
Constructor
Route.new(string world, string startWp, string endWp)
Parameters:
stringworld: World name.stringstartWp: Start waypoint name.stringendWp: End waypoint name.
Properties
No properties.
Methods
getStart
Returns the start waypoint name.
string getStart()
Returns string:
getEnd
Returns the end waypoint name.
string getEnd()
Returns string:
getWaypointCount
Returns the number of waypoint names in the route.
number getWaypointCount()
Returns number:
getWaypointNames
Returns a one-based array of waypoint names.
table getWaypointNames()
Returns table:
Callbacks
No callbacks.