From ceb96938fbc4b76ff1787422d8e6aeb72a880c3c Mon Sep 17 00:00:00 2001 From: maverickdgg Date: Mon, 19 Sep 2022 17:28:59 +0800 Subject: [PATCH] Added SHAPI to Scene graph --- SHADE_Engine/src/ECS_Base/System/SHSystemRoutine.h | 2 +- SHADE_Engine/src/ECS_Base/UnitTesting/SHECSUnitTest.cpp | 6 +++--- SHADE_Engine/src/ECS_Base/UnitTesting/SHTestSystems.h | 2 +- SHADE_Engine/src/Scene/SHSceneGraph.h | 5 +++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/SHADE_Engine/src/ECS_Base/System/SHSystemRoutine.h b/SHADE_Engine/src/ECS_Base/System/SHSystemRoutine.h index cdb62438..889c46ea 100644 --- a/SHADE_Engine/src/ECS_Base/System/SHSystemRoutine.h +++ b/SHADE_Engine/src/ECS_Base/System/SHSystemRoutine.h @@ -40,7 +40,7 @@ namespace SHADE std::string const GetName() const noexcept; SHRoutineStats const& GetStats()const noexcept; - virtual void Execute(double dt) noexcept {}; + virtual void Execute(double dt) noexcept { (void)dt; }; }; diff --git a/SHADE_Engine/src/ECS_Base/UnitTesting/SHECSUnitTest.cpp b/SHADE_Engine/src/ECS_Base/UnitTesting/SHECSUnitTest.cpp index c9d8477b..050d0c2e 100644 --- a/SHADE_Engine/src/ECS_Base/UnitTesting/SHECSUnitTest.cpp +++ b/SHADE_Engine/src/ECS_Base/UnitTesting/SHECSUnitTest.cpp @@ -30,9 +30,9 @@ namespace SHADE SHLOG_INFO("Test for add and remove component") EntityID id1 = SHEntityManager::CreateEntity(); - EntityID id2 = SHEntityManager::CreateEntity(); - EntityID id3 = SHEntityManager::CreateEntity(); - + SHEntityManager::CreateEntity(); + SHEntityManager::CreateEntity(); + SHComponentManager::AddComponent(id1); } diff --git a/SHADE_Engine/src/ECS_Base/UnitTesting/SHTestSystems.h b/SHADE_Engine/src/ECS_Base/UnitTesting/SHTestSystems.h index 7231b323..12da5e37 100644 --- a/SHADE_Engine/src/ECS_Base/UnitTesting/SHTestSystems.h +++ b/SHADE_Engine/src/ECS_Base/UnitTesting/SHTestSystems.h @@ -30,7 +30,7 @@ namespace SHADE virtual void Execute(double dt) noexcept { - + (void)dt; std::cout << GetName() << " System Version: " << GetSystem()->GetSystemVersion() << std::endl; } }; diff --git a/SHADE_Engine/src/Scene/SHSceneGraph.h b/SHADE_Engine/src/Scene/SHSceneGraph.h index 20830065..b569bb78 100644 --- a/SHADE_Engine/src/Scene/SHSceneGraph.h +++ b/SHADE_Engine/src/Scene/SHSceneGraph.h @@ -14,6 +14,7 @@ // Project Headers #include "ECS_Base/Entity/SHEntity.h" +#include "SH_API.h" namespace SHADE { @@ -21,7 +22,7 @@ namespace SHADE /* Type Definitions */ /*-----------------------------------------------------------------------------------*/ - class SHSceneNode + class SH_API SHSceneNode { public: /*---------------------------------------------------------------------------------*/ @@ -75,7 +76,7 @@ namespace SHADE std::vector children; }; - class SHSceneGraph + class SH_API SHSceneGraph { public: /*---------------------------------------------------------------------------------*/