Game of Ur 0.3.3
This is a computer adaptation of Game of Ur, written in C++ mainly using SDL and OpenGL.
Loading...
Searching...
No Matches
registrator.hpp
Go to the documentation of this file.
1
11
12#ifndef FOOLSENGINE_REGISTRATOR_H
13#define FOOLSENGINE_REGISTRATOR_H
14
15namespace ToyMaker {
16
63 template<typename TRegisterable>
64 class Registrator {
65 public:
66 inline static Registrator& getRegistrator() {
67 static Registrator reg {};
68 return reg;
69 };
70 void emptyFunc() {}
71 protected:
72 Registrator();
73 };
74
75 template <typename TRegisterable>
76 Registrator<TRegisterable>::Registrator() {
77 TRegisterable::registerSelf();
78 }
79
80}
81
82#endif
Namespace containing all class definitions and functions related to the ToyMaker engine.
Definition camera_system.hpp:20