@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
19 lines (12 loc) • 412 B
JavaScript
import { GridCellAction } from "../../../placement/action/GridCellAction.js";
export class GridCellActionLogToConsole extends GridCellAction {
message = "";
static from(message) {
const r = new GridCellActionLogToConsole();
r.message = message;
return r;
}
execute(data, x, y, rotation) {
console.log(x, y, rotation, this.message);
}
}