def __init__(self, real_merger_config=True): self.state = CasterState() self.clip = {} self.history = RecognitionHistoryForWSR(20) if not settings.WSR: self.history = RecognitionHistory(20) self.history.register() self.state.set_stack_history(self.history) self.preserved = None self.timer = TimerForWSR(0.025) if not settings.WSR: from dragonfly.timer import _Timer self.timer = _Timer(0.025) self.comm = Communicator() self.dep = DependencyMan() self.macros_grammar = Grammar("recorded_macros") self.merger = CCRMerger(real_merger_config)
class Nexus: def __init__(self, real_merger_config=True): self.state = CasterState() self.clip = {} self.temp = "" self.history = RecognitionHistory(20) if real_merger_config: self.history.register() self.state.set_stack_history(self.history) self.preserved = None self.comm = Communicator() self.dep = DependencyMan() self.macros_grammar = Grammar("recorded_macros") self.merger = CCRMerger(real_merger_config) self.user_content_manager = None def process_user_content(self): self.user_content_manager = UserContentManager() self.merger.add_user_content(self.user_content_manager)
def __init__(self, real_merger_config=True): self.clip = {} self.history = RecognitionHistory(20) self.history.register() self.preserved = None from dragonfly.timer import _Timer self.timer = _Timer(0.025) self.macros_grammar = Grammar("recorded_macros") self.merger = CCRMerger(real_merger_config)
def __init__(self, real_merger_config=True): self.state = CasterState() self.clip = {} self.temp = "" self.history = RecognitionHistory(20) if real_merger_config: self.history.register() self.state.set_stack_history(self.history) self.preserved = None self.comm = Communicator() self.macros_grammar = Grammar("recorded_macros") self.merger = CCRMerger(real_merger_config) self.user_content_manager = None
def __init__(self, length=10, record_failures=False): RecognitionHistory.__init__(self, length) self._record_failures = record_failures