From 1b9aff9676cd7f1022055fa77e297bc23f153188 Mon Sep 17 00:00:00 2001 From: break27 Date: Fri, 5 Jun 2026 09:43:30 +0800 Subject: [PATCH] update: 'react' method in ActionFlow --- src/common/actionflow.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/common/actionflow.py b/src/common/actionflow.py index 039d00e..464c7be 100644 --- a/src/common/actionflow.py +++ b/src/common/actionflow.py @@ -30,13 +30,11 @@ class ActionFlow: if self.on[index] is None: raise NotAllowed(name) self.on[index] = bool(self.actions[index].prepare()) - def stage(self, *actions: type[Action]): - for Actor in actions: - self.allow(Actor) - self.queue(Actor) - self.react() + def react(self, *stage: type[Action]): + for Props in stage: + self.allow(Props) + self.queue(Props) - def react(self): while any(self.on): for index in self.indices.values(): if (self.on[index]):