1297 lines
46 KiB
C#
1297 lines
46 KiB
C#
#if USE_UNI_LUA
|
|
using LuaAPI = UniLua.Lua;
|
|
using RealStatePtr = UniLua.ILuaState;
|
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
|
#else
|
|
using LuaAPI = XLua.LuaDLL.Lua;
|
|
using RealStatePtr = System.IntPtr;
|
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
|
#endif
|
|
|
|
using XLua;
|
|
using System.Collections.Generic;
|
|
|
|
|
|
namespace XLua.CSObjectWrap
|
|
{
|
|
using Utils = XLua.Utils;
|
|
public class BFBFLoginSDKManagerWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
System.Type type = typeof(BF.BFLoginSDKManager);
|
|
Utils.BeginObjectRegister(type, L, translator, 0, 30, 11, 10);
|
|
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitListener", _m_InitListener);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaLoginCallback", _m_SetLuaLoginCallback);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaLogoutCallback", _m_SetLuaLogoutCallback);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaBindCallback", _m_SetLuaBindCallback);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaServerListCallback", _m_SetLuaServerListCallback);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaAccountLoginCallback", _m_SetLuaAccountLoginCallback);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetLuaAccountChangeCallback", _m_SetLuaAccountChangeCallback);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNewPlayerGuid", _m_GetNewPlayerGuid);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Login", _m_Login);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Logout", _m_Logout);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBFToken", _m_GetBFToken);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBFTokenToBytes", _m_GetBFTokenToBytes);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAccountInfo", _m_SetAccountInfo);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetAccountInfoBind", _m_SetAccountInfoBind);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAccountInfo", _m_GetAccountInfo);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GoogleLoginComplete", _m_GoogleLoginComplete);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GoogleLogoutComplete", _m_GoogleLogoutComplete);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoginComplete", _m_LoginComplete);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "LogoutComplete", _m_LogoutComplete);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "BindComplete", _m_BindComplete);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "PostWithURL", _m_PostWithURL);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetWithURL", _m_GetWithURL);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetServerList", _m_GetServerList);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartAccountChange", _m_StartAccountChange);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartAccountBind", _m_StartAccountBind);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "StartAccountLogin", _m_StartAccountLogin);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStartAccountLogin", _m_OnStartAccountLogin);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnStartAccountChange", _m_OnStartAccountChange);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFirebaseToken", _m_SetFirebaseToken);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFirebaseToken", _m_GetFirebaseToken);
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "SDKLogin", _g_get_SDKLogin);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "AccountLoginSeq", _g_get_AccountLoginSeq);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaLoginCallback", _g_get_luaLoginCallback);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaLogoutCallback", _g_get_luaLogoutCallback);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaBindCallback", _g_get_luaBindCallback);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaServerListCallback", _g_get_luaServerListCallback);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaAccountLoginCallback", _g_get_luaAccountLoginCallback);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaAccountChangeCallback", _g_get_luaAccountChangeCallback);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "accountInfo", _g_get_accountInfo);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "firebaseToken", _g_get_firebaseToken);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "luaFirebaseTokenCallback", _g_get_luaFirebaseTokenCallback);
|
|
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "AccountLoginSeq", _s_set_AccountLoginSeq);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaLoginCallback", _s_set_luaLoginCallback);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaLogoutCallback", _s_set_luaLogoutCallback);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaBindCallback", _s_set_luaBindCallback);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaServerListCallback", _s_set_luaServerListCallback);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaAccountLoginCallback", _s_set_luaAccountLoginCallback);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaAccountChangeCallback", _s_set_luaAccountChangeCallback);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "accountInfo", _s_set_accountInfo);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "firebaseToken", _s_set_firebaseToken);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "luaFirebaseTokenCallback", _s_set_luaFirebaseTokenCallback);
|
|
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
|
null, null, null);
|
|
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Utils.EndClassRegister(type, L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CreateInstance(RealStatePtr L)
|
|
{
|
|
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
if(LuaAPI.lua_gettop(L) == 1)
|
|
{
|
|
|
|
var gen_ret = new BF.BFLoginSDKManager();
|
|
translator.Push(L, gen_ret);
|
|
|
|
return 1;
|
|
}
|
|
|
|
}
|
|
catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFLoginSDKManager constructor!");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_InitListener(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
gen_to_be_invoked.InitListener( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetLuaLoginCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
System.Action<int, string> _callback = translator.GetDelegate<System.Action<int, string>>(L, 2);
|
|
|
|
gen_to_be_invoked.SetLuaLoginCallback( _callback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetLuaLogoutCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
System.Action<int, string> _callback = translator.GetDelegate<System.Action<int, string>>(L, 2);
|
|
|
|
gen_to_be_invoked.SetLuaLogoutCallback( _callback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetLuaBindCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
System.Action<int, string> _callback = translator.GetDelegate<System.Action<int, string>>(L, 2);
|
|
|
|
gen_to_be_invoked.SetLuaBindCallback( _callback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetLuaServerListCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
System.Action<bool, string> _callback = translator.GetDelegate<System.Action<bool, string>>(L, 2);
|
|
|
|
gen_to_be_invoked.SetLuaServerListCallback( _callback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetLuaAccountLoginCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
System.Action<bool, string> _callback = translator.GetDelegate<System.Action<bool, string>>(L, 2);
|
|
|
|
gen_to_be_invoked.SetLuaAccountLoginCallback( _callback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetLuaAccountChangeCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
System.Action<bool, string> _callback = translator.GetDelegate<System.Action<bool, string>>(L, 2);
|
|
|
|
gen_to_be_invoked.SetLuaAccountChangeCallback( _callback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetNewPlayerGuid(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = gen_to_be_invoked.GetNewPlayerGuid( );
|
|
LuaAPI.lua_pushstring(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Login(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
BF.NativeCore.LoginType _type;translator.Get(L, 2, out _type);
|
|
|
|
gen_to_be_invoked.Login( _type );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_Logout(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
BF.NativeCore.LoginType _type;translator.Get(L, 2, out _type);
|
|
|
|
gen_to_be_invoked.Logout( _type );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetBFToken(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = gen_to_be_invoked.GetBFToken( );
|
|
LuaAPI.lua_pushstring(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetBFTokenToBytes(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
|
|
var gen_ret = gen_to_be_invoked.GetBFTokenToBytes( );
|
|
LuaAPI.lua_pushstring(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetAccountInfo(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _json = LuaAPI.lua_tostring(L, 2);
|
|
|
|
gen_to_be_invoked.SetAccountInfo( _json );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetAccountInfoBind(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _json = LuaAPI.lua_tostring(L, 2);
|
|
|
|
gen_to_be_invoked.SetAccountInfoBind( _json );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetAccountInfo(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _json = LuaAPI.lua_tostring(L, 2);
|
|
|
|
var gen_ret = gen_to_be_invoked.GetAccountInfo( _json );
|
|
translator.Push(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GoogleLoginComplete(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
bool _succ = LuaAPI.lua_toboolean(L, 2);
|
|
string _msg = LuaAPI.lua_tostring(L, 3);
|
|
|
|
gen_to_be_invoked.GoogleLoginComplete( _succ, _msg );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GoogleLogoutComplete(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
bool _succ = LuaAPI.lua_toboolean(L, 2);
|
|
|
|
gen_to_be_invoked.GoogleLogoutComplete( _succ );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_LoginComplete(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
BF.NativeCore.LoginType _loginType;translator.Get(L, 2, out _loginType);
|
|
BF.NativeCore.ULoginResult _result;translator.Get(L, 3, out _result);
|
|
string _msg = LuaAPI.lua_tostring(L, 4);
|
|
|
|
gen_to_be_invoked.LoginComplete( _loginType, _result, _msg );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_LogoutComplete(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
BF.NativeCore.LoginType _loginType;translator.Get(L, 2, out _loginType);
|
|
BF.NativeCore.ULoginResult _result;translator.Get(L, 3, out _result);
|
|
string _msg = LuaAPI.lua_tostring(L, 4);
|
|
|
|
gen_to_be_invoked.LogoutComplete( _loginType, _result, _msg );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_BindComplete(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
BF.NativeCore.ULoginResult _result;translator.Get(L, 2, out _result);
|
|
string _msg = LuaAPI.lua_tostring(L, 3);
|
|
|
|
gen_to_be_invoked.BindComplete( _result, _msg );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_PostWithURL(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _url = LuaAPI.lua_tostring(L, 2);
|
|
string _data = LuaAPI.lua_tostring(L, 3);
|
|
System.Action<BestHTTP.HTTPRequest, BestHTTP.HTTPResponse> _callback = translator.GetDelegate<System.Action<BestHTTP.HTTPRequest, BestHTTP.HTTPResponse>>(L, 4);
|
|
|
|
gen_to_be_invoked.PostWithURL( _url, _data, _callback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetWithURL(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _url = LuaAPI.lua_tostring(L, 2);
|
|
System.Action<BestHTTP.HTTPRequest, BestHTTP.HTTPResponse> _callback = translator.GetDelegate<System.Action<BestHTTP.HTTPRequest, BestHTTP.HTTPResponse>>(L, 3);
|
|
|
|
gen_to_be_invoked.GetWithURL( _url, _callback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetServerList(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _requestUrl = LuaAPI.lua_tostring(L, 2);
|
|
|
|
gen_to_be_invoked.GetServerList( _requestUrl );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_StartAccountChange(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _url = LuaAPI.lua_tostring(L, 2);
|
|
string _requestArgsJson = LuaAPI.lua_tostring(L, 3);
|
|
int _sdkLoginType = LuaAPI.xlua_tointeger(L, 4);
|
|
|
|
gen_to_be_invoked.StartAccountChange( _url, _requestArgsJson, _sdkLoginType );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_StartAccountBind(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
int _sdkLoginType = LuaAPI.xlua_tointeger(L, 2);
|
|
string _url = LuaAPI.lua_tostring(L, 3);
|
|
string _requestArgsJson = LuaAPI.lua_tostring(L, 4);
|
|
System.Action<bool, string> _luaBindCallback = translator.GetDelegate<System.Action<bool, string>>(L, 5);
|
|
|
|
gen_to_be_invoked.StartAccountBind( _sdkLoginType, _url, _requestArgsJson, _luaBindCallback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_StartAccountLogin(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _url = LuaAPI.lua_tostring(L, 2);
|
|
string _requestArgsJson = LuaAPI.lua_tostring(L, 3);
|
|
|
|
gen_to_be_invoked.StartAccountLogin( _url, _requestArgsJson );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_OnStartAccountLogin(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _url = LuaAPI.lua_tostring(L, 2);
|
|
string _requestArgsJson = LuaAPI.lua_tostring(L, 3);
|
|
|
|
gen_to_be_invoked.OnStartAccountLogin( _url, _requestArgsJson );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_OnStartAccountChange(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _url = LuaAPI.lua_tostring(L, 2);
|
|
string _requestArgsJson = LuaAPI.lua_tostring(L, 3);
|
|
|
|
gen_to_be_invoked.OnStartAccountChange( _url, _requestArgsJson );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_SetFirebaseToken(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
string _token = LuaAPI.lua_tostring(L, 2);
|
|
|
|
gen_to_be_invoked.SetFirebaseToken( _token );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetFirebaseToken(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
|
|
|
|
|
|
{
|
|
System.Action<string> _callback = translator.GetDelegate<System.Action<string>>(L, 2);
|
|
|
|
gen_to_be_invoked.GetFirebaseToken( _callback );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_SDKLogin(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.SDKLogin);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_AccountLoginSeq(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.AccountLoginSeq);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_luaLoginCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.luaLoginCallback);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_luaLogoutCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.luaLogoutCallback);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_luaBindCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.luaBindCallback);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_luaServerListCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.luaServerListCallback);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_luaAccountLoginCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.luaAccountLoginCallback);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_luaAccountChangeCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.luaAccountChangeCallback);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_accountInfo(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.accountInfo);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_firebaseToken(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.firebaseToken);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_luaFirebaseTokenCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
translator.Push(L, gen_to_be_invoked.luaFirebaseTokenCallback);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_AccountLoginSeq(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.AccountLoginSeq = LuaAPI.xlua_tointeger(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_luaLoginCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.luaLoginCallback = translator.GetDelegate<System.Action<int, string>>(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_luaLogoutCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.luaLogoutCallback = translator.GetDelegate<System.Action<int, string>>(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_luaBindCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.luaBindCallback = translator.GetDelegate<System.Action<int, string>>(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_luaServerListCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.luaServerListCallback = translator.GetDelegate<System.Action<bool, string>>(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_luaAccountLoginCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.luaAccountLoginCallback = translator.GetDelegate<System.Action<bool, string>>(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_luaAccountChangeCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.luaAccountChangeCallback = translator.GetDelegate<System.Action<bool, string>>(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_accountInfo(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.accountInfo = (BF.BFAccountInfo)translator.GetObject(L, 2, typeof(BF.BFAccountInfo));
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_firebaseToken(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.firebaseToken = LuaAPI.lua_tostring(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_luaFirebaseTokenCallback(RealStatePtr L)
|
|
{
|
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
BF.BFLoginSDKManager gen_to_be_invoked = (BF.BFLoginSDKManager)translator.FastGetCSObj(L, 1);
|
|
gen_to_be_invoked.luaFirebaseTokenCallback = translator.GetDelegate<System.Action<string>>(L, 2);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|