summaryrefslogtreecommitdiffstats
path: root/src/MapManager.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 09:45:06 +0200
committerAlexander Harkness <me@bearbin.net>2017-09-02 09:50:23 +0200
commit49c443896dcac8c4eaf08c4024e8bd2366ad899a (patch)
treeb1ec46cab2b4e5731860c7136f1bbfca6fe9d458 /src/MapManager.h
parentSetSwimState now takes into account head height (diff)
downloadcuberite-49c443896dcac8c4eaf08c4024e8bd2366ad899a.tar
cuberite-49c443896dcac8c4eaf08c4024e8bd2366ad899a.tar.gz
cuberite-49c443896dcac8c4eaf08c4024e8bd2366ad899a.tar.bz2
cuberite-49c443896dcac8c4eaf08c4024e8bd2366ad899a.tar.lz
cuberite-49c443896dcac8c4eaf08c4024e8bd2366ad899a.tar.xz
cuberite-49c443896dcac8c4eaf08c4024e8bd2366ad899a.tar.zst
cuberite-49c443896dcac8c4eaf08c4024e8bd2366ad899a.zip
Diffstat (limited to '')
-rw-r--r--src/MapManager.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/MapManager.h b/src/MapManager.h
index ef1e7588b..6730e515e 100644
--- a/src/MapManager.h
+++ b/src/MapManager.h
@@ -1,4 +1,4 @@
-
+
// MapManager.h
@@ -11,13 +11,12 @@
-#include <functional>
#include "Map.h"
-using cMapCallback = std::function<bool(cMap &)>;
+typedef cItemCallback<cMap> cMapCallback;
@@ -42,7 +41,7 @@ public:
/** Calls the callback for the map with the specified ID.
Returns true if the map was found and the callback called, false if map not found.
Callback return value is ignored. */
- bool DoWithMap(UInt32 a_ID, const cMapCallback & a_Callback); // Exported in ManualBindings.cpp
+ bool DoWithMap(UInt32 a_ID, cMapCallback & a_Callback); // Exported in ManualBindings.cpp
/** Ticks each registered map */
void TickMaps(void);