漏掉的文件

dev_chengFeng
JieLing 2020-07-23 20:46:51 +08:00
parent 95cbec95e0
commit 291ab0ecf7
2 changed files with 62 additions and 1 deletions

View File

@ -21,7 +21,7 @@ function this.Initialize()
this.CurAccount=PlayerPrefs.GetString(this.GameName.."Account",'')
this.CurSession=PlayerPrefs.GetString(this.GameName.."Session",'')
SDKMgr.onRegisterCallback = function(loginResp)
SDKMgr.onRegisterCallback = function()
-- Game.GlobalEvent:DispatchEvent(GameEvent.LoginSuccess.OnLoginSuccess,loginResp)
ThinkingAnalyticsManager.Track("create_account")
end

View File

@ -81,6 +81,7 @@ public class DelegateFactory
dict.Add(typeof(System.Action<string>), factory.System_Action_string);
dict.Add(typeof(UnityEngine.Events.UnityAction<string,UnityEngine.Object>), factory.UnityEngine_Events_UnityAction_string_UnityEngine_Object);
dict.Add(typeof(SDK.SDKManager.InitLaunchAction), factory.SDK_SDKManager_InitLaunchAction);
dict.Add(typeof(SDK.SDKManager.RegisterAction), factory.SDK_SDKManager_RegisterAction);
dict.Add(typeof(SDK.SDKManager.LoginAction), factory.SDK_SDKManager_LoginAction);
dict.Add(typeof(SDK.SDKManager.PayAction), factory.SDK_SDKManager_PayAction);
dict.Add(typeof(SDK.SDKManager.SwitchAccountAction), factory.SDK_SDKManager_SwitchAccountAction);
@ -162,6 +163,7 @@ public class DelegateFactory
DelegateTraits<System.Action<string>>.Init(factory.System_Action_string);
DelegateTraits<UnityEngine.Events.UnityAction<string,UnityEngine.Object>>.Init(factory.UnityEngine_Events_UnityAction_string_UnityEngine_Object);
DelegateTraits<SDK.SDKManager.InitLaunchAction>.Init(factory.SDK_SDKManager_InitLaunchAction);
DelegateTraits<SDK.SDKManager.RegisterAction>.Init(factory.SDK_SDKManager_RegisterAction);
DelegateTraits<SDK.SDKManager.LoginAction>.Init(factory.SDK_SDKManager_LoginAction);
DelegateTraits<SDK.SDKManager.PayAction>.Init(factory.SDK_SDKManager_PayAction);
DelegateTraits<SDK.SDKManager.SwitchAccountAction>.Init(factory.SDK_SDKManager_SwitchAccountAction);
@ -243,6 +245,7 @@ public class DelegateFactory
TypeTraits<System.Action<string>>.Init(factory.Check_System_Action_string);
TypeTraits<UnityEngine.Events.UnityAction<string,UnityEngine.Object>>.Init(factory.Check_UnityEngine_Events_UnityAction_string_UnityEngine_Object);
TypeTraits<SDK.SDKManager.InitLaunchAction>.Init(factory.Check_SDK_SDKManager_InitLaunchAction);
TypeTraits<SDK.SDKManager.RegisterAction>.Init(factory.Check_SDK_SDKManager_RegisterAction);
TypeTraits<SDK.SDKManager.LoginAction>.Init(factory.Check_SDK_SDKManager_LoginAction);
TypeTraits<SDK.SDKManager.PayAction>.Init(factory.Check_SDK_SDKManager_PayAction);
TypeTraits<SDK.SDKManager.SwitchAccountAction>.Init(factory.Check_SDK_SDKManager_SwitchAccountAction);
@ -324,6 +327,7 @@ public class DelegateFactory
StackTraits<System.Action<string>>.Push = factory.Push_System_Action_string;
StackTraits<UnityEngine.Events.UnityAction<string,UnityEngine.Object>>.Push = factory.Push_UnityEngine_Events_UnityAction_string_UnityEngine_Object;
StackTraits<SDK.SDKManager.InitLaunchAction>.Push = factory.Push_SDK_SDKManager_InitLaunchAction;
StackTraits<SDK.SDKManager.RegisterAction>.Push = factory.Push_SDK_SDKManager_RegisterAction;
StackTraits<SDK.SDKManager.LoginAction>.Push = factory.Push_SDK_SDKManager_LoginAction;
StackTraits<SDK.SDKManager.PayAction>.Push = factory.Push_SDK_SDKManager_PayAction;
StackTraits<SDK.SDKManager.SwitchAccountAction>.Push = factory.Push_SDK_SDKManager_SwitchAccountAction;
@ -4157,6 +4161,63 @@ public class DelegateFactory
ToLua.Push(L, o);
}
class SDK_SDKManager_RegisterAction_Event : LuaDelegate
{
public SDK_SDKManager_RegisterAction_Event(LuaFunction func) : base(func) { }
public SDK_SDKManager_RegisterAction_Event(LuaFunction func, LuaTable self) : base(func, self) { }
public void Call(string param0)
{
func.BeginPCall();
func.Push(param0);
func.PCall();
func.EndPCall();
}
public void CallWithSelf(string param0)
{
func.BeginPCall();
func.Push(self);
func.Push(param0);
func.PCall();
func.EndPCall();
}
}
public SDK.SDKManager.RegisterAction SDK_SDKManager_RegisterAction(LuaFunction func, LuaTable self, bool flag)
{
if (func == null)
{
SDK.SDKManager.RegisterAction fn = delegate(string param0) { };
return fn;
}
if(!flag)
{
SDK_SDKManager_RegisterAction_Event target = new SDK_SDKManager_RegisterAction_Event(func);
SDK.SDKManager.RegisterAction d = target.Call;
target.method = d.Method;
return d;
}
else
{
SDK_SDKManager_RegisterAction_Event target = new SDK_SDKManager_RegisterAction_Event(func, self);
SDK.SDKManager.RegisterAction d = target.CallWithSelf;
target.method = d.Method;
return d;
}
}
bool Check_SDK_SDKManager_RegisterAction(IntPtr L, int pos)
{
return TypeChecker.CheckDelegateType(typeof(SDK.SDKManager.RegisterAction), L, pos);
}
void Push_SDK_SDKManager_RegisterAction(IntPtr L, SDK.SDKManager.RegisterAction o)
{
ToLua.Push(L, o);
}
class SDK_SDKManager_LoginAction_Event : LuaDelegate
{
public SDK_SDKManager_LoginAction_Event(LuaFunction func) : base(func) { }