diff --git a/SHADE_Managed/src/Engine/ECS.cxx b/SHADE_Managed/src/Engine/ECS.cxx index c388f0cd..ffdffd12 100644 --- a/SHADE_Managed/src/Engine/ECS.cxx +++ b/SHADE_Managed/src/Engine/ECS.cxx @@ -28,7 +28,6 @@ of DigiPen Institute of Technology is prohibited. #include "Scene/SHSceneGraph.h" #include "Tools/Logger/SHLog.h" #include "Graphics\MiddleEnd\Interface\SHRenderable.h" -#include "Graphics\MiddleEnd\TextRendering\SHTextRenderableComponent.h" // Project Headers #include "Utility/Convert.hxx" #include "Utility/Debug.hxx" @@ -39,7 +38,6 @@ of DigiPen Institute of Technology is prohibited. #include "Components/CameraArm.hxx" #include "Components/Light.hxx" #include "Components\Renderable.hxx" -#include "Components\TextRenderable.hxx" namespace SHADE { @@ -323,7 +321,6 @@ namespace SHADE componentMap.Add(createComponentSet()); componentMap.Add(createComponentSet()); componentMap.Add(createComponentSet()); - componentMap.Add(createComponentSet()); } /*---------------------------------------------------------------------------------*/ diff --git a/SHADE_Managed/src/Scene/SceneManager.cxx b/SHADE_Managed/src/Scene/SceneManager.cxx new file mode 100644 index 00000000..1e139a95 --- /dev/null +++ b/SHADE_Managed/src/Scene/SceneManager.cxx @@ -0,0 +1,25 @@ +/************************************************************************************//*! +\file Input.hxx +\author Daniel Chua +\par email: yeechendaniel.chua@digipen.edu +\date Oct 16, 2022 +\brief Contains the definition of the managed SceneManager static class. + + Note: This file is written in C++17/CLI. + +Copyright (C) 2022 DigiPen Institute of Technology. +Reproduction or disclosure of this file or its contents without the prior written consent +of DigiPen Institute of Technology is prohibited. +*//*************************************************************************************/ + +#include "SHpch.h" +#include "SceneManager.hxx" +#include "Scene/SHSceneManager.h" + +namespace SHADE +{ + void SceneManager::ChangeScene(AssetID sceneAssetID) + { + SHSceneManager::RestartScene(sceneAssetID); + } +} \ No newline at end of file diff --git a/SHADE_Managed/src/Scene/SceneManager.hxx b/SHADE_Managed/src/Scene/SceneManager.hxx new file mode 100644 index 00000000..e1b30bc3 --- /dev/null +++ b/SHADE_Managed/src/Scene/SceneManager.hxx @@ -0,0 +1,26 @@ +/************************************************************************************//*! +\file Input.hxx +\author Daniel Chua +\par email: yeechendaniel.chua@digipen.edu +\date Oct 16, 2022 +\brief Contains the definition of the managed SceneManager static class. + + Note: This file is written in C++17/CLI. + +Copyright (C) 2022 DigiPen Institute of Technology. +Reproduction or disclosure of this file or its contents without the prior written consent +of DigiPen Institute of Technology is prohibited. +*//*************************************************************************************/ + + +#pragma once + +#include "Assets/SHAssetMacros.h" + +namespace SHADE +{ + public ref class SceneManager abstract sealed + { + static void ChangeScene(AssetID sceneAssetID); + }; +}