1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 06:18:21 +08:00

Add: Task storage support

This commit is contained in:
18870
2022-11-30 21:46:12 +08:00
parent 1b83c628e0
commit 43e05c4495
15 changed files with 714 additions and 31 deletions

View File

@@ -88,6 +88,14 @@ class ConfigGenerator:
arg.update(value)
deep_set(data, keys=path, value=arg)
# Define storage group
arg = {
'type': 'storage',
'value': {},
'valuetype': 'ignore',
'display': 'disabled',
}
deep_set(data, keys=['Storage', 'Storage'], value=arg)
return data
@cached_property
@@ -139,6 +147,8 @@ class ConfigGenerator:
# Construct args
data = {}
for task, groups in self.task.items():
# Add storage to all task
groups.append('Storage')
for group in groups:
if group not in self.argument:
print(f'`{task}.{group}` is not related to any argument group')