dao-governance-framework/forum-network/public/classes/action.js

16 lines
338 B
JavaScript

export class Action {
constructor(name, scene) {
this.name = name;
this.scene = scene;
}
log(src, dest, msg, obj, symbol = '->>') {
const logObj = false;
this.scene.log(
`${src.name} ${symbol} ${dest.name} : ${this.name} ${msg ?? ''} ${
logObj && obj ? JSON.stringify(obj) : ''
}`,
);
}
}