@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
19 lines • 698 B
TypeScript
/**
* Causes another entity to be destroyed
* Will produce a {@link BehaviorStatus.Failed} if entity could not be destroyed, either because it doesn't exist or the reference is stale
* @author Alex Goldring
* @copyright Company Named Limited (c) 2025
*/
export class KillBehavior extends EntityBehavior {
/**
*
* @param {EntityReference} ref
* @returns {KillBehavior}
*/
static create(ref: EntityReference): KillBehavior;
tick(timeDelta: any): BehaviorStatus.Succeeded | BehaviorStatus.Failed;
#private;
}
import { EntityBehavior } from "./EntityBehavior.js";
import { BehaviorStatus } from "../BehaviorStatus.js";
//# sourceMappingURL=KillBehavior.d.ts.map