Added calls to SHScriptEngine in SBApplication
This commit is contained in:
parent
08f3a52dab
commit
e67b90c6a8
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
/*-----------------------------------------------------------------------------*/
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue