| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- #include "BsScriptCLight.generated.h"
- #include "BsMonoMethod.h"
- #include "BsMonoClass.h"
- #include "BsMonoUtil.h"
- #include "../../../bsf/Source/Foundation/bsfCore/Components/BsCLight.h"
- #include "Wrappers/BsScriptColor.h"
- namespace bs
- {
- ScriptCLight::ScriptCLight(MonoObject* managedInstance, const GameObjectHandle<CLight>& value)
- :TScriptComponent(managedInstance, value)
- {
- }
- void ScriptCLight::initRuntimeData()
- {
- metaData.scriptClass->addInternalCall("Internal_setType", (void*)&ScriptCLight::Internal_setType);
- metaData.scriptClass->addInternalCall("Internal_getType", (void*)&ScriptCLight::Internal_getType);
- metaData.scriptClass->addInternalCall("Internal_setCastsShadow", (void*)&ScriptCLight::Internal_setCastsShadow);
- metaData.scriptClass->addInternalCall("Internal_getCastsShadow", (void*)&ScriptCLight::Internal_getCastsShadow);
- metaData.scriptClass->addInternalCall("Internal_setShadowBias", (void*)&ScriptCLight::Internal_setShadowBias);
- metaData.scriptClass->addInternalCall("Internal_getShadowBias", (void*)&ScriptCLight::Internal_getShadowBias);
- metaData.scriptClass->addInternalCall("Internal_setColor", (void*)&ScriptCLight::Internal_setColor);
- metaData.scriptClass->addInternalCall("Internal_getColor", (void*)&ScriptCLight::Internal_getColor);
- metaData.scriptClass->addInternalCall("Internal_setAttenuationRadius", (void*)&ScriptCLight::Internal_setAttenuationRadius);
- metaData.scriptClass->addInternalCall("Internal_getAttenuationRadius", (void*)&ScriptCLight::Internal_getAttenuationRadius);
- metaData.scriptClass->addInternalCall("Internal_setSourceRadius", (void*)&ScriptCLight::Internal_setSourceRadius);
- metaData.scriptClass->addInternalCall("Internal_getSourceRadius", (void*)&ScriptCLight::Internal_getSourceRadius);
- metaData.scriptClass->addInternalCall("Internal_setIntensity", (void*)&ScriptCLight::Internal_setIntensity);
- metaData.scriptClass->addInternalCall("Internal_getIntensity", (void*)&ScriptCLight::Internal_getIntensity);
- metaData.scriptClass->addInternalCall("Internal_setSpotAngle", (void*)&ScriptCLight::Internal_setSpotAngle);
- metaData.scriptClass->addInternalCall("Internal_getSpotAngle", (void*)&ScriptCLight::Internal_getSpotAngle);
- metaData.scriptClass->addInternalCall("Internal_setSpotFalloffAngle", (void*)&ScriptCLight::Internal_setSpotFalloffAngle);
- metaData.scriptClass->addInternalCall("Internal_getSpotFalloffAngle", (void*)&ScriptCLight::Internal_getSpotFalloffAngle);
- metaData.scriptClass->addInternalCall("Internal_setUseAutoAttenuation", (void*)&ScriptCLight::Internal_setUseAutoAttenuation);
- metaData.scriptClass->addInternalCall("Internal_getUseAutoAttenuation", (void*)&ScriptCLight::Internal_getUseAutoAttenuation);
- metaData.scriptClass->addInternalCall("Internal_getBounds", (void*)&ScriptCLight::Internal_getBounds);
- }
- void ScriptCLight::Internal_setType(ScriptCLight* thisPtr, LightType type)
- {
- thisPtr->getHandle()->setType(type);
- }
- LightType ScriptCLight::Internal_getType(ScriptCLight* thisPtr)
- {
- LightType tmp__output;
- tmp__output = thisPtr->getHandle()->getType();
- LightType __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptCLight::Internal_setCastsShadow(ScriptCLight* thisPtr, bool castsShadow)
- {
- thisPtr->getHandle()->setCastsShadow(castsShadow);
- }
- bool ScriptCLight::Internal_getCastsShadow(ScriptCLight* thisPtr)
- {
- bool tmp__output;
- tmp__output = thisPtr->getHandle()->getCastsShadow();
- bool __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptCLight::Internal_setShadowBias(ScriptCLight* thisPtr, float bias)
- {
- thisPtr->getHandle()->setShadowBias(bias);
- }
- float ScriptCLight::Internal_getShadowBias(ScriptCLight* thisPtr)
- {
- float tmp__output;
- tmp__output = thisPtr->getHandle()->getShadowBias();
- float __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptCLight::Internal_setColor(ScriptCLight* thisPtr, Color* color)
- {
- thisPtr->getHandle()->setColor(*color);
- }
- void ScriptCLight::Internal_getColor(ScriptCLight* thisPtr, Color* __output)
- {
- Color tmp__output;
- tmp__output = thisPtr->getHandle()->getColor();
- *__output = tmp__output;
- }
- void ScriptCLight::Internal_setAttenuationRadius(ScriptCLight* thisPtr, float radius)
- {
- thisPtr->getHandle()->setAttenuationRadius(radius);
- }
- float ScriptCLight::Internal_getAttenuationRadius(ScriptCLight* thisPtr)
- {
- float tmp__output;
- tmp__output = thisPtr->getHandle()->getAttenuationRadius();
- float __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptCLight::Internal_setSourceRadius(ScriptCLight* thisPtr, float radius)
- {
- thisPtr->getHandle()->setSourceRadius(radius);
- }
- float ScriptCLight::Internal_getSourceRadius(ScriptCLight* thisPtr)
- {
- float tmp__output;
- tmp__output = thisPtr->getHandle()->getSourceRadius();
- float __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptCLight::Internal_setIntensity(ScriptCLight* thisPtr, float intensity)
- {
- thisPtr->getHandle()->setIntensity(intensity);
- }
- float ScriptCLight::Internal_getIntensity(ScriptCLight* thisPtr)
- {
- float tmp__output;
- tmp__output = thisPtr->getHandle()->getIntensity();
- float __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptCLight::Internal_setSpotAngle(ScriptCLight* thisPtr, Degree* spotAngle)
- {
- thisPtr->getHandle()->setSpotAngle(*spotAngle);
- }
- void ScriptCLight::Internal_getSpotAngle(ScriptCLight* thisPtr, Degree* __output)
- {
- Degree tmp__output;
- tmp__output = thisPtr->getHandle()->getSpotAngle();
- *__output = tmp__output;
- }
- void ScriptCLight::Internal_setSpotFalloffAngle(ScriptCLight* thisPtr, Degree* spotAngle)
- {
- thisPtr->getHandle()->setSpotFalloffAngle(*spotAngle);
- }
- void ScriptCLight::Internal_getSpotFalloffAngle(ScriptCLight* thisPtr, Degree* __output)
- {
- Degree tmp__output;
- tmp__output = thisPtr->getHandle()->getSpotFalloffAngle();
- *__output = tmp__output;
- }
- void ScriptCLight::Internal_setUseAutoAttenuation(ScriptCLight* thisPtr, bool enabled)
- {
- thisPtr->getHandle()->setUseAutoAttenuation(enabled);
- }
- bool ScriptCLight::Internal_getUseAutoAttenuation(ScriptCLight* thisPtr)
- {
- bool tmp__output;
- tmp__output = thisPtr->getHandle()->getUseAutoAttenuation();
- bool __output;
- __output = tmp__output;
- return __output;
- }
- void ScriptCLight::Internal_getBounds(ScriptCLight* thisPtr, Sphere* __output)
- {
- Sphere tmp__output;
- tmp__output = thisPtr->getHandle()->getBounds();
- *__output = tmp__output;
- }
- }
|