class LuaRailPath should include the cost of the path

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
mrvn
Smart Inserter
Smart Inserter
Posts: 5969
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 “Modding interface requests”