blob: 0340ac4f6987ebecd7b7fd1061a037943be6c5a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef WORLDOBJECT_H
#define WORLDOBJECT_H
#include <chrono>
#include <special_members.hpp>
using TickDuration = std::chrono::duration<float, std::chrono::seconds::period>;
class WorldObject {
public:
WorldObject() = default;
virtual ~WorldObject() = default;
NO_COPY(WorldObject);
NO_MOVE(WorldObject);
virtual void tick(TickDuration elapsed) = 0;
};
#endif
|