276 lines
6.8 KiB
C#
276 lines
6.8 KiB
C#
//this source code was auto-generated by tolua#, do not modify it
|
|
using System;
|
|
using LuaInterface;
|
|
|
|
public class GameLogic_PhoneManagerWrap
|
|
{
|
|
public static void Register(LuaState L)
|
|
{
|
|
L.BeginClass(typeof(GameLogic.PhoneManager), typeof(GameCore.UnitySingleton<GameLogic.PhoneManager>));
|
|
L.RegFunction("LocalTestAppPay", LocalTestAppPay);
|
|
L.RegFunction("AppPay", AppPay);
|
|
L.RegFunction("PayCallBack", PayCallBack);
|
|
L.RegFunction("BatteryValue", BatteryValue);
|
|
L.RegFunction("GetNetworkReachabilityType", GetNetworkReachabilityType);
|
|
L.RegFunction("GetBatteryValue", GetBatteryValue);
|
|
L.RegFunction("GetNetType", GetNetType);
|
|
L.RegFunction("TimeYear", TimeYear);
|
|
L.RegFunction("TimeMonth", TimeMonth);
|
|
L.RegFunction("TimeDay", TimeDay);
|
|
L.RegFunction("TimeHour", TimeHour);
|
|
L.RegFunction("TimeMinute", TimeMinute);
|
|
L.RegFunction("__eq", op_Equality);
|
|
L.RegFunction("__tostring", ToLua.op_ToString);
|
|
L.RegVar("MainActivity", get_MainActivity, null);
|
|
L.EndClass();
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int LocalTestAppPay(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 10);
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
|
|
string arg1 = ToLua.CheckString(L, 2);
|
|
string arg2 = ToLua.CheckString(L, 3);
|
|
string arg3 = ToLua.CheckString(L, 4);
|
|
string arg4 = ToLua.CheckString(L, 5);
|
|
string arg5 = ToLua.CheckString(L, 6);
|
|
string arg6 = ToLua.CheckString(L, 7);
|
|
bool arg7 = LuaDLL.luaL_checkboolean(L, 8);
|
|
string arg8 = ToLua.CheckString(L, 9);
|
|
string arg9 = ToLua.CheckString(L, 10);
|
|
GameLogic.PhoneManager.LocalTestAppPay(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
|
|
return 0;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int AppPay(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 7);
|
|
int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
|
|
string arg1 = ToLua.CheckString(L, 2);
|
|
string arg2 = ToLua.CheckString(L, 3);
|
|
string arg3 = ToLua.CheckString(L, 4);
|
|
LuaFunction arg4 = ToLua.CheckLuaFunction(L, 5);
|
|
LuaFunction arg5 = ToLua.CheckLuaFunction(L, 6);
|
|
LuaFunction arg6 = ToLua.CheckLuaFunction(L, 7);
|
|
GameLogic.PhoneManager.AppPay(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
|
|
return 0;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int PayCallBack(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
GameLogic.PhoneManager obj = (GameLogic.PhoneManager)ToLua.CheckObject<GameLogic.PhoneManager>(L, 1);
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|
obj.PayCallBack(arg0);
|
|
return 0;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int BatteryValue(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
GameLogic.PhoneManager obj = (GameLogic.PhoneManager)ToLua.CheckObject<GameLogic.PhoneManager>(L, 1);
|
|
obj.BatteryValue();
|
|
return 0;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetNetworkReachabilityType(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 0);
|
|
UnityEngine.NetworkReachability o = GameLogic.PhoneManager.GetNetworkReachabilityType();
|
|
ToLua.Push(L, o);
|
|
return 1;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetBatteryValue(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
GameLogic.PhoneManager obj = (GameLogic.PhoneManager)ToLua.CheckObject<GameLogic.PhoneManager>(L, 1);
|
|
float o = obj.GetBatteryValue();
|
|
LuaDLL.lua_pushnumber(L, o);
|
|
return 1;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int GetNetType(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
GameLogic.PhoneManager obj = (GameLogic.PhoneManager)ToLua.CheckObject<GameLogic.PhoneManager>(L, 1);
|
|
int o = obj.GetNetType();
|
|
LuaDLL.lua_pushinteger(L, o);
|
|
return 1;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int TimeYear(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
GameLogic.PhoneManager obj = (GameLogic.PhoneManager)ToLua.CheckObject<GameLogic.PhoneManager>(L, 1);
|
|
string o = obj.TimeYear();
|
|
LuaDLL.lua_pushstring(L, o);
|
|
return 1;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int TimeMonth(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
GameLogic.PhoneManager obj = (GameLogic.PhoneManager)ToLua.CheckObject<GameLogic.PhoneManager>(L, 1);
|
|
string o = obj.TimeMonth();
|
|
LuaDLL.lua_pushstring(L, o);
|
|
return 1;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int TimeDay(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
GameLogic.PhoneManager obj = (GameLogic.PhoneManager)ToLua.CheckObject<GameLogic.PhoneManager>(L, 1);
|
|
string o = obj.TimeDay();
|
|
LuaDLL.lua_pushstring(L, o);
|
|
return 1;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int TimeHour(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
GameLogic.PhoneManager obj = (GameLogic.PhoneManager)ToLua.CheckObject<GameLogic.PhoneManager>(L, 1);
|
|
string o = obj.TimeHour();
|
|
LuaDLL.lua_pushstring(L, o);
|
|
return 1;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int TimeMinute(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
GameLogic.PhoneManager obj = (GameLogic.PhoneManager)ToLua.CheckObject<GameLogic.PhoneManager>(L, 1);
|
|
string o = obj.TimeMinute();
|
|
LuaDLL.lua_pushstring(L, o);
|
|
return 1;
|
|
}
|
|
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_MainActivity(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.PushObject(L, GameLogic.PhoneManager.MainActivity);
|
|
return 1;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
}
|
|
|