static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <Net.PkgGoodsInfo>(L, 2)) { Net.PkgGoodsInfo pkgGoodsInfo = (Net.PkgGoodsInfo)translator.GetObject(L, 2, typeof(Net.PkgGoodsInfo)); xc.GoodsLightWeaponSoul __cl_gen_ret = new xc.GoodsLightWeaponSoul(pkgGoodsInfo); translator.Push(L, __cl_gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { uint GID = LuaAPI.xlua_touint(L, 2); xc.GoodsLightWeaponSoul __cl_gen_ret = new xc.GoodsLightWeaponSoul(GID); 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.GoodsLightWeaponSoul constructor!")); }
static int _g_get_Pos_Type(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.GoodsLightWeaponSoul __cl_gen_to_be_invoked = (xc.GoodsLightWeaponSoul)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.Pos_Type); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_UpgradeAttrs(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.GoodsLightWeaponSoul __cl_gen_to_be_invoked = (xc.GoodsLightWeaponSoul)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.UpgradeAttrs = (xc.ActorAttribute)translator.GetObject(L, 2, typeof(xc.ActorAttribute)); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _s_set_IsWearing(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.GoodsLightWeaponSoul __cl_gen_to_be_invoked = (xc.GoodsLightWeaponSoul)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.IsWearing = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _m_AddInstalledSoul_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { xc.GoodsLightWeaponSoul soul = (xc.GoodsLightWeaponSoul)translator.GetObject(L, 1, typeof(xc.GoodsLightWeaponSoul)); xc.GoodsLightWeaponHelper.AddInstalledSoul(soul); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetInstalledSoulByTypeAndIndex_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { uint Pos_Type = LuaAPI.xlua_touint(L, 1); uint Pos_Index = LuaAPI.xlua_touint(L, 2); xc.GoodsLightWeaponSoul __cl_gen_ret = xc.GoodsLightWeaponHelper.GetInstalledSoulByTypeAndIndex(Pos_Type, Pos_Index); 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_SortFunc_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { xc.GoodsLightWeaponSoul a = (xc.GoodsLightWeaponSoul)translator.GetObject(L, 1, typeof(xc.GoodsLightWeaponSoul)); xc.GoodsLightWeaponSoul b = (xc.GoodsLightWeaponSoul)translator.GetObject(L, 2, typeof(xc.GoodsLightWeaponSoul)); int __cl_gen_ret = xc.GoodsLightWeaponHelper.SortFunc(a, b); LuaAPI.xlua_pushinteger(L, __cl_gen_ret); return(1); } } 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.GoodsLightWeaponSoul> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <uint, xc.GoodsLightWeaponSoul>)translator.FastGetCSObj(L, 1); try { { xc.GoodsLightWeaponSoul value = (xc.GoodsLightWeaponSoul)translator.GetObject(L, 2, typeof(xc.GoodsLightWeaponSoul)); 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.GoodsLightWeaponSoul> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <uint, xc.GoodsLightWeaponSoul>)translator.FastGetCSObj(L, 1); try { { uint key = LuaAPI.xlua_touint(L, 2); xc.GoodsLightWeaponSoul value = (xc.GoodsLightWeaponSoul)translator.GetObject(L, 3, typeof(xc.GoodsLightWeaponSoul)); __cl_gen_to_be_invoked.Add(key, value); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }