2023-10-20 08:59:06 +00:00
|
|
|
import fs from 'node:fs'
|
|
|
|
|
2022-08-22 20:53:31 +00:00
|
|
|
import Base from './Base.js'
|
2022-08-18 10:13:42 +00:00
|
|
|
import Character from './Character.js'
|
|
|
|
import Artifact from './Artifact.js'
|
2022-09-24 12:19:59 +00:00
|
|
|
import ArtifactSet from './ArtifactSet.js'
|
2022-08-18 10:13:42 +00:00
|
|
|
import Abyss from './Abyss.js'
|
2023-02-08 20:55:54 +00:00
|
|
|
import Player from './Player.js'
|
2023-10-18 17:01:11 +00:00
|
|
|
import Avatar from './Avatar.js'
|
2022-08-18 10:13:42 +00:00
|
|
|
import ProfileDmg from './ProfileDmg.js'
|
2022-11-07 20:08:24 +00:00
|
|
|
import ProfileRank from './ProfileRank.js'
|
2022-09-04 21:03:23 +00:00
|
|
|
import Material from './Material.js'
|
|
|
|
import Weapon from './Weapon.js'
|
2022-09-20 11:50:27 +00:00
|
|
|
import User from './User.js'
|
|
|
|
import MysApi from './MysApi.js'
|
2022-08-18 10:13:42 +00:00
|
|
|
|
2023-10-20 08:59:06 +00:00
|
|
|
for (let game of ['meta', 'meta-sr']) {
|
|
|
|
for (let type of ['artifact', 'character', 'material', 'weapon']) {
|
|
|
|
let file = `./plugins/miao-plugin/resources/${game}/${type}/index.js`
|
|
|
|
if (fs.existsSync(file)) {
|
|
|
|
try {
|
|
|
|
await import(`file://${process.cwd()}/${file}`)
|
|
|
|
} catch (e) {
|
|
|
|
console.log(e)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-04 21:03:23 +00:00
|
|
|
export {
|
|
|
|
Base,
|
|
|
|
Abyss,
|
|
|
|
Character,
|
|
|
|
Artifact,
|
2022-09-24 12:19:59 +00:00
|
|
|
ArtifactSet,
|
2023-10-18 17:01:11 +00:00
|
|
|
Avatar,
|
2022-09-04 21:03:23 +00:00
|
|
|
ProfileDmg,
|
2022-11-07 20:08:24 +00:00
|
|
|
ProfileRank,
|
2022-09-04 21:03:23 +00:00
|
|
|
Material,
|
2022-09-20 11:50:27 +00:00
|
|
|
Weapon,
|
|
|
|
User,
|
2023-02-08 20:55:54 +00:00
|
|
|
MysApi,
|
|
|
|
Player
|
2022-09-04 21:03:23 +00:00
|
|
|
}
|
2023-10-20 08:59:06 +00:00
|
|
|
|
|
|
|
|