Esempio n. 1
0
        static int _m_StartTiming(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                TimeControl gen_to_be_invoked = (TimeControl)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 8 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <CompleteEvent>(L, 3) && translator.Assignable <UpdateEvent>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 8))
                {
                    float         _time_              = (float)LuaAPI.lua_tonumber(L, 2);
                    CompleteEvent _onCompleted_       = translator.GetDelegate <CompleteEvent>(L, 3);
                    UpdateEvent   _updateEvent_       = translator.GetDelegate <UpdateEvent>(L, 4);
                    float         _repateRate_        = (float)LuaAPI.lua_tonumber(L, 5);
                    bool          _isIgnoreTimeScale_ = LuaAPI.lua_toboolean(L, 6);
                    bool          _isRepeate_         = LuaAPI.lua_toboolean(L, 7);
                    bool          _isDestory_         = LuaAPI.lua_toboolean(L, 8);

                    gen_to_be_invoked.StartTiming(_time_, _onCompleted_, _updateEvent_, _repateRate_, _isIgnoreTimeScale_, _isRepeate_, _isDestory_);



                    return(0);
                }
                if (gen_param_count == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <CompleteEvent>(L, 3) && translator.Assignable <UpdateEvent>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 7))
                {
                    float         _time_              = (float)LuaAPI.lua_tonumber(L, 2);
                    CompleteEvent _onCompleted_       = translator.GetDelegate <CompleteEvent>(L, 3);
                    UpdateEvent   _updateEvent_       = translator.GetDelegate <UpdateEvent>(L, 4);
                    float         _repateRate_        = (float)LuaAPI.lua_tonumber(L, 5);
                    bool          _isIgnoreTimeScale_ = LuaAPI.lua_toboolean(L, 6);
                    bool          _isRepeate_         = LuaAPI.lua_toboolean(L, 7);

                    gen_to_be_invoked.StartTiming(_time_, _onCompleted_, _updateEvent_, _repateRate_, _isIgnoreTimeScale_, _isRepeate_);



                    return(0);
                }
                if (gen_param_count == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <CompleteEvent>(L, 3) && translator.Assignable <UpdateEvent>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 6))
                {
                    float         _time_              = (float)LuaAPI.lua_tonumber(L, 2);
                    CompleteEvent _onCompleted_       = translator.GetDelegate <CompleteEvent>(L, 3);
                    UpdateEvent   _updateEvent_       = translator.GetDelegate <UpdateEvent>(L, 4);
                    float         _repateRate_        = (float)LuaAPI.lua_tonumber(L, 5);
                    bool          _isIgnoreTimeScale_ = LuaAPI.lua_toboolean(L, 6);

                    gen_to_be_invoked.StartTiming(_time_, _onCompleted_, _updateEvent_, _repateRate_, _isIgnoreTimeScale_);



                    return(0);
                }
                if (gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <CompleteEvent>(L, 3) && translator.Assignable <UpdateEvent>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5))
                {
                    float         _time_        = (float)LuaAPI.lua_tonumber(L, 2);
                    CompleteEvent _onCompleted_ = translator.GetDelegate <CompleteEvent>(L, 3);
                    UpdateEvent   _updateEvent_ = translator.GetDelegate <UpdateEvent>(L, 4);
                    float         _repateRate_  = (float)LuaAPI.lua_tonumber(L, 5);

                    gen_to_be_invoked.StartTiming(_time_, _onCompleted_, _updateEvent_, _repateRate_);



                    return(0);
                }
                if (gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <CompleteEvent>(L, 3) && translator.Assignable <UpdateEvent>(L, 4))
                {
                    float         _time_        = (float)LuaAPI.lua_tonumber(L, 2);
                    CompleteEvent _onCompleted_ = translator.GetDelegate <CompleteEvent>(L, 3);
                    UpdateEvent   _updateEvent_ = translator.GetDelegate <UpdateEvent>(L, 4);

                    gen_to_be_invoked.StartTiming(_time_, _onCompleted_, _updateEvent_);



                    return(0);
                }
                if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <CompleteEvent>(L, 3))
                {
                    float         _time_        = (float)LuaAPI.lua_tonumber(L, 2);
                    CompleteEvent _onCompleted_ = translator.GetDelegate <CompleteEvent>(L, 3);

                    gen_to_be_invoked.StartTiming(_time_, _onCompleted_);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to TimeControl.StartTiming!"));
        }