From e0ef04351b20a5823618c07f0d84e9b4b2d9b33a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 4 May 2024 21:42:43 +0200 Subject: [PATCH] test/save: test light_proto harder --- test/save.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/save.cpp b/test/save.cpp index b75222b2..0ec9c417 100644 --- a/test/save.cpp +++ b/test/save.cpp @@ -37,6 +37,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;