Separate serve lib

This commit is contained in:
Sakura Knoll
2022-01-01 21:13:44 +09:00 Unverified
parent 0b406525fa
commit d7d94f2ba2
28 changed files with 265 additions and 309 deletions
+2 -26
View File
@@ -1,30 +1,6 @@
import { readdirSync, readJsonFileSync } from '../../../lib/data'
import { readdirSync, readJsonFileSync } from '../fs'
import { compareVersion } from '../../../lib/string'
export interface WeaponSkill {
name: string
description: string
}
export interface WeaponData {
id: string
name: string
atk: number
crt: number
category:
| 'pistol'
| 'cannon'
| 'katana'
| 'cross'
| 'greatsword'
| 'scythe'
| 'lance'
| 'gauntlet'
| 'bow'
rarity: number
skills: WeaponSkill[]
version?: string
}
import { WeaponData } from '../../../lib/honkai3rd/weapons'
const weaponsFileNameList = readdirSync('honkai3rd/weapons')
const weaponDataList = weaponsFileNameList