@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
22 lines (12 loc) • 488 B
JavaScript
import { DelayBehavior } from "../../../../intelligence/behavior/util/DelayBehavior.js";
import { AbstractActionDescription } from "./AbstractActionDescription.js";
export class DelayActionDescription extends AbstractActionDescription {
time = 0;
execute(actor, dataset, context, system) {
return DelayBehavior.from(this.time);
}
fromJSON({ time }) {
this.time = time;
}
}
DelayActionDescription.prototype.type = "Delay";