class LuaRailPath should include the cost of the path

Post your ideas and suggestions how to improve the game.
Post Reply
mrvn
Smart Inserter
Smart Inserter
Posts: 4105
Joined: Mon Sep 05, 2016 9:10 am
Contact:

class LuaRailPath should include the cost of the path

Post 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.

Post Reply

Return to “Ideas and Suggestions”

Who is online

Users browsing this forum: darklich14, Koub, netmand