org.rsmod.game.pathfinder.Route.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rsmod-pathfinder Show documentation
Show all versions of rsmod-pathfinder Show documentation
A custom BFS pathfinder implementation to emulate RS.
The newest version!
package org.rsmod.game.pathfinder
public data class Route(
public val waypoints: List,
public val alternative: Boolean,
public val success: Boolean
) : List by waypoints {
public val failed: Boolean get() = !success
public companion object {
public val FAILED: Route = Route(emptyList(), alternative = false, success = false)
}
}