refactor: 客户端加载

This commit is contained in:
AncTe committed 2026-03-20 16:08:43 +08:00
1 parent fdeee99d40
commit 4fc6db3e79
55 files changed
+1699 -1234

No files matched your search

+5 -5
View File
@@ -590,11 +590,11 @@ async function doDeclaration(type: string, data: string) {
'src/types/source/data.d.ts',
`
${floorId}
${d.images.length > 0 ? imgs : 'type ImageIds = never\n'}
${d.animates.length > 0 ? anis : 'type AnimationIds = never\n'}
${d.sounds.length > 0 ? sounds : 'type SoundIds = never\n'}
${d.bgms.length > 0 ? bgms : 'type BgmIds = never\n'}
${d.fonts.length > 0 ? fonts : 'type FontIds = never\n'}
${d.images.length > 0 ? imgs : 'type ImageIds = string;\n'}
${d.animates.length > 0 ? anis : 'type AnimationIds = string;\n'}
${d.sounds.length > 0 ? sounds : 'type SoundIds = string;\n'}
${d.bgms.length > 0 ? bgms : 'type BgmIds = string;\n'}
${d.fonts.length > 0 ? fonts : 'type FontIds = string;\n'}
${names}
`,
'utf-8'