BsScriptVector2I.h 724 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma once
  2. #include "BsScriptEnginePrerequisites.h"
  3. #include "BsScriptObject.h"
  4. #include "BsVector2I.h"
  5. namespace BansheeEngine
  6. {
  7. /**
  8. * @brief Interop class between C++ & CLR for Vector2I.
  9. */
  10. class BS_SCR_BE_EXPORT ScriptVector2I : public ScriptObject<ScriptVector2I>
  11. {
  12. public:
  13. SCRIPT_OBJ(ENGINE_ASSEMBLY, "BansheeEngine", "Vector2I")
  14. /**
  15. * @brief Unboxes a boxed managed Vector2I struct and returns
  16. * the native version of the structure.
  17. */
  18. static Vector2I unbox(MonoObject* obj);
  19. /**
  20. * @brief Boxes a native Vector2I struct and returns
  21. * a managed object containing it.
  22. */
  23. static MonoObject* box(const Vector2I& value);
  24. private:
  25. ScriptVector2I(MonoObject* instance);
  26. };
  27. }