diff options
Diffstat (limited to 'src/light.hpp')
-rw-r--r-- | src/light.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/light.hpp b/src/light.hpp index 2202651a..1332efc3 100644 --- a/src/light.hpp +++ b/src/light.hpp @@ -18,6 +18,7 @@ struct light_proto : entity_proto float max_distance = 0; Color3ub color{255, 255, 255}; light_falloff falloff : 3 = light_falloff::linear; + uint8_t enabled : 1 = true; }; struct light final : entity @@ -36,6 +37,8 @@ struct light final : entity bool is_dynamic() const override; bool is_virtual() const override; + explicit operator light_proto() const; + friend struct world; }; |