Added EditorSystem

This commit is contained in:
2015-12-13 13:37:32 +01:00
parent 8a6030bf57
commit e5084e13ec
5 changed files with 26 additions and 3 deletions
+11
View File
@@ -0,0 +1,11 @@
#include "../Core/System.h"
class EditorSystem : public ImpureSystem
{
public:
EditorSystem(EventBroker* eventBroker)
: ImpureSystem(eventBroker)
{ }
virtual void Update(World* world, double dt) override;
};
+1
View File
@@ -17,6 +17,7 @@
#include "Core/SystemPipeline.h"
#include "RaptorCopterSystem.h"
#include "PlayerSystem.h"
#include "Editor/EditorSystem.h"
class Game
{
+7 -1
View File
@@ -60,7 +60,6 @@ file(GLOB SOURCE_FILES_Rendering_Util
"${INCLUDE_PATH}/Rendering/Util/*.h"
"Rendering/Util/*.cpp"
)
source_group(Rendering FILES ${SOURCE_FILES_Rendering})
source_group(Rendering\\Util FILES ${SOURCE_FILES_Rendering_Util})
@@ -70,6 +69,12 @@ file(GLOB SOURCE_FILES_GUI
)
source_group(GUI FILES ${SOURCE_FILES_GUI})
file(GLOB SOURCE_FILES_Editor
"${INCLUDE_PATH}/Editor/*.h"
"Editor/*.cpp"
)
source_group(Editor FILES ${SOURCE_FILES_Editor})
set(SOURCE_FILES
${SOURCE_FILES_Core}
${SOURCE_FILES_Core_Util}
@@ -81,6 +86,7 @@ set(SOURCE_FILES
${CMAKE_SOURCE_DIR}/deps/include/imgui/imgui.cpp
${CMAKE_SOURCE_DIR}/deps/include/imgui/imgui_draw.cpp
${CMAKE_SOURCE_DIR}/deps/include/imgui/imgui_demo.cpp
${SOURCE_FILES_Editor}
)
set(LIBRARIES
+6
View File
@@ -0,0 +1,6 @@
#include "Editor/EditorSystem.h"
void EditorSystem::Update(World* world, double dt)
{
}
+1 -2
View File
@@ -52,8 +52,7 @@ Game::Game(int argc, char* argv[])
m_SystemPipeline = new SystemPipeline(m_EventBroker);
m_SystemPipeline->AddSystem<RaptorCopterSystem>();
m_SystemPipeline->AddSystem<PlayerSystem>();
m_SystemPipeline->AddSystem<EditorSystem>();
m_LastTime = glfwGetTime();