Created the complete organization of npcs, that way, it is possible to create own files for npcs, no longer depending on being together with the monsters
this pull request was made to be worked together with the canary project: https://github.com/opentibiabr/canary
The spawns npcs is "yellow" and spawns monsters is "red" (the old)
With this change, the map will automatically create an "npc.xml" the first time it is saved.
It is possible to edit only the xml, it is not necessary to add or modify the npc by opening the editor map
Thus, there is a script for npcs, similar to how it works with old spawns
*Adds a minor performance update by removing 'tooltip' allocations every time 'DrawTile' was called, this should increase the performance when moving around the map(e.g. using arrow keys when zoomed out), slow computers should benefit the most from this.
The performance increase can be seen in the comparison bellow, where I used the same map, distance from the ground and movement from a specific point to benchmark.
*Teleports should no longer have the option to 'Open Door' when right-clicking them.
There is a problem that crashes the application when you try to fill too large areas, enough that some drills do not support such recursion, my way of fixing it is not the best, but if someone can give me a suggestion I will agree to make any changes.
Sometimes when using 'Go To Position', 'Go To Town Position' or 'Go To
Teleport Destination', we want to return to the previous position.
- Renamed 'CenterOnPosition' to 'SetScreenCenterPosition'.
- Added 'GetScreenCenterPosition' and 'GoToPreviousCenterPosition'
methods.
- Remove trailing spaces.