| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339 |
- #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<ParticleSystemSettings>& 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<ParticleSystemSettings>& value)
- {
- if(value == nullptr) return nullptr;
- bool dummy = false;
- void* ctorParams[1] = { &dummy };
- MonoObject* managedInstance = metaData.scriptClass->createInstance("bool", ctorParams);
- new (bs_alloc<ScriptParticleSystemSettings>()) ScriptParticleSystemSettings(managedInstance, value);
- return managedInstance;
- }
- MonoObject* ScriptParticleSystemSettings::Internal_getmaterial(ScriptParticleSystemSettings* thisPtr)
- {
- ResourceHandle<Material> 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<Material> tmpvalue;
- ScriptRRefBase* scriptvalue;
- scriptvalue = ScriptRRefBase::toNative(value);
- if(scriptvalue != nullptr)
- tmpvalue = static_resource_cast<Material>(scriptvalue->getHandle());
- thisPtr->getInternal()->material = tmpvalue;
- }
- MonoObject* ScriptParticleSystemSettings::Internal_getmesh(ScriptParticleSystemSettings* thisPtr)
- {
- ResourceHandle<Mesh> 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<Mesh> tmpvalue;
- ScriptRRefBase* scriptvalue;
- scriptvalue = ScriptRRefBase::toNative(value);
- if(scriptvalue != nullptr)
- tmpvalue = static_resource_cast<Mesh>(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;
- }
- }
|