From 48a5de8943bda62ba5caefe3b64c66a0d9024dff Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 13 Jan 2024 10:05:58 +0000 Subject: Add old street lamp model --- test/test-assetFactory.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test/test-assetFactory.cpp') diff --git a/test/test-assetFactory.cpp b/test/test-assetFactory.cpp index 9e278c4..8341fbf 100644 --- a/test/test-assetFactory.cpp +++ b/test/test-assetFactory.cpp @@ -133,14 +133,19 @@ BOOST_AUTO_TEST_CASE(lights, *boost::unit_test::timeout(5)) BOOST_REQUIRE(mf); auto rlight = mf->assets.at("r-light"); BOOST_REQUIRE(rlight); + auto oldlamp = mf->assets.at("old-lamp"); + BOOST_REQUIRE(oldlamp); auto rlight_f = std::dynamic_pointer_cast(rlight); BOOST_REQUIRE(rlight_f); + auto oldlamp_f = std::dynamic_pointer_cast(oldlamp); + BOOST_REQUIRE(oldlamp_f); - auto light1 = std::make_shared(rlight_f, Location {{0, 0, 0}, {0, 0, 0}}); + auto light1 = std::make_shared(oldlamp_f, Location {{0, 0, 0}, {0, 0, 0}}); auto light2 = std::make_shared(rlight_f, Location {{-4000, 0, 0}, {0, 2, 0}}); auto light3 = std::make_shared(rlight_f, Location {{-4000, -4000, 0}, {0, 1, 0}}); - auto light4 = std::make_shared(rlight_f, Location {{3000, 4600, 0}, {0, 3, 0}}); + auto light4 = std::make_shared(oldlamp_f, Location {{3000, 4600, 0}, {0, 2, 0}}); objects.objects.push_back(rlight_f); + objects.objects.push_back(oldlamp_f); // yes I'm hacking some floor to light up as though its a bush auto floorf = std::dynamic_pointer_cast(mf->assets.at("floor")); -- cgit v1.2.3