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/map.h | |
parent | 0c91a0d59db70f3f502004d4c37fecd4e10c9401 (diff) | |
download | minetest-0190f9b077dcb2b8cb41c622dd91ffc1e04dacac.tar.gz minetest-0190f9b077dcb2b8cb41c622dd91ffc1e04dacac.tar.bz2 minetest-0190f9b077dcb2b8cb41c622dd91ffc1e04dacac.zip |
Experimental-ish rollback functionality
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -44,6 +44,7 @@ class ServerMapSector; class MapBlock; class NodeMetadata; class IGameDef; +class IRollbackReportSink; namespace mapgen{ struct BlockMakeData; @@ -169,7 +170,7 @@ public: void removeEventReceiver(MapEventReceiver *event_receiver); // event shall be deleted by caller after the call. void dispatchEvent(MapEditEvent *event); - + // On failure returns NULL MapSector * getSectorNoGenerateNoExNoLock(v2s16 p2d); // Same as the above (there exists no lock anymore) @@ -336,7 +337,7 @@ protected: IGameDef *m_gamedef; core::map<MapEventReceiver*, bool> m_event_receivers; - + core::map<v2s16, MapSector*> m_sectors; // Be sure to set this to NULL when the cached sector is deleted |