test(upserver): 归档存档迁移与玩法闭环回归工具

This commit is contained in:
Liubing\LB
2026-09-28 18:16:14 +08:00
parent c4ae02def9
commit a6f5e107f8
232 changed files with 12903 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
from pathlib import Path
s=Path('Client/Assets/Scripts/UI/Home/HomePanel.cs').read_text(encoding='utf-8-sig')
start=s.index('async void LastShowPanel()'); a=s.index('{',start); n=1; end=a+1
while n:
n+=(s[end]=='{')-(s[end]=='}'); end+=1
method=s[start:end].replace('async void LastShowPanel()', 'public async Task LastShowPanel()')
Path('CodexOutput/upserver/HomeExitTests/Generated.cs').write_text('using System;using System.Threading.Tasks;public partial class Subject {\n'+method+'\n}',encoding='utf-8')