static int ClearTimelinePrefab(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Nova.TimelineController obj = (Nova.TimelineController)ToLua.CheckObject <Nova.TimelineController>(L, 1);
         obj.ClearTimelinePrefab();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int GetRestoreData(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Nova.TimelineController obj = (Nova.TimelineController)ToLua.CheckObject <Nova.TimelineController>(L, 1);
         Nova.IRestoreData       o   = obj.GetRestoreData();
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int Restore(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Nova.TimelineController obj  = (Nova.TimelineController)ToLua.CheckObject <Nova.TimelineController>(L, 1);
         Nova.IRestoreData       arg0 = (Nova.IRestoreData)ToLua.CheckObject <Nova.IRestoreData>(L, 2);
         obj.Restore(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int SetTimelinePrefab(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Nova.TimelineController obj = (Nova.TimelineController)ToLua.CheckObject <Nova.TimelineController>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         obj.SetTimelinePrefab(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int LoadTimelinePrefab(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Nova.TimelineController obj = (Nova.TimelineController)ToLua.CheckObject <Nova.TimelineController>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         UnityEngine.GameObject o = obj.LoadTimelinePrefab(arg0);
         ToLua.PushSealed(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int set_cameraPP(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.TimelineController obj  = (Nova.TimelineController)o;
            Nova.PostProcessing     arg0 = (Nova.PostProcessing)ToLua.CheckObject <Nova.PostProcessing>(L, 2);
            obj.cameraPP = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index cameraPP on a nil value"));
        }
    }
    static int get_mainCamera(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.TimelineController obj = (Nova.TimelineController)o;
            UnityEngine.Camera      ret = obj.mainCamera;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index mainCamera on a nil value"));
        }
    }
    static int set_timelinePrefabFolder(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.TimelineController obj = (Nova.TimelineController)o;
            string arg0 = ToLua.CheckString(L, 2);
            obj.timelinePrefabFolder = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index timelinePrefabFolder on a nil value"));
        }
    }
    static int get_priority(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.TimelineController obj = (Nova.TimelineController)o;
            Nova.RestorablePriority ret = obj.priority;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index priority on a nil value"));
        }
    }
Пример #10
0
    static int get_restorableObjectName(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.TimelineController obj = (Nova.TimelineController)o;
            string ret = obj.restorableObjectName;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index restorableObjectName on a nil value"));
        }
    }
Пример #11
0
    static int get_playableDirector(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.TimelineController obj = (Nova.TimelineController)o;
            UnityEngine.Playables.PlayableDirector ret = obj.playableDirector;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index playableDirector on a nil value"));
        }
    }
Пример #12
0
    static int get_cameraPP(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.TimelineController obj = (Nova.TimelineController)o;
            Nova.PostProcessing     ret = obj.cameraPP;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index cameraPP on a nil value"));
        }
    }
Пример #13
0
    static int set_mainCamera(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.TimelineController obj  = (Nova.TimelineController)o;
            UnityEngine.Camera      arg0 = (UnityEngine.Camera)ToLua.CheckObject(L, 2, typeof(UnityEngine.Camera));
            obj.mainCamera = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index mainCamera on a nil value"));
        }
    }
Пример #14
0
    static int get_timelinePrefabFolder(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Nova.TimelineController obj = (Nova.TimelineController)o;
            string ret = obj.timelinePrefabFolder;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index timelinePrefabFolder on a nil value"));
        }
    }
Пример #15
0
    static int _CreateNova_TimeAnimationProperty(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                Nova.TimelineController arg0 = (Nova.TimelineController)ToLua.CheckObject <Nova.TimelineController>(L, 1);
                float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
                Nova.TimeAnimationProperty obj = new Nova.TimeAnimationProperty(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <Nova.UseRelativeValue>(L, 3))
            {
                Nova.TimelineController arg0 = (Nova.TimelineController)ToLua.CheckObject <Nova.TimelineController>(L, 1);
                float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
                Nova.UseRelativeValue      arg2 = (Nova.UseRelativeValue)ToLua.ToObject(L, 3);
                Nova.TimeAnimationProperty obj  = new Nova.TimeAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <float>(L, 3))
            {
                Nova.TimelineController arg0 = (Nova.TimelineController)ToLua.CheckObject <Nova.TimelineController>(L, 1);
                float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
                float arg2 = (float)LuaDLL.lua_tonumber(L, 3);
                Nova.TimeAnimationProperty obj = new Nova.TimeAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Nova.TimeAnimationProperty.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Пример #16
0
 public TimeAnimationProperty(TimelineController timeline, float targetValue) : base(targetValue)
 {
     this.timeline = timeline;
 }
Пример #17
0
 public TimeAnimationProperty(TimelineController timeline, float deltaValue, UseRelativeValue useRelativeValue) :
     base(deltaValue, useRelativeValue)
 {
     this.timeline = timeline;
 }