INNER CODE UNIT · TypeScript
onPublish
m969/AOGame · AOClient/UIProject/plugins/gen_code/main.ts:6
function onPublish(handler: FairyEditor.PublishHandler) {
if (!handler.genCode) return;
handler.genCode = false; //prevent default output
console.log('Handling gen code in plugin');
genCode(handler); //do it myself
}
function onDestroy() {
//do cleanup here
}
export { onPublish, onDestroy };