生成warp文件,修复本地运行时的错误
parent
037290c657
commit
8974820606
|
|
@ -61,6 +61,7 @@ namespace SDK
|
|||
|
||||
void Update()
|
||||
{
|
||||
if (!AppConst.isSDKLogin) return;
|
||||
var msg = proxy.PopMessage();
|
||||
if (null == msg)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ public class SDK_SDKManagerWrap
|
|||
{
|
||||
L.BeginClass(typeof(SDK.SDKManager), typeof(GameCore.UnitySingleton<SDK.SDKManager>));
|
||||
L.RegFunction("Initialize", Initialize);
|
||||
L.RegFunction("SetInitCallBack", SetInitCallBack);
|
||||
L.RegFunction("Login", Login);
|
||||
L.RegFunction("SubmitExtraData", SubmitExtraData);
|
||||
L.RegFunction("Pay", Pay);
|
||||
|
|
@ -29,11 +28,11 @@ public class SDK_SDKManagerWrap
|
|||
L.RegVar("onSwitchAccountCallback", get_onSwitchAccountCallback, set_onSwitchAccountCallback);
|
||||
L.RegVar("onLogoutCallback", get_onLogoutCallback, set_onLogoutCallback);
|
||||
L.RegVar("IsInit", get_IsInit, null);
|
||||
L.RegFunction("InitLaunchAction", SDK_SDKManager_InitLaunchAction);
|
||||
L.RegFunction("LogoutAction", SDK_SDKManager_LogoutAction);
|
||||
L.RegFunction("SwitchAccountAction", SDK_SDKManager_SwitchAccountAction);
|
||||
L.RegFunction("PayAction", SDK_SDKManager_PayAction);
|
||||
L.RegFunction("LoginAction", SDK_SDKManager_LoginAction);
|
||||
L.RegFunction("InitLaunchAction", SDK_SDKManager_InitLaunchAction);
|
||||
L.EndClass();
|
||||
}
|
||||
|
||||
|
|
@ -53,23 +52,6 @@ public class SDK_SDKManagerWrap
|
|||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int SetInitCallBack(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
ToLua.CheckArgsCount(L, 2);
|
||||
SDK.SDKManager obj = (SDK.SDKManager)ToLua.CheckObject<SDK.SDKManager>(L, 1);
|
||||
SDK.SDKManager.InitLaunchAction arg0 = (SDK.SDKManager.InitLaunchAction)ToLua.CheckDelegate<SDK.SDKManager.InitLaunchAction>(L, 2);
|
||||
obj.SetInitCallBack(arg0);
|
||||
return 0;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int Login(IntPtr L)
|
||||
{
|
||||
|
|
@ -498,33 +480,6 @@ public class SDK_SDKManagerWrap
|
|||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int SDK_SDKManager_InitLaunchAction(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
int count = LuaDLL.lua_gettop(L);
|
||||
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
||||
|
||||
if (count == 1)
|
||||
{
|
||||
Delegate arg1 = DelegateTraits<SDK.SDKManager.InitLaunchAction>.Create(func);
|
||||
ToLua.Push(L, arg1);
|
||||
}
|
||||
else
|
||||
{
|
||||
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
||||
Delegate arg1 = DelegateTraits<SDK.SDKManager.InitLaunchAction>.Create(func, self);
|
||||
ToLua.Push(L, arg1);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int SDK_SDKManager_LogoutAction(IntPtr L)
|
||||
{
|
||||
|
|
@ -632,5 +587,32 @@ public class SDK_SDKManagerWrap
|
|||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int SDK_SDKManager_InitLaunchAction(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
int count = LuaDLL.lua_gettop(L);
|
||||
LuaFunction func = ToLua.CheckLuaFunction(L, 1);
|
||||
|
||||
if (count == 1)
|
||||
{
|
||||
Delegate arg1 = DelegateTraits<SDK.SDKManager.InitLaunchAction>.Create(func);
|
||||
ToLua.Push(L, arg1);
|
||||
}
|
||||
else
|
||||
{
|
||||
LuaTable self = ToLua.CheckLuaTable(L, 2);
|
||||
Delegate arg1 = DelegateTraits<SDK.SDKManager.InitLaunchAction>.Create(func, self);
|
||||
ToLua.Push(L, arg1);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue