示例#1
0
 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)
示例#2
0
文件: nexus.py 项目: swipswaps/Caster
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)
示例#3
0
文件: nexus.py 项目: seekM/caster
    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)
示例#4
0
    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)
示例#5
0
文件: nexus.py 项目: OwenMyers/caster
    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
示例#6
0
 def __init__(self, length=10, record_failures=False):
     RecognitionHistory.__init__(self, length)
     self._record_failures = record_failures