SP3-5 ECS initial commit #5

Merged
maverickdgg merged 3 commits from SP3-5-ECS into main 2022-09-08 11:18:01 +08:00
9 changed files with 47 additions and 6 deletions
Showing only changes of commit cfa7bb812a - Show all commits

View File

@ -102,10 +102,29 @@
</Lib> </Lib>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="src\Engine\ECS_Base\Components\SHComponent.h" />
<ClInclude Include="src\Engine\ECS_Base\Components\SHComponentGroup.h" />
<ClInclude Include="src\Engine\ECS_Base\Entity\SHEntity.h" />
<ClInclude Include="src\Engine\ECS_Base\General\SHFamily.h" />
<ClInclude Include="src\Engine\ECS_Base\General\SHHandleGenerator.h" />
<ClInclude Include="src\Engine\ECS_Base\General\SHSparseBase.h" />
<ClInclude Include="src\Engine\ECS_Base\General\SHSparseSet.h" />
<ClInclude Include="src\Engine\ECS_Base\General\SHSparseSetContainer.h" />
<ClInclude Include="src\Engine\ECS_Base\SHECSMacros.h" />
<ClInclude Include="src\Engine\ECS_Base\System\SHComponentManager.h" />
<ClInclude Include="src\Engine\ECS_Base\System\SHEntityManager.h" />
<ClInclude Include="src\Engine\ECS_Base\System\SHSystem.h" />
<ClInclude Include="src\Engine\ECS_Base\System\SHSystemManager.h" />
<ClInclude Include="src\Engine\SHEngine.h" /> <ClInclude Include="src\Engine\SHEngine.h" />
<ClInclude Include="src\SHpch.h" /> <ClInclude Include="src\SHpch.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="src\Engine\ECS_Base\Components\SHComponent.cpp" />
<ClCompile Include="src\Engine\ECS_Base\Components\SHComponentGroup.cpp" />
<ClCompile Include="src\Engine\ECS_Base\Entity\SHEntity.cpp" />
<ClCompile Include="src\Engine\ECS_Base\System\SHComponentManager.cpp" />
<ClCompile Include="src\Engine\ECS_Base\System\SHEntityManager.cpp" />
<ClCompile Include="src\Engine\ECS_Base\System\SHSystemManager.cpp" />
<ClCompile Include="src\Engine\SHEngine.cpp" /> <ClCompile Include="src\Engine\SHEngine.cpp" />
<ClCompile Include="src\SHpch.cpp"> <ClCompile Include="src\SHpch.cpp">
<PrecompiledHeader>Create</PrecompiledHeader> <PrecompiledHeader>Create</PrecompiledHeader>

View File

@ -10,11 +10,30 @@
<Filter>Engine</Filter> <Filter>Engine</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="src\SHpch.h" /> <ClInclude Include="src\SHpch.h" />
<ClInclude Include="src\Engine\ECS_Base\Components\SHComponent.h" />
<ClInclude Include="src\Engine\ECS_Base\Components\SHComponentGroup.h" />
<ClInclude Include="src\Engine\ECS_Base\Entity\SHEntity.h" />
<ClInclude Include="src\Engine\ECS_Base\General\SHFamily.h" />
<ClInclude Include="src\Engine\ECS_Base\General\SHHandleGenerator.h" />
<ClInclude Include="src\Engine\ECS_Base\General\SHSparseBase.h" />
<ClInclude Include="src\Engine\ECS_Base\General\SHSparseSet.h" />
<ClInclude Include="src\Engine\ECS_Base\General\SHSparseSetContainer.h" />
<ClInclude Include="src\Engine\ECS_Base\System\SHComponentManager.h" />
<ClInclude Include="src\Engine\ECS_Base\System\SHEntityManager.h" />
<ClInclude Include="src\Engine\ECS_Base\System\SHSystem.h" />
<ClInclude Include="src\Engine\ECS_Base\System\SHSystemManager.h" />
<ClInclude Include="src\Engine\ECS_Base\SHECSMacros.h" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="src\Engine\SHEngine.cpp"> <ClCompile Include="src\Engine\SHEngine.cpp">
<Filter>Engine</Filter> <Filter>Engine</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="src\SHpch.cpp" /> <ClCompile Include="src\SHpch.cpp" />
<ClCompile Include="src\Engine\ECS_Base\Components\SHComponent.cpp" />
<ClCompile Include="src\Engine\ECS_Base\Components\SHComponentGroup.cpp" />
<ClCompile Include="src\Engine\ECS_Base\Entity\SHEntity.cpp" />
<ClCompile Include="src\Engine\ECS_Base\System\SHComponentManager.cpp" />
<ClCompile Include="src\Engine\ECS_Base\System\SHEntityManager.cpp" />
<ClCompile Include="src\Engine\ECS_Base\System\SHSystemManager.cpp" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -1,4 +1,4 @@
//#include "SHpch.h" #include "SHpch.h"
#include "SHComponent.h" #include "SHComponent.h"
namespace SHADE namespace SHADE

