BsScriptPlane.h 945 B

1234567891011121314151617181920212223242526272829303132
  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 "Math/BsPlane.h"
  7. namespace bs
  8. {
  9. /** @addtogroup ScriptInteropEngine
  10. * @{
  11. */
  12. /** Interop class between C++ & CLR for Plane. */
  13. class BS_SCR_BE_EXPORT ScriptPlane : public ScriptObject <ScriptPlane>
  14. {
  15. public:
  16. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "Plane")
  17. /** Unboxes a boxed managed Plane struct and returns the native version of the structure. */
  18. static Plane unbox(MonoObject* obj);
  19. /** Boxes a native Plane struct and returns a managed object containing it. */
  20. static MonoObject* box(const Plane& value);
  21. private:
  22. ScriptPlane(MonoObject* instance);
  23. };
  24. /** @} */
  25. }