BsScriptParticleEmitterSphereShape.generated.cpp 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #include "BsScriptParticleEmitterSphereShape.generated.h"
  2. #include "BsMonoMethod.h"
  3. #include "BsMonoClass.h"
  4. #include "BsMonoUtil.h"
  5. #include "../../../bsf/Source/Foundation/bsfCore/Particles/BsParticleEmitter.h"
  6. #include "BsScriptPARTICLE_SPHERE_SHAPE_DESC.generated.h"
  7. #include "BsScriptParticleEmitterSphereShape.generated.h"
  8. namespace bs
  9. {
  10. ScriptParticleEmitterSphereShape::ScriptParticleEmitterSphereShape(MonoObject* managedInstance, const SPtr<ParticleEmitterSphereShape>& value)
  11. :ScriptObject(managedInstance)
  12. {
  13. mInternal = value;
  14. }
  15. SPtr<ParticleEmitterSphereShape> ScriptParticleEmitterSphereShape::getInternal() const
  16. {
  17. return std::static_pointer_cast<ParticleEmitterSphereShape>(mInternal);
  18. }
  19. void ScriptParticleEmitterSphereShape::initRuntimeData()
  20. {
  21. metaData.scriptClass->addInternalCall("Internal_setOptions", (void*)&ScriptParticleEmitterSphereShape::Internal_setOptions);
  22. metaData.scriptClass->addInternalCall("Internal_getOptions", (void*)&ScriptParticleEmitterSphereShape::Internal_getOptions);
  23. metaData.scriptClass->addInternalCall("Internal_create", (void*)&ScriptParticleEmitterSphereShape::Internal_create);
  24. }
  25. MonoObject* ScriptParticleEmitterSphereShape::create(const SPtr<ParticleEmitterSphereShape>& value)
  26. {
  27. if(value == nullptr) return nullptr;
  28. bool dummy = false;
  29. void* ctorParams[1] = { &dummy };
  30. MonoObject* managedInstance = metaData.scriptClass->createInstance("bool", ctorParams);
  31. new (bs_alloc<ScriptParticleEmitterSphereShape>()) ScriptParticleEmitterSphereShape(managedInstance, value);
  32. return managedInstance;
  33. }
  34. void ScriptParticleEmitterSphereShape::Internal_setOptions(ScriptParticleEmitterSphereShape* thisPtr, PARTICLE_SPHERE_SHAPE_DESC* options)
  35. {
  36. thisPtr->getInternal()->setOptions(*options);
  37. }
  38. void ScriptParticleEmitterSphereShape::Internal_getOptions(ScriptParticleEmitterSphereShape* thisPtr, PARTICLE_SPHERE_SHAPE_DESC* __output)
  39. {
  40. PARTICLE_SPHERE_SHAPE_DESC tmp__output;
  41. tmp__output = thisPtr->getInternal()->getOptions();
  42. *__output = tmp__output;
  43. }
  44. void ScriptParticleEmitterSphereShape::Internal_create(MonoObject* managedInstance, PARTICLE_SPHERE_SHAPE_DESC* desc)
  45. {
  46. SPtr<ParticleEmitterSphereShape> instance = ParticleEmitterSphereShape::create(*desc);
  47. new (bs_alloc<ScriptParticleEmitterSphereShape>())ScriptParticleEmitterSphereShape(managedInstance, instance);
  48. }
  49. }