static int _m_Construct_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { xc.BuffCtrl buff_ctrl = (xc.BuffCtrl)translator.GetObject(L, 1, typeof(xc.BuffCtrl)); xc.Buff.BuffInfo kInfo = (xc.Buff.BuffInfo)translator.GetObject(L, 2, typeof(xc.Buff.BuffInfo)); float lifeTime = (float)LuaAPI.lua_tonumber(L, 3); uint layer = LuaAPI.xlua_touint(L, 4); bool shiftExcept = LuaAPI.lua_toboolean(L, 5); xc.Buff __cl_gen_ret = xc.Buff.Construct(buff_ctrl, kInfo, lifeTime, layer, shiftExcept); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _g_get_mPeriodHandle(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.Buff.BuffInfo __cl_gen_to_be_invoked = (xc.Buff.BuffInfo)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.mPeriodHandle); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_mPeriodHandle(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.Buff.BuffInfo __cl_gen_to_be_invoked = (xc.Buff.BuffInfo)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.mPeriodHandle = translator.GetDelegate <xc.Buff.BuffInfo.FunctionHandle>(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.Buff.BuffInfo __cl_gen_ret = new xc.Buff.BuffInfo(); translator.Push(L, __cl_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 xc.Buff.BuffInfo constructor!")); }
static int _m_Reset(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.Buff __cl_gen_to_be_invoked = (xc.Buff)translator.FastGetCSObj(L, 1); try { { xc.Buff.BuffInfo buff_info = (xc.Buff.BuffInfo)translator.GetObject(L, 2, typeof(xc.Buff.BuffInfo)); float lifeTime = (float)LuaAPI.lua_tonumber(L, 3); uint layer = LuaAPI.xlua_touint(L, 4); __cl_gen_to_be_invoked.Reset(buff_info, lifeTime, layer); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }