static int _g_get_Length(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.Equip.EquipAttributes __cl_gen_to_be_invoked = (xc.Equip.EquipAttributes)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.Length); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.Equip.EquipAttributes __cl_gen_ret = new xc.Equip.EquipAttributes(); 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.Equip.EquipAttributes constructor!")); }
static int _m_Clear(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.Equip.EquipAttributes __cl_gen_to_be_invoked = (xc.Equip.EquipAttributes)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.Clear( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ParseByPkgKvMins_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { System.Collections.Generic.List <Net.PkgExotic> pkgExotics = (System.Collections.Generic.List <Net.PkgExotic>)translator.GetObject(L, 1, typeof(System.Collections.Generic.List <Net.PkgExotic>)); xc.Equip.EquipAttributes __cl_gen_ret = xc.Equip.EquipAttributes.ParseByPkgKvMins(pkgExotics); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetEquipAttributesString_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { xc.Equip.EquipAttributes attrs = (xc.Equip.EquipAttributes)translator.GetObject(L, 1, typeof(xc.Equip.EquipAttributes)); string __cl_gen_ret = xc.Magic.MagicEquipHelper.GetEquipAttributesString(attrs); LuaAPI.lua_pushstring(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetAttr(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.Equip.EquipAttributes __cl_gen_to_be_invoked = (xc.Equip.EquipAttributes)translator.FastGetCSObj(L, 1); try { { int idx = LuaAPI.xlua_tointeger(L, 2); xc.Equip.IEquipAttribute __cl_gen_ret = __cl_gen_to_be_invoked.GetAttr(idx); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_Add(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.Equip.EquipAttributes __cl_gen_to_be_invoked = (xc.Equip.EquipAttributes)translator.FastGetCSObj(L, 1); try { { uint id = LuaAPI.xlua_touint(L, 2); System.Collections.Generic.List <uint> value = (System.Collections.Generic.List <uint>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <uint>)); __cl_gen_to_be_invoked.Add(id, value); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }