BsScriptPARTICLE_SKINNED_MESH_SHAPE_DESC.generated.cpp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #include "BsScriptPARTICLE_SKINNED_MESH_SHAPE_DESC.generated.h"
  2. #include "BsMonoMethod.h"
  3. #include "BsMonoClass.h"
  4. #include "BsMonoUtil.h"
  5. #include "BsScriptGameObjectManager.h"
  6. #include "../../../bsf/Source/Foundation/bsfCore/Components/BsCRenderable.h"
  7. #include "BsScriptCRenderable.generated.h"
  8. namespace bs
  9. {
  10. ScriptPARTICLE_SKINNED_MESH_SHAPE_DESC::ScriptPARTICLE_SKINNED_MESH_SHAPE_DESC(MonoObject* managedInstance)
  11. :ScriptObject(managedInstance)
  12. { }
  13. void ScriptPARTICLE_SKINNED_MESH_SHAPE_DESC::initRuntimeData()
  14. { }
  15. MonoObject*ScriptPARTICLE_SKINNED_MESH_SHAPE_DESC::box(const __PARTICLE_SKINNED_MESH_SHAPE_DESCInterop& value)
  16. {
  17. return MonoUtil::box(metaData.scriptClass->_getInternalClass(), (void*)&value);
  18. }
  19. __PARTICLE_SKINNED_MESH_SHAPE_DESCInterop ScriptPARTICLE_SKINNED_MESH_SHAPE_DESC::unbox(MonoObject* value)
  20. {
  21. return *(__PARTICLE_SKINNED_MESH_SHAPE_DESCInterop*)MonoUtil::unbox(value);
  22. }
  23. PARTICLE_SKINNED_MESH_SHAPE_DESC ScriptPARTICLE_SKINNED_MESH_SHAPE_DESC::fromInterop(const __PARTICLE_SKINNED_MESH_SHAPE_DESCInterop& value)
  24. {
  25. PARTICLE_SKINNED_MESH_SHAPE_DESC output;
  26. output.type = value.type;
  27. output.sequential = value.sequential;
  28. GameObjectHandle<CRenderable> tmprenderable;
  29. ScriptCRenderable* scriptrenderable;
  30. scriptrenderable = ScriptCRenderable::toNative(value.renderable);
  31. if(scriptrenderable != nullptr)
  32. tmprenderable = scriptrenderable->getHandle();
  33. output.renderable = tmprenderable;
  34. return output;
  35. }
  36. __PARTICLE_SKINNED_MESH_SHAPE_DESCInterop ScriptPARTICLE_SKINNED_MESH_SHAPE_DESC::toInterop(const PARTICLE_SKINNED_MESH_SHAPE_DESC& value)
  37. {
  38. __PARTICLE_SKINNED_MESH_SHAPE_DESCInterop output;
  39. output.type = value.type;
  40. output.sequential = value.sequential;
  41. ScriptComponentBase* scriptrenderable = nullptr;
  42. if(value.renderable.getComponent())
  43. scriptrenderable = ScriptGameObjectManager::instance().getBuiltinScriptComponent(static_object_cast<Component>(value.renderable.getComponent()));
  44. MonoObject* tmprenderable;
  45. if(scriptrenderable != nullptr)
  46. tmprenderable = scriptrenderable->getManagedInstance();
  47. else
  48. tmprenderable = nullptr;
  49. output.renderable = tmprenderable;
  50. return output;
  51. }
  52. }