Page 1 of 1

class LuaRailPath should include the cost of the path

Posted: Sat Aug 01, 2020 12:27 am
by mrvn
TL;DR
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.