#include "BsScriptParticleSystemSettings.generated.h" #include "BsMonoMethod.h" #include "BsMonoClass.h" #include "BsMonoUtil.h" #include "../../../bsf/Source/Foundation/bsfCore/Particles/BsParticleSystem.h" #include "BsScriptResourceManager.h" #include "Wrappers/BsScriptRRefBase.h" #include "../../../bsf/Source/Foundation/bsfCore/Material/BsMaterial.h" #include "../../../bsf/Source/Foundation/bsfCore/Mesh/BsMesh.h" namespace bs { ScriptParticleSystemSettings::ScriptParticleSystemSettings(MonoObject* managedInstance, const SPtr& value) :ScriptObject(managedInstance), mInternal(value) { } void ScriptParticleSystemSettings::initRuntimeData() { metaData.scriptClass->addInternalCall("Internal_getmaterial", (void*)&ScriptParticleSystemSettings::Internal_getmaterial); metaData.scriptClass->addInternalCall("Internal_setmaterial", (void*)&ScriptParticleSystemSettings::Internal_setmaterial); metaData.scriptClass->addInternalCall("Internal_getmesh", (void*)&ScriptParticleSystemSettings::Internal_getmesh); metaData.scriptClass->addInternalCall("Internal_setmesh", (void*)&ScriptParticleSystemSettings::Internal_setmesh); metaData.scriptClass->addInternalCall("Internal_getgpuSimulation", (void*)&ScriptParticleSystemSettings::Internal_getgpuSimulation); metaData.scriptClass->addInternalCall("Internal_setgpuSimulation", (void*)&ScriptParticleSystemSettings::Internal_setgpuSimulation); metaData.scriptClass->addInternalCall("Internal_getsimulationSpace", (void*)&ScriptParticleSystemSettings::Internal_getsimulationSpace); metaData.scriptClass->addInternalCall("Internal_setsimulationSpace", (void*)&ScriptParticleSystemSettings::Internal_setsimulationSpace); metaData.scriptClass->addInternalCall("Internal_getorientation", (void*)&ScriptParticleSystemSettings::Internal_getorientation); metaData.scriptClass->addInternalCall("Internal_setorientation", (void*)&ScriptParticleSystemSettings::Internal_setorientation); metaData.scriptClass->addInternalCall("Internal_getorientationLockY", (void*)&ScriptParticleSystemSettings::Internal_getorientationLockY); metaData.scriptClass->addInternalCall("Internal_setorientationLockY", (void*)&ScriptParticleSystemSettings::Internal_setorientationLockY); metaData.scriptClass->addInternalCall("Internal_getorientationPlane", (void*)&ScriptParticleSystemSettings::Internal_getorientationPlane); metaData.scriptClass->addInternalCall("Internal_setorientationPlane", (void*)&ScriptParticleSystemSettings::Internal_setorientationPlane); metaData.scriptClass->addInternalCall("Internal_getsortMode", (void*)&ScriptParticleSystemSettings::Internal_getsortMode); metaData.scriptClass->addInternalCall("Internal_setsortMode", (void*)&ScriptParticleSystemSettings::Internal_setsortMode); metaData.scriptClass->addInternalCall("Internal_getduration", (void*)&ScriptParticleSystemSettings::Internal_getduration); metaData.scriptClass->addInternalCall("Internal_setduration", (void*)&ScriptParticleSystemSettings::Internal_setduration); metaData.scriptClass->addInternalCall("Internal_getisLooping", (void*)&ScriptParticleSystemSettings::Internal_getisLooping); metaData.scriptClass->addInternalCall("Internal_setisLooping", (void*)&ScriptParticleSystemSettings::Internal_setisLooping); metaData.scriptClass->addInternalCall("Internal_getmaxParticles", (void*)&ScriptParticleSystemSettings::Internal_getmaxParticles); metaData.scriptClass->addInternalCall("Internal_setmaxParticles", (void*)&ScriptParticleSystemSettings::Internal_setmaxParticles); metaData.scriptClass->addInternalCall("Internal_getuseAutomaticSeed", (void*)&ScriptParticleSystemSettings::Internal_getuseAutomaticSeed); metaData.scriptClass->addInternalCall("Internal_setuseAutomaticSeed", (void*)&ScriptParticleSystemSettings::Internal_setuseAutomaticSeed); metaData.scriptClass->addInternalCall("Internal_getmanualSeed", (void*)&ScriptParticleSystemSettings::Internal_getmanualSeed); metaData.scriptClass->addInternalCall("Internal_setmanualSeed", (void*)&ScriptParticleSystemSettings::Internal_setmanualSeed); metaData.scriptClass->addInternalCall("Internal_getuseAutomaticBounds", (void*)&ScriptParticleSystemSettings::Internal_getuseAutomaticBounds); metaData.scriptClass->addInternalCall("Internal_setuseAutomaticBounds", (void*)&ScriptParticleSystemSettings::Internal_setuseAutomaticBounds); metaData.scriptClass->addInternalCall("Internal_getcustomBounds", (void*)&ScriptParticleSystemSettings::Internal_getcustomBounds); metaData.scriptClass->addInternalCall("Internal_setcustomBounds", (void*)&ScriptParticleSystemSettings::Internal_setcustomBounds); metaData.scriptClass->addInternalCall("Internal_getrenderMode", (void*)&ScriptParticleSystemSettings::Internal_getrenderMode); metaData.scriptClass->addInternalCall("Internal_setrenderMode", (void*)&ScriptParticleSystemSettings::Internal_setrenderMode); } MonoObject* ScriptParticleSystemSettings::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()) ScriptParticleSystemSettings(managedInstance, value); return managedInstance; } MonoObject* ScriptParticleSystemSettings::Internal_getmaterial(ScriptParticleSystemSettings* thisPtr) { ResourceHandle tmp__output; tmp__output = thisPtr->getInternal()->material; MonoObject* __output; ScriptRRefBase* script__output; script__output = ScriptResourceManager::instance().getScriptRRef(tmp__output); if(script__output != nullptr) __output = script__output->getManagedInstance(); else __output = nullptr; return __output; } void ScriptParticleSystemSettings::Internal_setmaterial(ScriptParticleSystemSettings* thisPtr, MonoObject* value) { ResourceHandle tmpvalue; ScriptRRefBase* scriptvalue; scriptvalue = ScriptRRefBase::toNative(value); if(scriptvalue != nullptr) tmpvalue = static_resource_cast(scriptvalue->getHandle()); thisPtr->getInternal()->material = tmpvalue; } MonoObject* ScriptParticleSystemSettings::Internal_getmesh(ScriptParticleSystemSettings* thisPtr) { ResourceHandle tmp__output; tmp__output = thisPtr->getInternal()->mesh; MonoObject* __output; ScriptRRefBase* script__output; script__output = ScriptResourceManager::instance().getScriptRRef(tmp__output); if(script__output != nullptr) __output = script__output->getManagedInstance(); else __output = nullptr; return __output; } void ScriptParticleSystemSettings::Internal_setmesh(ScriptParticleSystemSettings* thisPtr, MonoObject* value) { ResourceHandle tmpvalue; ScriptRRefBase* scriptvalue; scriptvalue = ScriptRRefBase::toNative(value); if(scriptvalue != nullptr) tmpvalue = static_resource_cast(scriptvalue->getHandle()); thisPtr->getInternal()->mesh = tmpvalue; } bool ScriptParticleSystemSettings::Internal_getgpuSimulation(ScriptParticleSystemSettings* thisPtr) { bool tmp__output; tmp__output = thisPtr->getInternal()->gpuSimulation; bool __output; __output = tmp__output; return __output; } void ScriptParticleSystemSettings::Internal_setgpuSimulation(ScriptParticleSystemSettings* thisPtr, bool value) { thisPtr->getInternal()->gpuSimulation = value; } ParticleSimulationSpace ScriptParticleSystemSettings::Internal_getsimulationSpace(ScriptParticleSystemSettings* thisPtr) { ParticleSimulationSpace tmp__output; tmp__output = thisPtr->getInternal()->simulationSpace; ParticleSimulationSpace __output; __output = tmp__output; return __output; } void ScriptParticleSystemSettings::Internal_setsimulationSpace(ScriptParticleSystemSettings* thisPtr, ParticleSimulationSpace value) { thisPtr->getInternal()->simulationSpace = value; } ParticleOrientation ScriptParticleSystemSettings::Internal_getorientation(ScriptParticleSystemSettings* thisPtr) { ParticleOrientation tmp__output; tmp__output = thisPtr->getInternal()->orientation; ParticleOrientation __output; __output = tmp__output; return __output; } void ScriptParticleSystemSettings::Internal_setorientation(ScriptParticleSystemSettings* thisPtr, ParticleOrientation value) { thisPtr->getInternal()->orientation = value; } bool ScriptParticleSystemSettings::Internal_getorientationLockY(ScriptParticleSystemSettings* thisPtr) { bool tmp__output; tmp__output = thisPtr->getInternal()->orientationLockY; bool __output; __output = tmp__output; return __output; } void ScriptParticleSystemSettings::Internal_setorientationLockY(ScriptParticleSystemSettings* thisPtr, bool value) { thisPtr->getInternal()->orientationLockY = value; } void ScriptParticleSystemSettings::Internal_getorientationPlane(ScriptParticleSystemSettings* thisPtr, Plane* __output) { Plane tmp__output; tmp__output = thisPtr->getInternal()->orientationPlane; *__output = tmp__output; } void ScriptParticleSystemSettings::Internal_setorientationPlane(ScriptParticleSystemSettings* thisPtr, Plane* value) { thisPtr->getInternal()->orientationPlane = *value; } ParticleSortMode ScriptParticleSystemSettings::Internal_getsortMode(ScriptParticleSystemSettings* thisPtr) { ParticleSortMode tmp__output; tmp__output = thisPtr->getInternal()->sortMode; ParticleSortMode __output; __output = tmp__output; return __output; } void ScriptParticleSystemSettings::Internal_setsortMode(ScriptParticleSystemSettings* thisPtr, ParticleSortMode value) { thisPtr->getInternal()->sortMode = value; } float ScriptParticleSystemSettings::Internal_getduration(ScriptParticleSystemSettings* thisPtr) { float tmp__output; tmp__output = thisPtr->getInternal()->duration; float __output; __output = tmp__output; return __output; } void ScriptParticleSystemSettings::Internal_setduration(ScriptParticleSystemSettings* thisPtr, float value) { thisPtr->getInternal()->duration = value; } bool ScriptParticleSystemSettings::Internal_getisLooping(ScriptParticleSystemSettings* thisPtr) { bool tmp__output; tmp__output = thisPtr->getInternal()->isLooping; bool __output; __output = tmp__output; return __output; } void ScriptParticleSystemSettings::Internal_setisLooping(ScriptParticleSystemSettings* thisPtr, bool value) { thisPtr->getInternal()->isLooping = value; } uint32_t ScriptParticleSystemSettings::Internal_getmaxParticles(ScriptParticleSystemSettings* thisPtr) { uint32_t tmp__output; tmp__output = thisPtr->getInternal()->maxParticles; uint32_t __output; __output = tmp__output; return __output; } void ScriptParticleSystemSettings::Internal_setmaxParticles(ScriptParticleSystemSettings* thisPtr, uint32_t value) { thisPtr->getInternal()->maxParticles = value; } bool ScriptParticleSystemSettings::Internal_getuseAutomaticSeed(ScriptParticleSystemSettings* thisPtr) { bool tmp__output; tmp__output = thisPtr->getInternal()->useAutomaticSeed; bool __output; __output = tmp__output; return __output; } void ScriptParticleSystemSettings::Internal_setuseAutomaticSeed(ScriptParticleSystemSettings* thisPtr, bool value) { thisPtr->getInternal()->useAutomaticSeed = value; } uint32_t ScriptParticleSystemSettings::Internal_getmanualSeed(ScriptParticleSystemSettings* thisPtr) { uint32_t tmp__output; tmp__output = thisPtr->getInternal()->manualSeed; uint32_t __output; __output = tmp__output; return __output; } void ScriptParticleSystemSettings::Internal_setmanualSeed(ScriptParticleSystemSettings* thisPtr, uint32_t value) { thisPtr->getInternal()->manualSeed = value; } bool ScriptParticleSystemSettings::Internal_getuseAutomaticBounds(ScriptParticleSystemSettings* thisPtr) { bool tmp__output; tmp__output = thisPtr->getInternal()->useAutomaticBounds; bool __output; __output = tmp__output; return __output; } void ScriptParticleSystemSettings::Internal_setuseAutomaticBounds(ScriptParticleSystemSettings* thisPtr, bool value) { thisPtr->getInternal()->useAutomaticBounds = value; } void ScriptParticleSystemSettings::Internal_getcustomBounds(ScriptParticleSystemSettings* thisPtr, AABox* __output) { AABox tmp__output; tmp__output = thisPtr->getInternal()->customBounds; *__output = tmp__output; } void ScriptParticleSystemSettings::Internal_setcustomBounds(ScriptParticleSystemSettings* thisPtr, AABox* value) { thisPtr->getInternal()->customBounds = *value; } ParticleRenderMode ScriptParticleSystemSettings::Internal_getrenderMode(ScriptParticleSystemSettings* thisPtr) { ParticleRenderMode tmp__output; tmp__output = thisPtr->getInternal()->renderMode; ParticleRenderMode __output; __output = tmp__output; return __output; } void ScriptParticleSystemSettings::Internal_setrenderMode(ScriptParticleSystemSettings* thisPtr, ParticleRenderMode value) { thisPtr->getInternal()->renderMode = value; } }