Changed everything to use pragma once

This commit is contained in:
maverickdgg 2022-09-13 15:36:03 +08:00
parent e9241feb69
commit 8842269c6d
16 changed files with 43 additions and 62 deletions

View File

@ -110,11 +110,11 @@
<ClInclude Include="src\ECS_Base\General\SHSparseBase.h" /> <ClInclude Include="src\ECS_Base\General\SHSparseBase.h" />
<ClInclude Include="src\ECS_Base\General\SHSparseSet.h" /> <ClInclude Include="src\ECS_Base\General\SHSparseSet.h" />
<ClInclude Include="src\ECS_Base\General\SHSparseSetContainer.h" /> <ClInclude Include="src\ECS_Base\General\SHSparseSetContainer.h" />
<ClInclude Include="src\ECS_Base\Managers\SHComponentManager.h" />
<ClInclude Include="src\ECS_Base\Managers\SHEntityManager.h" />
<ClInclude Include="src\ECS_Base\Managers\SHSystemManager.h" />
<ClInclude Include="src\ECS_Base\SHECSMacros.h" /> <ClInclude Include="src\ECS_Base\SHECSMacros.h" />
<ClInclude Include="src\ECS_Base\System\SHComponentManager.h" />
<ClInclude Include="src\ECS_Base\System\SHEntityManager.h" />
<ClInclude Include="src\ECS_Base\System\SHSystem.h" /> <ClInclude Include="src\ECS_Base\System\SHSystem.h" />
<ClInclude Include="src\ECS_Base\System\SHSystemManager.h" />
<ClInclude Include="src\Engine\SHEngine.h" /> <ClInclude Include="src\Engine\SHEngine.h" />
<ClInclude Include="src\Filesystem\SHFileSystem.h" /> <ClInclude Include="src\Filesystem\SHFileSystem.h" />
<ClInclude Include="src\Graphics\Buffers\SHVkBuffer.h" /> <ClInclude Include="src\Graphics\Buffers\SHVkBuffer.h" />
@ -196,9 +196,9 @@
<ClCompile Include="src\ECS_Base\Components\SHComponent.cpp" /> <ClCompile Include="src\ECS_Base\Components\SHComponent.cpp" />
<ClCompile Include="src\ECS_Base\Components\SHComponentGroup.cpp" /> <ClCompile Include="src\ECS_Base\Components\SHComponentGroup.cpp" />
<ClCompile Include="src\ECS_Base\Entity\SHEntity.cpp" /> <ClCompile Include="src\ECS_Base\Entity\SHEntity.cpp" />
<ClCompile Include="src\ECS_Base\System\SHComponentManager.cpp" /> <ClCompile Include="src\ECS_Base\Managers\SHComponentManager.cpp" />
<ClCompile Include="src\ECS_Base\System\SHEntityManager.cpp" /> <ClCompile Include="src\ECS_Base\Managers\SHEntityManager.cpp" />
<ClCompile Include="src\ECS_Base\System\SHSystemManager.cpp" /> <ClCompile Include="src\ECS_Base\Managers\SHSystemManager.cpp" />
<ClCompile Include="src\Engine\SHEngine.cpp" /> <ClCompile Include="src\Engine\SHEngine.cpp" />
<ClCompile Include="src\Filesystem\SHFileSystem.cpp" /> <ClCompile Include="src\Filesystem\SHFileSystem.cpp" />
<ClCompile Include="src\Graphics\Buffers\SHVkBuffer.cpp" /> <ClCompile Include="src\Graphics\Buffers\SHVkBuffer.cpp" />

View File

