mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
Introduced Content, ContentIndices, no more integer ids hardcoded, common refactor
This commit is contained in:
parent
f2f9343737
commit
3b03464d27
35 changed files with 472 additions and 279 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <queue>
|
||||
|
||||
class Chunks;
|
||||
class ContentIndices;
|
||||
|
||||
struct lightentry {
|
||||
int x;
|
||||
|
|
@ -15,10 +16,11 @@ struct lightentry {
|
|||
class LightSolver {
|
||||
std::queue<lightentry> addqueue;
|
||||
std::queue<lightentry> remqueue;
|
||||
const ContentIndices* const contentIds;
|
||||
Chunks* chunks;
|
||||
int channel;
|
||||
public:
|
||||
LightSolver(Chunks* chunks, int channel);
|
||||
LightSolver(const ContentIndices* contentIds, Chunks* chunks, int channel);
|
||||
|
||||
void add(int x, int y, int z);
|
||||
void add(int x, int y, int z, int emission);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue