mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
on_blocks_tick event
This commit is contained in:
parent
0c2b58c8ac
commit
5188ee7bd8
5 changed files with 36 additions and 2 deletions
|
|
@ -23,6 +23,7 @@ public:
|
|||
|
||||
int getParts() const;
|
||||
int getPart() const;
|
||||
int getTickRate() const;
|
||||
};
|
||||
|
||||
class BlocksController {
|
||||
|
|
@ -30,6 +31,7 @@ class BlocksController {
|
|||
Chunks* chunks;
|
||||
Lighting* lighting;
|
||||
Clock randTickClock;
|
||||
Clock blocksTickClock;
|
||||
uint padding;
|
||||
public:
|
||||
BlocksController(Level* level, uint padding);
|
||||
|
|
@ -41,6 +43,7 @@ public:
|
|||
|
||||
void update(float delta);
|
||||
void randomTick(int tickid, int parts);
|
||||
void onBlocksTick(int tickid, int parts);
|
||||
};
|
||||
|
||||
#endif // LOGIC_BLOCKS_CONTROLLER_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue