20 lines
438 B
C++
20 lines
438 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
#include "GameObject.h"
|
|
#include "Level.h"
|
|
|
|
namespace LightGame
|
|
{
|
|
class LightEffectSystem
|
|
{
|
|
public:
|
|
void update(std::vector<GameObject>& objects, uint16_t light_level);
|
|
void update_tilemap(Level& level, uint16_t light_level);
|
|
|
|
static bool should_render(const GameObject& obj, uint16_t light_level);
|
|
static bool is_door_open(const GameObject& obj, uint16_t light_level);
|
|
};
|
|
}
|