class Way (server-side)
Available since version: 0.3.0
Represents a route between two waypoint names computed from server-side waynet JSON.
Constructor
Way.new(string world, string startWp, string endWp)
Parameters:
stringworld: World name (example: NEWWORLD\NEWWORLD.ZEN).stringstartWp: Name of the start waypoint.stringendWp: Name of the end waypoint.
Properties
No properties.
Methods
getStart
Returns the start waypoint name.
string getStart()
Returns string:
getEnd
Returns the end waypoint name.
string getEnd()
Returns string:
getCountWaypoints
Returns number of waypoints in the computed path.
number getCountWaypoints()
Returns number:
getWaypoints
Returns all waypoint names in the computed path.
[wpName...] getWaypoints()
Returns [wpName...]:
Callbacks
No callbacks.