2022-11-11 16:52:57 -06:00
|
|
|
export class Action {
|
2023-02-01 21:43:47 -06:00
|
|
|
constructor(name) {
|
2022-11-11 16:52:57 -06:00
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
2023-01-05 14:21:45 -06:00
|
|
|
async log(src, dest, msg, obj, symbol = '->>') {
|
2023-02-01 21:43:47 -06:00
|
|
|
await window?.scene?.sequence?.log(
|
|
|
|
`${src.name} ${symbol} ${dest.name} : ${this.name} ${msg ?? ''} ${
|
|
|
|
JSON.stringify(obj) ?? ''
|
|
|
|
}`,
|
|
|
|
);
|
2022-11-11 16:52:57 -06:00
|
|
|
}
|
|
|
|
}
|