Ver código fonte

Merge pull request #1315 from AtomicGameEngine/JME-ATOMIC-FIXGETCURRENTSCENE

Restore Player.GetCurrentScene
JoshEngebretson 9 anos atrás
pai
commit
4399554b4e
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      Source/AtomicPlayer/Player.h

+ 4 - 1
Source/AtomicPlayer/Player.h

@@ -48,7 +48,10 @@ public:
     /// Get the number of currently loaded scenes
     unsigned GetNumScenes() { return loadedScenes_.Size();  }
 
-    /// Get the scene loaded at specified index 
+    /// Get the current scene
+    Scene* GetCurrentScene() { return currentScene_; }
+
+    /// Get the scene loaded at specified index
     Scene* GetScene(unsigned index) { return loadedScenes_[index]; }
 
     /// Set the current scene