static int _g_get_num(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.BountyTaskInfo __cl_gen_to_be_invoked = (xc.BountyTaskInfo)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.num); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _s_set_is_reward(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { xc.BountyTaskInfo __cl_gen_to_be_invoked = (xc.BountyTaskInfo)translator.FastGetCSObj(L, 1); __cl_gen_to_be_invoked.is_reward = LuaAPI.xlua_tointeger(L, 2); } 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) == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { int id = LuaAPI.xlua_tointeger(L, 2); int num = LuaAPI.xlua_tointeger(L, 3); int is_reward = LuaAPI.xlua_tointeger(L, 4); xc.BountyTaskInfo __cl_gen_ret = new xc.BountyTaskInfo(id, num, is_reward); 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.BountyTaskInfo constructor!")); }