template<class T, bool UseManager = true>
class ecsm::Singleton< T, UseManager >
Base singleton class.
Singleton class is a class designed in such a way that only one instance of it can exist during the runtime of the game or application. This pattern is often used to manage systems or resources that need to be globally accessible, without having multiple copies floating around, which could lead to resource inefficiency or bugs.
- Template Parameters
-
T | type of the singleton class |
UseManager | use manager system instance if singleton is not set |