static int _s_set_AutoPickDrop(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.HookSettingManager __cl_gen_to_be_invoked = (xc.HookSettingManager)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.AutoPickDrop = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _s_set_UseMPDrugMPRatio(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.HookSettingManager __cl_gen_to_be_invoked = (xc.HookSettingManager)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.UseMPDrugMPRatio = (float)LuaAPI.lua_tonumber(L, 2); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int _g_get_AutoSellGoods(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.HookSettingManager __cl_gen_to_be_invoked = (xc.HookSettingManager)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.AutoSellGoods); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _g_get_RangeType(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.HookSettingManager __cl_gen_to_be_invoked = (xc.HookSettingManager)translator.FastGetCSObj(L, 1); translator.PushxcEHookRangeType(L, __cl_gen_to_be_invoked.RangeType); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_RangeType(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.HookSettingManager __cl_gen_to_be_invoked = (xc.HookSettingManager)translator.FastGetCSObj(L, 1); xc.EHookRangeType __cl_gen_value; translator.Get(L, 2, out __cl_gen_value); __cl_gen_to_be_invoked.RangeType = __cl_gen_value; } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(0); }
static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { xc.HookSettingManager __cl_gen_ret = new xc.HookSettingManager(); 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.HookSettingManager constructor!")); }
static int _m_UpdateAutoBuyDrugGoodsId(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.HookSettingManager __cl_gen_to_be_invoked = (xc.HookSettingManager)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.UpdateAutoBuyDrugGoodsId( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetInstance_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { xc.HookSettingManager __cl_gen_ret = xc.Singleton <xc.HookSettingManager> .GetInstance( ); 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_CheckIsInAutoPickDropGoodsSettingInfo(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.HookSettingManager __cl_gen_to_be_invoked = (xc.HookSettingManager)translator.FastGetCSObj(L, 1); try { { uint goodsId = LuaAPI.xlua_touint(L, 2); bool __cl_gen_ret = __cl_gen_to_be_invoked.CheckIsInAutoPickDropGoodsSettingInfo(goodsId); 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_ChangeAutoPickDropSetting(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); xc.HookSettingManager __cl_gen_to_be_invoked = (xc.HookSettingManager)translator.FastGetCSObj(L, 1); try { { uint id = LuaAPI.xlua_touint(L, 2); bool isOn = LuaAPI.lua_toboolean(L, 3); __cl_gen_to_be_invoked.ChangeAutoPickDropSetting(id, isOn); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }