UnityEngine_AudioSourceWrap.cs 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using DG.Tweening;
  4. using LuaInterface;
  5. public class UnityEngine_AudioSourceWrap
  6. {
  7. public static void Register(LuaState L)
  8. {
  9. L.BeginClass(typeof(UnityEngine.AudioSource), typeof(UnityEngine.AudioBehaviour));
  10. L.RegFunction("Play", Play);
  11. L.RegFunction("PlayDelayed", PlayDelayed);
  12. L.RegFunction("PlayScheduled", PlayScheduled);
  13. L.RegFunction("SetScheduledStartTime", SetScheduledStartTime);
  14. L.RegFunction("SetScheduledEndTime", SetScheduledEndTime);
  15. L.RegFunction("Stop", Stop);
  16. L.RegFunction("Pause", Pause);
  17. L.RegFunction("UnPause", UnPause);
  18. L.RegFunction("PlayOneShot", PlayOneShot);
  19. L.RegFunction("PlayClipAtPoint", PlayClipAtPoint);
  20. L.RegFunction("SetCustomCurve", SetCustomCurve);
  21. L.RegFunction("GetCustomCurve", GetCustomCurve);
  22. L.RegFunction("GetOutputData", GetOutputData);
  23. L.RegFunction("GetSpectrumData", GetSpectrumData);
  24. L.RegFunction("SetSpatializerFloat", SetSpatializerFloat);
  25. L.RegFunction("GetSpatializerFloat", GetSpatializerFloat);
  26. L.RegFunction("SetAmbisonicDecoderFloat", SetAmbisonicDecoderFloat);
  27. L.RegFunction("GetAmbisonicDecoderFloat", GetAmbisonicDecoderFloat);
  28. L.RegFunction("DOTogglePause", DOTogglePause);
  29. L.RegFunction("DOSmoothRewind", DOSmoothRewind);
  30. L.RegFunction("DORewind", DORewind);
  31. L.RegFunction("DORestart", DORestart);
  32. L.RegFunction("DOPlayForward", DOPlayForward);
  33. L.RegFunction("DOPlayBackwards", DOPlayBackwards);
  34. L.RegFunction("DOPlay", DOPlay);
  35. L.RegFunction("DOPause", DOPause);
  36. L.RegFunction("DOGoto", DOGoto);
  37. L.RegFunction("DOFlip", DOFlip);
  38. L.RegFunction("DOKill", DOKill);
  39. L.RegFunction("DOComplete", DOComplete);
  40. L.RegFunction("New", _CreateUnityEngine_AudioSource);
  41. L.RegFunction("__eq", op_Equality);
  42. L.RegFunction("__tostring", ToLua.op_ToString);
  43. L.RegVar("volume", get_volume, set_volume);
  44. L.RegVar("pitch", get_pitch, set_pitch);
  45. L.RegVar("time", get_time, set_time);
  46. L.RegVar("timeSamples", get_timeSamples, set_timeSamples);
  47. L.RegVar("clip", get_clip, set_clip);
  48. L.RegVar("outputAudioMixerGroup", get_outputAudioMixerGroup, set_outputAudioMixerGroup);
  49. L.RegVar("isPlaying", get_isPlaying, null);
  50. L.RegVar("isVirtual", get_isVirtual, null);
  51. L.RegVar("loop", get_loop, set_loop);
  52. L.RegVar("ignoreListenerVolume", get_ignoreListenerVolume, set_ignoreListenerVolume);
  53. L.RegVar("playOnAwake", get_playOnAwake, set_playOnAwake);
  54. L.RegVar("ignoreListenerPause", get_ignoreListenerPause, set_ignoreListenerPause);
  55. L.RegVar("velocityUpdateMode", get_velocityUpdateMode, set_velocityUpdateMode);
  56. L.RegVar("panStereo", get_panStereo, set_panStereo);
  57. L.RegVar("spatialBlend", get_spatialBlend, set_spatialBlend);
  58. L.RegVar("spatialize", get_spatialize, set_spatialize);
  59. L.RegVar("spatializePostEffects", get_spatializePostEffects, set_spatializePostEffects);
  60. L.RegVar("reverbZoneMix", get_reverbZoneMix, set_reverbZoneMix);
  61. L.RegVar("bypassEffects", get_bypassEffects, set_bypassEffects);
  62. L.RegVar("bypassListenerEffects", get_bypassListenerEffects, set_bypassListenerEffects);
  63. L.RegVar("bypassReverbZones", get_bypassReverbZones, set_bypassReverbZones);
  64. L.RegVar("dopplerLevel", get_dopplerLevel, set_dopplerLevel);
  65. L.RegVar("spread", get_spread, set_spread);
  66. L.RegVar("priority", get_priority, set_priority);
  67. L.RegVar("mute", get_mute, set_mute);
  68. L.RegVar("minDistance", get_minDistance, set_minDistance);
  69. L.RegVar("maxDistance", get_maxDistance, set_maxDistance);
  70. L.RegVar("rolloffMode", get_rolloffMode, set_rolloffMode);
  71. L.EndClass();
  72. }
  73. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  74. static int _CreateUnityEngine_AudioSource(IntPtr L)
  75. {
  76. try
  77. {
  78. int count = LuaDLL.lua_gettop(L);
  79. if (count == 0)
  80. {
  81. UnityEngine.AudioSource obj = new UnityEngine.AudioSource();
  82. ToLua.PushSealed(L, obj);
  83. return 1;
  84. }
  85. else
  86. {
  87. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.AudioSource.New");
  88. }
  89. }
  90. catch (Exception e)
  91. {
  92. return LuaDLL.toluaL_exception(L, e);
  93. }
  94. }
  95. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  96. static int Play(IntPtr L)
  97. {
  98. try
  99. {
  100. int count = LuaDLL.lua_gettop(L);
  101. if (count == 1)
  102. {
  103. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  104. obj.Play();
  105. return 0;
  106. }
  107. else if (count == 2)
  108. {
  109. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  110. ulong arg0 = LuaDLL.tolua_checkuint64(L, 2);
  111. obj.Play(arg0);
  112. return 0;
  113. }
  114. else
  115. {
  116. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.AudioSource.Play");
  117. }
  118. }
  119. catch (Exception e)
  120. {
  121. return LuaDLL.toluaL_exception(L, e);
  122. }
  123. }
  124. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  125. static int PlayDelayed(IntPtr L)
  126. {
  127. try
  128. {
  129. ToLua.CheckArgsCount(L, 2);
  130. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  131. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  132. obj.PlayDelayed(arg0);
  133. return 0;
  134. }
  135. catch (Exception e)
  136. {
  137. return LuaDLL.toluaL_exception(L, e);
  138. }
  139. }
  140. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  141. static int PlayScheduled(IntPtr L)
  142. {
  143. try
  144. {
  145. ToLua.CheckArgsCount(L, 2);
  146. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  147. double arg0 = (double)LuaDLL.luaL_checknumber(L, 2);
  148. obj.PlayScheduled(arg0);
  149. return 0;
  150. }
  151. catch (Exception e)
  152. {
  153. return LuaDLL.toluaL_exception(L, e);
  154. }
  155. }
  156. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  157. static int SetScheduledStartTime(IntPtr L)
  158. {
  159. try
  160. {
  161. ToLua.CheckArgsCount(L, 2);
  162. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  163. double arg0 = (double)LuaDLL.luaL_checknumber(L, 2);
  164. obj.SetScheduledStartTime(arg0);
  165. return 0;
  166. }
  167. catch (Exception e)
  168. {
  169. return LuaDLL.toluaL_exception(L, e);
  170. }
  171. }
  172. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  173. static int SetScheduledEndTime(IntPtr L)
  174. {
  175. try
  176. {
  177. ToLua.CheckArgsCount(L, 2);
  178. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  179. double arg0 = (double)LuaDLL.luaL_checknumber(L, 2);
  180. obj.SetScheduledEndTime(arg0);
  181. return 0;
  182. }
  183. catch (Exception e)
  184. {
  185. return LuaDLL.toluaL_exception(L, e);
  186. }
  187. }
  188. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  189. static int Stop(IntPtr L)
  190. {
  191. try
  192. {
  193. ToLua.CheckArgsCount(L, 1);
  194. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  195. obj.Stop();
  196. return 0;
  197. }
  198. catch (Exception e)
  199. {
  200. return LuaDLL.toluaL_exception(L, e);
  201. }
  202. }
  203. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  204. static int Pause(IntPtr L)
  205. {
  206. try
  207. {
  208. ToLua.CheckArgsCount(L, 1);
  209. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  210. obj.Pause();
  211. return 0;
  212. }
  213. catch (Exception e)
  214. {
  215. return LuaDLL.toluaL_exception(L, e);
  216. }
  217. }
  218. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  219. static int UnPause(IntPtr L)
  220. {
  221. try
  222. {
  223. ToLua.CheckArgsCount(L, 1);
  224. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  225. obj.UnPause();
  226. return 0;
  227. }
  228. catch (Exception e)
  229. {
  230. return LuaDLL.toluaL_exception(L, e);
  231. }
  232. }
  233. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  234. static int PlayOneShot(IntPtr L)
  235. {
  236. try
  237. {
  238. int count = LuaDLL.lua_gettop(L);
  239. if (count == 2)
  240. {
  241. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  242. UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioClip));
  243. obj.PlayOneShot(arg0);
  244. return 0;
  245. }
  246. else if (count == 3)
  247. {
  248. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  249. UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioClip));
  250. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  251. obj.PlayOneShot(arg0, arg1);
  252. return 0;
  253. }
  254. else
  255. {
  256. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.AudioSource.PlayOneShot");
  257. }
  258. }
  259. catch (Exception e)
  260. {
  261. return LuaDLL.toluaL_exception(L, e);
  262. }
  263. }
  264. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  265. static int PlayClipAtPoint(IntPtr L)
  266. {
  267. try
  268. {
  269. int count = LuaDLL.lua_gettop(L);
  270. if (count == 2)
  271. {
  272. UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioClip));
  273. UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 2);
  274. UnityEngine.AudioSource.PlayClipAtPoint(arg0, arg1);
  275. return 0;
  276. }
  277. else if (count == 3)
  278. {
  279. UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioClip));
  280. UnityEngine.Vector3 arg1 = ToLua.ToVector3(L, 2);
  281. float arg2 = (float)LuaDLL.luaL_checknumber(L, 3);
  282. UnityEngine.AudioSource.PlayClipAtPoint(arg0, arg1, arg2);
  283. return 0;
  284. }
  285. else
  286. {
  287. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.AudioSource.PlayClipAtPoint");
  288. }
  289. }
  290. catch (Exception e)
  291. {
  292. return LuaDLL.toluaL_exception(L, e);
  293. }
  294. }
  295. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  296. static int SetCustomCurve(IntPtr L)
  297. {
  298. try
  299. {
  300. ToLua.CheckArgsCount(L, 3);
  301. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  302. UnityEngine.AudioSourceCurveType arg0 = (UnityEngine.AudioSourceCurveType)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioSourceCurveType));
  303. UnityEngine.AnimationCurve arg1 = (UnityEngine.AnimationCurve)ToLua.CheckObject<UnityEngine.AnimationCurve>(L, 3);
  304. obj.SetCustomCurve(arg0, arg1);
  305. return 0;
  306. }
  307. catch (Exception e)
  308. {
  309. return LuaDLL.toluaL_exception(L, e);
  310. }
  311. }
  312. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  313. static int GetCustomCurve(IntPtr L)
  314. {
  315. try
  316. {
  317. ToLua.CheckArgsCount(L, 2);
  318. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  319. UnityEngine.AudioSourceCurveType arg0 = (UnityEngine.AudioSourceCurveType)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioSourceCurveType));
  320. UnityEngine.AnimationCurve o = obj.GetCustomCurve(arg0);
  321. ToLua.PushObject(L, o);
  322. return 1;
  323. }
  324. catch (Exception e)
  325. {
  326. return LuaDLL.toluaL_exception(L, e);
  327. }
  328. }
  329. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  330. static int GetOutputData(IntPtr L)
  331. {
  332. try
  333. {
  334. ToLua.CheckArgsCount(L, 3);
  335. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  336. float[] arg0 = ToLua.CheckNumberArray<float>(L, 2);
  337. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  338. obj.GetOutputData(arg0, arg1);
  339. return 0;
  340. }
  341. catch (Exception e)
  342. {
  343. return LuaDLL.toluaL_exception(L, e);
  344. }
  345. }
  346. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  347. static int GetSpectrumData(IntPtr L)
  348. {
  349. try
  350. {
  351. ToLua.CheckArgsCount(L, 4);
  352. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  353. float[] arg0 = ToLua.CheckNumberArray<float>(L, 2);
  354. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  355. UnityEngine.FFTWindow arg2 = (UnityEngine.FFTWindow)ToLua.CheckObject(L, 4, typeof(UnityEngine.FFTWindow));
  356. obj.GetSpectrumData(arg0, arg1, arg2);
  357. return 0;
  358. }
  359. catch (Exception e)
  360. {
  361. return LuaDLL.toluaL_exception(L, e);
  362. }
  363. }
  364. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  365. static int SetSpatializerFloat(IntPtr L)
  366. {
  367. try
  368. {
  369. ToLua.CheckArgsCount(L, 3);
  370. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  371. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  372. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  373. bool o = obj.SetSpatializerFloat(arg0, arg1);
  374. LuaDLL.lua_pushboolean(L, o);
  375. return 1;
  376. }
  377. catch (Exception e)
  378. {
  379. return LuaDLL.toluaL_exception(L, e);
  380. }
  381. }
  382. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  383. static int GetSpatializerFloat(IntPtr L)
  384. {
  385. try
  386. {
  387. ToLua.CheckArgsCount(L, 3);
  388. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  389. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  390. float arg1;
  391. bool o = obj.GetSpatializerFloat(arg0, out arg1);
  392. LuaDLL.lua_pushboolean(L, o);
  393. LuaDLL.lua_pushnumber(L, arg1);
  394. return 2;
  395. }
  396. catch (Exception e)
  397. {
  398. return LuaDLL.toluaL_exception(L, e);
  399. }
  400. }
  401. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  402. static int SetAmbisonicDecoderFloat(IntPtr L)
  403. {
  404. try
  405. {
  406. ToLua.CheckArgsCount(L, 3);
  407. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  408. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  409. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  410. bool o = obj.SetAmbisonicDecoderFloat(arg0, arg1);
  411. LuaDLL.lua_pushboolean(L, o);
  412. return 1;
  413. }
  414. catch (Exception e)
  415. {
  416. return LuaDLL.toluaL_exception(L, e);
  417. }
  418. }
  419. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  420. static int GetAmbisonicDecoderFloat(IntPtr L)
  421. {
  422. try
  423. {
  424. ToLua.CheckArgsCount(L, 3);
  425. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  426. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  427. float arg1;
  428. bool o = obj.GetAmbisonicDecoderFloat(arg0, out arg1);
  429. LuaDLL.lua_pushboolean(L, o);
  430. LuaDLL.lua_pushnumber(L, arg1);
  431. return 2;
  432. }
  433. catch (Exception e)
  434. {
  435. return LuaDLL.toluaL_exception(L, e);
  436. }
  437. }
  438. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  439. static int DOTogglePause(IntPtr L)
  440. {
  441. try
  442. {
  443. ToLua.CheckArgsCount(L, 1);
  444. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  445. int o = obj.DOTogglePause();
  446. LuaDLL.lua_pushinteger(L, o);
  447. return 1;
  448. }
  449. catch (Exception e)
  450. {
  451. return LuaDLL.toluaL_exception(L, e);
  452. }
  453. }
  454. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  455. static int DOSmoothRewind(IntPtr L)
  456. {
  457. try
  458. {
  459. ToLua.CheckArgsCount(L, 1);
  460. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  461. int o = obj.DOSmoothRewind();
  462. LuaDLL.lua_pushinteger(L, o);
  463. return 1;
  464. }
  465. catch (Exception e)
  466. {
  467. return LuaDLL.toluaL_exception(L, e);
  468. }
  469. }
  470. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  471. static int DORewind(IntPtr L)
  472. {
  473. try
  474. {
  475. int count = LuaDLL.lua_gettop(L);
  476. if (count == 1)
  477. {
  478. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  479. int o = obj.DORewind();
  480. LuaDLL.lua_pushinteger(L, o);
  481. return 1;
  482. }
  483. else if (count == 2)
  484. {
  485. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  486. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  487. int o = obj.DORewind(arg0);
  488. LuaDLL.lua_pushinteger(L, o);
  489. return 1;
  490. }
  491. else
  492. {
  493. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.AudioSource.DORewind");
  494. }
  495. }
  496. catch (Exception e)
  497. {
  498. return LuaDLL.toluaL_exception(L, e);
  499. }
  500. }
  501. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  502. static int DORestart(IntPtr L)
  503. {
  504. try
  505. {
  506. int count = LuaDLL.lua_gettop(L);
  507. if (count == 1)
  508. {
  509. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  510. int o = obj.DORestart();
  511. LuaDLL.lua_pushinteger(L, o);
  512. return 1;
  513. }
  514. else if (count == 2)
  515. {
  516. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  517. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  518. int o = obj.DORestart(arg0);
  519. LuaDLL.lua_pushinteger(L, o);
  520. return 1;
  521. }
  522. else
  523. {
  524. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.AudioSource.DORestart");
  525. }
  526. }
  527. catch (Exception e)
  528. {
  529. return LuaDLL.toluaL_exception(L, e);
  530. }
  531. }
  532. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  533. static int DOPlayForward(IntPtr L)
  534. {
  535. try
  536. {
  537. ToLua.CheckArgsCount(L, 1);
  538. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  539. int o = obj.DOPlayForward();
  540. LuaDLL.lua_pushinteger(L, o);
  541. return 1;
  542. }
  543. catch (Exception e)
  544. {
  545. return LuaDLL.toluaL_exception(L, e);
  546. }
  547. }
  548. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  549. static int DOPlayBackwards(IntPtr L)
  550. {
  551. try
  552. {
  553. ToLua.CheckArgsCount(L, 1);
  554. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  555. int o = obj.DOPlayBackwards();
  556. LuaDLL.lua_pushinteger(L, o);
  557. return 1;
  558. }
  559. catch (Exception e)
  560. {
  561. return LuaDLL.toluaL_exception(L, e);
  562. }
  563. }
  564. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  565. static int DOPlay(IntPtr L)
  566. {
  567. try
  568. {
  569. ToLua.CheckArgsCount(L, 1);
  570. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  571. int o = obj.DOPlay();
  572. LuaDLL.lua_pushinteger(L, o);
  573. return 1;
  574. }
  575. catch (Exception e)
  576. {
  577. return LuaDLL.toluaL_exception(L, e);
  578. }
  579. }
  580. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  581. static int DOPause(IntPtr L)
  582. {
  583. try
  584. {
  585. ToLua.CheckArgsCount(L, 1);
  586. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  587. int o = obj.DOPause();
  588. LuaDLL.lua_pushinteger(L, o);
  589. return 1;
  590. }
  591. catch (Exception e)
  592. {
  593. return LuaDLL.toluaL_exception(L, e);
  594. }
  595. }
  596. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  597. static int DOGoto(IntPtr L)
  598. {
  599. try
  600. {
  601. int count = LuaDLL.lua_gettop(L);
  602. if (count == 2)
  603. {
  604. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  605. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  606. int o = obj.DOGoto(arg0);
  607. LuaDLL.lua_pushinteger(L, o);
  608. return 1;
  609. }
  610. else if (count == 3)
  611. {
  612. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  613. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  614. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  615. int o = obj.DOGoto(arg0, arg1);
  616. LuaDLL.lua_pushinteger(L, o);
  617. return 1;
  618. }
  619. else
  620. {
  621. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.AudioSource.DOGoto");
  622. }
  623. }
  624. catch (Exception e)
  625. {
  626. return LuaDLL.toluaL_exception(L, e);
  627. }
  628. }
  629. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  630. static int DOFlip(IntPtr L)
  631. {
  632. try
  633. {
  634. ToLua.CheckArgsCount(L, 1);
  635. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  636. int o = obj.DOFlip();
  637. LuaDLL.lua_pushinteger(L, o);
  638. return 1;
  639. }
  640. catch (Exception e)
  641. {
  642. return LuaDLL.toluaL_exception(L, e);
  643. }
  644. }
  645. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  646. static int DOKill(IntPtr L)
  647. {
  648. try
  649. {
  650. int count = LuaDLL.lua_gettop(L);
  651. if (count == 1)
  652. {
  653. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  654. int o = obj.DOKill();
  655. LuaDLL.lua_pushinteger(L, o);
  656. return 1;
  657. }
  658. else if (count == 2)
  659. {
  660. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  661. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  662. int o = obj.DOKill(arg0);
  663. LuaDLL.lua_pushinteger(L, o);
  664. return 1;
  665. }
  666. else
  667. {
  668. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.AudioSource.DOKill");
  669. }
  670. }
  671. catch (Exception e)
  672. {
  673. return LuaDLL.toluaL_exception(L, e);
  674. }
  675. }
  676. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  677. static int DOComplete(IntPtr L)
  678. {
  679. try
  680. {
  681. int count = LuaDLL.lua_gettop(L);
  682. if (count == 1)
  683. {
  684. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  685. int o = obj.DOComplete();
  686. LuaDLL.lua_pushinteger(L, o);
  687. return 1;
  688. }
  689. else if (count == 2)
  690. {
  691. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)ToLua.CheckObject(L, 1, typeof(UnityEngine.AudioSource));
  692. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  693. int o = obj.DOComplete(arg0);
  694. LuaDLL.lua_pushinteger(L, o);
  695. return 1;
  696. }
  697. else
  698. {
  699. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.AudioSource.DOComplete");
  700. }
  701. }
  702. catch (Exception e)
  703. {
  704. return LuaDLL.toluaL_exception(L, e);
  705. }
  706. }
  707. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  708. static int op_Equality(IntPtr L)
  709. {
  710. try
  711. {
  712. ToLua.CheckArgsCount(L, 2);
  713. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  714. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  715. bool o = arg0 == arg1;
  716. LuaDLL.lua_pushboolean(L, o);
  717. return 1;
  718. }
  719. catch (Exception e)
  720. {
  721. return LuaDLL.toluaL_exception(L, e);
  722. }
  723. }
  724. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  725. static int get_volume(IntPtr L)
  726. {
  727. object o = null;
  728. try
  729. {
  730. o = ToLua.ToObject(L, 1);
  731. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  732. float ret = obj.volume;
  733. LuaDLL.lua_pushnumber(L, ret);
  734. return 1;
  735. }
  736. catch(Exception e)
  737. {
  738. return LuaDLL.toluaL_exception(L, e, o, "attempt to index volume on a nil value");
  739. }
  740. }
  741. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  742. static int get_pitch(IntPtr L)
  743. {
  744. object o = null;
  745. try
  746. {
  747. o = ToLua.ToObject(L, 1);
  748. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  749. float ret = obj.pitch;
  750. LuaDLL.lua_pushnumber(L, ret);
  751. return 1;
  752. }
  753. catch(Exception e)
  754. {
  755. return LuaDLL.toluaL_exception(L, e, o, "attempt to index pitch on a nil value");
  756. }
  757. }
  758. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  759. static int get_time(IntPtr L)
  760. {
  761. object o = null;
  762. try
  763. {
  764. o = ToLua.ToObject(L, 1);
  765. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  766. float ret = obj.time;
  767. LuaDLL.lua_pushnumber(L, ret);
  768. return 1;
  769. }
  770. catch(Exception e)
  771. {
  772. return LuaDLL.toluaL_exception(L, e, o, "attempt to index time on a nil value");
  773. }
  774. }
  775. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  776. static int get_timeSamples(IntPtr L)
  777. {
  778. object o = null;
  779. try
  780. {
  781. o = ToLua.ToObject(L, 1);
  782. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  783. int ret = obj.timeSamples;
  784. LuaDLL.lua_pushinteger(L, ret);
  785. return 1;
  786. }
  787. catch(Exception e)
  788. {
  789. return LuaDLL.toluaL_exception(L, e, o, "attempt to index timeSamples on a nil value");
  790. }
  791. }
  792. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  793. static int get_clip(IntPtr L)
  794. {
  795. object o = null;
  796. try
  797. {
  798. o = ToLua.ToObject(L, 1);
  799. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  800. UnityEngine.AudioClip ret = obj.clip;
  801. ToLua.PushSealed(L, ret);
  802. return 1;
  803. }
  804. catch(Exception e)
  805. {
  806. return LuaDLL.toluaL_exception(L, e, o, "attempt to index clip on a nil value");
  807. }
  808. }
  809. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  810. static int get_outputAudioMixerGroup(IntPtr L)
  811. {
  812. object o = null;
  813. try
  814. {
  815. o = ToLua.ToObject(L, 1);
  816. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  817. UnityEngine.Audio.AudioMixerGroup ret = obj.outputAudioMixerGroup;
  818. ToLua.Push(L, ret);
  819. return 1;
  820. }
  821. catch(Exception e)
  822. {
  823. return LuaDLL.toluaL_exception(L, e, o, "attempt to index outputAudioMixerGroup on a nil value");
  824. }
  825. }
  826. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  827. static int get_isPlaying(IntPtr L)
  828. {
  829. object o = null;
  830. try
  831. {
  832. o = ToLua.ToObject(L, 1);
  833. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  834. bool ret = obj.isPlaying;
  835. LuaDLL.lua_pushboolean(L, ret);
  836. return 1;
  837. }
  838. catch(Exception e)
  839. {
  840. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isPlaying on a nil value");
  841. }
  842. }
  843. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  844. static int get_isVirtual(IntPtr L)
  845. {
  846. object o = null;
  847. try
  848. {
  849. o = ToLua.ToObject(L, 1);
  850. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  851. bool ret = obj.isVirtual;
  852. LuaDLL.lua_pushboolean(L, ret);
  853. return 1;
  854. }
  855. catch(Exception e)
  856. {
  857. return LuaDLL.toluaL_exception(L, e, o, "attempt to index isVirtual on a nil value");
  858. }
  859. }
  860. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  861. static int get_loop(IntPtr L)
  862. {
  863. object o = null;
  864. try
  865. {
  866. o = ToLua.ToObject(L, 1);
  867. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  868. bool ret = obj.loop;
  869. LuaDLL.lua_pushboolean(L, ret);
  870. return 1;
  871. }
  872. catch(Exception e)
  873. {
  874. return LuaDLL.toluaL_exception(L, e, o, "attempt to index loop on a nil value");
  875. }
  876. }
  877. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  878. static int get_ignoreListenerVolume(IntPtr L)
  879. {
  880. object o = null;
  881. try
  882. {
  883. o = ToLua.ToObject(L, 1);
  884. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  885. bool ret = obj.ignoreListenerVolume;
  886. LuaDLL.lua_pushboolean(L, ret);
  887. return 1;
  888. }
  889. catch(Exception e)
  890. {
  891. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ignoreListenerVolume on a nil value");
  892. }
  893. }
  894. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  895. static int get_playOnAwake(IntPtr L)
  896. {
  897. object o = null;
  898. try
  899. {
  900. o = ToLua.ToObject(L, 1);
  901. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  902. bool ret = obj.playOnAwake;
  903. LuaDLL.lua_pushboolean(L, ret);
  904. return 1;
  905. }
  906. catch(Exception e)
  907. {
  908. return LuaDLL.toluaL_exception(L, e, o, "attempt to index playOnAwake on a nil value");
  909. }
  910. }
  911. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  912. static int get_ignoreListenerPause(IntPtr L)
  913. {
  914. object o = null;
  915. try
  916. {
  917. o = ToLua.ToObject(L, 1);
  918. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  919. bool ret = obj.ignoreListenerPause;
  920. LuaDLL.lua_pushboolean(L, ret);
  921. return 1;
  922. }
  923. catch(Exception e)
  924. {
  925. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ignoreListenerPause on a nil value");
  926. }
  927. }
  928. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  929. static int get_velocityUpdateMode(IntPtr L)
  930. {
  931. object o = null;
  932. try
  933. {
  934. o = ToLua.ToObject(L, 1);
  935. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  936. UnityEngine.AudioVelocityUpdateMode ret = obj.velocityUpdateMode;
  937. ToLua.Push(L, ret);
  938. return 1;
  939. }
  940. catch(Exception e)
  941. {
  942. return LuaDLL.toluaL_exception(L, e, o, "attempt to index velocityUpdateMode on a nil value");
  943. }
  944. }
  945. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  946. static int get_panStereo(IntPtr L)
  947. {
  948. object o = null;
  949. try
  950. {
  951. o = ToLua.ToObject(L, 1);
  952. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  953. float ret = obj.panStereo;
  954. LuaDLL.lua_pushnumber(L, ret);
  955. return 1;
  956. }
  957. catch(Exception e)
  958. {
  959. return LuaDLL.toluaL_exception(L, e, o, "attempt to index panStereo on a nil value");
  960. }
  961. }
  962. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  963. static int get_spatialBlend(IntPtr L)
  964. {
  965. object o = null;
  966. try
  967. {
  968. o = ToLua.ToObject(L, 1);
  969. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  970. float ret = obj.spatialBlend;
  971. LuaDLL.lua_pushnumber(L, ret);
  972. return 1;
  973. }
  974. catch(Exception e)
  975. {
  976. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spatialBlend on a nil value");
  977. }
  978. }
  979. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  980. static int get_spatialize(IntPtr L)
  981. {
  982. object o = null;
  983. try
  984. {
  985. o = ToLua.ToObject(L, 1);
  986. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  987. bool ret = obj.spatialize;
  988. LuaDLL.lua_pushboolean(L, ret);
  989. return 1;
  990. }
  991. catch(Exception e)
  992. {
  993. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spatialize on a nil value");
  994. }
  995. }
  996. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  997. static int get_spatializePostEffects(IntPtr L)
  998. {
  999. object o = null;
  1000. try
  1001. {
  1002. o = ToLua.ToObject(L, 1);
  1003. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1004. bool ret = obj.spatializePostEffects;
  1005. LuaDLL.lua_pushboolean(L, ret);
  1006. return 1;
  1007. }
  1008. catch(Exception e)
  1009. {
  1010. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spatializePostEffects on a nil value");
  1011. }
  1012. }
  1013. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1014. static int get_reverbZoneMix(IntPtr L)
  1015. {
  1016. object o = null;
  1017. try
  1018. {
  1019. o = ToLua.ToObject(L, 1);
  1020. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1021. float ret = obj.reverbZoneMix;
  1022. LuaDLL.lua_pushnumber(L, ret);
  1023. return 1;
  1024. }
  1025. catch(Exception e)
  1026. {
  1027. return LuaDLL.toluaL_exception(L, e, o, "attempt to index reverbZoneMix on a nil value");
  1028. }
  1029. }
  1030. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1031. static int get_bypassEffects(IntPtr L)
  1032. {
  1033. object o = null;
  1034. try
  1035. {
  1036. o = ToLua.ToObject(L, 1);
  1037. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1038. bool ret = obj.bypassEffects;
  1039. LuaDLL.lua_pushboolean(L, ret);
  1040. return 1;
  1041. }
  1042. catch(Exception e)
  1043. {
  1044. return LuaDLL.toluaL_exception(L, e, o, "attempt to index bypassEffects on a nil value");
  1045. }
  1046. }
  1047. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1048. static int get_bypassListenerEffects(IntPtr L)
  1049. {
  1050. object o = null;
  1051. try
  1052. {
  1053. o = ToLua.ToObject(L, 1);
  1054. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1055. bool ret = obj.bypassListenerEffects;
  1056. LuaDLL.lua_pushboolean(L, ret);
  1057. return 1;
  1058. }
  1059. catch(Exception e)
  1060. {
  1061. return LuaDLL.toluaL_exception(L, e, o, "attempt to index bypassListenerEffects on a nil value");
  1062. }
  1063. }
  1064. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1065. static int get_bypassReverbZones(IntPtr L)
  1066. {
  1067. object o = null;
  1068. try
  1069. {
  1070. o = ToLua.ToObject(L, 1);
  1071. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1072. bool ret = obj.bypassReverbZones;
  1073. LuaDLL.lua_pushboolean(L, ret);
  1074. return 1;
  1075. }
  1076. catch(Exception e)
  1077. {
  1078. return LuaDLL.toluaL_exception(L, e, o, "attempt to index bypassReverbZones on a nil value");
  1079. }
  1080. }
  1081. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1082. static int get_dopplerLevel(IntPtr L)
  1083. {
  1084. object o = null;
  1085. try
  1086. {
  1087. o = ToLua.ToObject(L, 1);
  1088. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1089. float ret = obj.dopplerLevel;
  1090. LuaDLL.lua_pushnumber(L, ret);
  1091. return 1;
  1092. }
  1093. catch(Exception e)
  1094. {
  1095. return LuaDLL.toluaL_exception(L, e, o, "attempt to index dopplerLevel on a nil value");
  1096. }
  1097. }
  1098. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1099. static int get_spread(IntPtr L)
  1100. {
  1101. object o = null;
  1102. try
  1103. {
  1104. o = ToLua.ToObject(L, 1);
  1105. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1106. float ret = obj.spread;
  1107. LuaDLL.lua_pushnumber(L, ret);
  1108. return 1;
  1109. }
  1110. catch(Exception e)
  1111. {
  1112. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spread on a nil value");
  1113. }
  1114. }
  1115. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1116. static int get_priority(IntPtr L)
  1117. {
  1118. object o = null;
  1119. try
  1120. {
  1121. o = ToLua.ToObject(L, 1);
  1122. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1123. int ret = obj.priority;
  1124. LuaDLL.lua_pushinteger(L, ret);
  1125. return 1;
  1126. }
  1127. catch(Exception e)
  1128. {
  1129. return LuaDLL.toluaL_exception(L, e, o, "attempt to index priority on a nil value");
  1130. }
  1131. }
  1132. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1133. static int get_mute(IntPtr L)
  1134. {
  1135. object o = null;
  1136. try
  1137. {
  1138. o = ToLua.ToObject(L, 1);
  1139. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1140. bool ret = obj.mute;
  1141. LuaDLL.lua_pushboolean(L, ret);
  1142. return 1;
  1143. }
  1144. catch(Exception e)
  1145. {
  1146. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mute on a nil value");
  1147. }
  1148. }
  1149. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1150. static int get_minDistance(IntPtr L)
  1151. {
  1152. object o = null;
  1153. try
  1154. {
  1155. o = ToLua.ToObject(L, 1);
  1156. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1157. float ret = obj.minDistance;
  1158. LuaDLL.lua_pushnumber(L, ret);
  1159. return 1;
  1160. }
  1161. catch(Exception e)
  1162. {
  1163. return LuaDLL.toluaL_exception(L, e, o, "attempt to index minDistance on a nil value");
  1164. }
  1165. }
  1166. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1167. static int get_maxDistance(IntPtr L)
  1168. {
  1169. object o = null;
  1170. try
  1171. {
  1172. o = ToLua.ToObject(L, 1);
  1173. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1174. float ret = obj.maxDistance;
  1175. LuaDLL.lua_pushnumber(L, ret);
  1176. return 1;
  1177. }
  1178. catch(Exception e)
  1179. {
  1180. return LuaDLL.toluaL_exception(L, e, o, "attempt to index maxDistance on a nil value");
  1181. }
  1182. }
  1183. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1184. static int get_rolloffMode(IntPtr L)
  1185. {
  1186. object o = null;
  1187. try
  1188. {
  1189. o = ToLua.ToObject(L, 1);
  1190. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1191. UnityEngine.AudioRolloffMode ret = obj.rolloffMode;
  1192. ToLua.Push(L, ret);
  1193. return 1;
  1194. }
  1195. catch(Exception e)
  1196. {
  1197. return LuaDLL.toluaL_exception(L, e, o, "attempt to index rolloffMode on a nil value");
  1198. }
  1199. }
  1200. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1201. static int set_volume(IntPtr L)
  1202. {
  1203. object o = null;
  1204. try
  1205. {
  1206. o = ToLua.ToObject(L, 1);
  1207. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1208. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1209. obj.volume = arg0;
  1210. return 0;
  1211. }
  1212. catch(Exception e)
  1213. {
  1214. return LuaDLL.toluaL_exception(L, e, o, "attempt to index volume on a nil value");
  1215. }
  1216. }
  1217. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1218. static int set_pitch(IntPtr L)
  1219. {
  1220. object o = null;
  1221. try
  1222. {
  1223. o = ToLua.ToObject(L, 1);
  1224. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1225. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1226. obj.pitch = arg0;
  1227. return 0;
  1228. }
  1229. catch(Exception e)
  1230. {
  1231. return LuaDLL.toluaL_exception(L, e, o, "attempt to index pitch on a nil value");
  1232. }
  1233. }
  1234. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1235. static int set_time(IntPtr L)
  1236. {
  1237. object o = null;
  1238. try
  1239. {
  1240. o = ToLua.ToObject(L, 1);
  1241. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1242. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1243. obj.time = arg0;
  1244. return 0;
  1245. }
  1246. catch(Exception e)
  1247. {
  1248. return LuaDLL.toluaL_exception(L, e, o, "attempt to index time on a nil value");
  1249. }
  1250. }
  1251. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1252. static int set_timeSamples(IntPtr L)
  1253. {
  1254. object o = null;
  1255. try
  1256. {
  1257. o = ToLua.ToObject(L, 1);
  1258. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1259. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1260. obj.timeSamples = arg0;
  1261. return 0;
  1262. }
  1263. catch(Exception e)
  1264. {
  1265. return LuaDLL.toluaL_exception(L, e, o, "attempt to index timeSamples on a nil value");
  1266. }
  1267. }
  1268. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1269. static int set_clip(IntPtr L)
  1270. {
  1271. object o = null;
  1272. try
  1273. {
  1274. o = ToLua.ToObject(L, 1);
  1275. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1276. UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioClip));
  1277. obj.clip = arg0;
  1278. return 0;
  1279. }
  1280. catch(Exception e)
  1281. {
  1282. return LuaDLL.toluaL_exception(L, e, o, "attempt to index clip on a nil value");
  1283. }
  1284. }
  1285. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1286. static int set_outputAudioMixerGroup(IntPtr L)
  1287. {
  1288. object o = null;
  1289. try
  1290. {
  1291. o = ToLua.ToObject(L, 1);
  1292. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1293. UnityEngine.Audio.AudioMixerGroup arg0 = (UnityEngine.Audio.AudioMixerGroup)ToLua.CheckObject<UnityEngine.Audio.AudioMixerGroup>(L, 2);
  1294. obj.outputAudioMixerGroup = arg0;
  1295. return 0;
  1296. }
  1297. catch(Exception e)
  1298. {
  1299. return LuaDLL.toluaL_exception(L, e, o, "attempt to index outputAudioMixerGroup on a nil value");
  1300. }
  1301. }
  1302. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1303. static int set_loop(IntPtr L)
  1304. {
  1305. object o = null;
  1306. try
  1307. {
  1308. o = ToLua.ToObject(L, 1);
  1309. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1310. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1311. obj.loop = arg0;
  1312. return 0;
  1313. }
  1314. catch(Exception e)
  1315. {
  1316. return LuaDLL.toluaL_exception(L, e, o, "attempt to index loop on a nil value");
  1317. }
  1318. }
  1319. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1320. static int set_ignoreListenerVolume(IntPtr L)
  1321. {
  1322. object o = null;
  1323. try
  1324. {
  1325. o = ToLua.ToObject(L, 1);
  1326. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1327. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1328. obj.ignoreListenerVolume = arg0;
  1329. return 0;
  1330. }
  1331. catch(Exception e)
  1332. {
  1333. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ignoreListenerVolume on a nil value");
  1334. }
  1335. }
  1336. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1337. static int set_playOnAwake(IntPtr L)
  1338. {
  1339. object o = null;
  1340. try
  1341. {
  1342. o = ToLua.ToObject(L, 1);
  1343. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1344. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1345. obj.playOnAwake = arg0;
  1346. return 0;
  1347. }
  1348. catch(Exception e)
  1349. {
  1350. return LuaDLL.toluaL_exception(L, e, o, "attempt to index playOnAwake on a nil value");
  1351. }
  1352. }
  1353. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1354. static int set_ignoreListenerPause(IntPtr L)
  1355. {
  1356. object o = null;
  1357. try
  1358. {
  1359. o = ToLua.ToObject(L, 1);
  1360. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1361. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1362. obj.ignoreListenerPause = arg0;
  1363. return 0;
  1364. }
  1365. catch(Exception e)
  1366. {
  1367. return LuaDLL.toluaL_exception(L, e, o, "attempt to index ignoreListenerPause on a nil value");
  1368. }
  1369. }
  1370. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1371. static int set_velocityUpdateMode(IntPtr L)
  1372. {
  1373. object o = null;
  1374. try
  1375. {
  1376. o = ToLua.ToObject(L, 1);
  1377. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1378. UnityEngine.AudioVelocityUpdateMode arg0 = (UnityEngine.AudioVelocityUpdateMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioVelocityUpdateMode));
  1379. obj.velocityUpdateMode = arg0;
  1380. return 0;
  1381. }
  1382. catch(Exception e)
  1383. {
  1384. return LuaDLL.toluaL_exception(L, e, o, "attempt to index velocityUpdateMode on a nil value");
  1385. }
  1386. }
  1387. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1388. static int set_panStereo(IntPtr L)
  1389. {
  1390. object o = null;
  1391. try
  1392. {
  1393. o = ToLua.ToObject(L, 1);
  1394. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1395. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1396. obj.panStereo = arg0;
  1397. return 0;
  1398. }
  1399. catch(Exception e)
  1400. {
  1401. return LuaDLL.toluaL_exception(L, e, o, "attempt to index panStereo on a nil value");
  1402. }
  1403. }
  1404. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1405. static int set_spatialBlend(IntPtr L)
  1406. {
  1407. object o = null;
  1408. try
  1409. {
  1410. o = ToLua.ToObject(L, 1);
  1411. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1412. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1413. obj.spatialBlend = arg0;
  1414. return 0;
  1415. }
  1416. catch(Exception e)
  1417. {
  1418. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spatialBlend on a nil value");
  1419. }
  1420. }
  1421. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1422. static int set_spatialize(IntPtr L)
  1423. {
  1424. object o = null;
  1425. try
  1426. {
  1427. o = ToLua.ToObject(L, 1);
  1428. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1429. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1430. obj.spatialize = arg0;
  1431. return 0;
  1432. }
  1433. catch(Exception e)
  1434. {
  1435. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spatialize on a nil value");
  1436. }
  1437. }
  1438. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1439. static int set_spatializePostEffects(IntPtr L)
  1440. {
  1441. object o = null;
  1442. try
  1443. {
  1444. o = ToLua.ToObject(L, 1);
  1445. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1446. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1447. obj.spatializePostEffects = arg0;
  1448. return 0;
  1449. }
  1450. catch(Exception e)
  1451. {
  1452. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spatializePostEffects on a nil value");
  1453. }
  1454. }
  1455. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1456. static int set_reverbZoneMix(IntPtr L)
  1457. {
  1458. object o = null;
  1459. try
  1460. {
  1461. o = ToLua.ToObject(L, 1);
  1462. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1463. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1464. obj.reverbZoneMix = arg0;
  1465. return 0;
  1466. }
  1467. catch(Exception e)
  1468. {
  1469. return LuaDLL.toluaL_exception(L, e, o, "attempt to index reverbZoneMix on a nil value");
  1470. }
  1471. }
  1472. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1473. static int set_bypassEffects(IntPtr L)
  1474. {
  1475. object o = null;
  1476. try
  1477. {
  1478. o = ToLua.ToObject(L, 1);
  1479. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1480. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1481. obj.bypassEffects = arg0;
  1482. return 0;
  1483. }
  1484. catch(Exception e)
  1485. {
  1486. return LuaDLL.toluaL_exception(L, e, o, "attempt to index bypassEffects on a nil value");
  1487. }
  1488. }
  1489. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1490. static int set_bypassListenerEffects(IntPtr L)
  1491. {
  1492. object o = null;
  1493. try
  1494. {
  1495. o = ToLua.ToObject(L, 1);
  1496. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1497. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1498. obj.bypassListenerEffects = arg0;
  1499. return 0;
  1500. }
  1501. catch(Exception e)
  1502. {
  1503. return LuaDLL.toluaL_exception(L, e, o, "attempt to index bypassListenerEffects on a nil value");
  1504. }
  1505. }
  1506. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1507. static int set_bypassReverbZones(IntPtr L)
  1508. {
  1509. object o = null;
  1510. try
  1511. {
  1512. o = ToLua.ToObject(L, 1);
  1513. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1514. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1515. obj.bypassReverbZones = arg0;
  1516. return 0;
  1517. }
  1518. catch(Exception e)
  1519. {
  1520. return LuaDLL.toluaL_exception(L, e, o, "attempt to index bypassReverbZones on a nil value");
  1521. }
  1522. }
  1523. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1524. static int set_dopplerLevel(IntPtr L)
  1525. {
  1526. object o = null;
  1527. try
  1528. {
  1529. o = ToLua.ToObject(L, 1);
  1530. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1531. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1532. obj.dopplerLevel = arg0;
  1533. return 0;
  1534. }
  1535. catch(Exception e)
  1536. {
  1537. return LuaDLL.toluaL_exception(L, e, o, "attempt to index dopplerLevel on a nil value");
  1538. }
  1539. }
  1540. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1541. static int set_spread(IntPtr L)
  1542. {
  1543. object o = null;
  1544. try
  1545. {
  1546. o = ToLua.ToObject(L, 1);
  1547. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1548. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1549. obj.spread = arg0;
  1550. return 0;
  1551. }
  1552. catch(Exception e)
  1553. {
  1554. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spread on a nil value");
  1555. }
  1556. }
  1557. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1558. static int set_priority(IntPtr L)
  1559. {
  1560. object o = null;
  1561. try
  1562. {
  1563. o = ToLua.ToObject(L, 1);
  1564. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1565. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1566. obj.priority = arg0;
  1567. return 0;
  1568. }
  1569. catch(Exception e)
  1570. {
  1571. return LuaDLL.toluaL_exception(L, e, o, "attempt to index priority on a nil value");
  1572. }
  1573. }
  1574. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1575. static int set_mute(IntPtr L)
  1576. {
  1577. object o = null;
  1578. try
  1579. {
  1580. o = ToLua.ToObject(L, 1);
  1581. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1582. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  1583. obj.mute = arg0;
  1584. return 0;
  1585. }
  1586. catch(Exception e)
  1587. {
  1588. return LuaDLL.toluaL_exception(L, e, o, "attempt to index mute on a nil value");
  1589. }
  1590. }
  1591. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1592. static int set_minDistance(IntPtr L)
  1593. {
  1594. object o = null;
  1595. try
  1596. {
  1597. o = ToLua.ToObject(L, 1);
  1598. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1599. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1600. obj.minDistance = arg0;
  1601. return 0;
  1602. }
  1603. catch(Exception e)
  1604. {
  1605. return LuaDLL.toluaL_exception(L, e, o, "attempt to index minDistance on a nil value");
  1606. }
  1607. }
  1608. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1609. static int set_maxDistance(IntPtr L)
  1610. {
  1611. object o = null;
  1612. try
  1613. {
  1614. o = ToLua.ToObject(L, 1);
  1615. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1616. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1617. obj.maxDistance = arg0;
  1618. return 0;
  1619. }
  1620. catch(Exception e)
  1621. {
  1622. return LuaDLL.toluaL_exception(L, e, o, "attempt to index maxDistance on a nil value");
  1623. }
  1624. }
  1625. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1626. static int set_rolloffMode(IntPtr L)
  1627. {
  1628. object o = null;
  1629. try
  1630. {
  1631. o = ToLua.ToObject(L, 1);
  1632. UnityEngine.AudioSource obj = (UnityEngine.AudioSource)o;
  1633. UnityEngine.AudioRolloffMode arg0 = (UnityEngine.AudioRolloffMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioRolloffMode));
  1634. obj.rolloffMode = arg0;
  1635. return 0;
  1636. }
  1637. catch(Exception e)
  1638. {
  1639. return LuaDLL.toluaL_exception(L, e, o, "attempt to index rolloffMode on a nil value");
  1640. }
  1641. }
  1642. }