aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-13 12:19:58 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-13 12:19:58 +0100
commitab0c50d5b719863ab9e9821e6720bba450e174ce (patch)
tree10a8b6391ae830b4d540673f177946eb7d98c037 /src/example
parent80e4e1eb78898879eed11648808ca6b65eecb304 (diff)
added activate/deactive to listeners and doxygen comments
Diffstat (limited to 'src/example')
-rw-r--r--src/example/events.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/example/events.cpp b/src/example/events.cpp
index 1f757e1..1a29d80 100644
--- a/src/example/events.cpp
+++ b/src/example/events.cpp
@@ -73,14 +73,11 @@ int main() {
EventManager::get_instance().queue_event<KeyPressEvent>(std::move(key_press), 0);
EventManager::get_instance().queue_event<MouseClickEvent>(std::move(click_event), 0);
{
- // Instantiate TestKeyListener, which subscribes to key events
TestKeyListener testListener;
- // Create game object with Transform and BehaviorScript components
auto obj = GameObject(0, "name", "tag", Vector2{1.2, 3.4}, 0, 1);
obj.add_component<BehaviorScript>().set_script<MyScript>();
- // Get ScriptSystem singleton instance (this would normally be done from the game loop)
ScriptSystem sys;
sys.update();