From 5ecfdd0d7e0acb0451951fb73b9320370a63cf87 Mon Sep 17 00:00:00 2001 From: chatlanin Date: Mon, 22 May 2023 09:07:37 +0300 Subject: [PATCH] add exequte_queue --- src/try_engine/event/app_event/event.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/try_engine/event/app_event/event.hpp b/src/try_engine/event/app_event/event.hpp index 4857903..3b8799f 100644 --- a/src/try_engine/event/app_event/event.hpp +++ b/src/try_engine/event/app_event/event.hpp @@ -33,6 +33,15 @@ namespace try_engine::app_event // l_stack[i]->on_event(type, value); // }); } + + // когда нужно выполнение именно по очередности + void execute_queue(std::any type, std::any value) + { + for (const auto layer : l_stack) + { + layer->on_event(type, value); + } + } void print_size();