summaryrefslogtreecommitdiffstats
path: root/source/World.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-16 09:25:23 +0200
committermadmaxoft <github@xoft.cz>2013-09-16 09:25:23 +0200
commit40d295da26c9628478d89369f65e53568feb2a5b (patch)
tree8c5f0efb108f7a57dacf6ffe2f48470579258e5d /source/World.h
parentAPIDump: Next batch of cWorld documentation. (diff)
downloadcuberite-40d295da26c9628478d89369f65e53568feb2a5b.tar
cuberite-40d295da26c9628478d89369f65e53568feb2a5b.tar.gz
cuberite-40d295da26c9628478d89369f65e53568feb2a5b.tar.bz2
cuberite-40d295da26c9628478d89369f65e53568feb2a5b.tar.lz
cuberite-40d295da26c9628478d89369f65e53568feb2a5b.tar.xz
cuberite-40d295da26c9628478d89369f65e53568feb2a5b.tar.zst
cuberite-40d295da26c9628478d89369f65e53568feb2a5b.zip
Diffstat (limited to 'source/World.h')
-rw-r--r--source/World.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/World.h b/source/World.h
index dac30e6aa..5381dc614 100644
--- a/source/World.h
+++ b/source/World.h
@@ -530,17 +530,19 @@ public:
/// Stops threads that belong to this world (part of deinit)
void Stop(void);
- void TickQueuedBlocks(float a_Dt);
+ /// Processes the blocks queued for ticking with a delay (m_BlockTickQueue[])
+ void TickQueuedBlocks(void);
struct BlockTickQueueItem
{
int X;
int Y;
int Z;
- float ToWait;
+ int TicksToWait;
};
- void QueueBlockForTick(int a_BlockX, int a_BlockY, int a_BlockZ, float a_TimeToWait); // tolua_export
+ /// Queues the block to be ticked after the specified number of game ticks
+ void QueueBlockForTick(int a_BlockX, int a_BlockY, int a_BlockZ, int a_TicksToWait); // tolua_export
// tolua_begin
/// Casts a thunderbolt at the specified coords
@@ -633,7 +635,7 @@ private:
std::vector<int> m_RSList;
std::vector<BlockTickQueueItem *> m_BlockTickQueue;
- std::vector<BlockTickQueueItem *> m_BlockTickQueueCopy; //Second is for safely removing the objects from the queue
+ std::vector<BlockTickQueueItem *> m_BlockTickQueueCopy; // Second is for safely removing the objects from the queue
cSimulatorManager * m_SimulatorManager;
cSandSimulator * m_SandSimulator;