diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-02-08 22:21:48 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-02-08 22:21:48 +0100 |
commit | 3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0 (patch) | |
tree | 263dd59173d388fa8e7c83d51c928004a230737a /src/Blocks/WorldInterface.h | |
parent | Protocol 1.7: Fixed Coverity issues. (diff) | |
download | cuberite-3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0.tar cuberite-3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0.tar.gz cuberite-3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0.tar.bz2 cuberite-3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0.tar.lz cuberite-3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0.tar.xz cuberite-3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0.tar.zst cuberite-3869f76cc23c6ed1df1ad4f6de9c2561f95e08f0.zip |
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; + }; |