Refactor Plugins system to support plugins in C++ scripts

This commit is contained in:
Wojtek Figat
2022-07-28 21:05:03 +02:00
parent 6f35b27c29
commit bdb69d57dd
23 changed files with 522 additions and 485 deletions

View File

@@ -418,6 +418,9 @@ namespace Flax.Build.Bindings
case "CultureInfo":
type = "void*";
return "MUtils::ToManaged({0})";
case "Version":
type = "MonoObject*";
return "MUtils::ToManaged({0})";
default:
// Object reference property
if ((typeInfo.Type == "ScriptingObjectReference" ||
@@ -590,6 +593,9 @@ namespace Flax.Build.Bindings
case "CultureInfo":
type = "void*";
return "MUtils::ToNative({0})";
case "Version":
type = "MonoObject*";
return "MUtils::ToNative({0})";
default:
// Object reference property
if ((typeInfo.Type == "ScriptingObjectReference" ||