summaryrefslogtreecommitdiff
path: root/src/map/map.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/map.hpp')
-rw-r--r--src/map/map.hpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/map/map.hpp b/src/map/map.hpp
index 7233241..ae96eb3 100644
--- a/src/map/map.hpp
+++ b/src/map/map.hpp
@@ -487,11 +487,19 @@ extern char wisp_server_name[];
// 鯖全体情報
void map_setusers(int);
int map_getusers(void);
-// block削除関連
-int map_freeblock(void *bl);
-int map_freeblock_lock(void);
-int map_freeblock_unlock(void);
-// block関連
+
+class MapBlockLock
+{
+ MapBlockLock(const MapBlockLock&) = delete;
+ MapBlockLock& operator = (const MapBlockLock&) = delete;
+public:
+ MapBlockLock();
+ ~MapBlockLock();
+
+ static
+ void freeblock(struct block_list *);
+};
+
int map_addblock(struct block_list *);
int map_delblock(struct block_list *);
void map_foreachinarea(std::function<void(struct block_list *)>,