Reworked file structure
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#pragma once
|
||||
#include "Nuake/Scripting/NetModules/NetAPIModule.h"
|
||||
|
||||
namespace Coral
|
||||
{
|
||||
class HostInstance;
|
||||
class AssemblyLoadContext;
|
||||
class ManagedAssembly;
|
||||
}
|
||||
|
||||
#include "Nuake/Scripting/ScriptingEngineNet.h"
|
||||
|
||||
class ScriptingContext
|
||||
{
|
||||
private:
|
||||
Coral::HostInstance* hostInstance;
|
||||
Coral::AssemblyLoadContext loadContext;
|
||||
|
||||
std::unordered_map<std::string, Coral::AssemblyLoadContext*> loadedAssemblies;
|
||||
std::vector<Ref<Nuake::NetAPIModule>> modules;
|
||||
|
||||
Coral::ManagedAssembly nuakeAssembly; // Nuake DLL
|
||||
Coral::ManagedAssembly m_EditorAssembly; // Editor DLL
|
||||
public:
|
||||
static ScriptingContext& Get()
|
||||
{
|
||||
static ScriptingContext instance;
|
||||
return instance;
|
||||
}
|
||||
|
||||
void Initialize();
|
||||
|
||||
void PushCommand(const std::string& command, const std::string& arg);
|
||||
};
|
||||
Reference in New Issue
Block a user