summary refs log tree commit diff stats
path: root/src/systems/scheduling.h
blob: 7950d6289f39e53ece7af8224169b4680345142f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef SCHEDULING_H_7B02E3E3
#define SCHEDULING_H_7B02E3E3

#include "system.h"

class SchedulingSystem : public System {
public:

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

  void tick(double dt);

  void schedule(
    id_type entity,
    double length,
    std::function<void(id_type)> action);

};

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