2
3
4
5
9#include "Core/Event/Event.h"
14
15
19
20
27 m_SystemManager =
nullptr;
35
36
44 return *m_SystemManager;
51 m_Identities.for_each([&](
auto& k,
auto& v) {
52 v->OnSystemUpdate(ts);
59 m_Identities.for_each([&](
auto& k,
auto& v) {
#define BIND_EVENT_FN(x)
Bind Event.
#define SPICES_PROFILE_ZONE
static void SetEventCallbackFn(const EventCallbackFn &callback)
Set Global Root Event Function Pointer.
This Class is the basic Event Class. Inherit from it and create specific event class.
void OnEvent(Event &event)
The root event function pointer.
SystemManager()
Constructor Function.
static void Run(TimeStep &ts)
Update all system that pushed to this manager.
static SystemManager & Get()
Get Static SystemManager.
static std::unique_ptr< SystemManager > m_SystemManager
Static SystemManager variable.
virtual ~SystemManager()
Destructor Function.
static scl::linked_unordered_map< std::string, std::shared_ptr< System > > m_Identities
Static System Map.
SystemManager Class. This class defines the behave of SystemManager.
System Class. This class defines the basic behaves of System. When we create an new System,...
This Class handles our engine time step during frames. Global Unique.
The container combines hashmap and list together. Used in the case that we want iter a hashmap in ord...