DotNet hosting test

This commit is contained in:
Simon Lübeß
2022-04-14 02:24:36 +02:00
parent 9c93ccee47
commit 6a250d4927
16 changed files with 806 additions and 13 deletions
-1
View File
@@ -3,5 +3,4 @@ Dependencies = {corlib = "*", GlitchLog = "*", GlitchyEngine = "*"}
[Project]
Name = "GlitchyEditor"
TargetType = "BeefGUIApplication"
StartupObject = "GlitchyEngine.Program"
+9
View File
@@ -4,6 +4,7 @@ using System;
using System.Collections;
using GlitchyEngine.Collections;
using GlitchyEditor.EditWindows;
using GlitchyEngineHelper;
namespace GlitchyEditor
{
@@ -29,6 +30,14 @@ namespace GlitchyEditor
/// Creates a new editor for the given world
public this(Scene scene)
{
String str = @"D:\Development\Projects\Beef\GlitchyEngine\build\Debug_Win64\GlitchyEditor\";
char16* ptr = str.ToScopedNativeWChar!();
DotNetRuntime.Init();
DotNetRuntime.TestRunDotNet(1, &ptr);
_scene = scene;
_ecsWorld = _scene.[Friend]_ecsWorld;