aboutsummaryrefslogtreecommitdiff
path: root/static/src/engine/system.ts
blob: e19cf5a850d60ed4089d2c3c129e93174702d1e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { Game } from "./game";

export enum SystemType {
  INPUT = "INPUT",
  NETWORK = "NETWORK",
  RENDER = "RENDER",
  TRAILING_POSITION = "TRAILING_POSITION",
}

export abstract class System {
  constructor(public readonly system_type: SystemType) {}

  abstract update(dt: number, game: Game): void;
}