static int _m_CanExecute(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); BehaviorDesigner.Runtime.Tasks.Parallel gen_to_be_invoked = (BehaviorDesigner.Runtime.Tasks.Parallel)translator.FastGetCSObj(L, 1); { bool gen_ret = gen_to_be_invoked.CanExecute( ); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }