… | |
… | |
2613 | Moves the player to the given map-path and coordinates by first freezing |
2613 | Moves the player to the given map-path and coordinates by first freezing |
2614 | her, loading and preparing them map, calling the provided $check callback |
2614 | her, loading and preparing them map, calling the provided $check callback |
2615 | that has to return the map if sucecssful, and then unfreezes the player on |
2615 | that has to return the map if sucecssful, and then unfreezes the player on |
2616 | the new (success) or old (failed) map position. In either case, $done will |
2616 | the new (success) or old (failed) map position. In either case, $done will |
2617 | be called at the end of this process. |
2617 | be called at the end of this process. |
|
|
2618 | |
|
|
2619 | Note that $check will be called with a potentially non-loaded map, so if |
|
|
2620 | it needs a loaded map it has to call C<< ->load >>. |
2618 | |
2621 | |
2619 | =cut |
2622 | =cut |
2620 | |
2623 | |
2621 | our $GOTOGEN; |
2624 | our $GOTOGEN; |
2622 | |
2625 | |