Add support for compiling and running engine without C# scripting

(configurable via `EngineConfiguration.UseCSharp` in Flax.Build)
This commit is contained in:
Wojtek Figat
2021-10-23 16:41:57 +02:00
parent 0b3d6b03ac
commit 8938f13a0b
86 changed files with 1244 additions and 688 deletions

View File

@@ -605,7 +605,7 @@ void EngineImpl::InitMainWindow()
return;
}
#if !USE_EDITOR
#if !USE_EDITOR && !COMPILE_WITHOUT_CSHARP
// Inform the managed runtime about the window (game can link GUI to it)
auto scriptingClass = Scripting::GetStaticClass();
ASSERT(scriptingClass);
@@ -613,7 +613,7 @@ void EngineImpl::InitMainWindow()
ASSERT(setWindowMethod);
void* params[1];
params[0] = Engine::MainWindow->GetOrCreateManagedInstance();
MonoObject* exception = nullptr;
MObject* exception = nullptr;
setWindowMethod->Invoke(nullptr, params, &exception);
if (exception)
{