diff --git a/include/UECS/Schedule.h b/include/UECS/Schedule.h index 0a7c6e4..358ee09 100644 --- a/include/UECS/Schedule.h +++ b/include/UECS/Schedule.h @@ -1,7 +1,6 @@ #pragma once #include "detail/SystemFunc.h" -#include "detail/SysFuncGraph.h" #include "detail/Job.h" #include @@ -15,6 +14,7 @@ namespace Ubpa::UECS::detail { namespace Ubpa::UECS { class EntityMngr; class SystemMngr; + class SysFuncGraph; // [description] // system infomation record diff --git a/src/core/Schedule.cpp b/src/core/Schedule.cpp index b183368..6a5dd08 100644 --- a/src/core/Schedule.cpp +++ b/src/core/Schedule.cpp @@ -2,7 +2,7 @@ #include -#include +#include "SysFuncGraph.h" using namespace Ubpa::UECS; using namespace std; diff --git a/src/core/SysFuncGraph.cpp b/src/core/SysFuncGraph.cpp index f0b2b8e..b43c90a 100644 --- a/src/core/SysFuncGraph.cpp +++ b/src/core/SysFuncGraph.cpp @@ -1,4 +1,4 @@ -#include +#include "SysFuncGraph.h" #include #include diff --git a/include/UECS/detail/SysFuncGraph.h b/src/core/SysFuncGraph.h similarity index 100% rename from include/UECS/detail/SysFuncGraph.h rename to src/core/SysFuncGraph.h diff --git a/src/core/World.cpp b/src/core/World.cpp index b7833c1..5ebc821 100644 --- a/src/core/World.cpp +++ b/src/core/World.cpp @@ -2,6 +2,8 @@ #include +#include "SysFuncGraph.h" + using namespace Ubpa::UECS; using namespace Ubpa; using namespace std; diff --git a/src/test/14_serialize/main.cpp b/src/test/14_serialize/main.cpp index e8b0362..eea8623 100644 --- a/src/test/14_serialize/main.cpp +++ b/src/test/14_serialize/main.cpp @@ -94,7 +94,7 @@ class Dumper : public IListener { cout << "{" << endl; indent++; PrintIndent(); - cout << "\"type\" : \"" << w->entityMngr.cmptTraits.Nameof(cmpt->Type()) << "\""; + cout << "\"type\" : \"" << w->entityMngr.cmptTraits.Nameof(cmpt.Type()) << "\""; if (cmpt.Type().Is()) { auto v = cmpt.As(); cout << "," << endl;