BsScriptObjectImpl.h 959 B

123456789101112131415161718192021222324252627
  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 "BsScriptObject.h"
  6. #include "BsRect2I.h"
  7. namespace BansheeEngine
  8. {
  9. /**
  10. * @brief Interop class between C++ & CLR for ScriptObject.
  11. */
  12. class BS_SCR_BE_EXPORT ScriptObjectImpl : public ScriptObject<ScriptObjectImpl>
  13. {
  14. public:
  15. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "ScriptObject")
  16. private:
  17. ScriptObjectImpl(MonoObject* instance);
  18. /************************************************************************/
  19. /* CLR HOOKS */
  20. /************************************************************************/
  21. static void internal_managedInstanceDeleted(ScriptObjectBase* instance);
  22. };
  23. }