#include "BsScriptParticleEmitterSphereShape.generated.h" #include "BsMonoMethod.h" #include "BsMonoClass.h" #include "BsMonoUtil.h" #include "../../../bsf/Source/Foundation/bsfCore/Particles/BsParticleEmitter.h" #include "BsScriptPARTICLE_SPHERE_SHAPE_DESC.generated.h" #include "BsScriptParticleEmitterSphereShape.generated.h" namespace bs { ScriptParticleEmitterSphereShape::ScriptParticleEmitterSphereShape(MonoObject* managedInstance, const SPtr& value) :ScriptObject(managedInstance) { mInternal = value; } SPtr ScriptParticleEmitterSphereShape::getInternal() const { return std::static_pointer_cast(mInternal); } void ScriptParticleEmitterSphereShape::initRuntimeData() { metaData.scriptClass->addInternalCall("Internal_setOptions", (void*)&ScriptParticleEmitterSphereShape::Internal_setOptions); metaData.scriptClass->addInternalCall("Internal_getOptions", (void*)&ScriptParticleEmitterSphereShape::Internal_getOptions); metaData.scriptClass->addInternalCall("Internal_create", (void*)&ScriptParticleEmitterSphereShape::Internal_create); } MonoObject* ScriptParticleEmitterSphereShape::create(const SPtr& value) { if(value == nullptr) return nullptr; bool dummy = false; void* ctorParams[1] = { &dummy }; MonoObject* managedInstance = metaData.scriptClass->createInstance("bool", ctorParams); new (bs_alloc()) ScriptParticleEmitterSphereShape(managedInstance, value); return managedInstance; } void ScriptParticleEmitterSphereShape::Internal_setOptions(ScriptParticleEmitterSphereShape* thisPtr, PARTICLE_SPHERE_SHAPE_DESC* options) { thisPtr->getInternal()->setOptions(*options); } void ScriptParticleEmitterSphereShape::Internal_getOptions(ScriptParticleEmitterSphereShape* thisPtr, PARTICLE_SPHERE_SHAPE_DESC* __output) { PARTICLE_SPHERE_SHAPE_DESC tmp__output; tmp__output = thisPtr->getInternal()->getOptions(); *__output = tmp__output; } void ScriptParticleEmitterSphereShape::Internal_create(MonoObject* managedInstance, PARTICLE_SPHERE_SHAPE_DESC* desc) { SPtr instance = ParticleEmitterSphereShape::create(*desc); new (bs_alloc())ScriptParticleEmitterSphereShape(managedInstance, instance); } }