#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 SnxxzUIRolePointModelWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Snxxz.UI.RolePointModel); Utils.BeginObjectRegister(type, L, translator, 0, 9, 2, 1); 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, "TryGetPointFormula", _m_TryGetPointFormula); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ContainsProperty", _m_ContainsProperty); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetPointSuggest", _m_TryGetPointSuggest); Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetPointInit", _m_TryGetPointInit); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateRedPoint", _m_UpdateRedPoint); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendAddPoint", _m_SendAddPoint); Utils.RegisterFunc(L, Utils.GETTER_IDX, "propertys", _g_get_propertys); Utils.RegisterFunc(L, Utils.GETTER_IDX, "redpoint", _g_get_redpoint); Utils.RegisterFunc(L, Utils.SETTER_IDX, "redpoint", _s_set_redpoint); 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.RolePointModel gen_ret = new Snxxz.UI.RolePointModel(); 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.RolePointModel constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Init(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RolePointModel gen_to_be_invoked = (Snxxz.UI.RolePointModel)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.RolePointModel gen_to_be_invoked = (Snxxz.UI.RolePointModel)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.RolePointModel gen_to_be_invoked = (Snxxz.UI.RolePointModel)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_TryGetPointFormula(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RolePointModel gen_to_be_invoked = (Snxxz.UI.RolePointModel)translator.FastGetCSObj(L, 1); { int _job = LuaAPI.xlua_tointeger(L, 2); System.Collections.Generic.Dictionary _dict; bool gen_ret = gen_to_be_invoked.TryGetPointFormula( _job, out _dict ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _dict); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ContainsProperty(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RolePointModel gen_to_be_invoked = (Snxxz.UI.RolePointModel)translator.FastGetCSObj(L, 1); { int _type = LuaAPI.xlua_tointeger(L, 2); bool gen_ret = gen_to_be_invoked.ContainsProperty( _type ); LuaAPI.lua_pushboolean(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_TryGetPointSuggest(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RolePointModel gen_to_be_invoked = (Snxxz.UI.RolePointModel)translator.FastGetCSObj(L, 1); { int _job = LuaAPI.xlua_tointeger(L, 2); System.Collections.Generic.Dictionary _dict; bool gen_ret = gen_to_be_invoked.TryGetPointSuggest( _job, out _dict ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _dict); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_TryGetPointInit(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RolePointModel gen_to_be_invoked = (Snxxz.UI.RolePointModel)translator.FastGetCSObj(L, 1); { int _job = LuaAPI.xlua_tointeger(L, 2); System.Collections.Generic.Dictionary _dict; bool gen_ret = gen_to_be_invoked.TryGetPointInit( _job, out _dict ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Push(L, _dict); return 2; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_UpdateRedPoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RolePointModel gen_to_be_invoked = (Snxxz.UI.RolePointModel)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.UpdateRedPoint( ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SendAddPoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RolePointModel gen_to_be_invoked = (Snxxz.UI.RolePointModel)translator.FastGetCSObj(L, 1); { int _type = LuaAPI.xlua_tointeger(L, 2); int _point = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.SendAddPoint( _type, _point ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_propertys(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RolePointModel gen_to_be_invoked = (Snxxz.UI.RolePointModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.propertys); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_redpoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RolePointModel gen_to_be_invoked = (Snxxz.UI.RolePointModel)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.redpoint); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_redpoint(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.RolePointModel gen_to_be_invoked = (Snxxz.UI.RolePointModel)translator.FastGetCSObj(L, 1); gen_to_be_invoked.redpoint = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint)); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }