static int _s_set_isLooped(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.Timer gen_to_be_invoked = (UnityMMO.Timer)translator.FastGetCSObj(L, 1); gen_to_be_invoked.isLooped = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_usesRealTime(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.Timer gen_to_be_invoked = (UnityMMO.Timer)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.usesRealTime); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _m_Resume_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { UnityMMO.Timer _timer = (UnityMMO.Timer)translator.GetObject(L, 1, typeof(UnityMMO.Timer)); UnityMMO.Timer.Resume(_timer); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Resume(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.Timer gen_to_be_invoked = (UnityMMO.Timer)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Resume( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetRatioRemaining(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.Timer gen_to_be_invoked = (UnityMMO.Timer)translator.FastGetCSObj(L, 1); { float gen_ret = gen_to_be_invoked.GetRatioRemaining( ); LuaAPI.lua_pushnumber(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Register_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable <System.Action>(L, 2) && translator.Assignable <System.Action <float> >(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5) && translator.Assignable <UnityEngine.MonoBehaviour>(L, 6)) { float _duration = (float)LuaAPI.lua_tonumber(L, 1); System.Action _onComplete = translator.GetDelegate <System.Action>(L, 2); System.Action <float> _onUpdate = translator.GetDelegate <System.Action <float> >(L, 3); bool _isLooped = LuaAPI.lua_toboolean(L, 4); bool _useRealTime = LuaAPI.lua_toboolean(L, 5); UnityEngine.MonoBehaviour _autoDestroyOwner = (UnityEngine.MonoBehaviour)translator.GetObject(L, 6, typeof(UnityEngine.MonoBehaviour)); UnityMMO.Timer gen_ret = UnityMMO.Timer.Register(_duration, _onComplete, _onUpdate, _isLooped, _useRealTime, _autoDestroyOwner); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable <System.Action>(L, 2) && translator.Assignable <System.Action <float> >(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)) { float _duration = (float)LuaAPI.lua_tonumber(L, 1); System.Action _onComplete = translator.GetDelegate <System.Action>(L, 2); System.Action <float> _onUpdate = translator.GetDelegate <System.Action <float> >(L, 3); bool _isLooped = LuaAPI.lua_toboolean(L, 4); bool _useRealTime = LuaAPI.lua_toboolean(L, 5); UnityMMO.Timer gen_ret = UnityMMO.Timer.Register(_duration, _onComplete, _onUpdate, _isLooped, _useRealTime); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable <System.Action>(L, 2) && translator.Assignable <System.Action <float> >(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4)) { float _duration = (float)LuaAPI.lua_tonumber(L, 1); System.Action _onComplete = translator.GetDelegate <System.Action>(L, 2); System.Action <float> _onUpdate = translator.GetDelegate <System.Action <float> >(L, 3); bool _isLooped = LuaAPI.lua_toboolean(L, 4); UnityMMO.Timer gen_ret = UnityMMO.Timer.Register(_duration, _onComplete, _onUpdate, _isLooped); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable <System.Action>(L, 2) && translator.Assignable <System.Action <float> >(L, 3)) { float _duration = (float)LuaAPI.lua_tonumber(L, 1); System.Action _onComplete = translator.GetDelegate <System.Action>(L, 2); System.Action <float> _onUpdate = translator.GetDelegate <System.Action <float> >(L, 3); UnityMMO.Timer gen_ret = UnityMMO.Timer.Register(_duration, _onComplete, _onUpdate); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && translator.Assignable <System.Action>(L, 2)) { float _duration = (float)LuaAPI.lua_tonumber(L, 1); System.Action _onComplete = translator.GetDelegate <System.Action>(L, 2); UnityMMO.Timer gen_ret = UnityMMO.Timer.Register(_duration, _onComplete); 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 UnityMMO.Timer.Register!")); }