static int _s_set_LegendAttrs(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.EquipModData __cl_gen_to_be_invoked = (xc.EquipModData)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.LegendAttrs = (System.Collections.Generic.List <System.Collections.Generic.List <uint> >)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <System.Collections.Generic.List <uint> >)); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _s_set_DefaultScore(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.EquipModData __cl_gen_to_be_invoked = (xc.EquipModData)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.DefaultScore = LuaAPI.xlua_touint(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _g_get_LegendAttrs(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.EquipModData __cl_gen_to_be_invoked = (xc.EquipModData)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.LegendAttrs); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _g_get_DefaultExtraDesc(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.EquipModData __cl_gen_to_be_invoked = (xc.EquipModData)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushstring(L, __cl_gen_to_be_invoked.DefaultExtraDesc); } 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.EquipModData __cl_gen_ret = new xc.EquipModData(); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 18 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 8) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 9) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 10) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 11) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 12) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 13) && (LuaAPI.lua_isnil(L, 14) || LuaAPI.lua_type(L, 14) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 15) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 16) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 17) && translator.Assignable <System.Collections.Generic.List <System.Collections.Generic.List <uint> > >(L, 18)) { uint id = LuaAPI.xlua_touint(L, 2); uint pos = LuaAPI.xlua_touint(L, 3); uint ar_con_need = LuaAPI.xlua_touint(L, 4); uint ar_str_need = LuaAPI.xlua_touint(L, 5); uint ar_agi_need = LuaAPI.xlua_touint(L, 6); uint ar_int_need = LuaAPI.xlua_touint(L, 7); uint legend_attrs_num = LuaAPI.xlua_touint(L, 8); uint model = LuaAPI.xlua_touint(L, 9); uint lv_step = LuaAPI.xlua_touint(L, 10); uint strength_max = LuaAPI.xlua_touint(L, 11); uint suit_id = LuaAPI.xlua_touint(L, 12); uint pet_exp = LuaAPI.xlua_touint(L, 13); byte[] default_extra_desc = LuaAPI.lua_tobytes(L, 14); uint default_star = LuaAPI.xlua_touint(L, 15); bool can_identify = LuaAPI.lua_toboolean(L, 16); uint default_score = LuaAPI.xlua_touint(L, 17); System.Collections.Generic.List <System.Collections.Generic.List <uint> > legend_attrs = (System.Collections.Generic.List <System.Collections.Generic.List <uint> >)translator.GetObject(L, 18, typeof(System.Collections.Generic.List <System.Collections.Generic.List <uint> >)); xc.EquipModData __cl_gen_ret = new xc.EquipModData(id, pos, ar_con_need, ar_str_need, ar_agi_need, ar_int_need, legend_attrs_num, model, lv_step, strength_max, suit_id, pet_exp, default_extra_desc, default_star, can_identify, default_score, legend_attrs); 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.EquipModData constructor!")); }
static int _m_CompareTo(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.EquipModData __cl_gen_to_be_invoked = (xc.EquipModData)translator.FastGetCSObj(L, 1); try { { object targetObj = translator.GetObject(L, 2, typeof(object)); int __cl_gen_ret = __cl_gen_to_be_invoked.CompareTo(targetObj); LuaAPI.xlua_pushinteger(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }