1 2 3 4 5 6 7 8 9 10 11 12
import { Component, ComponentNames } from "."; import { Game } from ".."; import { Entity } from "../entities"; export class RadialObserve extends Component { constructor( public onObservation?: (game: Game, entity: Entity) => void, public radius: number = 0, ) { super(ComponentNames.RadialObserve); } }