mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
optimized event handler
This commit is contained in:
parent
b44039780c
commit
db5299004b
@ -1,4 +1,6 @@
|
||||
import logging
|
||||
import time
|
||||
|
||||
from fishy.engine import SemiFisherEngine
|
||||
from fishy.engine.fullautofisher.engine import FullAuto
|
||||
|
||||
@ -16,6 +18,7 @@ class EngineEventHandler:
|
||||
while len(self.event) > 0:
|
||||
event = self.event.pop(0)
|
||||
event()
|
||||
time.sleep(0.1)
|
||||
|
||||
def toggle_semifisher(self):
|
||||
self.event.append(self.semi_fisher_engine.toggle_start)
|
||||
|
Loading…
Reference in New Issue
Block a user