ScriptEngine refactoring

This commit is contained in:
Simon Lübeß
2024-03-31 12:36:22 +02:00
parent abcacc84a9
commit 777f52ab49
4 changed files with 13 additions and 48 deletions
+2 -5
View File
@@ -585,15 +585,12 @@ static class ScriptEngine
if (scriptClass == null)
return;
let monoType = scriptClass.GetMonoType();
let monoReflectionType = Mono.mono_type_get_object(s_AppDomain, monoType);
let entityId = entity.UUID;
#unwarn
void*[2] args = .(&entityId, monoReflectionType);
void*[1] args = .(&entityId);
let method = Classes.EntityEditor.GetMethod("ShowDefaultEntityEditor", 2);
let method = Classes.EntityEditor.GetMethod("ShowDefaultEntityEditor", 1);
Classes.EntityEditor.Invoke(method, null, &args);
}