ToyMaker Game Engine
0.0.2
ToyMaker is a game engine developed and maintained by Zoheb Shujauddin.
Toggle main menu visibility
Loading...
Searching...
No Matches
registrator.hpp
Go to the documentation of this file.
1
11
12
#ifndef TOYMAKERENGINE_REGISTRATOR_H
13
#define TOYMAKERENGINE_REGISTRATOR_H
14
15
namespace
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
ToyMaker
Namespace containing all class definitions and functions related to the ToyMaker engine.
Definition
application.hpp:25
ToyMaker_Main
include
toymaker
engine
registrator.hpp
Generated on
for ToyMaker Game Engine by
1.17.0