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

@@ -109,6 +109,13 @@ public:
/// <returns>The scripting type or invalid type if missing.</returns>
static ScriptingTypeHandle FindScriptingType(const StringAnsiView& fullname);
/// <summary>
/// Creates a new instance of the given class object (native construction).
/// </summary>
/// <param name="type">The Managed type class.</param>
/// <returns>The created object or null if failed.</returns>
static ScriptingObject* NewObject(const MClass* type);
public:
typedef Dictionary<Guid, Guid, HeapAllocation> IdsMappingTable;