mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
ScriptEngine refactoring
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user