diff options
author | darkrose <lisa@ltmnet.com> | 2012-07-17 23:00:04 +1000 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-07-23 08:18:37 +0300 |
commit | cd6becd442a50a6e2f7129108e1c2c495f885764 (patch) | |
tree | 9f013b53ff4ec7d4df6ee26769e397f3defee268 /src/mapblock.h | |
parent | 829f262c7954c4eb82eff3931d065fce8bc7809e (diff) | |
download | minetest-cd6becd442a50a6e2f7129108e1c2c495f885764.tar.gz minetest-cd6becd442a50a6e2f7129108e1c2c495f885764.tar.bz2 minetest-cd6becd442a50a6e2f7129108e1c2c495f885764.zip |
Implement node timers
Diffstat (limited to 'src/mapblock.h')
-rw-r--r-- | src/mapblock.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mapblock.h b/src/mapblock.h index 08fd2c754..adb3324f6 100644 --- a/src/mapblock.h +++ b/src/mapblock.h @@ -430,6 +430,26 @@ public: { return m_usage_timer; } + + /* + Node Timers + */ + // Get timer + NodeTimer getNodeTimer(v3s16 p){ + return m_node_timers.get(p); + } + // Deletes timer + void removeNodeTimer(v3s16 p){ + m_node_timers.remove(p); + } + // Deletes old timer and sets a new one + void setNodeTimer(v3s16 p, NodeTimer t){ + m_node_timers.set(p,t); + } + // Deletes all timers + void clearNodeTimers(){ + m_node_timers.clear(); + } /* Serialization |