UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

30 lines (26 loc) 551 B
export class EntityPathMarker { constructor() { /** * Relative 1D offset along the path * @type {number} */ this.offset = 0; /** * * @type {EntityPathMarkerDefinition} */ this.definition = null; /** * * @type {Entity} */ this.entity = null; } /** * * @param {EntityPathMarker} marker */ static destroyMarker(marker) { marker.entity.destroy(); } }