mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
move Lighting instance to ChunksController
This commit is contained in:
parent
c5049d0e24
commit
b7664b4188
14 changed files with 60 additions and 61 deletions
|
|
@ -14,10 +14,10 @@
|
|||
#include "world/Level.hpp"
|
||||
#include "world/World.hpp"
|
||||
|
||||
BlocksController::BlocksController(const Level& level, uint padding)
|
||||
BlocksController::BlocksController(const Level& level, Lighting& lighting, uint padding)
|
||||
: level(level),
|
||||
chunks(*level.chunks),
|
||||
lighting(*level.lighting),
|
||||
lighting(lighting),
|
||||
randTickClock(20, 3),
|
||||
blocksTickClock(20, 1),
|
||||
worldTickClock(20, 1),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue