コード例 #1
0
 static int StopTimer(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     SimpleFramework.Manager.TimerManager obj = (SimpleFramework.Manager.TimerManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.TimerManager");
     obj.StopTimer();
     return(0);
 }
コード例 #2
0
 static int ResumeTimerEvent(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 2);
     SimpleFramework.Manager.TimerManager obj  = (SimpleFramework.Manager.TimerManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.TimerManager");
     SimpleFramework.Manager.TimerInfo    arg0 = (SimpleFramework.Manager.TimerInfo)LuaScriptMgr.GetNetObject(L, 2, typeof(SimpleFramework.Manager.TimerInfo));
     obj.ResumeTimerEvent(arg0);
     return(0);
 }
コード例 #3
0
    static int StartTimer(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        SimpleFramework.Manager.TimerManager obj = (SimpleFramework.Manager.TimerManager)LuaScriptMgr.GetUnityObjectSelf(L, 1, "SimpleFramework.Manager.TimerManager");
        float arg0 = (float)LuaScriptMgr.GetNumber(L, 2);

        obj.StartTimer(arg0);
        return(0);
    }
コード例 #4
0
    static int _CreateSimpleFramework_Manager_TimerManager(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            SimpleFramework.Manager.TimerManager obj = new SimpleFramework.Manager.TimerManager();
            LuaScriptMgr.PushObject(L, obj);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: SimpleFramework.Manager.TimerManager.New");
        }

        return(0);
    }
コード例 #5
0
    static int set_Interval(IntPtr L)
    {
        object o = LuaScriptMgr.GetLuaObject(L, 1);

        SimpleFramework.Manager.TimerManager obj = (SimpleFramework.Manager.TimerManager)o;

        if (obj == null)
        {
            LuaTypes types = LuaDLL.lua_type(L, 1);

            if (types == LuaTypes.LUA_TTABLE)
            {
                LuaDLL.luaL_error(L, "unknown member name Interval");
            }
            else
            {
                LuaDLL.luaL_error(L, "attempt to index Interval on a nil value");
            }
        }

        obj.Interval = (float)LuaScriptMgr.GetNumber(L, 3);
        return(0);
    }