修改 BaseApi 初始化函數命名

This commit is contained in:
CrescentLeaf
2025-08-16 16:07:08 +08:00
parent 7b89eb7c93
commit 8909a8d5f6

View File

@@ -3,9 +3,9 @@ import UnknownFunction from '../types/UnknownFunction.ts'
export default abstract class BaseApi {
abstract getName(): string
constructor() {
this.init()
this.onInit()
}
abstract init(): void
abstract onInit(): void
registerEvent(name: string, func: UnknownFunction) {
}