client/app: get_scene()

This commit is contained in:
Perttu Ahola 2014-10-02 16:03:49 +03:00
parent d27d3f7d74
commit 84104bc7d9
2 changed files with 7 additions and 0 deletions

View File

@ -235,6 +235,11 @@ struct CApp: public App, public magic::Application
error_logging_pcall(L, 3, 0);
}
magic::Scene* get_scene()
{
return m_scene;
}
// Non-public methods
void Start()

View File

@ -6,6 +6,7 @@
namespace Urho3D {
class Context;
class Graphics;
class Scene;
}
namespace client {
struct State;
@ -56,6 +57,7 @@ namespace app
virtual void handle_packet(const ss_ &name, const ss_ &data) = 0;
virtual void file_updated_in_cache(const ss_ &file_name,
const ss_ &file_hash, const ss_ &cached_path) = 0;
virtual Urho3D::Scene* get_scene() = 0;
};
App* createApp(Urho3D::Context *context, const Options &options = Options());