static int _s_set_ServerScore(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.GoodsElementEquip __cl_gen_to_be_invoked = (xc.GoodsElementEquip)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.ServerScore = 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_BaseScore(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.GoodsElementEquip __cl_gen_to_be_invoked = (xc.GoodsElementEquip)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.BaseScore); } 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) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <Net.PkgGoodsInfo>(L, 3)) { uint typeId = LuaAPI.xlua_touint(L, 2); Net.PkgGoodsInfo elementEquip = (Net.PkgGoodsInfo)translator.GetObject(L, 3, typeof(Net.PkgGoodsInfo)); xc.GoodsElementEquip __cl_gen_ret = new xc.GoodsElementEquip(typeId, elementEquip); 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.GoodsElementEquip constructor!")); }
static int _m_IsReward(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.GoodsElementEquip __cl_gen_to_be_invoked = (xc.GoodsElementEquip)translator.FastGetCSObj(L, 1); try { { bool __cl_gen_ret = __cl_gen_to_be_invoked.IsReward( ); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_UpdateGodEquip(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.GoodsElementEquip __cl_gen_to_be_invoked = (xc.GoodsElementEquip)translator.FastGetCSObj(L, 1); try { { Net.PkgElementEp elementEquip = (Net.PkgElementEp)translator.GetObject(L, 2, typeof(Net.PkgElementEp)); __cl_gen_to_be_invoked.UpdateGodEquip(elementEquip); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ContainsValue(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Collections.Generic.Dictionary <uint, xc.GoodsElementEquip> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <uint, xc.GoodsElementEquip>)translator.FastGetCSObj(L, 1); try { { xc.GoodsElementEquip value = (xc.GoodsElementEquip)translator.GetObject(L, 2, typeof(xc.GoodsElementEquip)); bool __cl_gen_ret = __cl_gen_to_be_invoked.ContainsValue(value); LuaAPI.lua_pushboolean(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); System.Collections.Generic.Dictionary <uint, xc.GoodsElementEquip> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <uint, xc.GoodsElementEquip>)translator.FastGetCSObj(L, 1); try { { uint key = LuaAPI.xlua_touint(L, 2); xc.GoodsElementEquip value = (xc.GoodsElementEquip)translator.GetObject(L, 3, typeof(xc.GoodsElementEquip)); __cl_gen_to_be_invoked.Add(key, value); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }