BsScriptPARTICLE_ORBIT_DESC.generated.cpp 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #include "BsScriptPARTICLE_ORBIT_DESC.generated.h"
  2. #include "BsMonoMethod.h"
  3. #include "BsMonoClass.h"
  4. #include "BsMonoUtil.h"
  5. #include "../../../bsf/Source/Foundation/bsfCore/Particles/BsParticleDistribution.h"
  6. #include "BsScriptTDistribution.generated.h"
  7. #include "../../../bsf/Source/Foundation/bsfCore/Particles/BsParticleDistribution.h"
  8. #include "BsScriptTDistribution.generated.h"
  9. namespace bs
  10. {
  11. ScriptPARTICLE_ORBIT_DESC::ScriptPARTICLE_ORBIT_DESC(MonoObject* managedInstance)
  12. :ScriptObject(managedInstance)
  13. { }
  14. void ScriptPARTICLE_ORBIT_DESC::initRuntimeData()
  15. { }
  16. MonoObject*ScriptPARTICLE_ORBIT_DESC::box(const __PARTICLE_ORBIT_DESCInterop& value)
  17. {
  18. return MonoUtil::box(metaData.scriptClass->_getInternalClass(), (void*)&value);
  19. }
  20. __PARTICLE_ORBIT_DESCInterop ScriptPARTICLE_ORBIT_DESC::unbox(MonoObject* value)
  21. {
  22. return *(__PARTICLE_ORBIT_DESCInterop*)MonoUtil::unbox(value);
  23. }
  24. PARTICLE_ORBIT_DESC ScriptPARTICLE_ORBIT_DESC::fromInterop(const __PARTICLE_ORBIT_DESCInterop& value)
  25. {
  26. PARTICLE_ORBIT_DESC output;
  27. SPtr<TDistribution<Vector3>> tmpcenter;
  28. ScriptTDistributionVector3* scriptcenter;
  29. scriptcenter = ScriptTDistributionVector3::toNative(value.center);
  30. if(scriptcenter != nullptr)
  31. tmpcenter = scriptcenter->getInternal();
  32. if(tmpcenter != nullptr)
  33. output.center = *tmpcenter;
  34. SPtr<TDistribution<Vector3>> tmpvelocity;
  35. ScriptTDistributionVector3* scriptvelocity;
  36. scriptvelocity = ScriptTDistributionVector3::toNative(value.velocity);
  37. if(scriptvelocity != nullptr)
  38. tmpvelocity = scriptvelocity->getInternal();
  39. if(tmpvelocity != nullptr)
  40. output.velocity = *tmpvelocity;
  41. SPtr<TDistribution<float>> tmpradial;
  42. ScriptTDistributionfloat* scriptradial;
  43. scriptradial = ScriptTDistributionfloat::toNative(value.radial);
  44. if(scriptradial != nullptr)
  45. tmpradial = scriptradial->getInternal();
  46. if(tmpradial != nullptr)
  47. output.radial = *tmpradial;
  48. output.worldSpace = value.worldSpace;
  49. return output;
  50. }
  51. __PARTICLE_ORBIT_DESCInterop ScriptPARTICLE_ORBIT_DESC::toInterop(const PARTICLE_ORBIT_DESC& value)
  52. {
  53. __PARTICLE_ORBIT_DESCInterop output;
  54. MonoObject* tmpcenter;
  55. SPtr<TDistribution<Vector3>> tmpcentercopy;
  56. tmpcentercopy = bs_shared_ptr_new<TDistribution<Vector3>>(value.center);
  57. tmpcenter = ScriptTDistributionVector3::create(tmpcentercopy);
  58. output.center = tmpcenter;
  59. MonoObject* tmpvelocity;
  60. SPtr<TDistribution<Vector3>> tmpvelocitycopy;
  61. tmpvelocitycopy = bs_shared_ptr_new<TDistribution<Vector3>>(value.velocity);
  62. tmpvelocity = ScriptTDistributionVector3::create(tmpvelocitycopy);
  63. output.velocity = tmpvelocity;
  64. MonoObject* tmpradial;
  65. SPtr<TDistribution<float>> tmpradialcopy;
  66. tmpradialcopy = bs_shared_ptr_new<TDistribution<float>>(value.radial);
  67. tmpradial = ScriptTDistributionfloat::create(tmpradialcopy);
  68. output.radial = tmpradial;
  69. output.worldSpace = value.worldSpace;
  70. return output;
  71. }
  72. }