LuaRailPath should have a member (uint) for the cost of the path the path finding finished on.
What ?
Add cost to LuaRailPath:
class LuaRailPath -
cost :: uint [R] The cost of this path from the pathfinder.
Why ?
When comparing paths in mods it would be useful to order paths with less obstacles before paths with more. The pathfinding score nicely includes this in a well balanced metric.