#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 WindowJumpMgrWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(WindowJumpMgr); Utils.BeginObjectRegister(type, L, translator, 0, 5, 5, 1); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSearchData", _m_GetSearchData); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPreAllOpenWin", _m_GetPreAllOpenWin); Utils.RegisterFunc(L, Utils.METHOD_IDX, "WindowJumpTo", _m_WindowJumpTo); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GotoKylinDungeon", _m_GotoKylinDungeon); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClearJumpData", _m_ClearJumpData); Utils.RegisterFunc(L, Utils.GETTER_IDX, "windowSearchDataDict", _g_get_windowSearchDataDict); Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsJumpState", _g_get_IsJumpState); Utils.RegisterFunc(L, Utils.GETTER_IDX, "jumpPhase", _g_get_jumpPhase); Utils.RegisterFunc(L, Utils.GETTER_IDX, "jumpType", _g_get_jumpType); Utils.RegisterFunc(L, Utils.GETTER_IDX, "jumpWinNameDict", _g_get_jumpWinNameDict); Utils.RegisterFunc(L, Utils.SETTER_IDX, "jumpWinNameDict", _s_set_jumpWinNameDict); 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) { WindowJumpMgr gen_ret = new WindowJumpMgr(); 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 WindowJumpMgr constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetSearchData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); WindowJumpMgr gen_to_be_invoked = (WindowJumpMgr)translator.FastGetCSObj(L, 1); { int _id = LuaAPI.xlua_tointeger(L, 2); WindowJumpMgr.WindowSearchData gen_ret = gen_to_be_invoked.GetSearchData( _id ); 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_GetPreAllOpenWin(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); WindowJumpMgr gen_to_be_invoked = (WindowJumpMgr)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.GetPreAllOpenWin( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_WindowJumpTo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); WindowJumpMgr gen_to_be_invoked = (WindowJumpMgr)translator.FastGetCSObj(L, 1); { JumpUIType _jumpType;translator.Get(L, 2, out _jumpType); gen_to_be_invoked.WindowJumpTo( _jumpType ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GotoKylinDungeon(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); WindowJumpMgr gen_to_be_invoked = (WindowJumpMgr)translator.FastGetCSObj(L, 1); { int _tier = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.GotoKylinDungeon( _tier ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ClearJumpData(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); WindowJumpMgr gen_to_be_invoked = (WindowJumpMgr)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.ClearJumpData( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_windowSearchDataDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); WindowJumpMgr gen_to_be_invoked = (WindowJumpMgr)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.windowSearchDataDict); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_IsJumpState(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); WindowJumpMgr gen_to_be_invoked = (WindowJumpMgr)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsJumpState); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_jumpPhase(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); WindowJumpMgr gen_to_be_invoked = (WindowJumpMgr)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.jumpPhase); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_jumpType(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); WindowJumpMgr gen_to_be_invoked = (WindowJumpMgr)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.jumpType); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_jumpWinNameDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); WindowJumpMgr gen_to_be_invoked = (WindowJumpMgr)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.jumpWinNameDict); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_jumpWinNameDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); WindowJumpMgr gen_to_be_invoked = (WindowJumpMgr)translator.FastGetCSObj(L, 1); gen_to_be_invoked.jumpWinNameDict = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }