xaya / taurion_gsp

Taurion - A Fully Decentralised MMO built for the Xaya Platform.
https://taurion.io
GNU General Public License v3.0
23 stars 10 forks source link

Allow excluding buildings for findpath #154

Closed domob1812 closed 4 years ago

domob1812 commented 4 years ago

This adds a new argument exbuildings to the findpath RPC method. The argument expects an array of building IDs (can be empty). Buildings referenced by it will then not be treated as obstacles (while all other buildings set with setpathbuildings are still obstacles). With this it is possible to compute paths "to" a building, e.g. for entering it.

To make this work, the data passed into setpathbuildings now also needs to include id values. But if the output of a GSP's getbuildings method is passed, that will be fine already.