MusicMgrWrap.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class MusicMgrWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(MusicMgr), typeof(SingletonMono<MusicMgr>));
  9. L.RegFunction("InitMgr", InitMgr);
  10. L.RegFunction("PreloadFightSound", PreloadFightSound);
  11. L.RegFunction("PreloadUISound", PreloadUISound);
  12. L.RegFunction("PlayFightSound", PlayFightSound);
  13. L.RegFunction("PlayUISound", PlayUISound);
  14. L.RegFunction("PlaySound", PlaySound);
  15. L.RegFunction("PlayBGMusic", PlayBGMusic);
  16. L.RegFunction("PlayBGMusicWithLoop", PlayBGMusicWithLoop);
  17. L.RegFunction("RemoveAllSound", RemoveAllSound);
  18. L.RegFunction("Update", Update);
  19. L.RegFunction("RemoveSound", RemoveSound);
  20. L.RegFunction("SaveSetting", SaveSetting);
  21. L.RegFunction("Clean", Clean);
  22. L.RegFunction("StopAllMusic", StopAllMusic);
  23. L.RegFunction("CleanBeforeChangeScene", CleanBeforeChangeScene);
  24. L.RegFunction("CleanFightSound", CleanFightSound);
  25. L.RegFunction("CleanBGMusic", CleanBGMusic);
  26. L.RegFunction("__eq", op_Equality);
  27. L.RegFunction("__tostring", ToLua.op_ToString);
  28. L.RegVar("music_battle_default", get_music_battle_default, set_music_battle_default);
  29. L.RegVar("music_main_city", get_music_main_city, set_music_main_city);
  30. L.RegVar("music_battle", get_music_battle, set_music_battle);
  31. L.RegVar("Listener", get_Listener, null);
  32. L.RegVar("MuteMusic", get_MuteMusic, set_MuteMusic);
  33. L.RegVar("InternalMuteMusic", get_InternalMuteMusic, set_InternalMuteMusic);
  34. L.RegVar("MuteSound", get_MuteSound, set_MuteSound);
  35. L.RegVar("SoundVolume", get_SoundVolume, set_SoundVolume);
  36. L.RegVar("MusicVolume", get_MusicVolume, set_MusicVolume);
  37. L.RegVar("CurrentMusicName", get_CurrentMusicName, null);
  38. L.EndClass();
  39. }
  40. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  41. static int InitMgr(IntPtr L)
  42. {
  43. try
  44. {
  45. ToLua.CheckArgsCount(L, 1);
  46. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  47. obj.InitMgr();
  48. return 0;
  49. }
  50. catch (Exception e)
  51. {
  52. return LuaDLL.toluaL_exception(L, e);
  53. }
  54. }
  55. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  56. static int PreloadFightSound(IntPtr L)
  57. {
  58. try
  59. {
  60. ToLua.CheckArgsCount(L, 2);
  61. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  62. string[] arg0 = ToLua.CheckStringArray(L, 2);
  63. long o = obj.PreloadFightSound(arg0);
  64. LuaDLL.tolua_pushint64(L, o);
  65. return 1;
  66. }
  67. catch (Exception e)
  68. {
  69. return LuaDLL.toluaL_exception(L, e);
  70. }
  71. }
  72. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  73. static int PreloadUISound(IntPtr L)
  74. {
  75. try
  76. {
  77. ToLua.CheckArgsCount(L, 2);
  78. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  79. string[] arg0 = ToLua.CheckStringArray(L, 2);
  80. obj.PreloadUISound(arg0);
  81. return 0;
  82. }
  83. catch (Exception e)
  84. {
  85. return LuaDLL.toluaL_exception(L, e);
  86. }
  87. }
  88. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  89. static int PlayFightSound(IntPtr L)
  90. {
  91. try
  92. {
  93. int count = LuaDLL.lua_gettop(L);
  94. if (count == 2)
  95. {
  96. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  97. string arg0 = ToLua.CheckString(L, 2);
  98. obj.PlayFightSound(arg0);
  99. return 0;
  100. }
  101. else if (count == 3)
  102. {
  103. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  104. string arg0 = ToLua.CheckString(L, 2);
  105. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  106. obj.PlayFightSound(arg0, arg1);
  107. return 0;
  108. }
  109. else
  110. {
  111. return LuaDLL.luaL_throw(L, "invalid arguments to method: MusicMgr.PlayFightSound");
  112. }
  113. }
  114. catch (Exception e)
  115. {
  116. return LuaDLL.toluaL_exception(L, e);
  117. }
  118. }
  119. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  120. static int PlayUISound(IntPtr L)
  121. {
  122. try
  123. {
  124. int count = LuaDLL.lua_gettop(L);
  125. if (count == 3)
  126. {
  127. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  128. string arg0 = ToLua.CheckString(L, 2);
  129. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  130. obj.PlayUISound(arg0, arg1);
  131. return 0;
  132. }
  133. else if (count == 4)
  134. {
  135. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  136. string arg0 = ToLua.CheckString(L, 2);
  137. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  138. bool arg2 = LuaDLL.luaL_checkboolean(L, 4);
  139. obj.PlayUISound(arg0, arg1, arg2);
  140. return 0;
  141. }
  142. else
  143. {
  144. return LuaDLL.luaL_throw(L, "invalid arguments to method: MusicMgr.PlayUISound");
  145. }
  146. }
  147. catch (Exception e)
  148. {
  149. return LuaDLL.toluaL_exception(L, e);
  150. }
  151. }
  152. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  153. static int PlaySound(IntPtr L)
  154. {
  155. try
  156. {
  157. int count = LuaDLL.lua_gettop(L);
  158. if (count == 2)
  159. {
  160. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  161. UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioClip));
  162. obj.PlaySound(arg0);
  163. return 0;
  164. }
  165. else if (count == 3 && TypeChecker.CheckTypes<string, string>(L, 2))
  166. {
  167. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  168. string arg0 = ToLua.ToString(L, 2);
  169. string arg1 = ToLua.ToString(L, 3);
  170. obj.PlaySound(arg0, arg1);
  171. return 0;
  172. }
  173. else if (count == 3 && TypeChecker.CheckTypes<UnityEngine.AudioClip, bool>(L, 2))
  174. {
  175. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  176. UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.ToObject(L, 2);
  177. bool arg1 = LuaDLL.lua_toboolean(L, 3);
  178. obj.PlaySound(arg0, arg1);
  179. return 0;
  180. }
  181. else if (count == 4 && TypeChecker.CheckTypes<string, string, bool>(L, 2))
  182. {
  183. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  184. string arg0 = ToLua.ToString(L, 2);
  185. string arg1 = ToLua.ToString(L, 3);
  186. bool arg2 = LuaDLL.lua_toboolean(L, 4);
  187. obj.PlaySound(arg0, arg1, arg2);
  188. return 0;
  189. }
  190. else if (count == 4 && TypeChecker.CheckTypes<UnityEngine.AudioClip, bool, bool>(L, 2))
  191. {
  192. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  193. UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.ToObject(L, 2);
  194. bool arg1 = LuaDLL.lua_toboolean(L, 3);
  195. bool arg2 = LuaDLL.lua_toboolean(L, 4);
  196. obj.PlaySound(arg0, arg1, arg2);
  197. return 0;
  198. }
  199. else if (count == 5)
  200. {
  201. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  202. UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioClip));
  203. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  204. bool arg2 = LuaDLL.luaL_checkboolean(L, 4);
  205. bool arg3 = LuaDLL.luaL_checkboolean(L, 5);
  206. obj.PlaySound(arg0, arg1, arg2, arg3);
  207. return 0;
  208. }
  209. else
  210. {
  211. return LuaDLL.luaL_throw(L, "invalid arguments to method: MusicMgr.PlaySound");
  212. }
  213. }
  214. catch (Exception e)
  215. {
  216. return LuaDLL.toluaL_exception(L, e);
  217. }
  218. }
  219. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  220. static int PlayBGMusic(IntPtr L)
  221. {
  222. try
  223. {
  224. ToLua.CheckArgsCount(L, 2);
  225. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  226. string arg0 = ToLua.CheckString(L, 2);
  227. obj.PlayBGMusic(arg0);
  228. return 0;
  229. }
  230. catch (Exception e)
  231. {
  232. return LuaDLL.toluaL_exception(L, e);
  233. }
  234. }
  235. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  236. static int PlayBGMusicWithLoop(IntPtr L)
  237. {
  238. try
  239. {
  240. ToLua.CheckArgsCount(L, 3);
  241. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  242. string arg0 = ToLua.CheckString(L, 2);
  243. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  244. obj.PlayBGMusicWithLoop(arg0, arg1);
  245. return 0;
  246. }
  247. catch (Exception e)
  248. {
  249. return LuaDLL.toluaL_exception(L, e);
  250. }
  251. }
  252. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  253. static int RemoveAllSound(IntPtr L)
  254. {
  255. try
  256. {
  257. ToLua.CheckArgsCount(L, 1);
  258. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  259. obj.RemoveAllSound();
  260. return 0;
  261. }
  262. catch (Exception e)
  263. {
  264. return LuaDLL.toluaL_exception(L, e);
  265. }
  266. }
  267. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  268. static int Update(IntPtr L)
  269. {
  270. try
  271. {
  272. ToLua.CheckArgsCount(L, 1);
  273. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  274. obj.Update();
  275. return 0;
  276. }
  277. catch (Exception e)
  278. {
  279. return LuaDLL.toluaL_exception(L, e);
  280. }
  281. }
  282. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  283. static int RemoveSound(IntPtr L)
  284. {
  285. try
  286. {
  287. ToLua.CheckArgsCount(L, 2);
  288. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  289. string arg0 = ToLua.CheckString(L, 2);
  290. obj.RemoveSound(arg0);
  291. return 0;
  292. }
  293. catch (Exception e)
  294. {
  295. return LuaDLL.toluaL_exception(L, e);
  296. }
  297. }
  298. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  299. static int SaveSetting(IntPtr L)
  300. {
  301. try
  302. {
  303. ToLua.CheckArgsCount(L, 1);
  304. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  305. obj.SaveSetting();
  306. return 0;
  307. }
  308. catch (Exception e)
  309. {
  310. return LuaDLL.toluaL_exception(L, e);
  311. }
  312. }
  313. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  314. static int Clean(IntPtr L)
  315. {
  316. try
  317. {
  318. ToLua.CheckArgsCount(L, 1);
  319. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  320. obj.Clean();
  321. return 0;
  322. }
  323. catch (Exception e)
  324. {
  325. return LuaDLL.toluaL_exception(L, e);
  326. }
  327. }
  328. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  329. static int StopAllMusic(IntPtr L)
  330. {
  331. try
  332. {
  333. ToLua.CheckArgsCount(L, 1);
  334. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  335. obj.StopAllMusic();
  336. return 0;
  337. }
  338. catch (Exception e)
  339. {
  340. return LuaDLL.toluaL_exception(L, e);
  341. }
  342. }
  343. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  344. static int CleanBeforeChangeScene(IntPtr L)
  345. {
  346. try
  347. {
  348. ToLua.CheckArgsCount(L, 1);
  349. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  350. obj.CleanBeforeChangeScene();
  351. return 0;
  352. }
  353. catch (Exception e)
  354. {
  355. return LuaDLL.toluaL_exception(L, e);
  356. }
  357. }
  358. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  359. static int CleanFightSound(IntPtr L)
  360. {
  361. try
  362. {
  363. ToLua.CheckArgsCount(L, 1);
  364. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  365. obj.CleanFightSound();
  366. return 0;
  367. }
  368. catch (Exception e)
  369. {
  370. return LuaDLL.toluaL_exception(L, e);
  371. }
  372. }
  373. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  374. static int CleanBGMusic(IntPtr L)
  375. {
  376. try
  377. {
  378. ToLua.CheckArgsCount(L, 1);
  379. MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
  380. obj.CleanBGMusic();
  381. return 0;
  382. }
  383. catch (Exception e)
  384. {
  385. return LuaDLL.toluaL_exception(L, e);
  386. }
  387. }
  388. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  389. static int op_Equality(IntPtr L)
  390. {
  391. try
  392. {
  393. ToLua.CheckArgsCount(L, 2);
  394. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  395. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  396. bool o = arg0 == arg1;
  397. LuaDLL.lua_pushboolean(L, o);
  398. return 1;
  399. }
  400. catch (Exception e)
  401. {
  402. return LuaDLL.toluaL_exception(L, e);
  403. }
  404. }
  405. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  406. static int get_music_battle_default(IntPtr L)
  407. {
  408. try
  409. {
  410. LuaDLL.lua_pushstring(L, MusicMgr.music_battle_default);
  411. return 1;
  412. }
  413. catch (Exception e)
  414. {
  415. return LuaDLL.toluaL_exception(L, e);
  416. }
  417. }
  418. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  419. static int get_music_main_city(IntPtr L)
  420. {
  421. try
  422. {
  423. LuaDLL.lua_pushstring(L, MusicMgr.music_main_city);
  424. return 1;
  425. }
  426. catch (Exception e)
  427. {
  428. return LuaDLL.toluaL_exception(L, e);
  429. }
  430. }
  431. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  432. static int get_music_battle(IntPtr L)
  433. {
  434. try
  435. {
  436. LuaDLL.lua_pushstring(L, MusicMgr.music_battle);
  437. return 1;
  438. }
  439. catch (Exception e)
  440. {
  441. return LuaDLL.toluaL_exception(L, e);
  442. }
  443. }
  444. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  445. static int get_Listener(IntPtr L)
  446. {
  447. object o = null;
  448. try
  449. {
  450. o = ToLua.ToObject(L, 1);
  451. MusicMgr obj = (MusicMgr)o;
  452. UnityEngine.AudioListener ret = obj.Listener;
  453. ToLua.PushSealed(L, ret);
  454. return 1;
  455. }
  456. catch(Exception e)
  457. {
  458. return LuaDLL.toluaL_exception(L, e, o, "attempt to index Listener on a nil value");
  459. }
  460. }
  461. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  462. static int get_MuteMusic(IntPtr L)
  463. {
  464. object o = null;
  465. try
  466. {
  467. o = ToLua.ToObject(L, 1);
  468. MusicMgr obj = (MusicMgr)o;
  469. bool ret = obj.MuteMusic;
  470. LuaDLL.lua_pushboolean(L, ret);
  471. return 1;
  472. }
  473. catch(Exception e)
  474. {
  475. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MuteMusic on a nil value");
  476. }
  477. }
  478. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  479. static int get_InternalMuteMusic(IntPtr L)
  480. {
  481. object o = null;
  482. try
  483. {
  484. o = ToLua.ToObject(L, 1);
  485. MusicMgr obj = (MusicMgr)o;
  486. bool ret = obj.InternalMuteMusic;
  487. LuaDLL.lua_pushboolean(L, ret);
  488. return 1;
  489. }
  490. catch(Exception e)
  491. {
  492. return LuaDLL.toluaL_exception(L, e, o, "attempt to index InternalMuteMusic on a nil value");
  493. }
  494. }
  495. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  496. static int get_MuteSound(IntPtr L)
  497. {
  498. object o = null;
  499. try
  500. {
  501. o = ToLua.ToObject(L, 1);
  502. MusicMgr obj = (MusicMgr)o;
  503. bool ret = obj.MuteSound;
  504. LuaDLL.lua_pushboolean(L, ret);
  505. return 1;
  506. }
  507. catch(Exception e)
  508. {
  509. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MuteSound on a nil value");
  510. }
  511. }
  512. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  513. static int get_SoundVolume(IntPtr L)
  514. {
  515. object o = null;
  516. try
  517. {
  518. o = ToLua.ToObject(L, 1);
  519. MusicMgr obj = (MusicMgr)o;
  520. float ret = obj.SoundVolume;
  521. LuaDLL.lua_pushnumber(L, ret);
  522. return 1;
  523. }
  524. catch(Exception e)
  525. {
  526. return LuaDLL.toluaL_exception(L, e, o, "attempt to index SoundVolume on a nil value");
  527. }
  528. }
  529. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  530. static int get_MusicVolume(IntPtr L)
  531. {
  532. object o = null;
  533. try
  534. {
  535. o = ToLua.ToObject(L, 1);
  536. MusicMgr obj = (MusicMgr)o;
  537. float ret = obj.MusicVolume;
  538. LuaDLL.lua_pushnumber(L, ret);
  539. return 1;
  540. }
  541. catch(Exception e)
  542. {
  543. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MusicVolume on a nil value");
  544. }
  545. }
  546. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  547. static int get_CurrentMusicName(IntPtr L)
  548. {
  549. object o = null;
  550. try
  551. {
  552. o = ToLua.ToObject(L, 1);
  553. MusicMgr obj = (MusicMgr)o;
  554. string ret = obj.CurrentMusicName;
  555. LuaDLL.lua_pushstring(L, ret);
  556. return 1;
  557. }
  558. catch(Exception e)
  559. {
  560. return LuaDLL.toluaL_exception(L, e, o, "attempt to index CurrentMusicName on a nil value");
  561. }
  562. }
  563. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  564. static int set_music_battle_default(IntPtr L)
  565. {
  566. try
  567. {
  568. string arg0 = ToLua.CheckString(L, 2);
  569. MusicMgr.music_battle_default = arg0;
  570. return 0;
  571. }
  572. catch (Exception e)
  573. {
  574. return LuaDLL.toluaL_exception(L, e);
  575. }
  576. }
  577. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  578. static int set_music_main_city(IntPtr L)
  579. {
  580. try
  581. {
  582. string arg0 = ToLua.CheckString(L, 2);
  583. MusicMgr.music_main_city = arg0;
  584. return 0;
  585. }
  586. catch (Exception e)
  587. {
  588. return LuaDLL.toluaL_exception(L, e);
  589. }
  590. }
  591. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  592. static int set_music_battle(IntPtr L)
  593. {
  594. try
  595. {
  596. string arg0 = ToLua.CheckString(L, 2);
  597. MusicMgr.music_battle = arg0;
  598. return 0;
  599. }
  600. catch (Exception e)
  601. {
  602. return LuaDLL.toluaL_exception(L, e);
  603. }
  604. }
  605. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  606. static int set_MuteMusic(IntPtr L)
  607. {
  608. object o = null;
  609. try
  610. {
  611. o = ToLua.ToObject(L, 1);
  612. MusicMgr obj = (MusicMgr)o;
  613. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  614. obj.MuteMusic = arg0;
  615. return 0;
  616. }
  617. catch(Exception e)
  618. {
  619. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MuteMusic on a nil value");
  620. }
  621. }
  622. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  623. static int set_InternalMuteMusic(IntPtr L)
  624. {
  625. object o = null;
  626. try
  627. {
  628. o = ToLua.ToObject(L, 1);
  629. MusicMgr obj = (MusicMgr)o;
  630. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  631. obj.InternalMuteMusic = arg0;
  632. return 0;
  633. }
  634. catch(Exception e)
  635. {
  636. return LuaDLL.toluaL_exception(L, e, o, "attempt to index InternalMuteMusic on a nil value");
  637. }
  638. }
  639. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  640. static int set_MuteSound(IntPtr L)
  641. {
  642. object o = null;
  643. try
  644. {
  645. o = ToLua.ToObject(L, 1);
  646. MusicMgr obj = (MusicMgr)o;
  647. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  648. obj.MuteSound = arg0;
  649. return 0;
  650. }
  651. catch(Exception e)
  652. {
  653. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MuteSound on a nil value");
  654. }
  655. }
  656. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  657. static int set_SoundVolume(IntPtr L)
  658. {
  659. object o = null;
  660. try
  661. {
  662. o = ToLua.ToObject(L, 1);
  663. MusicMgr obj = (MusicMgr)o;
  664. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  665. obj.SoundVolume = arg0;
  666. return 0;
  667. }
  668. catch(Exception e)
  669. {
  670. return LuaDLL.toluaL_exception(L, e, o, "attempt to index SoundVolume on a nil value");
  671. }
  672. }
  673. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  674. static int set_MusicVolume(IntPtr L)
  675. {
  676. object o = null;
  677. try
  678. {
  679. o = ToLua.ToObject(L, 1);
  680. MusicMgr obj = (MusicMgr)o;
  681. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  682. obj.MusicVolume = arg0;
  683. return 0;
  684. }
  685. catch(Exception e)
  686. {
  687. return LuaDLL.toluaL_exception(L, e, o, "attempt to index MusicVolume on a nil value");
  688. }
  689. }
  690. }