BsScriptParticleSystemSettings.generated.cpp 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. #include "BsScriptParticleSystemSettings.generated.h"
  2. #include "BsMonoMethod.h"
  3. #include "BsMonoClass.h"
  4. #include "BsMonoUtil.h"
  5. #include "../../../bsf/Source/Foundation/bsfCore/Particles/BsParticleSystem.h"
  6. #include "BsScriptResourceManager.h"
  7. #include "Wrappers/BsScriptRRefBase.h"
  8. #include "../../../bsf/Source/Foundation/bsfCore/Material/BsMaterial.h"
  9. #include "../../../bsf/Source/Foundation/bsfCore/Mesh/BsMesh.h"
  10. namespace bs
  11. {
  12. ScriptParticleSystemSettings::ScriptParticleSystemSettings(MonoObject* managedInstance, const SPtr<ParticleSystemSettings>& value)
  13. :ScriptObject(managedInstance), mInternal(value)
  14. {
  15. }
  16. void ScriptParticleSystemSettings::initRuntimeData()
  17. {
  18. metaData.scriptClass->addInternalCall("Internal_getmaterial", (void*)&ScriptParticleSystemSettings::Internal_getmaterial);
  19. metaData.scriptClass->addInternalCall("Internal_setmaterial", (void*)&ScriptParticleSystemSettings::Internal_setmaterial);
  20. metaData.scriptClass->addInternalCall("Internal_getmesh", (void*)&ScriptParticleSystemSettings::Internal_getmesh);
  21. metaData.scriptClass->addInternalCall("Internal_setmesh", (void*)&ScriptParticleSystemSettings::Internal_setmesh);
  22. metaData.scriptClass->addInternalCall("Internal_getgpuSimulation", (void*)&ScriptParticleSystemSettings::Internal_getgpuSimulation);
  23. metaData.scriptClass->addInternalCall("Internal_setgpuSimulation", (void*)&ScriptParticleSystemSettings::Internal_setgpuSimulation);
  24. metaData.scriptClass->addInternalCall("Internal_getsimulationSpace", (void*)&ScriptParticleSystemSettings::Internal_getsimulationSpace);
  25. metaData.scriptClass->addInternalCall("Internal_setsimulationSpace", (void*)&ScriptParticleSystemSettings::Internal_setsimulationSpace);
  26. metaData.scriptClass->addInternalCall("Internal_getorientation", (void*)&ScriptParticleSystemSettings::Internal_getorientation);
  27. metaData.scriptClass->addInternalCall("Internal_setorientation", (void*)&ScriptParticleSystemSettings::Internal_setorientation);
  28. metaData.scriptClass->addInternalCall("Internal_getorientationLockY", (void*)&ScriptParticleSystemSettings::Internal_getorientationLockY);
  29. metaData.scriptClass->addInternalCall("Internal_setorientationLockY", (void*)&ScriptParticleSystemSettings::Internal_setorientationLockY);
  30. metaData.scriptClass->addInternalCall("Internal_getorientationPlane", (void*)&ScriptParticleSystemSettings::Internal_getorientationPlane);
  31. metaData.scriptClass->addInternalCall("Internal_setorientationPlane", (void*)&ScriptParticleSystemSettings::Internal_setorientationPlane);
  32. metaData.scriptClass->addInternalCall("Internal_getsortMode", (void*)&ScriptParticleSystemSettings::Internal_getsortMode);
  33. metaData.scriptClass->addInternalCall("Internal_setsortMode", (void*)&ScriptParticleSystemSettings::Internal_setsortMode);
  34. metaData.scriptClass->addInternalCall("Internal_getduration", (void*)&ScriptParticleSystemSettings::Internal_getduration);
  35. metaData.scriptClass->addInternalCall("Internal_setduration", (void*)&ScriptParticleSystemSettings::Internal_setduration);
  36. metaData.scriptClass->addInternalCall("Internal_getisLooping", (void*)&ScriptParticleSystemSettings::Internal_getisLooping);
  37. metaData.scriptClass->addInternalCall("Internal_setisLooping", (void*)&ScriptParticleSystemSettings::Internal_setisLooping);
  38. metaData.scriptClass->addInternalCall("Internal_getmaxParticles", (void*)&ScriptParticleSystemSettings::Internal_getmaxParticles);
  39. metaData.scriptClass->addInternalCall("Internal_setmaxParticles", (void*)&ScriptParticleSystemSettings::Internal_setmaxParticles);
  40. metaData.scriptClass->addInternalCall("Internal_getuseAutomaticSeed", (void*)&ScriptParticleSystemSettings::Internal_getuseAutomaticSeed);
  41. metaData.scriptClass->addInternalCall("Internal_setuseAutomaticSeed", (void*)&ScriptParticleSystemSettings::Internal_setuseAutomaticSeed);
  42. metaData.scriptClass->addInternalCall("Internal_getmanualSeed", (void*)&ScriptParticleSystemSettings::Internal_getmanualSeed);
  43. metaData.scriptClass->addInternalCall("Internal_setmanualSeed", (void*)&ScriptParticleSystemSettings::Internal_setmanualSeed);
  44. metaData.scriptClass->addInternalCall("Internal_getuseAutomaticBounds", (void*)&ScriptParticleSystemSettings::Internal_getuseAutomaticBounds);
  45. metaData.scriptClass->addInternalCall("Internal_setuseAutomaticBounds", (void*)&ScriptParticleSystemSettings::Internal_setuseAutomaticBounds);
  46. metaData.scriptClass->addInternalCall("Internal_getcustomBounds", (void*)&ScriptParticleSystemSettings::Internal_getcustomBounds);
  47. metaData.scriptClass->addInternalCall("Internal_setcustomBounds", (void*)&ScriptParticleSystemSettings::Internal_setcustomBounds);
  48. metaData.scriptClass->addInternalCall("Internal_getrenderMode", (void*)&ScriptParticleSystemSettings::Internal_getrenderMode);
  49. metaData.scriptClass->addInternalCall("Internal_setrenderMode", (void*)&ScriptParticleSystemSettings::Internal_setrenderMode);
  50. }
  51. MonoObject* ScriptParticleSystemSettings::create(const SPtr<ParticleSystemSettings>& value)
  52. {
  53. if(value == nullptr) return nullptr;
  54. bool dummy = false;
  55. void* ctorParams[1] = { &dummy };
  56. MonoObject* managedInstance = metaData.scriptClass->createInstance("bool", ctorParams);
  57. new (bs_alloc<ScriptParticleSystemSettings>()) ScriptParticleSystemSettings(managedInstance, value);
  58. return managedInstance;
  59. }
  60. MonoObject* ScriptParticleSystemSettings::Internal_getmaterial(ScriptParticleSystemSettings* thisPtr)
  61. {
  62. ResourceHandle<Material> tmp__output;
  63. tmp__output = thisPtr->getInternal()->material;
  64. MonoObject* __output;
  65. ScriptRRefBase* script__output;
  66. script__output = ScriptResourceManager::instance().getScriptRRef(tmp__output);
  67. if(script__output != nullptr)
  68. __output = script__output->getManagedInstance();
  69. else
  70. __output = nullptr;
  71. return __output;
  72. }
  73. void ScriptParticleSystemSettings::Internal_setmaterial(ScriptParticleSystemSettings* thisPtr, MonoObject* value)
  74. {
  75. ResourceHandle<Material> tmpvalue;
  76. ScriptRRefBase* scriptvalue;
  77. scriptvalue = ScriptRRefBase::toNative(value);
  78. if(scriptvalue != nullptr)
  79. tmpvalue = static_resource_cast<Material>(scriptvalue->getHandle());
  80. thisPtr->getInternal()->material = tmpvalue;
  81. }
  82. MonoObject* ScriptParticleSystemSettings::Internal_getmesh(ScriptParticleSystemSettings* thisPtr)
  83. {
  84. ResourceHandle<Mesh> tmp__output;
  85. tmp__output = thisPtr->getInternal()->mesh;
  86. MonoObject* __output;
  87. ScriptRRefBase* script__output;
  88. script__output = ScriptResourceManager::instance().getScriptRRef(tmp__output);
  89. if(script__output != nullptr)
  90. __output = script__output->getManagedInstance();
  91. else
  92. __output = nullptr;
  93. return __output;
  94. }
  95. void ScriptParticleSystemSettings::Internal_setmesh(ScriptParticleSystemSettings* thisPtr, MonoObject* value)
  96. {
  97. ResourceHandle<Mesh> tmpvalue;
  98. ScriptRRefBase* scriptvalue;
  99. scriptvalue = ScriptRRefBase::toNative(value);
  100. if(scriptvalue != nullptr)
  101. tmpvalue = static_resource_cast<Mesh>(scriptvalue->getHandle());
  102. thisPtr->getInternal()->mesh = tmpvalue;
  103. }
  104. bool ScriptParticleSystemSettings::Internal_getgpuSimulation(ScriptParticleSystemSettings* thisPtr)
  105. {
  106. bool tmp__output;
  107. tmp__output = thisPtr->getInternal()->gpuSimulation;
  108. bool __output;
  109. __output = tmp__output;
  110. return __output;
  111. }
  112. void ScriptParticleSystemSettings::Internal_setgpuSimulation(ScriptParticleSystemSettings* thisPtr, bool value)
  113. {
  114. thisPtr->getInternal()->gpuSimulation = value;
  115. }
  116. ParticleSimulationSpace ScriptParticleSystemSettings::Internal_getsimulationSpace(ScriptParticleSystemSettings* thisPtr)
  117. {
  118. ParticleSimulationSpace tmp__output;
  119. tmp__output = thisPtr->getInternal()->simulationSpace;
  120. ParticleSimulationSpace __output;
  121. __output = tmp__output;
  122. return __output;
  123. }
  124. void ScriptParticleSystemSettings::Internal_setsimulationSpace(ScriptParticleSystemSettings* thisPtr, ParticleSimulationSpace value)
  125. {
  126. thisPtr->getInternal()->simulationSpace = value;
  127. }
  128. ParticleOrientation ScriptParticleSystemSettings::Internal_getorientation(ScriptParticleSystemSettings* thisPtr)
  129. {
  130. ParticleOrientation tmp__output;
  131. tmp__output = thisPtr->getInternal()->orientation;
  132. ParticleOrientation __output;
  133. __output = tmp__output;
  134. return __output;
  135. }
  136. void ScriptParticleSystemSettings::Internal_setorientation(ScriptParticleSystemSettings* thisPtr, ParticleOrientation value)
  137. {
  138. thisPtr->getInternal()->orientation = value;
  139. }
  140. bool ScriptParticleSystemSettings::Internal_getorientationLockY(ScriptParticleSystemSettings* thisPtr)
  141. {
  142. bool tmp__output;
  143. tmp__output = thisPtr->getInternal()->orientationLockY;
  144. bool __output;
  145. __output = tmp__output;
  146. return __output;
  147. }
  148. void ScriptParticleSystemSettings::Internal_setorientationLockY(ScriptParticleSystemSettings* thisPtr, bool value)
  149. {
  150. thisPtr->getInternal()->orientationLockY = value;
  151. }
  152. void ScriptParticleSystemSettings::Internal_getorientationPlane(ScriptParticleSystemSettings* thisPtr, Plane* __output)
  153. {
  154. Plane tmp__output;
  155. tmp__output = thisPtr->getInternal()->orientationPlane;
  156. *__output = tmp__output;
  157. }
  158. void ScriptParticleSystemSettings::Internal_setorientationPlane(ScriptParticleSystemSettings* thisPtr, Plane* value)
  159. {
  160. thisPtr->getInternal()->orientationPlane = *value;
  161. }
  162. ParticleSortMode ScriptParticleSystemSettings::Internal_getsortMode(ScriptParticleSystemSettings* thisPtr)
  163. {
  164. ParticleSortMode tmp__output;
  165. tmp__output = thisPtr->getInternal()->sortMode;
  166. ParticleSortMode __output;
  167. __output = tmp__output;
  168. return __output;
  169. }
  170. void ScriptParticleSystemSettings::Internal_setsortMode(ScriptParticleSystemSettings* thisPtr, ParticleSortMode value)
  171. {
  172. thisPtr->getInternal()->sortMode = value;
  173. }
  174. float ScriptParticleSystemSettings::Internal_getduration(ScriptParticleSystemSettings* thisPtr)
  175. {
  176. float tmp__output;
  177. tmp__output = thisPtr->getInternal()->duration;
  178. float __output;
  179. __output = tmp__output;
  180. return __output;
  181. }
  182. void ScriptParticleSystemSettings::Internal_setduration(ScriptParticleSystemSettings* thisPtr, float value)
  183. {
  184. thisPtr->getInternal()->duration = value;
  185. }
  186. bool ScriptParticleSystemSettings::Internal_getisLooping(ScriptParticleSystemSettings* thisPtr)
  187. {
  188. bool tmp__output;
  189. tmp__output = thisPtr->getInternal()->isLooping;
  190. bool __output;
  191. __output = tmp__output;
  192. return __output;
  193. }
  194. void ScriptParticleSystemSettings::Internal_setisLooping(ScriptParticleSystemSettings* thisPtr, bool value)
  195. {
  196. thisPtr->getInternal()->isLooping = value;
  197. }
  198. uint32_t ScriptParticleSystemSettings::Internal_getmaxParticles(ScriptParticleSystemSettings* thisPtr)
  199. {
  200. uint32_t tmp__output;
  201. tmp__output = thisPtr->getInternal()->maxParticles;
  202. uint32_t __output;
  203. __output = tmp__output;
  204. return __output;
  205. }
  206. void ScriptParticleSystemSettings::Internal_setmaxParticles(ScriptParticleSystemSettings* thisPtr, uint32_t value)
  207. {
  208. thisPtr->getInternal()->maxParticles = value;
  209. }
  210. bool ScriptParticleSystemSettings::Internal_getuseAutomaticSeed(ScriptParticleSystemSettings* thisPtr)
  211. {
  212. bool tmp__output;
  213. tmp__output = thisPtr->getInternal()->useAutomaticSeed;
  214. bool __output;
  215. __output = tmp__output;
  216. return __output;
  217. }
  218. void ScriptParticleSystemSettings::Internal_setuseAutomaticSeed(ScriptParticleSystemSettings* thisPtr, bool value)
  219. {
  220. thisPtr->getInternal()->useAutomaticSeed = value;
  221. }
  222. uint32_t ScriptParticleSystemSettings::Internal_getmanualSeed(ScriptParticleSystemSettings* thisPtr)
  223. {
  224. uint32_t tmp__output;
  225. tmp__output = thisPtr->getInternal()->manualSeed;
  226. uint32_t __output;
  227. __output = tmp__output;
  228. return __output;
  229. }
  230. void ScriptParticleSystemSettings::Internal_setmanualSeed(ScriptParticleSystemSettings* thisPtr, uint32_t value)
  231. {
  232. thisPtr->getInternal()->manualSeed = value;
  233. }
  234. bool ScriptParticleSystemSettings::Internal_getuseAutomaticBounds(ScriptParticleSystemSettings* thisPtr)
  235. {
  236. bool tmp__output;
  237. tmp__output = thisPtr->getInternal()->useAutomaticBounds;
  238. bool __output;
  239. __output = tmp__output;
  240. return __output;
  241. }
  242. void ScriptParticleSystemSettings::Internal_setuseAutomaticBounds(ScriptParticleSystemSettings* thisPtr, bool value)
  243. {
  244. thisPtr->getInternal()->useAutomaticBounds = value;
  245. }
  246. void ScriptParticleSystemSettings::Internal_getcustomBounds(ScriptParticleSystemSettings* thisPtr, AABox* __output)
  247. {
  248. AABox tmp__output;
  249. tmp__output = thisPtr->getInternal()->customBounds;
  250. *__output = tmp__output;
  251. }
  252. void ScriptParticleSystemSettings::Internal_setcustomBounds(ScriptParticleSystemSettings* thisPtr, AABox* value)
  253. {
  254. thisPtr->getInternal()->customBounds = *value;
  255. }
  256. ParticleRenderMode ScriptParticleSystemSettings::Internal_getrenderMode(ScriptParticleSystemSettings* thisPtr)
  257. {
  258. ParticleRenderMode tmp__output;
  259. tmp__output = thisPtr->getInternal()->renderMode;
  260. ParticleRenderMode __output;
  261. __output = tmp__output;
  262. return __output;
  263. }
  264. void ScriptParticleSystemSettings::Internal_setrenderMode(ScriptParticleSystemSettings* thisPtr, ParticleRenderMode value)
  265. {
  266. thisPtr->getInternal()->renderMode = value;
  267. }
  268. }