static int _m_ModTimer(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                GameCloud.Unity.Common.TimerShaft gen_to_be_invoked = (GameCloud.Unity.Common.TimerShaft)translator.FastGetCSObj(L, 1);



                {
                    GameCloud.Unity.Common.EbTimeEvent _time_event = (GameCloud.Unity.Common.EbTimeEvent)translator.GetObject(L, 2, typeof(GameCloud.Unity.Common.EbTimeEvent));
                    ulong _expires = LuaAPI.lua_touint64(L, 3);

                    int gen_ret = gen_to_be_invoked.ModTimer(_time_event, _expires);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_RegisterTimer(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                GameCloud.Unity.Common.TimerShaft gen_to_be_invoked = (GameCloud.Unity.Common.TimerShaft)translator.FastGetCSObj(L, 1);



                {
                    ulong         _tm = LuaAPI.lua_touint64(L, 2);
                    System.Action _cb = translator.GetDelegate <System.Action>(L, 3);

                    GameCloud.Unity.Common.EbTimer gen_ret = gen_to_be_invoked.RegisterTimer(_tm, _cb);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _s_set_mLastJeffies(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                GameCloud.Unity.Common.TimerShaft gen_to_be_invoked = (GameCloud.Unity.Common.TimerShaft)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.mLastJeffies = LuaAPI.lua_touint64(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _s_set_mWheel5(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                GameCloud.Unity.Common.TimerShaft gen_to_be_invoked = (GameCloud.Unity.Common.TimerShaft)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.mWheel5 = (GameCloud.Unity.Common.EbTimeWheel)translator.GetObject(L, 2, typeof(GameCloud.Unity.Common.EbTimeWheel));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _g_get_mWheel4(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                GameCloud.Unity.Common.TimerShaft gen_to_be_invoked = (GameCloud.Unity.Common.TimerShaft)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.mWheel4);
            } 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)
                {
                    GameCloud.Unity.Common.TimerShaft gen_ret = new GameCloud.Unity.Common.TimerShaft();
                    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 GameCloud.Unity.Common.TimerShaft constructor!"));
        }
Esempio n. 7
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 4 && translator.Assignable <GameCloud.Unity.Common.TimerShaft>(L, 2) && (LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) || LuaAPI.lua_isuint64(L, 3)) && translator.Assignable <System.Action>(L, 4))
                {
                    GameCloud.Unity.Common.TimerShaft _timer_shaft = (GameCloud.Unity.Common.TimerShaft)translator.GetObject(L, 2, typeof(GameCloud.Unity.Common.TimerShaft));
                    ulong         _tm = LuaAPI.lua_touint64(L, 3);
                    System.Action _cb = translator.GetDelegate <System.Action>(L, 4);

                    GameCloud.Unity.Common.EbTimer gen_ret = new GameCloud.Unity.Common.EbTimer(_timer_shaft, _tm, _cb);
                    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 GameCloud.Unity.Common.EbTimer constructor!"));
        }
        static int _m_GetTimeJeffies(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                GameCloud.Unity.Common.TimerShaft gen_to_be_invoked = (GameCloud.Unity.Common.TimerShaft)translator.FastGetCSObj(L, 1);



                {
                    ulong gen_ret = gen_to_be_invoked.GetTimeJeffies(  );
                    LuaAPI.lua_pushuint64(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_AddTimer(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                GameCloud.Unity.Common.TimerShaft gen_to_be_invoked = (GameCloud.Unity.Common.TimerShaft)translator.FastGetCSObj(L, 1);



                {
                    GameCloud.Unity.Common.EbTimeEvent _time_event = (GameCloud.Unity.Common.EbTimeEvent)translator.GetObject(L, 2, typeof(GameCloud.Unity.Common.EbTimeEvent));

                    gen_to_be_invoked.AddTimer(_time_event);



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