static int _m_NewOnceTimer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.TimerComponent gen_to_be_invoked = (DCET.Model.TimerComponent)translator.FastGetCSObj(L, 1); { long _tillTime = LuaAPI.lua_toint64(L, 2); System.Action _action = translator.GetDelegate <System.Action>(L, 3); long gen_ret = gen_to_be_invoked.NewOnceTimer(_tillTime, _action); LuaAPI.lua_pushint64(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _g_get_TimeId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.TimerComponent gen_to_be_invoked = (DCET.Model.TimerComponent)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.TimeId); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { DCET.Model.TimerComponent gen_ret = new DCET.Model.TimerComponent(); 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.TimerComponent constructor!")); }
static int _m_Update(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.TimerComponent gen_to_be_invoked = (DCET.Model.TimerComponent)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_WaitTillAsync(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.TimerComponent gen_to_be_invoked = (DCET.Model.TimerComponent)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isint64(L, 2))) { long _tillTime = LuaAPI.lua_toint64(L, 2); DCET.Model.ETTask gen_ret = gen_to_be_invoked.WaitTillAsync(_tillTime); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 3 && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) || LuaAPI.lua_isint64(L, 2)) && translator.Assignable <DCET.Model.ETCancellationToken>(L, 3)) { long _tillTime = LuaAPI.lua_toint64(L, 2); DCET.Model.ETCancellationToken _cancellationToken = (DCET.Model.ETCancellationToken)translator.GetObject(L, 3, typeof(DCET.Model.ETCancellationToken)); DCET.Model.ETTask gen_ret = gen_to_be_invoked.WaitTillAsync(_tillTime, _cancellationToken); 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.TimerComponent.WaitTillAsync!")); }
static int _m_Awake(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.TimerComponentAwakeSystem gen_to_be_invoked = (DCET.Model.TimerComponentAwakeSystem)translator.FastGetCSObj(L, 1); { DCET.Model.TimerComponent _self = (DCET.Model.TimerComponent)translator.GetObject(L, 2, typeof(DCET.Model.TimerComponent)); gen_to_be_invoked.Awake(_self); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_AddToTimeId(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.TimerComponent gen_to_be_invoked = (DCET.Model.TimerComponent)translator.FastGetCSObj(L, 1); { long _tillTime = LuaAPI.lua_toint64(L, 2); long _id = LuaAPI.lua_toint64(L, 3); gen_to_be_invoked.AddToTimeId(_tillTime, _id); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetOnceTimer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.TimerComponent gen_to_be_invoked = (DCET.Model.TimerComponent)translator.FastGetCSObj(L, 1); { long _id = LuaAPI.lua_toint64(L, 2); DCET.Model.OnceTimer gen_ret = gen_to_be_invoked.GetOnceTimer(_id); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }