summary refs log tree commit diff stats
path: root/src/system.h
blob: 6a3cd148408da733eea13875a6ec35e05c29a2ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef SYSTEM_H_B61A8CEA
#define SYSTEM_H_B61A8CEA

#include "entity_manager.h"

class Game;

class System {
public:

  using id_type = EntityManager::id_type;

  System(Game& game) : game_(game)
  {
  }

  virtual ~System() = default;

  virtual void tick(double dt) = 0;

protected:

  Game& game_;
};

#endif /* end of include guard: SYSTEM_H_B61A8CEA */