X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fgamedef.h;h=6da288bad8879992475c30592ec6045f8a6440b0;hb=55c646c5c2b40931d24be8541b3056ab3322a70f;hp=1d46b028e359f8103f75c66b2692ae8c6d9e4e71;hpb=22e186b4aa88b585e71500c4e9a03bf69b0b6191;p=oweals%2Fminetest.git diff --git a/src/gamedef.h b/src/gamedef.h index 1d46b028e..6da288bad 100644 --- a/src/gamedef.h +++ b/src/gamedef.h @@ -31,6 +31,9 @@ class ISoundManager; class IShaderSource; class MtEventManager; class IRollbackReportSink; +namespace irr { namespace scene { + class IAnimatedMesh; +}} /* An interface for fetching game-global definitions like tool and @@ -58,6 +61,8 @@ public: // Only usable on the client virtual ISoundManager* getSoundManager()=0; virtual MtEventManager* getEventManager()=0; + virtual scene::IAnimatedMesh* getMesh(const std::string &filename) + { return NULL; } // Only usable on the server, and NOT thread-safe. It is usable from the // environment thread.