BsScriptEditorPlugin.cpp 736 B

1234567891011121314151617181920212223242526
  1. #include "BsScriptEditorPrerequisites.h"
  2. #include "BsMonoManager.h"
  3. #include "BsMonoAssembly.h"
  4. using namespace CamelotFramework;
  5. using namespace BansheeEngine;
  6. namespace BansheeEditor
  7. {
  8. extern "C" BS_SCR_BED_EXPORT const String& getPluginName()
  9. {
  10. static String pluginName = "SBansheeEditor";
  11. return pluginName;
  12. }
  13. extern "C" BS_SCR_BED_EXPORT void* loadPlugin()
  14. {
  15. const CM::String ENGINE_ASSEMBLY_PATH = "..\\..\\Assemblies\\MBansheeEditor.dll";
  16. const CM::String ENGINE_ASSEMBLY_NAME = "MBansheeEditor";
  17. const CM::String ASSEMBLY_ENTRY_POINT = "ProgramEd::Main";
  18. MonoManager::instance().loadAssembly(ENGINE_ASSEMBLY_PATH, ENGINE_ASSEMBLY_NAME, ASSEMBLY_ENTRY_POINT);
  19. return nullptr;
  20. }
  21. }