#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 SnxxzUILoginModelWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(Snxxz.UI.LoginModel);
|
Utils.BeginObjectRegister(type, L, translator, 0, 8, 12, 7);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "AccountLogin", _m_AccountLogin);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReAccountLogin", _m_ReAccountLogin);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "EnterWorld", _m_EnterWorld);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "NofityResigerResult", _m_NofityResigerResult);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "registerResultEvent", _e_registerResultEvent);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "accountBindOkEvent", _e_accountBindOkEvent);
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "sdkLogined", _g_get_sdkLogined);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "localSaveAccountName", _g_get_localSaveAccountName);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "reconnectBackGround", _g_get_reconnectBackGround);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "onCreateRole", _g_get_onCreateRole);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "busy", _g_get_busy);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ipBuf", _g_get_ipBuf);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "portBuf", _g_get_portBuf);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "gamePortBuf", _g_get_gamePortBuf);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "accountBuf", _g_get_accountBuf);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "passwordBuf", _g_get_passwordBuf);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "sdkLoginResult", _g_get_sdkLoginResult);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "sdkIDCheckIDAuthentication", _g_get_sdkIDCheckIDAuthentication);
|
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "sdkLogined", _s_set_sdkLogined);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "localSaveAccountName", _s_set_localSaveAccountName);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "reconnectBackGround", _s_set_reconnectBackGround);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "onCreateRole", _s_set_onCreateRole);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "busy", _s_set_busy);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "sdkLoginResult", _s_set_sdkLoginResult);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "sdkIDCheckIDAuthentication", _s_set_sdkIDCheckIDAuthentication);
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
null, null, null);
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0);
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DwVersionNo", Snxxz.UI.LoginModel.DwVersionNo);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "USER_ACCOUNT", Snxxz.UI.LoginModel.USER_ACCOUNT);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "USER_PASSWORD", Snxxz.UI.LoginModel.USER_PASSWORD);
|
|
|
|
|
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)
|
{
|
|
Snxxz.UI.LoginModel gen_ret = new Snxxz.UI.LoginModel();
|
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 Snxxz.UI.LoginModel constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Init(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.Init( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_UnInit(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.UnInit( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_AccountLogin(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
|
{
|
string __ip = LuaAPI.lua_tostring(L, 2);
|
int __port = LuaAPI.xlua_tointeger(L, 3);
|
int __gamePort = LuaAPI.xlua_tointeger(L, 4);
|
|
gen_to_be_invoked.AccountLogin( __ip, __port, __gamePort );
|
|
|
|
return 0;
|
}
|
if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
|
{
|
string __account = LuaAPI.lua_tostring(L, 2);
|
string __ip = LuaAPI.lua_tostring(L, 3);
|
int __port = LuaAPI.xlua_tointeger(L, 4);
|
int __gamePort = LuaAPI.xlua_tointeger(L, 5);
|
|
gen_to_be_invoked.AccountLogin( __account, __ip, __port, __gamePort );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.LoginModel.AccountLogin!");
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_ReAccountLogin(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.ReAccountLogin( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_EnterWorld(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
int __type = LuaAPI.xlua_tointeger(L, 2);
|
|
gen_to_be_invoked.EnterWorld( __type );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_NofityResigerResult(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
bool __ok = LuaAPI.lua_toboolean(L, 2);
|
string __accountName = LuaAPI.lua_tostring(L, 3);
|
string __password = LuaAPI.lua_tostring(L, 4);
|
string __result = LuaAPI.lua_tostring(L, 5);
|
|
gen_to_be_invoked.NofityResigerResult( __ok, __accountName, __password, __result );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_sdkLogined(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.sdkLogined);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_localSaveAccountName(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.localSaveAccountName);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_reconnectBackGround(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.reconnectBackGround);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_onCreateRole(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.onCreateRole);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_busy(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.busy);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_ipBuf(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.ipBuf);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_portBuf(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.portBuf);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_gamePortBuf(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.gamePortBuf);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_accountBuf(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.accountBuf);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_passwordBuf(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.passwordBuf);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_sdkLoginResult(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.sdkLoginResult);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_sdkIDCheckIDAuthentication(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
translator.Push(L, gen_to_be_invoked.sdkIDCheckIDAuthentication);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_sdkLogined(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.sdkLogined = LuaAPI.lua_toboolean(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_localSaveAccountName(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.localSaveAccountName = 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_reconnectBackGround(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.reconnectBackGround = LuaAPI.lua_toboolean(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_onCreateRole(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.onCreateRole = LuaAPI.lua_toboolean(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_busy(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.busy = LuaAPI.lua_toboolean(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_sdkLoginResult(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
gen_to_be_invoked.sdkLoginResult = (SDKUtility.FP_LoginOk)translator.GetObject(L, 2, typeof(SDKUtility.FP_LoginOk));
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _s_set_sdkIDCheckIDAuthentication(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
SDKUtility.FP_CheckIDAuthentication gen_value;translator.Get(L, 2, out gen_value);
|
gen_to_be_invoked.sdkIDCheckIDAuthentication = gen_value;
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 0;
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_registerResultEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
System.Action<bool> gen_delegate = translator.GetDelegate<System.Action<bool>>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action<bool>!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.registerResultEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.registerResultEvent -= gen_delegate;
|
return 0;
|
}
|
|
}
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.LoginModel.registerResultEvent!");
|
return 0;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _e_accountBindOkEvent(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
Snxxz.UI.LoginModel gen_to_be_invoked = (Snxxz.UI.LoginModel)translator.FastGetCSObj(L, 1);
|
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3);
|
if (gen_delegate == null) {
|
return LuaAPI.luaL_error(L, "#3 need System.Action!");
|
}
|
|
if (gen_param_count == 3)
|
{
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "+")) {
|
gen_to_be_invoked.accountBindOkEvent += gen_delegate;
|
return 0;
|
}
|
|
|
if (LuaAPI.xlua_is_eq_str(L, 2, "-")) {
|
gen_to_be_invoked.accountBindOkEvent -= gen_delegate;
|
return 0;
|
}
|
|
}
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.LoginModel.accountBindOkEvent!");
|
return 0;
|
}
|
|
|
|
}
|
}
|