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

Method TransitionIn

src/scene_map.cpp:160–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void Scene_Map::TransitionIn(SceneType prev_scene) {
161 auto& transition = Transition::instance();
162
163 // Teleport already setup a transition.
164 if (transition.IsActive()) {
165 return;
166 }
167
168 // If an event erased the screen, don't transition in.
169 if (screen_erased_by_event) {
170 return;
171 }
172
173 if (prev_scene == Scene::Battle) {
174 transition.InitShow(Main_Data::game_system->GetTransition(Main_Data::game_system->Transition_EndBattleShow), this);
175 return;
176 }
177
178 Scene::TransitionIn(prev_scene);
179}
180
181void Scene_Map::TransitionOut(SceneType next_scene) {
182 auto& transition = Transition::instance();

Callers

nothing calls this directly

Calls 3

InitShowMethod · 0.80
GetTransitionMethod · 0.80
IsActiveMethod · 0.45

Tested by

no test coverage detected