2
0

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