BsScriptCLight.generated.cpp 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. #include "BsScriptCLight.generated.h"
  2. #include "BsMonoMethod.h"
  3. #include "BsMonoClass.h"
  4. #include "BsMonoUtil.h"
  5. #include "../../../bsf/Source/Foundation/bsfCore/Components/BsCLight.h"
  6. #include "Wrappers/BsScriptColor.h"
  7. namespace bs
  8. {
  9. ScriptCLight::ScriptCLight(MonoObject* managedInstance, const GameObjectHandle<CLight>& value)
  10. :TScriptComponent(managedInstance, value)
  11. {
  12. }
  13. void ScriptCLight::initRuntimeData()
  14. {
  15. metaData.scriptClass->addInternalCall("Internal_setType", (void*)&ScriptCLight::Internal_setType);
  16. metaData.scriptClass->addInternalCall("Internal_getType", (void*)&ScriptCLight::Internal_getType);
  17. metaData.scriptClass->addInternalCall("Internal_setCastsShadow", (void*)&ScriptCLight::Internal_setCastsShadow);
  18. metaData.scriptClass->addInternalCall("Internal_getCastsShadow", (void*)&ScriptCLight::Internal_getCastsShadow);
  19. metaData.scriptClass->addInternalCall("Internal_setShadowBias", (void*)&ScriptCLight::Internal_setShadowBias);
  20. metaData.scriptClass->addInternalCall("Internal_getShadowBias", (void*)&ScriptCLight::Internal_getShadowBias);
  21. metaData.scriptClass->addInternalCall("Internal_setColor", (void*)&ScriptCLight::Internal_setColor);
  22. metaData.scriptClass->addInternalCall("Internal_getColor", (void*)&ScriptCLight::Internal_getColor);
  23. metaData.scriptClass->addInternalCall("Internal_setAttenuationRadius", (void*)&ScriptCLight::Internal_setAttenuationRadius);
  24. metaData.scriptClass->addInternalCall("Internal_getAttenuationRadius", (void*)&ScriptCLight::Internal_getAttenuationRadius);
  25. metaData.scriptClass->addInternalCall("Internal_setSourceRadius", (void*)&ScriptCLight::Internal_setSourceRadius);
  26. metaData.scriptClass->addInternalCall("Internal_getSourceRadius", (void*)&ScriptCLight::Internal_getSourceRadius);
  27. metaData.scriptClass->addInternalCall("Internal_setIntensity", (void*)&ScriptCLight::Internal_setIntensity);
  28. metaData.scriptClass->addInternalCall("Internal_getIntensity", (void*)&ScriptCLight::Internal_getIntensity);
  29. metaData.scriptClass->addInternalCall("Internal_setSpotAngle", (void*)&ScriptCLight::Internal_setSpotAngle);
  30. metaData.scriptClass->addInternalCall("Internal_getSpotAngle", (void*)&ScriptCLight::Internal_getSpotAngle);
  31. metaData.scriptClass->addInternalCall("Internal_setSpotFalloffAngle", (void*)&ScriptCLight::Internal_setSpotFalloffAngle);
  32. metaData.scriptClass->addInternalCall("Internal_getSpotFalloffAngle", (void*)&ScriptCLight::Internal_getSpotFalloffAngle);
  33. metaData.scriptClass->addInternalCall("Internal_setUseAutoAttenuation", (void*)&ScriptCLight::Internal_setUseAutoAttenuation);
  34. metaData.scriptClass->addInternalCall("Internal_getUseAutoAttenuation", (void*)&ScriptCLight::Internal_getUseAutoAttenuation);
  35. metaData.scriptClass->addInternalCall("Internal_getBounds", (void*)&ScriptCLight::Internal_getBounds);
  36. }
  37. void ScriptCLight::Internal_setType(ScriptCLight* thisPtr, LightType type)
  38. {
  39. thisPtr->getHandle()->setType(type);
  40. }
  41. LightType ScriptCLight::Internal_getType(ScriptCLight* thisPtr)
  42. {
  43. LightType tmp__output;
  44. tmp__output = thisPtr->getHandle()->getType();
  45. LightType __output;
  46. __output = tmp__output;
  47. return __output;
  48. }
  49. void ScriptCLight::Internal_setCastsShadow(ScriptCLight* thisPtr, bool castsShadow)
  50. {
  51. thisPtr->getHandle()->setCastsShadow(castsShadow);
  52. }
  53. bool ScriptCLight::Internal_getCastsShadow(ScriptCLight* thisPtr)
  54. {
  55. bool tmp__output;
  56. tmp__output = thisPtr->getHandle()->getCastsShadow();
  57. bool __output;
  58. __output = tmp__output;
  59. return __output;
  60. }
  61. void ScriptCLight::Internal_setShadowBias(ScriptCLight* thisPtr, float bias)
  62. {
  63. thisPtr->getHandle()->setShadowBias(bias);
  64. }
  65. float ScriptCLight::Internal_getShadowBias(ScriptCLight* thisPtr)
  66. {
  67. float tmp__output;
  68. tmp__output = thisPtr->getHandle()->getShadowBias();
  69. float __output;
  70. __output = tmp__output;
  71. return __output;
  72. }
  73. void ScriptCLight::Internal_setColor(ScriptCLight* thisPtr, Color* color)
  74. {
  75. thisPtr->getHandle()->setColor(*color);
  76. }
  77. void ScriptCLight::Internal_getColor(ScriptCLight* thisPtr, Color* __output)
  78. {
  79. Color tmp__output;
  80. tmp__output = thisPtr->getHandle()->getColor();
  81. *__output = tmp__output;
  82. }
  83. void ScriptCLight::Internal_setAttenuationRadius(ScriptCLight* thisPtr, float radius)
  84. {
  85. thisPtr->getHandle()->setAttenuationRadius(radius);
  86. }
  87. float ScriptCLight::Internal_getAttenuationRadius(ScriptCLight* thisPtr)
  88. {
  89. float tmp__output;
  90. tmp__output = thisPtr->getHandle()->getAttenuationRadius();
  91. float __output;
  92. __output = tmp__output;
  93. return __output;
  94. }
  95. void ScriptCLight::Internal_setSourceRadius(ScriptCLight* thisPtr, float radius)
  96. {
  97. thisPtr->getHandle()->setSourceRadius(radius);
  98. }
  99. float ScriptCLight::Internal_getSourceRadius(ScriptCLight* thisPtr)
  100. {
  101. float tmp__output;
  102. tmp__output = thisPtr->getHandle()->getSourceRadius();
  103. float __output;
  104. __output = tmp__output;
  105. return __output;
  106. }
  107. void ScriptCLight::Internal_setIntensity(ScriptCLight* thisPtr, float intensity)
  108. {
  109. thisPtr->getHandle()->setIntensity(intensity);
  110. }
  111. float ScriptCLight::Internal_getIntensity(ScriptCLight* thisPtr)
  112. {
  113. float tmp__output;
  114. tmp__output = thisPtr->getHandle()->getIntensity();
  115. float __output;
  116. __output = tmp__output;
  117. return __output;
  118. }
  119. void ScriptCLight::Internal_setSpotAngle(ScriptCLight* thisPtr, Degree* spotAngle)
  120. {
  121. thisPtr->getHandle()->setSpotAngle(*spotAngle);
  122. }
  123. void ScriptCLight::Internal_getSpotAngle(ScriptCLight* thisPtr, Degree* __output)
  124. {
  125. Degree tmp__output;
  126. tmp__output = thisPtr->getHandle()->getSpotAngle();
  127. *__output = tmp__output;
  128. }
  129. void ScriptCLight::Internal_setSpotFalloffAngle(ScriptCLight* thisPtr, Degree* spotAngle)
  130. {
  131. thisPtr->getHandle()->setSpotFalloffAngle(*spotAngle);
  132. }
  133. void ScriptCLight::Internal_getSpotFalloffAngle(ScriptCLight* thisPtr, Degree* __output)
  134. {
  135. Degree tmp__output;
  136. tmp__output = thisPtr->getHandle()->getSpotFalloffAngle();
  137. *__output = tmp__output;
  138. }
  139. void ScriptCLight::Internal_setUseAutoAttenuation(ScriptCLight* thisPtr, bool enabled)
  140. {
  141. thisPtr->getHandle()->setUseAutoAttenuation(enabled);
  142. }
  143. bool ScriptCLight::Internal_getUseAutoAttenuation(ScriptCLight* thisPtr)
  144. {
  145. bool tmp__output;
  146. tmp__output = thisPtr->getHandle()->getUseAutoAttenuation();
  147. bool __output;
  148. __output = tmp__output;
  149. return __output;
  150. }
  151. void ScriptCLight::Internal_getBounds(ScriptCLight* thisPtr, Sphere* __output)
  152. {
  153. Sphere tmp__output;
  154. tmp__output = thisPtr->getHandle()->getBounds();
  155. *__output = tmp__output;
  156. }
  157. }