| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class MusicMgrWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(MusicMgr), typeof(SingletonMono<MusicMgr>));
- L.RegFunction("InitMgr", InitMgr);
- L.RegFunction("PreloadFightSound", PreloadFightSound);
- L.RegFunction("PreloadUISound", PreloadUISound);
- L.RegFunction("PlayFightSound", PlayFightSound);
- L.RegFunction("PlayUISound", PlayUISound);
- L.RegFunction("PlaySound", PlaySound);
- L.RegFunction("PlayBGMusic", PlayBGMusic);
- L.RegFunction("PlayBGMusicWithLoop", PlayBGMusicWithLoop);
- L.RegFunction("RemoveAllSound", RemoveAllSound);
- L.RegFunction("Update", Update);
- L.RegFunction("RemoveSound", RemoveSound);
- L.RegFunction("SaveSetting", SaveSetting);
- L.RegFunction("Clean", Clean);
- L.RegFunction("StopAllMusic", StopAllMusic);
- L.RegFunction("CleanBeforeChangeScene", CleanBeforeChangeScene);
- L.RegFunction("CleanFightSound", CleanFightSound);
- L.RegFunction("CleanBGMusic", CleanBGMusic);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("music_battle_default", get_music_battle_default, set_music_battle_default);
- L.RegVar("music_main_city", get_music_main_city, set_music_main_city);
- L.RegVar("music_battle", get_music_battle, set_music_battle);
- L.RegVar("Listener", get_Listener, null);
- L.RegVar("MuteMusic", get_MuteMusic, set_MuteMusic);
- L.RegVar("InternalMuteMusic", get_InternalMuteMusic, set_InternalMuteMusic);
- L.RegVar("MuteSound", get_MuteSound, set_MuteSound);
- L.RegVar("SoundVolume", get_SoundVolume, set_SoundVolume);
- L.RegVar("MusicVolume", get_MusicVolume, set_MusicVolume);
- L.RegVar("CurrentMusicName", get_CurrentMusicName, null);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int InitMgr(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- obj.InitMgr();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int PreloadFightSound(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- string[] arg0 = ToLua.CheckStringArray(L, 2);
- long o = obj.PreloadFightSound(arg0);
- LuaDLL.tolua_pushint64(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int PreloadUISound(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- string[] arg0 = ToLua.CheckStringArray(L, 2);
- obj.PreloadUISound(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int PlayFightSound(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 2)
- {
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- obj.PlayFightSound(arg0);
- return 0;
- }
- else if (count == 3)
- {
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
- obj.PlayFightSound(arg0, arg1);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: MusicMgr.PlayFightSound");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int PlayUISound(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 3)
- {
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
- obj.PlayUISound(arg0, arg1);
- return 0;
- }
- else if (count == 4)
- {
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
- bool arg2 = LuaDLL.luaL_checkboolean(L, 4);
- obj.PlayUISound(arg0, arg1, arg2);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: MusicMgr.PlayUISound");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int PlaySound(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 2)
- {
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioClip));
- obj.PlaySound(arg0);
- return 0;
- }
- else if (count == 3 && TypeChecker.CheckTypes<string, string>(L, 2))
- {
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- string arg0 = ToLua.ToString(L, 2);
- string arg1 = ToLua.ToString(L, 3);
- obj.PlaySound(arg0, arg1);
- return 0;
- }
- else if (count == 3 && TypeChecker.CheckTypes<UnityEngine.AudioClip, bool>(L, 2))
- {
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.ToObject(L, 2);
- bool arg1 = LuaDLL.lua_toboolean(L, 3);
- obj.PlaySound(arg0, arg1);
- return 0;
- }
- else if (count == 4 && TypeChecker.CheckTypes<string, string, bool>(L, 2))
- {
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- string arg0 = ToLua.ToString(L, 2);
- string arg1 = ToLua.ToString(L, 3);
- bool arg2 = LuaDLL.lua_toboolean(L, 4);
- obj.PlaySound(arg0, arg1, arg2);
- return 0;
- }
- else if (count == 4 && TypeChecker.CheckTypes<UnityEngine.AudioClip, bool, bool>(L, 2))
- {
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.ToObject(L, 2);
- bool arg1 = LuaDLL.lua_toboolean(L, 3);
- bool arg2 = LuaDLL.lua_toboolean(L, 4);
- obj.PlaySound(arg0, arg1, arg2);
- return 0;
- }
- else if (count == 5)
- {
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioClip));
- bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
- bool arg2 = LuaDLL.luaL_checkboolean(L, 4);
- bool arg3 = LuaDLL.luaL_checkboolean(L, 5);
- obj.PlaySound(arg0, arg1, arg2, arg3);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: MusicMgr.PlaySound");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int PlayBGMusic(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- obj.PlayBGMusic(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int PlayBGMusicWithLoop(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 3);
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
- obj.PlayBGMusicWithLoop(arg0, arg1);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int RemoveAllSound(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- obj.RemoveAllSound();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Update(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- obj.Update();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int RemoveSound(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- string arg0 = ToLua.CheckString(L, 2);
- obj.RemoveSound(arg0);
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SaveSetting(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- obj.SaveSetting();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Clean(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- obj.Clean();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int StopAllMusic(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- obj.StopAllMusic();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CleanBeforeChangeScene(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- obj.CleanBeforeChangeScene();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CleanFightSound(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- obj.CleanFightSound();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CleanBGMusic(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- MusicMgr obj = (MusicMgr)ToLua.CheckObject<MusicMgr>(L, 1);
- obj.CleanBGMusic();
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int op_Equality(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
- bool o = arg0 == arg1;
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_music_battle_default(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, MusicMgr.music_battle_default);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_music_main_city(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, MusicMgr.music_main_city);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_music_battle(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, MusicMgr.music_battle);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_Listener(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- MusicMgr obj = (MusicMgr)o;
- UnityEngine.AudioListener ret = obj.Listener;
- ToLua.PushSealed(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index Listener on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_MuteMusic(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- MusicMgr obj = (MusicMgr)o;
- bool ret = obj.MuteMusic;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index MuteMusic on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_InternalMuteMusic(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- MusicMgr obj = (MusicMgr)o;
- bool ret = obj.InternalMuteMusic;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index InternalMuteMusic on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_MuteSound(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- MusicMgr obj = (MusicMgr)o;
- bool ret = obj.MuteSound;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index MuteSound on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_SoundVolume(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- MusicMgr obj = (MusicMgr)o;
- float ret = obj.SoundVolume;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index SoundVolume on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_MusicVolume(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- MusicMgr obj = (MusicMgr)o;
- float ret = obj.MusicVolume;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index MusicVolume on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_CurrentMusicName(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- MusicMgr obj = (MusicMgr)o;
- string ret = obj.CurrentMusicName;
- LuaDLL.lua_pushstring(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index CurrentMusicName on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_music_battle_default(IntPtr L)
- {
- try
- {
- string arg0 = ToLua.CheckString(L, 2);
- MusicMgr.music_battle_default = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_music_main_city(IntPtr L)
- {
- try
- {
- string arg0 = ToLua.CheckString(L, 2);
- MusicMgr.music_main_city = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_music_battle(IntPtr L)
- {
- try
- {
- string arg0 = ToLua.CheckString(L, 2);
- MusicMgr.music_battle = arg0;
- return 0;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_MuteMusic(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- MusicMgr obj = (MusicMgr)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.MuteMusic = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index MuteMusic on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_InternalMuteMusic(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- MusicMgr obj = (MusicMgr)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.InternalMuteMusic = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index InternalMuteMusic on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_MuteSound(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- MusicMgr obj = (MusicMgr)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.MuteSound = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index MuteSound on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_SoundVolume(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- MusicMgr obj = (MusicMgr)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.SoundVolume = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index SoundVolume on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_MusicVolume(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- MusicMgr obj = (MusicMgr)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.MusicVolume = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index MusicVolume on a nil value");
- }
- }
- }
|