diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-07-26 22:06:45 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-07-27 02:27:18 +0300 |
commit | 0190f9b077dcb2b8cb41c622dd91ffc1e04dacac (patch) | |
tree | 0baa7a5d2094afdbb193e1850836c209c9395c70 /src/gamedef.h | |
parent | 0c91a0d59db70f3f502004d4c37fecd4e10c9401 (diff) | |
download | minetest-0190f9b077dcb2b8cb41c622dd91ffc1e04dacac.tar.gz minetest-0190f9b077dcb2b8cb41c622dd91ffc1e04dacac.tar.bz2 minetest-0190f9b077dcb2b8cb41c622dd91ffc1e04dacac.zip |
Experimental-ish rollback functionality
Diffstat (limited to 'src/gamedef.h')
-rw-r--r-- | src/gamedef.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gamedef.h b/src/gamedef.h index 88c15be78..87918d726 100644 --- a/src/gamedef.h +++ b/src/gamedef.h @@ -29,6 +29,7 @@ class ICraftDefManager; class ITextureSource; class ISoundManager; class MtEventManager; +class IRollbackReportSink; /* An interface for fetching game-global definitions like tool and @@ -54,6 +55,10 @@ public: // Only usable on the client virtual ISoundManager* getSoundManager()=0; virtual MtEventManager* getEventManager()=0; + + // Only usable on the server, and NOT thread-safe. It is usable from the + // environment thread. + virtual IRollbackReportSink* getRollbackReportSink(){return NULL;} // Used on the client virtual bool checkLocalPrivilege(const std::string &priv) @@ -66,6 +71,7 @@ public: ITextureSource* tsrc(){return getTextureSource();} ISoundManager* sound(){return getSoundManager();} MtEventManager* event(){return getEventManager();} + IRollbackReportSink* rollback(){return getRollbackReportSink();} }; #endif |