BsScriptVector2I.h 1007 B

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