static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.GoodsDecorate __cl_gen_ret = new xc.GoodsDecorate(); translator.Push(L, __cl_gen_ret); return(1); } 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 decorate = (Net.PkgGoodsInfo)translator.GetObject(L, 3, typeof(Net.PkgGoodsInfo)); xc.GoodsDecorate __cl_gen_ret = new xc.GoodsDecorate(typeId, decorate); 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.GoodsDecorate constructor!")); }
static int _s_set_NetDecorate(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.GoodsDecorate __cl_gen_to_be_invoked = (xc.GoodsDecorate)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.NetDecorate = (Net.PkgGoodsInfo)translator.GetObject(L, 2, typeof(Net.PkgGoodsInfo)); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _s_set_ServerForceScore(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.GoodsDecorate __cl_gen_to_be_invoked = (xc.GoodsDecorate)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.ServerForceScore = LuaAPI.xlua_tointeger(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _s_set_LegendAttrs(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.GoodsDecorate __cl_gen_to_be_invoked = (xc.GoodsDecorate)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.LegendAttrs = (xc.Equip.EquipAttributes)translator.GetObject(L, 2, typeof(xc.Equip.EquipAttributes)); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _g_get_ServerStar(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.GoodsDecorate __cl_gen_to_be_invoked = (xc.GoodsDecorate)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.ServerStar); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _m_GetBestBagDecorate_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { xc.GoodsDecorate __cl_gen_ret = xc.Decorate.DecorateHelper.GetBestBagDecorate( ); 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_RefreshDecorateUp(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.GoodsDecorate __cl_gen_to_be_invoked = (xc.GoodsDecorate)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.RefreshDecorateUp( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetDecorateStar_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { xc.GoodsDecorate decorate = (xc.GoodsDecorate)translator.GetObject(L, 1, typeof(xc.GoodsDecorate)); uint __cl_gen_ret = xc.Decorate.DecorateHelper.GetDecorateStar(decorate); LuaAPI.xlua_pushuint(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetWearingDecorateByPos_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { uint pos = LuaAPI.xlua_touint(L, 1); xc.GoodsDecorate __cl_gen_ret = xc.Decorate.DecorateHelper.GetWearingDecorateByPos(pos); 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_GetBreakAppendAttr_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { xc.GoodsDecorate decorate = (xc.GoodsDecorate)translator.GetObject(L, 1, typeof(xc.GoodsDecorate)); xc.ActorAttribute __cl_gen_ret = xc.Decorate.DecorateHelper.GetBreakAppendAttr(decorate); 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_ShowDecorateTipsWindowLayer_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { int layer = LuaAPI.xlua_tointeger(L, 1); xc.GoodsDecorate decorate = (xc.GoodsDecorate)translator.GetObject(L, 2, typeof(xc.GoodsDecorate)); string showType = LuaAPI.lua_tostring(L, 3); xc.Decorate.DecorateHelper.ShowDecorateTipsWindowLayer(layer, decorate, showType); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_CreateGoodsByTypeId(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.GoodsDecorate __cl_gen_to_be_invoked = (xc.GoodsDecorate)translator.FastGetCSObj(L, 1); try { { uint gid = LuaAPI.xlua_touint(L, 2); __cl_gen_to_be_invoked.CreateGoodsByTypeId(gid); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_ShowDecorateTipsWindow_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 2 && translator.Assignable <xc.GoodsDecorate>(L, 1) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { xc.GoodsDecorate decorate = (xc.GoodsDecorate)translator.GetObject(L, 1, typeof(xc.GoodsDecorate)); string showType = LuaAPI.lua_tostring(L, 2); xc.Decorate.DecorateHelper.ShowDecorateTipsWindow(decorate, showType); return(0); } if (__gen_param_count == 3 && translator.Assignable <xc.GoodsDecorate>(L, 1) && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { xc.GoodsDecorate decorate = (xc.GoodsDecorate)translator.GetObject(L, 1, typeof(xc.GoodsDecorate)); string showType = LuaAPI.lua_tostring(L, 2); uint strengthenLv = LuaAPI.xlua_touint(L, 3); xc.Decorate.DecorateHelper.ShowDecorateTipsWindow(decorate, showType, strengthenLv); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to xc.Decorate.DecorateHelper.ShowDecorateTipsWindow!")); }
static int _m_UpdateAttr(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.GoodsDecorate __cl_gen_to_be_invoked = (xc.GoodsDecorate)translator.FastGetCSObj(L, 1); try { { uint gid = LuaAPI.xlua_touint(L, 2); Net.PkgGoodsInfo decorate = (Net.PkgGoodsInfo)translator.GetObject(L, 3, typeof(Net.PkgGoodsInfo)); __cl_gen_to_be_invoked.UpdateAttr(gid, decorate); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }