BsEngineScriptLibrary.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsScriptEnginePrerequisites.h"
  5. #include "BsScriptManager.h"
  6. namespace BansheeEngine
  7. {
  8. /**
  9. * @brief Handles initialization/shutdown of the script systems and
  10. * loading/refresh of engine-specific assemblies.
  11. */
  12. class BS_SCR_BE_EXPORT EngineScriptLibrary : public ScriptLibrary
  13. {
  14. public:
  15. EngineScriptLibrary();
  16. /**
  17. * @copydoc ScriptLibrary::initialize
  18. */
  19. void initialize() override;
  20. /**
  21. * @copydoc ScriptLibrary::reload
  22. */
  23. void reload() override;
  24. /**
  25. * @copydoc ScriptLibrary::destroy
  26. */
  27. void destroy() override;
  28. protected:
  29. /**
  30. * @brief Unloads all manages assemblies and the mono domain.
  31. */
  32. void unloadAssemblies();
  33. /**
  34. * @brief Shutd down all script engine modules.
  35. */
  36. void shutdownModules();
  37. private:
  38. bool mScriptAssembliesLoaded;
  39. };
  40. }