View File

@ -12,6 +12,7 @@
#ifndef SH_COMPONENT_H #ifndef SH_COMPONENT_H
#define SH_COMPONENT_H #define SH_COMPONENT_H
#include "SHpch.h"
#include "../SHECSMacros.h" #include "../SHECSMacros.h"
namespace SHADE namespace SHADE

View File

@ -12,7 +12,7 @@
consent of DigiPen Institute of Technology is prohibited. consent of DigiPen Institute of Technology is prohibited.
*********************************************************************/ *********************************************************************/
//#include "SHpch.h" #include "SHpch.h"
#include "SHComponentGroup.h" #include "SHComponentGroup.h"
#include "../System/SHComponentManager.h" #include "../System/SHComponentManager.h"

View File

@ -7,7 +7,7 @@
or disclosure of this file or its contents without the prior written or disclosure of this file or its contents without the prior written
consent of DigiPen Institute of Technology is prohibited. consent of DigiPen Institute of Technology is prohibited.
*********************************************************************/ *********************************************************************/
//#include "SHpch.h" #include "SHpch.h"
#include "SHEntity.h" #include "SHEntity.h"
#include "../System/SHEntityManager.h" #include "../System/SHEntityManager.h"
//#include "Scene/SHSceneGraph.h" //#include "Scene/SHSceneGraph.h"
@ -43,11 +43,13 @@ namespace SHADE
void SHEntity::SetParent(SHEntity* newParent) noexcept void SHEntity::SetParent(SHEntity* newParent) noexcept
{ {
(void)newParent;
//TODO //TODO
} }
void SHEntity::SetParent(EntityID newParentID) noexcept void SHEntity::SetParent(EntityID newParentID) noexcept
{ {
(void)newParentID;
//TODO //TODO
} }

View File

@ -10,7 +10,7 @@
or disclosure of this file or its contents without the prior written or disclosure of this file or its contents without the prior written
consent of DigiPen Institute of Technology is prohibited. consent of DigiPen Institute of Technology is prohibited.
*********************************************************************/ *********************************************************************/
//#include "SHpch.h" #include "SHpch.h"
#include "SHComponentManager.h" #include "SHComponentManager.h"
#include "SHEntityManager.h" #include "SHEntityManager.h"
#include "SHSystemManager.h" #include "SHSystemManager.h"

View File

@ -12,7 +12,7 @@
or disclosure of this file or its contents without the prior written or disclosure of this file or its contents without the prior written
consent of DigiPen Institute of Technology is prohibited. consent of DigiPen Institute of Technology is prohibited.
*********************************************************************/ *********************************************************************/
//#include "SHpch.h" #include "SHpch.h"
#include "SHEntityManager.h" #include "SHEntityManager.h"
//#include "Scene/SHSceneGraph.h" //#include "Scene/SHSceneGraph.h"
//#include "Serialization/SHSerialization.h" //#include "Serialization/SHSerialization.h"

View File

@ -10,7 +10,7 @@
or disclosure of this file or its contents without the prior written or disclosure of this file or its contents without the prior written
consent of DigiPen Institute of Technology is prohibited. consent of DigiPen Institute of Technology is prohibited.
*********************************************************************/ *********************************************************************/
//#include "SHpch.h" #include "SHpch.h"
#include "SHSystemManager.h" #include "SHSystemManager.h"
#include <iostream> #include <iostream>