Files
Max-Cocos-Demo/extensions/max-studio/source/main.ts
2025-10-28 21:55:41 +08:00

31 lines
773 B
TypeScript
Executable File

/* eslint-disable no-console */
/**
* @en Registration method for the main process of Extension
* @zh 为扩展的主进程的注册方法
*/
export const methods: { [key: string]: (...any: any) => any } = {
/**
* @en A method that can be triggered by message
* @zh 通过 message 触发的方法
*/
showLog() {
console.log('Max Framework - 集成热更新功能');
},
};
/**
* @en Method Triggered on Extension Startup
* @zh 扩展启动时触发的方法
*/
export function load() {
console.log('Max Framework 已加载,包含热更新功能');
}
/**
* @en Method triggered when uninstalling the extension
* @zh 卸载扩展时触发的方法
*/
export function unload() {
console.log('Max Framework 已卸载');
}