From 3d59faf3486ae6eced6cc785731781b54cff9448 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 4 May 2024 21:42:43 +0200 Subject: test/save: test light_proto harder --- test/save.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/save.cpp') diff --git a/test/save.cpp b/test/save.cpp index bc3ed954..a853bf82 100644 --- a/test/save.cpp +++ b/test/save.cpp @@ -36,6 +36,12 @@ chunk& test_app::make_test_chunk(world& w, chunk_coords_ ch) c[{K+1, K }].wall_west() = { metal2, 0 }; w.make_scenery(w.make_id(), {ch, {3, 4}}, scenery_proto(table)); w.make_scenery(w.make_id(), {ch, {K, K+1}}, scenery_proto(control_panel)); // todo! + auto L = light_proto{}; + L.color = {64, 128, 252, 201}; + L.max_distance = float{0.125}; + L.falloff = light_falloff::quadratic; + L.enabled = false; + w.make_object(w.make_id(), {ch, {4, 1}}, L); const auto add_player = [&](StringView name, Vector2i coord, bool playable) { critter_proto cproto; -- cgit v1.2.3