MCPcopy Create free account
hub / github.com/EasyRPG/Player / StartPendingTeleport

Method StartPendingTeleport

src/scene_map.cpp:311–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311void Scene_Map::StartPendingTeleport(TeleportParams tp) {
312 auto& transition = Transition::instance();
313
314 if (!transition.IsErasedNotActive() && tp.erase_screen) {
315 transition.InitErase(Main_Data::game_system->GetTransition(Main_Data::game_system->Transition_TeleportErase), this);
316 }
317
318 AsyncNext([=]() { FinishPendingTeleport(tp); });
319}
320
321void Scene_Map::FinishPendingTeleport(TeleportParams tp) {
322 auto old_map_id = Game_Map::GetMapId();

Callers

nothing calls this directly

Calls 3

IsErasedNotActiveMethod · 0.80
InitEraseMethod · 0.80
GetTransitionMethod · 0.80

Tested by

no test coverage detected