static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <DCET.Model.IAwaiter>(L, 2)) { DCET.Model.IAwaiter _awaiter = (DCET.Model.IAwaiter)translator.GetObject(L, 2, typeof(DCET.Model.IAwaiter)); DCET.Model.ETTask gen_ret = new DCET.Model.ETTask(_awaiter); translator.Push(L, gen_ret); return(1); } if (LuaAPI.lua_gettop(L) == 1) { translator.Push(L, default(DCET.Model.ETTask)); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to DCET.Model.ETTask constructor!")); }
static int _g_get_Status(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.IAwaiter gen_to_be_invoked = (DCET.Model.IAwaiter)translator.FastGetCSObj(L, 1); translator.PushDCETModelAwaiterStatus(L, gen_to_be_invoked.Status); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _g_get_IsCompleted(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.IAwaiter gen_to_be_invoked = (DCET.Model.IAwaiter)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsCompleted); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _m_GetResult(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.IAwaiter gen_to_be_invoked = (DCET.Model.IAwaiter)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.GetResult( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }