From ffd16e3feca90c356c55898de2b9f3f5c6bc5c98 Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Mon, 22 Jun 2015 04:34:56 +0200 Subject: Add minimap feature --- src/mapblock_mesh.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mapblock_mesh.h') diff --git a/src/mapblock_mesh.h b/src/mapblock_mesh.h index 72c90c3e5..283006331 100644 --- a/src/mapblock_mesh.h +++ b/src/mapblock_mesh.h @@ -34,6 +34,7 @@ class IShaderSource; class MapBlock; +struct MinimapMapblock; struct MeshMakeData { @@ -108,6 +109,11 @@ public: return m_mesh; } + MinimapMapblock* getMinimapMapblock() + { + return m_minimap_mapblock; + } + bool isAnimationForced() const { return m_animation_force_timer == 0; @@ -123,6 +129,7 @@ public: private: scene::SMesh *m_mesh; + MinimapMapblock *m_minimap_mapblock; IGameDef *m_gamedef; ITextureSource *m_tsrc; IShaderSource *m_shdrsrc; -- cgit v1.2.3