Add files via upload

This commit is contained in:
MihailRis 2021-04-25 16:08:48 +03:00 • committed by GitHub
commit e1cdcf01e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 2866 additions and 0 deletions

View file

@ -0,0 +1,29 @@
#ifndef LIGHTING_LIGHTSOLVER_H_
#define LIGHTING_LIGHTSOLVER_H_
#include <queue>
class Chunks;
struct lightentry {
int x;
int y;
int z;
unsigned char light;
};
class LightSolver {
std::queue<lightentry> addqueue;
std::queue<lightentry> remqueue;
Chunks* chunks;
int channel;
public:
LightSolver(Chunks* chunks, int channel);
void add(int x, int y, int z);
void add(int x, int y, int z, int emission);
void remove(int x, int y, int z);
void solve();
};
#endif /* LIGHTING_LIGHTSOLVER_H_ */