INNER CODE UNIT · JavaScript
onPublish
m969/AOGame · AOClient/UIProject/plugins/gen_code/main.js:5
function onPublish(handler) {
if (!handler.genCode)
return;
handler.genCode = false; //prevent default output
console.log('Handling gen code in plugin');
GenCode_CSharp_1.genCode(handler); //do it myself
}
exports.onPublish = onPublish;
function onDestroy() {
//do cleanup here
}
exports.onDestroy = onDestroy;