diff options
Diffstat (limited to 'src/Blocks/WorldInterface.h')
-rw-r--r-- | src/Blocks/WorldInterface.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Blocks/WorldInterface.h b/src/Blocks/WorldInterface.h index 106c314e7..dcb7eee00 100644 --- a/src/Blocks/WorldInterface.h +++ b/src/Blocks/WorldInterface.h @@ -11,6 +11,7 @@ typedef cItemCallback<cBlockEntity> cBlockEntityCallback; class cMonster; class cPlayer; +class cTask; class cWorldInterface @@ -59,4 +60,8 @@ public: /** Wakes up the simulators for the specified block */ virtual void WakeUpSimulators(int a_BlockX, int a_BlockY, int a_BlockZ) = 0; + /** Queues a task onto the tick thread, with the specified delay. + The task object will be deleted once the task is finished */ + virtual void ScheduleTask(int a_DelayTicks, cTask * a_Task) = 0; + }; |