From 84104bc7d995eeebccbdaf467cc1a16e1800b24b Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 2 Oct 2014 16:03:49 +0300 Subject: [PATCH] client/app: get_scene() --- src/client/app.cpp | 5 +++++ src/client/app.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/client/app.cpp b/src/client/app.cpp index 40b8c99..aab38e2 100644 --- a/src/client/app.cpp +++ b/src/client/app.cpp @@ -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() diff --git a/src/client/app.h b/src/client/app.h index 3577cda..4ece599 100644 --- a/src/client/app.h +++ b/src/client/app.h @@ -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());