aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/System.h
blob: ecbb7f5ec6e12e71f8d5c382c19fc6543d35a08d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

namespace crepe {

class System {
public:
	static System & get_instance();
	virtual void update() = 0;

protected:
	System() {};
	virtual ~System() {};

private:
	// singleton
	System(const System &) = delete;
	System(System &&) = delete;
	System & operator=(const System &) = delete;
	System & operator=(System &&) = delete;
};

} // namespace crepe