diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 00000000..5bcb98fd
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 79b3c948..403c040a 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,4 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 74171f9e..727c6fd7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,20 +4,20 @@ project(Engine)
set(CMAKE_CXX_STANDARD 20)
include_directories(
- include
lib/myxmlpp/include
- include/Engine
+ include
+ include/Core
include/Exceptions
- include/Engine/component
- include/Engine/component/default
- include/Engine/component/default/drawables
- include/Engine/component/default/colliders
- include/Engine/entity
- include/Engine/config
- include/Engine/scene
- include/Engine/settings
- include/Engine/Utilities
- include/Engine/Utilities/Types
+ include/Core/component
+ include/Core/component/builtins
+ include/Core/component/builtins/drawables
+ include/Core/component/builtins/colliders
+ include/Core/entity
+ include/Config
+ include/Core/scene
+ include/Core/settings
+ include/Utilities
+ include/Utilities/types
)
add_subdirectory(lib/myxmlpp)
@@ -25,10 +25,12 @@ set_target_properties(myxmlpp PROPERTIES POSITION_INDEPENDENT_CODE ON)
file(GLOB_RECURSE SRC src/*.cpp)
file(GLOB_RECURSE ICL include/*.hpp)
+file(GLOB_RECURSE ICL_HEADERS include/Polymorph/*.hpp)
add_library(PolymorphEngine
${SRC}
${ICL}
+ ${ICL_HEADERS}
)
target_link_libraries(PolymorphEngine myxmlpp dl)
target_link_options(PolymorphEngine PUBLIC "-Wl,--no-undefined")
diff --git a/SampleProject/test_main.cpp b/SampleProject/test_main.cpp
index c163e271..ebc0cc47 100644
--- a/SampleProject/test_main.cpp
+++ b/SampleProject/test_main.cpp
@@ -5,8 +5,8 @@
** test_main.cpp
*/
-#include "../include/Engine/Engine.hpp"
-#include "ConfigurationException.hpp"
+#include
+#include
int main()
{
diff --git a/include/Engine/component/factory/ComponentInitializer.hpp b/include/ComponentsFactory/AComponentInitializer.hpp
similarity index 85%
rename from include/Engine/component/factory/ComponentInitializer.hpp
rename to include/ComponentsFactory/AComponentInitializer.hpp
index b6e51446..4e067386 100644
--- a/include/Engine/component/factory/ComponentInitializer.hpp
+++ b/include/ComponentsFactory/AComponentInitializer.hpp
@@ -5,8 +5,8 @@
** header for IComponentInitializer.c
*/
-#ifndef ENGINE_COMPONENTINITIALIZER_HPP
-#define ENGINE_COMPONENTINITIALIZER_HPP
+#ifndef ENGINE_ACOMPONENTINITIALIZER_HPP
+#define ENGINE_ACOMPONENTINITIALIZER_HPP
#include
#include
@@ -23,7 +23,7 @@ namespace Polymorph
///////////////////////////////// Constructors /////////////////////////////////
public:
- AComponentInitializer(const std::string &type, Config::XmlComponent &data, Entity &entity);
+ AComponentInitializer(std::string type, Config::XmlComponent &data, Entity &entity);
///////////////////////////--------------------------///////////////////////////
@@ -64,4 +64,4 @@ namespace Polymorph
}
-#endif //ENGINE_COMPONENTINITIALIZER_HPP
+#endif //ENGINE_ACOMPONENTINITIALIZER_HPP
diff --git a/include/Engine/component/factory/ComponentFactory.hpp b/include/ComponentsFactory/ComponentFactory.hpp
similarity index 70%
rename from include/Engine/component/factory/ComponentFactory.hpp
rename to include/ComponentsFactory/ComponentFactory.hpp
index 51bfa897..05991932 100644
--- a/include/Engine/component/factory/ComponentFactory.hpp
+++ b/include/ComponentsFactory/ComponentFactory.hpp
@@ -11,21 +11,23 @@
#ifndef ENGINE_COMPONENTFACTORY_HPP
#define ENGINE_COMPONENTFACTORY_HPP
-#include "factory/ComponentInitializer.hpp"
#include
#include