732 lines
16 KiB
C#
732 lines
16 KiB
C#
|
|
//this source code was auto-generated by tolua#, do not modify it
|
|||
|
|
using System;
|
|||
|
|
using LuaInterface;
|
|||
|
|
|
|||
|
|
public class GameApplicationWrap
|
|||
|
|
{
|
|||
|
|
public static void Register(LuaState L)
|
|||
|
|
{
|
|||
|
|
L.BeginClass(typeof(GameApplication), typeof(UnityEngine.MonoBehaviour));
|
|||
|
|
L.RegFunction("RestartGame", RestartGame);
|
|||
|
|
L.RegFunction("UnExtendLua", UnExtendLua);
|
|||
|
|
L.RegFunction("ShareLink", ShareLink);
|
|||
|
|
L.RegFunction("CopyToClipboard", CopyToClipboard);
|
|||
|
|
L.RegFunction("GetBatteryLevel", GetBatteryLevel);
|
|||
|
|
L.RegFunction("InitBugly", InitBugly);
|
|||
|
|
L.RegFunction("SetBuglyUserID", SetBuglyUserID);
|
|||
|
|
L.RegFunction("AddBuglyUserValue", AddBuglyUserValue);
|
|||
|
|
L.RegFunction("WXLogin", WXLogin);
|
|||
|
|
L.RegFunction("GetRoomID", GetRoomID);
|
|||
|
|
L.RegFunction("PlayMuisc", PlayMuisc);
|
|||
|
|
L.RegFunction("PlayVoice", PlayVoice);
|
|||
|
|
L.RegFunction("PlaySound", PlaySound);
|
|||
|
|
L.RegFunction("InitBaiduMap", InitBaiduMap);
|
|||
|
|
L.RegFunction("__eq", op_Equality);
|
|||
|
|
L.RegFunction("__tostring", ToLua.op_ToString);
|
|||
|
|
L.RegVar("Instance", get_Instance, set_Instance);
|
|||
|
|
L.RegVar("buildApp", get_buildApp, set_buildApp);
|
|||
|
|
L.RegVar("printLog", get_printLog, set_printLog);
|
|||
|
|
L.RegVar("accountTest", get_accountTest, set_accountTest);
|
|||
|
|
L.RegVar("musicSource", get_musicSource, set_musicSource);
|
|||
|
|
L.RegVar("voiceSource", get_voiceSource, set_voiceSource);
|
|||
|
|
L.RegVar("HideSdk", get_HideSdk, set_HideSdk);
|
|||
|
|
L.RegVar("StopMusic", get_StopMusic, set_StopMusic);
|
|||
|
|
L.RegVar("GameInfo", get_GameInfo, set_GameInfo);
|
|||
|
|
L.RegVar("MusicValue", get_MusicValue, set_MusicValue);
|
|||
|
|
L.RegVar("SoundValue", get_SoundValue, set_SoundValue);
|
|||
|
|
L.EndClass();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int RestartGame(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
obj.RestartGame();
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int UnExtendLua(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 2);
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
LuaTable arg0 = ToLua.CheckLuaTable(L, 2);
|
|||
|
|
obj.UnExtendLua(arg0);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int ShareLink(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 4);
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|||
|
|
string arg1 = ToLua.CheckString(L, 3);
|
|||
|
|
LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
|
|||
|
|
obj.ShareLink(arg0, arg1, arg2);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int CopyToClipboard(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 2);
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|||
|
|
obj.CopyToClipboard(arg0);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int GetBatteryLevel(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
int o = obj.GetBatteryLevel();
|
|||
|
|
LuaDLL.lua_pushinteger(L, o);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int InitBugly(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 3);
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|||
|
|
string arg1 = ToLua.CheckString(L, 3);
|
|||
|
|
obj.InitBugly(arg0, arg1);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int SetBuglyUserID(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 2);
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|||
|
|
obj.SetBuglyUserID(arg0);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int AddBuglyUserValue(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 3);
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|||
|
|
string arg1 = ToLua.CheckString(L, 3);
|
|||
|
|
obj.AddBuglyUserValue(arg0, arg1);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int WXLogin(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 2);
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2);
|
|||
|
|
obj.WXLogin(arg0);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int GetRoomID(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
string o = obj.GetRoomID();
|
|||
|
|
LuaDLL.lua_pushstring(L, o);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int PlayMuisc(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
int count = LuaDLL.lua_gettop(L);
|
|||
|
|
|
|||
|
|
if (count == 2)
|
|||
|
|
{
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|||
|
|
obj.PlayMuisc(arg0);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
else if (count == 3)
|
|||
|
|
{
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|||
|
|
string arg1 = ToLua.CheckString(L, 3);
|
|||
|
|
obj.PlayMuisc(arg0, arg1);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: GameApplication.PlayMuisc");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int PlayVoice(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 2);
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
UnityEngine.AudioClip arg0 = (UnityEngine.AudioClip)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioClip));
|
|||
|
|
obj.PlayVoice(arg0);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
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)
|
|||
|
|
{
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|||
|
|
obj.PlaySound(arg0);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
else if (count == 3)
|
|||
|
|
{
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|||
|
|
string arg1 = ToLua.CheckString(L, 3);
|
|||
|
|
obj.PlaySound(arg0, arg1);
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
return LuaDLL.luaL_throw(L, "invalid arguments to method: GameApplication.PlaySound");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int InitBaiduMap(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.CheckArgsCount(L, 2);
|
|||
|
|
GameApplication obj = (GameApplication)ToLua.CheckObject<GameApplication>(L, 1);
|
|||
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|||
|
|
obj.InitBaiduMap(arg0);
|
|||
|
|
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_Instance(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
ToLua.Push(L, GameApplication.Instance);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_buildApp(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
bool ret = obj.buildApp;
|
|||
|
|
LuaDLL.lua_pushboolean(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index buildApp on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_printLog(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
bool ret = obj.printLog;
|
|||
|
|
LuaDLL.lua_pushboolean(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index printLog on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_accountTest(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
bool ret = obj.accountTest;
|
|||
|
|
LuaDLL.lua_pushboolean(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index accountTest on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_musicSource(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
UnityEngine.AudioSource ret = obj.musicSource;
|
|||
|
|
ToLua.PushSealed(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index musicSource on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_voiceSource(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
UnityEngine.AudioSource ret = obj.voiceSource;
|
|||
|
|
ToLua.PushSealed(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index voiceSource on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_HideSdk(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
LuaDLL.lua_pushboolean(L, GameApplication.HideSdk);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_StopMusic(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
int ret = obj.StopMusic;
|
|||
|
|
LuaDLL.lua_pushinteger(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index StopMusic on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_GameInfo(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
string ret = obj.GameInfo;
|
|||
|
|
LuaDLL.lua_pushstring(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index GameInfo on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_MusicValue(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
int ret = obj.MusicValue;
|
|||
|
|
LuaDLL.lua_pushinteger(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index MusicValue on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int get_SoundValue(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
int ret = obj.SoundValue;
|
|||
|
|
LuaDLL.lua_pushinteger(L, ret);
|
|||
|
|
return 1;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index SoundValue on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_Instance(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
GameApplication arg0 = (GameApplication)ToLua.CheckObject<GameApplication>(L, 2);
|
|||
|
|
GameApplication.Instance = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_buildApp(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
|||
|
|
obj.buildApp = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index buildApp on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_printLog(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
|||
|
|
obj.printLog = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index printLog on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_accountTest(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
|||
|
|
obj.accountTest = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index accountTest on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_musicSource(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
UnityEngine.AudioSource arg0 = (UnityEngine.AudioSource)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioSource));
|
|||
|
|
obj.musicSource = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index musicSource on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_voiceSource(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
UnityEngine.AudioSource arg0 = (UnityEngine.AudioSource)ToLua.CheckObject(L, 2, typeof(UnityEngine.AudioSource));
|
|||
|
|
obj.voiceSource = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index voiceSource on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_HideSdk(IntPtr L)
|
|||
|
|
{
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
|||
|
|
GameApplication.HideSdk = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch (Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_StopMusic(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|||
|
|
obj.StopMusic = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index StopMusic on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_GameInfo(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|||
|
|
obj.GameInfo = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index GameInfo on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_MusicValue(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|||
|
|
obj.MusicValue = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index MusicValue on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|||
|
|
static int set_SoundValue(IntPtr L)
|
|||
|
|
{
|
|||
|
|
object o = null;
|
|||
|
|
|
|||
|
|
try
|
|||
|
|
{
|
|||
|
|
o = ToLua.ToObject(L, 1);
|
|||
|
|
GameApplication obj = (GameApplication)o;
|
|||
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
|||
|
|
obj.SoundValue = arg0;
|
|||
|
|
return 0;
|
|||
|
|
}
|
|||
|
|
catch(Exception e)
|
|||
|
|
{
|
|||
|
|
return LuaDLL.toluaL_exception(L, e, o, "attempt to index SoundValue on a nil value");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|