The source project of this merge request has been removed.
New feature : pathfinding custom tag weights
Add custom tags weight for pathfinding request. can be edited with script :
module Pathfinding
module TagsWeight
MY_TAGS_WEIGHT = Hash.new(10)
MY_TAGS_WEIGHT[TGrass] = 2
end
end
used like this
find_path to:[10,12], tags: :MY_TAGS_WEIGHT
tags: is optionnal, request will take :DEFAULT (former TAGS_WEIGHT constant)
Edited by Leikt Sol'Reihin