@ -13,6 +13,9 @@
<Filter Include="ECS_Base\General"> <Filter Include="ECS_Base\General">
<UniqueIdentifier>{07FEB307-F3F6-D259-1C29-B8DE0881B265}</UniqueIdentifier> <UniqueIdentifier>{07FEB307-F3F6-D259-1C29-B8DE0881B265}</UniqueIdentifier>
</Filter> </Filter>
<Filter Include="ECS_Base\Managers">
<UniqueIdentifier>{37718753-A387-85E9-ECFE-100B58545671}</UniqueIdentifier>
</Filter>
<Filter Include="ECS_Base\System"> <Filter Include="ECS_Base\System">
<UniqueIdentifier>{EE037863-5A8F-E527-63A0-681CCFAA4128}</UniqueIdentifier> <UniqueIdentifier>{EE037863-5A8F-E527-63A0-681CCFAA4128}</UniqueIdentifier>
</Filter> </Filter>
@ -141,21 +144,21 @@
<ClInclude Include="src\ECS_Base\General\SHSparseSetContainer.h"> <ClInclude Include="src\ECS_Base\General\SHSparseSetContainer.h">
<Filter>ECS_Base\General</Filter> <Filter>ECS_Base\General</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="src\ECS_Base\Managers\SHComponentManager.h">
<Filter>ECS_Base\Managers</Filter>
</ClInclude>
<ClInclude Include="src\ECS_Base\Managers\SHEntityManager.h">
<Filter>ECS_Base\Managers</Filter>
</ClInclude>
<ClInclude Include="src\ECS_Base\Managers\SHSystemManager.h">
<Filter>ECS_Base\Managers</Filter>
</ClInclude>
<ClInclude Include="src\ECS_Base\SHECSMacros.h"> <ClInclude Include="src\ECS_Base\SHECSMacros.h">
<Filter>ECS_Base</Filter> <Filter>ECS_Base</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="src\ECS_Base\System\SHComponentManager.h">
<Filter>ECS_Base\System</Filter>
</ClInclude>
<ClInclude Include="src\ECS_Base\System\SHEntityManager.h">
<Filter>ECS_Base\System</Filter>
</ClInclude>
<ClInclude Include="src\ECS_Base\System\SHSystem.h"> <ClInclude Include="src\ECS_Base\System\SHSystem.h">
<Filter>ECS_Base\System</Filter> <Filter>ECS_Base\System</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="src\ECS_Base\System\SHSystemManager.h">
<Filter>ECS_Base\System</Filter>
</ClInclude>
<ClInclude Include="src\Engine\SHEngine.h"> <ClInclude Include="src\Engine\SHEngine.h">
<Filter>Engine</Filter> <Filter>Engine</Filter>
</ClInclude> </ClInclude>
@ -393,14 +396,14 @@
<ClCompile Include="src\ECS_Base\Entity\SHEntity.cpp"> <ClCompile Include="src\ECS_Base\Entity\SHEntity.cpp">
<Filter>ECS_Base\Entity</Filter> <Filter>ECS_Base\Entity</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="src\ECS_Base\System\SHComponentManager.cpp"> <ClCompile Include="src\ECS_Base\Managers\SHComponentManager.cpp">
<Filter>ECS_Base\System</Filter> <Filter>ECS_Base\Managers</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="src\ECS_Base\System\SHEntityManager.cpp"> <ClCompile Include="src\ECS_Base\Managers\SHEntityManager.cpp">
<Filter>ECS_Base\System</Filter> <Filter>ECS_Base\Managers</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="src\ECS_Base\System\SHSystemManager.cpp"> <ClCompile Include="src\ECS_Base\Managers\SHSystemManager.cpp">
<Filter>ECS_Base\System</Filter> <Filter>ECS_Base\Managers</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="src\Engine\SHEngine.cpp"> <ClCompile Include="src\Engine\SHEngine.cpp">
<Filter>Engine</Filter> <Filter>Engine</Filter>

View File

@ -9,8 +9,7 @@
*********************************************************************/ *********************************************************************/
#ifndef SH_COMPONENT_H #pragma once
#define SH_COMPONENT_H
#include "SHpch.h" #include "SHpch.h"
#include "../SHECSMacros.h" #include "../SHECSMacros.h"

View File

@ -14,7 +14,7 @@
#include "SHpch.h" #include "SHpch.h"
#include "SHComponentGroup.h" #include "SHComponentGroup.h"
#include "../System/SHComponentManager.h" #include "../Managers/SHComponentManager.h"
namespace SHADE namespace SHADE

View File

@ -12,9 +12,7 @@
consent of DigiPen Institute of Technology is prohibited. consent of DigiPen Institute of Technology is prohibited.
*********************************************************************/ *********************************************************************/
#pragma once
#ifndef SH_COMPONENT_GROUP
#define SH_COMPONENT_GROUP
#include "../SHECSMacros.h" #include "../SHECSMacros.h"
#include "../General/SHFamily.h" #include "../General/SHFamily.h"
@ -180,6 +178,3 @@ namespace SHADE
}; };
} }
#endif

View File

