content-pack id validation + refactor
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#ifndef LIGHTING_LIGHTING_H_
|
||||
#define LIGHTING_LIGHTING_H_
|
||||
|
||||
#include "../typedefs.h"
|
||||
|
||||
class Content;
|
||||
class ContentIndices;
|
||||
class Chunk;
|
||||
@@ -10,10 +12,10 @@ class LightSolver;
|
||||
class Lighting {
|
||||
const Content* const content;
|
||||
Chunks* chunks;
|
||||
LightSolver* solverR;
|
||||
LightSolver* solverG;
|
||||
LightSolver* solverB;
|
||||
LightSolver* solverS;
|
||||
std::unique_ptr<LightSolver> solverR;
|
||||
std::unique_ptr<LightSolver> solverG;
|
||||
std::unique_ptr<LightSolver> solverB;
|
||||
std::unique_ptr<LightSolver> solverS;
|
||||
public:
|
||||
Lighting(const Content* content, Chunks* chunks);
|
||||
~Lighting();
|
||||
@@ -21,7 +23,7 @@ public:
|
||||
void clear();
|
||||
void buildSkyLight(int cx, int cz);
|
||||
void onChunkLoaded(int cx, int cz, bool expand);
|
||||
void onBlockSet(int x, int y, int z, int id);
|
||||
void onBlockSet(int x, int y, int z, blockid_t id);
|
||||
|
||||
static void prebuildSkyLight(Chunk* chunk, const ContentIndices* indices);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user