#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 SnxxzUITaskAllocationWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Snxxz.UI.TaskAllocation); Utils.BeginObjectRegister(type, L, translator, 0, 6, 1, 1); Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTaskInfo", _m_GetTaskInfo); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForRingNumber", _m_ForRingNumber); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ForRingAllNumber", _m_ForRingAllNumber); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FairyAuNumber", _m_FairyAuNumber); Utils.RegisterFunc(L, Utils.METHOD_IDX, "FairyAuAllNumber", _m_FairyAuAllNumber); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SkillTask", _m_SkillTask); Utils.RegisterFunc(L, Utils.GETTER_IDX, "TaskTime", _g_get_TaskTime); Utils.RegisterFunc(L, Utils.SETTER_IDX, "TaskTime", _s_set_TaskTime); 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.TaskAllocation gen_ret = new Snxxz.UI.TaskAllocation(); 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.TaskAllocation constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_GetTaskInfo(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.TaskAllocation gen_to_be_invoked = (Snxxz.UI.TaskAllocation)translator.FastGetCSObj(L, 1); { string _val = LuaAPI.lua_tostring(L, 2); int __item = LuaAPI.xlua_tointeger(L, 3); string gen_ret = gen_to_be_invoked.GetTaskInfo( _val, __item ); 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_ForRingNumber(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.TaskAllocation gen_to_be_invoked = (Snxxz.UI.TaskAllocation)translator.FastGetCSObj(L, 1); { int gen_ret = gen_to_be_invoked.ForRingNumber( ); LuaAPI.xlua_pushinteger(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_ForRingAllNumber(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.TaskAllocation gen_to_be_invoked = (Snxxz.UI.TaskAllocation)translator.FastGetCSObj(L, 1); { int gen_ret = gen_to_be_invoked.ForRingAllNumber( ); LuaAPI.xlua_pushinteger(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_FairyAuNumber(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.TaskAllocation gen_to_be_invoked = (Snxxz.UI.TaskAllocation)translator.FastGetCSObj(L, 1); { int gen_ret = gen_to_be_invoked.FairyAuNumber( ); LuaAPI.xlua_pushinteger(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_FairyAuAllNumber(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.TaskAllocation gen_to_be_invoked = (Snxxz.UI.TaskAllocation)translator.FastGetCSObj(L, 1); { int gen_ret = gen_to_be_invoked.FairyAuAllNumber( ); LuaAPI.xlua_pushinteger(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_SkillTask(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.TaskAllocation gen_to_be_invoked = (Snxxz.UI.TaskAllocation)translator.FastGetCSObj(L, 1); { int _TaskID = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.SkillTask( _TaskID ); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_TaskTime(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.TaskAllocation gen_to_be_invoked = (Snxxz.UI.TaskAllocation)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.TaskTime); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_TaskTime(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Snxxz.UI.TaskAllocation gen_to_be_invoked = (Snxxz.UI.TaskAllocation)translator.FastGetCSObj(L, 1); System.DateTime gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.TaskTime = gen_value; } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }