Olympe Engine
2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Source
Singleton.h
Go to the documentation of this file.
1
/*
2
Olympe Engine V2 2025
3
Nicolas Chereau
4
nchereau@gmail.com
5
6
Purpose:
7
- Singleton design pattern implementation.
8
- Ensures a class has only one instance and provides a global point of access to it.
9
- Base Singleton marker class (no instance managed here).
10
- Individual derived classes should implement their own GetInstance()/Get() methods.
11
12
*/
13
14
15
/*
16
* DEPRECATED : Use Object with ObjectType::Singleton instead.
17
18
#pragma once
19
#include <string>
20
21
struct Message;
22
23
class Singleton
24
{
25
public:
26
Singleton() = default;
27
virtual ~Singleton() = default;
28
29
virtual void Process() {};
30
virtual void Render() {};
31
virtual void OnEvent(const Message&) {};
32
33
std::string name = "unnamed singleton";
34
};
35
36
*/
Generated on Tue Feb 17 2026 13:49:10 for Olympe Engine by
1.9.8