From b64aa31b4dc0c5e050c4978bae7bd43a040a368b Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 21 Oct 2017 19:56:48 -0400 Subject: lua scriptable world gen --- include/systems/light.hpp | 3 +++ include/world.hpp | 1 + 2 files changed, 4 insertions(+) (limited to 'include') diff --git a/include/systems/light.hpp b/include/systems/light.hpp index 71c541a..ba91113 100644 --- a/include/systems/light.hpp +++ b/include/systems/light.hpp @@ -29,6 +29,9 @@ public: static int addLight(vec2 pos, float radius, Color color = Color(1, 1, 1)); static void updateLight(int index, vec2 pos, float radius = -1); static void removeLight(int index); + + static inline void clear(void) + { lights.clear(); } }; #endif // SYSTEM_LIGHT_HPP_ diff --git a/include/world.hpp b/include/world.hpp index 059efa3..991990e 100644 --- a/include/world.hpp +++ b/include/world.hpp @@ -159,6 +159,7 @@ public: static void goWorldRight(Position& p, Solid &d); static void goWorldPortal(Position& p); + static void generate(LuaScript& script); static void generate(int width = 0); static bool save(void); -- cgit v1.2.3