mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 05:08:19 +08:00
Add: Semi-auto, Opsi semi-auto and benchmark
- Add: dependency prettytable - Fix: Running an Alas module directly - Del: Remove all assets in daemon module, because it's redundant
This commit is contained in:
@@ -14,14 +14,15 @@ class ModuleBase:
|
||||
device: Device
|
||||
stat: AzurStats
|
||||
|
||||
def __init__(self, config, device=None):
|
||||
def __init__(self, config, device=None, task=None):
|
||||
"""
|
||||
Args:
|
||||
config (AzurLaneConfig, str):
|
||||
device (Device):
|
||||
config (AzurLaneConfig, str): Name of the user config under ./config
|
||||
device (Device): To reuse a device. If None, create a new Device object.
|
||||
task (str): Bind a task only for dev purpose. Usually to be None for auto task scheduling.
|
||||
"""
|
||||
if isinstance(config, str):
|
||||
self.config = AzurLaneConfig(config)
|
||||
self.config = AzurLaneConfig(config, task=task)
|
||||
else:
|
||||
self.config = config
|
||||
if device is not None:
|
||||
|
||||
Reference in New Issue
Block a user