blob: 60962c232c1fa3b8d2681e37d49f80963994b3b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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);
this.onObservation = onObservation;
}
}
|