diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-17 20:48:34 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-17 20:48:34 +0100 |
commit | a3e418c1a48a057d82fc3faf927ebf1cd3da7227 (patch) | |
tree | 35804182134024453a4cb43f1ddf5415a6b99cc0 /src/test | |
parent | e055b5c972d248820e844a6353d63a26ccc1e1f3 (diff) |
feedback
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/InputTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/InputTest.cpp b/src/test/InputTest.cpp index 097667a..ce8ea44 100644 --- a/src/test/InputTest.cpp +++ b/src/test/InputTest.cpp @@ -215,7 +215,7 @@ TEST_F(InputTest, testButtonClick) { bool button_clicked = false; event_manager.subscribe<ButtonPressEvent>([&](const ButtonPressEvent & event) { button_clicked = true; - EXPECT_EQ(event.meta_data.game_object_id, button_obj.id); + EXPECT_EQ(event.metadata.game_object_id, button_obj.id); return false; }); auto & button = button_obj.add_component<Button>(vec2{100, 100}, vec2{0, 0}); @@ -238,12 +238,12 @@ TEST_F(InputTest, testButtonHover) { bool button_hover = false; event_manager.subscribe<ButtonEnterEvent>([&](const ButtonEnterEvent & event) { button_hover = true; - EXPECT_EQ(event.meta_data.game_object_id, button_obj.id); + EXPECT_EQ(event.metadata.game_object_id, button_obj.id); return false; }); event_manager.subscribe<ButtonExitEvent>([&](const ButtonExitEvent & event) { button_hover = false; - EXPECT_EQ(event.meta_data.game_object_id, button_obj.id); + EXPECT_EQ(event.metadata.game_object_id, button_obj.id); return false; }); auto & button = button_obj.add_component<Button>(vec2{100, 100}, vec2{0, 0}); |