源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1494 lines
38 KiB

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