Exemple #1
0
 // Executed when the user starts playing, return false if the operation should cancel the playmode change
 private static bool OnStartedPlaying()
 {
     // TODO: pop a save dialogue before loading into the game.
     if (ModEngineEditor.LoadedWorld)
     {
         // Do saving here if we have a world loaded
     }
     // Hide the loaded world in the editor.
     ModEngineEditor.HideWorld();
     return(true);
 }
Exemple #2
0
 // Executed when the user stops playing
 private static void OnStoppedPlaying()
 {
     // Re-activate any world in the editor.
     ModEngineEditor.ShowWorld();
 }