Files
2024-07-17 17:07:46 +08:00

31 lines
657 B
JavaScript

import * as IconComponents from '@element-plus/icons-vue'
const weaponTypeNames = new Set([
'音擎', 'W-Engines', '音擎'
])
const bangbooTypeNames = new Set([
'邦布', 'Bangboo', '邦布'
])
const characterTypeNames = new Set([
'代理人', 'Agents', '代理人'
])
const isCharacter = (name) => characterTypeNames.has(name)
const isWeapon = (name) => weaponTypeNames.has(name)
const isBangboo = (name) => bangbooTypeNames.has(name)
const IconInstaller = (app) => {
Object.values(IconComponents).forEach(component => {
app.component(component.name, component)
})
}
export {
isWeapon,
isCharacter,
isBangboo,
IconInstaller,
}