diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-04 21:42:43 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-05 03:24:48 +0200 |
commit | 3d59faf3486ae6eced6cc785731781b54cff9448 (patch) | |
tree | 9b0d7465134bf81891a62e8e38bcf417b2ae2067 /test/save.cpp | |
parent | fbc36568af5d9142a45bee57323b8a5457a114f8 (diff) |
test/save: test light_proto harder
Diffstat (limited to 'test/save.cpp')
-rw-r--r-- | test/save.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<light>(w.make_id(), {ch, {4, 1}}, L); const auto add_player = [&](StringView name, Vector2i coord, bool playable) { critter_proto cproto; |