Added calls to SHScriptEngine in SBApplication

This commit is contained in:
Kah Wei 2022-09-14 20:07:13 +08:00
parent 08f3a52dab
commit e67b90c6a8
3 changed files with 10 additions and 7 deletions

View File

@ -6,12 +6,12 @@
#include "Scenes/SBEditorScene.h"
#endif // SHEDITOR
#include "Tools/SHLogger.h"
#include <chrono>
#include <ratio>
#include <ctime>
#include "Scripting/SHScriptEngine.h"
namespace Sandbox
{
bool paused = false;
@ -23,7 +23,6 @@ namespace Sandbox
_In_ INT nCmdShow
)
{
SHLOG_TITLE("Initialising SBApplication")
window.Create(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
@ -31,6 +30,8 @@ namespace Sandbox
#else
#endif
// Set up scripting
SHADE::SHScriptEngine::Init();
}
void SBApplication::Update(void)
@ -47,6 +48,9 @@ namespace Sandbox
void SBApplication::Exit(void)
{
// Shutdown scripting
SHADE::SHScriptEngine::Exit();
#ifdef SHEDITOR
#else
#endif

View File

@ -18,6 +18,7 @@ of DigiPen Institute of Technology is prohibited.
#include "SHDotNetRuntime.h"
#include "ECS_Base/SHECSMacros.h"
#include "ECS_Base/Entity/SHEntity.h"
#include "SH_API.h"
namespace SHADE
{
@ -25,7 +26,7 @@ namespace SHADE
/// Manages initialisation of the DotNetRuntime and interfacing with CLR code written
/// and executed on .NET.
/// </summary>
class SHScriptEngine
class SH_API SHScriptEngine
{
public:
/*-----------------------------------------------------------------------------*/

View File

@ -38,7 +38,6 @@ project "SHADE_Managed"
{
"yaml-cpp",
"imgui",
"spdlog",
"SHADE_Engine"
}
@ -56,7 +55,6 @@ project "SHADE_Managed"
{
"yaml-cpp",
"imgui",
"spdlog",
"SHADE_Engine"
}