def __init__(self): Macros.__init__(self) self.info = sm.bot.log.info self.info('Запуск export_history', 'export_history') self.all_items = 0 self.count_items = 0 uthread.new(self.__action)
def __init__(self, endpoint): Macros.__init__(self) self._ep = endpoint self.in_fly = False if not self._ep: self.__deinit__() return sm.GetService('starmap').ClearWaypoints() sm.GetService('starmap').SetWaypoint(self._ep, True) uthread.new(self.__action)
def __init__(self, route): Macros.__init__(self) self.info = sm.bot.log.info self.last_region = None self.info('Запуск exporter`а', 'exporter') self.info('Маршрут: ' + str(route), 'exporter') if isinstance(route, list): self._route = route else: self._route = [route] uthread.new(self.__action)
def __deinit__(self): self.info('Остановка exporter`а', 'exporter') Macros.__deinit__(self) del sm.bot.exporter
def OnScriptPause(self, pause): Macros.OnScriptPause(self, pause) uthread.new(self.__action)
def __deinit__(self): self.info('Остановка export_history', 'export_history') Macros.__deinit__(self) del sm.bot.export_history
def __deinit__(self): Macros.__deinit__(self) del sm.bot.export_orders
def __init__(self): Macros.__init__(self) uthread.new(self.__action)
def OnScriptPause(self, _pause): Macros.OnScriptPause(self, _pause) if not self.is_pause: uthread.new(self.__action)
def __deinit__(self): Macros.__deinit__(self) sm.ScatterEvent('OnFlyToFinished') del bot.fly_to