@ -9,9 +9,9 @@
*********************************************************************/ *********************************************************************/
#include "SHpch.h" #include "SHpch.h"
#include "SHEntity.h" #include "SHEntity.h"
#include "../System/SHEntityManager.h" #include "../Managers/SHEntityManager.h"
//#include "Scene/SHSceneGraph.h" //#include "Scene/SHSceneGraph.h"
#include "../System/SHComponentManager.h" #include "../Managers/SHComponentManager.h"
namespace SHADE namespace SHADE
{ {

View File

@ -8,12 +8,11 @@
consent of DigiPen Institute of Technology is prohibited. consent of DigiPen Institute of Technology is prohibited.
*********************************************************************/ *********************************************************************/
#ifndef SH_ENTITY_H #pragma once
#define SH_ENTITY_H
#include "../SHECSMacros.h" #include "../SHECSMacros.h"
#include "../Components/SHComponent.h" #include "../Components/SHComponent.h"
#include "../System/SHComponentManager.h" #include "../Managers/SHComponentManager.h"
//#include "../../Scene/SHSceneNode.h" //#include "../../Scene/SHSceneNode.h"
@ -166,6 +165,3 @@ namespace SHADE
}; };
} }
#endif

View File

@ -10,8 +10,7 @@
consent of DigiPen Institute of Technology is prohibited. consent of DigiPen Institute of Technology is prohibited.
*********************************************************************/ *********************************************************************/
#ifndef SH_SPARSE_BASE_H #pragma once
#define SH_SPARSE_BASE_H
#include "../SHECSMacros.h" #include "../SHECSMacros.h"

View File

@ -9,8 +9,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.
*********************************************************************/ *********************************************************************/
#ifndef SH_SPARSE_SET_H #pragma once
#define SH_SPARSE_SET_H
#include "../SHECSMacros.h" #include "../SHECSMacros.h"
#include "../General/SHSparseBase.h" #include "../General/SHSparseBase.h"

View File

@ -10,8 +10,7 @@
consent of DigiPen Institute of Technology is prohibited. consent of DigiPen Institute of Technology is prohibited.
*********************************************************************/ *********************************************************************/
#ifndef SH_SPARSE_SET_CONTAINER_H #pragma once
#define SH_SPARSE_SET_CONTAINER_H
#include "SHSparseSet.h" #include "SHSparseSet.h"
#include "SHFamily.h" #include "SHFamily.h"

View File

@ -12,8 +12,7 @@
consent of DigiPen Institute of Technology is prohibited. consent of DigiPen Institute of Technology is prohibited.
*********************************************************************/ *********************************************************************/
#ifndef SH_ENGINE_H #pragma once
#define SH_ENGINE_H
#include "../General/SHSparseSetContainer.h" #include "../General/SHSparseSetContainer.h"
#include "../Components/SHComponent.h" #include "../Components/SHComponent.h"
@ -477,7 +476,4 @@ namespace SHADE
} }
#endif

View File

@ -12,9 +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.
*********************************************************************/ *********************************************************************/
#pragma once
#ifndef SH_ENTITY_MANAGER_H
#define SH_ENTITY_MANAGER_H
#include <vector> #include <vector>
#include <memory> #include <memory>
@ -198,7 +196,3 @@ namespace SHADE
} }
#endif

View File

@ -56,7 +56,7 @@ namespace SHADE
protected: protected:
SystemID systemID{};
}; };

View File

@ -0,0 +1 @@
#pragma once

View File

@ -14,7 +14,7 @@
#include "SHSceneGraph.h" #include "SHSceneGraph.h"
// Project Headers // Project Headers
#include "ECS_Base/System/SHEntityManager.h" #include "ECS_Base/Managers/SHEntityManager.h"
#include "Tools/SHLogger.h" #include "Tools/SHLogger.h"
#include "Tools/SHException.h" #include "Tools/SHException.h"

View File

@ -10,11 +10,11 @@
*********************************************************************/ *********************************************************************/
#include "SHpch.h" #include "SHpch.h"
#include "SHSceneManager.h" #include "SHSceneManager.h"
#include "ECS_Base/System/SHComponentManager.h" #include "ECS_Base/Managers/SHComponentManager.h"
//#include "Input/SHInputManager.h" //#include "Input/SHInputManager.h"
//#include "Rendering/Window/SHRenderingWindow.h" //#include "Rendering/Window/SHRenderingWindow.h"
#include "ECS_Base/System/SHEntityManager.h" #include "ECS_Base/Managers/SHEntityManager.h"
#include "ECS_Base/System/SHSystemManager.h" #include "ECS_Base/Managers/SHSystemManager.h"
//#include "FRC/SHFrameRateController.h" //#include "FRC/SHFrameRateController.h"
//#include "ECS_Base/System/SHApplication.h" //#include "ECS_Base/System/SHApplication.h"