summaryrefslogtreecommitdiff
path: root/engine/structures/RefreshingCollisionFinderBehavior.ts
blob: 21d690deb08620151cd81a761c2628e55d5fa528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import type { Coord2D, Dimension2D } from "../interfaces";

export interface BoxedEntry {
  id: string;
  dimension: Dimension2D;
  center: Coord2D;
}

export interface RefreshingCollisionFinderBehavior {
  public clear(): void;
  public insert(boxedEntry: BoxedEntry): void;
  public getNeighborIds(boxedEntry: BoxedEntry): Set<string>;
  public setTopLeft(topLeft: Coord2d): void;
}