BsScriptParticleSystemSettings.generated.cpp 13 KB

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