#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 SnxxzUIRuneComposeModelWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Snxxz.UI.RuneComposeModel); Utils.BeginObjectRegister(type, L, translator, 0, 5, 4, 4); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRuneCompose", _m_GetRuneCompose); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRedpoint", _m_GetRedpoint); Utils.RegisterFunc(L, Utils.GETTER_IDX, "presentSelectRuneQuality", _g_get_presentSelectRuneQuality); Utils.RegisterFunc(L, Utils.GETTER_IDX, "presentSelectComposeRune", _g_get_presentSelectComposeRune); Utils.RegisterFunc(L, Utils.GETTER_IDX, "runeComposeDict", _g_get_runeComposeDict); Utils.RegisterFunc(L, Utils.GETTER_IDX, "m_RuneBothPropertys", _g_get_m_RuneBothPropertys); Utils.RegisterFunc(L, Utils.SETTER_IDX, "presentSelectRuneQuality", _s_set_presentSelectRuneQuality); Utils.RegisterFunc(L, Utils.SETTER_IDX, "presentSelectComposeRune", _s_set_presentSelectComposeRune); Utils.RegisterFunc(L, Utils.SETTER_IDX, "runeComposeDict", _s_set_runeComposeDict); Utils.RegisterFunc(L, Utils.SETTER_IDX, "m_RuneBothPropertys", _s_set_m_RuneBothPropertys); 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) { Snxxz.UI.RuneComposeModel gen_ret = new Snxxz.UI.RuneComposeModel(); 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.RuneComposeModel constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Init(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneComposeModel gen_to_be_invoked = (Snxxz.UI.RuneComposeModel)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.RuneComposeModel gen_to_be_invoked = (Snxxz.UI.RuneComposeModel)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_OnPlayerLoginOk(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneComposeModel gen_to_be_invoked = (Snxxz.UI.RuneComposeModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.OnPlayerLoginOk( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetRuneCompose(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneComposeModel gen_to_be_invoked = (Snxxz.UI.RuneComposeModel)translator.FastGetCSObj(L, 1); { int __itemColor = LuaAPI.xlua_tointeger(L, 2); int __index = LuaAPI.xlua_tointeger(L, 3); TableConfig.RuneComposeConfig gen_ret = gen_to_be_invoked.GetRuneCompose( __itemColor, __index ); 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_GetRedpoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneComposeModel gen_to_be_invoked = (Snxxz.UI.RuneComposeModel)translator.FastGetCSObj(L, 1); { int __quality = LuaAPI.xlua_tointeger(L, 2); Snxxz.UI.Redpoint gen_ret = gen_to_be_invoked.GetRedpoint( __quality ); 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 _g_get_presentSelectRuneQuality(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneComposeModel gen_to_be_invoked = (Snxxz.UI.RuneComposeModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.presentSelectRuneQuality); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_presentSelectComposeRune(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneComposeModel gen_to_be_invoked = (Snxxz.UI.RuneComposeModel)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.presentSelectComposeRune); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_runeComposeDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneComposeModel gen_to_be_invoked = (Snxxz.UI.RuneComposeModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.runeComposeDict); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_m_RuneBothPropertys(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneComposeModel gen_to_be_invoked = (Snxxz.UI.RuneComposeModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.m_RuneBothPropertys); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_presentSelectRuneQuality(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneComposeModel gen_to_be_invoked = (Snxxz.UI.RuneComposeModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.presentSelectRuneQuality = 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_presentSelectComposeRune(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneComposeModel gen_to_be_invoked = (Snxxz.UI.RuneComposeModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.presentSelectComposeRune = 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_runeComposeDict(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneComposeModel gen_to_be_invoked = (Snxxz.UI.RuneComposeModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.runeComposeDict = (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; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_m_RuneBothPropertys(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RuneComposeModel gen_to_be_invoked = (Snxxz.UI.RuneComposeModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.m_RuneBothPropertys = (System.Collections.Generic.List)translator.GetObject(L, 2, typeof(System.Collections.Generic.List)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }