static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { DCET.Model.OneThreadSynchronizationContext gen_ret = new DCET.Model.OneThreadSynchronizationContext(); translator.Push(L, 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 DCET.Model.OneThreadSynchronizationContext constructor!")); }
static int _m_Update(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.OneThreadSynchronizationContext gen_to_be_invoked = (DCET.Model.OneThreadSynchronizationContext)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Update( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Post(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.OneThreadSynchronizationContext gen_to_be_invoked = (DCET.Model.OneThreadSynchronizationContext)translator.FastGetCSObj(L, 1); { System.Threading.SendOrPostCallback _callback = translator.GetDelegate <System.Threading.SendOrPostCallback>(L, 2); object _state = translator.GetObject(L, 3, typeof(object)); gen_to_be_invoked.Post(_callback, _state); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }