Created
June 22, 2014 14:46
-
-
Save Symphonym/2fecd6db4a1089790b28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <EntityPool.hpp> | |
#include <ScenePool.hpp> | |
Scene& Game::createScene(const std::string &name) | |
{ | |
return m_scenePool->createScene(name); | |
} | |
Entity& Game::createEntity() | |
{ | |
return m_entityPool->createEntity(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class EntityPool; | |
class ScenePool; | |
class Game | |
{ | |
public: | |
Scene& createScene(const std::string &name); | |
Entity& createEntity(); | |
private: | |
// Forward declare since the user doesn't need to know about them | |
std::unique_ptr<EntityPool> m_entityPool; | |
std::unique_ptr<ScenePool> m_scenePool; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment