Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
SystemRegistrar.hpp
1#pragma once
2
3#include <entt/entt.hpp>
4#include <string>
5#include <unordered_map>
6
7#include "SystemFactory.hpp"
8using namespace Grindstone;
9
10namespace Grindstone {
11 namespace ECS {
13 public:
15 virtual void RegisterSystem(const char* name, SystemFactory factory);
16 virtual void RegisterEditorSystem(const char* name, SystemFactory factory);
17 virtual void UnregisterSystem(const char* name);
18 virtual void UnregisterEditorSystem(const char* name);
19 void Update(entt::registry& registry);
20 void EditorUpdate(entt::registry& registry);
22 std::unordered_map<std::string, SystemFactory> systemFactories;
23 std::unordered_map<std::string, SystemFactory> editorSystemFactories;
24 private:
25 };
26 }
27}
Definition SystemRegistrar.hpp:12