Inheritance: UnityEngine.Behaviour
 static public int Play(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 2)
         {
             UnityEngine.Experimental.Director.DirectorPlayer self = (UnityEngine.Experimental.Director.DirectorPlayer)checkSelf(l);
             UnityEngine.Experimental.Director.Playable       a1;
             checkType(l, 2, out a1);
             self.Play(a1);
             pushValue(l, true);
             return(1);
         }
         else if (argc == 3)
         {
             UnityEngine.Experimental.Director.DirectorPlayer self = (UnityEngine.Experimental.Director.DirectorPlayer)checkSelf(l);
             UnityEngine.Experimental.Director.Playable       a1;
             checkType(l, 2, out a1);
             System.Object a2;
             checkType(l, 3, out a2);
             self.Play(a1, a2);
             pushValue(l, true);
             return(1);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Esempio n. 2
0
 static int Stop(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     UnityEngine.Experimental.Director.DirectorPlayer obj = (UnityEngine.Experimental.Director.DirectorPlayer)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.Experimental.Director.DirectorPlayer");
     obj.Stop();
     return(0);
 }
Esempio n. 3
0
    static int Play(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 2)
        {
            UnityEngine.Experimental.Director.DirectorPlayer obj  = (UnityEngine.Experimental.Director.DirectorPlayer)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.Experimental.Director.DirectorPlayer");
            UnityEngine.Experimental.Director.Playable       arg0 = (UnityEngine.Experimental.Director.Playable)LuaScriptMgr.GetNetObject(L, 2, typeof(UnityEngine.Experimental.Director.Playable));
            obj.Play(arg0);
            return(0);
        }
        else if (count == 3)
        {
            UnityEngine.Experimental.Director.DirectorPlayer obj  = (UnityEngine.Experimental.Director.DirectorPlayer)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.Experimental.Director.DirectorPlayer");
            UnityEngine.Experimental.Director.Playable       arg0 = (UnityEngine.Experimental.Director.Playable)LuaScriptMgr.GetNetObject(L, 2, typeof(UnityEngine.Experimental.Director.Playable));
            object arg1 = LuaScriptMgr.GetVarObject(L, 3);
            obj.Play(arg0, arg1);
            return(0);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: UnityEngine.Experimental.Director.DirectorPlayer.Play");
        }

        return(0);
    }
    static int Play(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes(L, typeof(UnityEngine.Experimental.Director.DirectorPlayer), typeof(UnityEngine.Experimental.Director.Playable)))
            {
                UnityEngine.Experimental.Director.DirectorPlayer obj  = (UnityEngine.Experimental.Director.DirectorPlayer)ToLua.ToObject(L, 1);
                UnityEngine.Experimental.Director.Playable       arg0 = (UnityEngine.Experimental.Director.Playable)ToLua.ToObject(L, 2);
                obj.Play(arg0);
                return(0);
            }
            else if (count == 3 && TypeChecker.CheckTypes(L, typeof(UnityEngine.Experimental.Director.DirectorPlayer), typeof(UnityEngine.Experimental.Director.Playable), typeof(object)))
            {
                UnityEngine.Experimental.Director.DirectorPlayer obj  = (UnityEngine.Experimental.Director.DirectorPlayer)ToLua.ToObject(L, 1);
                UnityEngine.Experimental.Director.Playable       arg0 = (UnityEngine.Experimental.Director.Playable)ToLua.ToObject(L, 2);
                object arg1 = ToLua.ToVarObject(L, 3);
                obj.Play(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Experimental.Director.DirectorPlayer.Play"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Esempio n. 5
0
 static int GetTimeUpdateMode(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 1);
     UnityEngine.Experimental.Director.DirectorPlayer     obj = (UnityEngine.Experimental.Director.DirectorPlayer)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.Experimental.Director.DirectorPlayer");
     UnityEngine.Experimental.Director.DirectorUpdateMode o   = obj.GetTimeUpdateMode();
     LuaScriptMgr.Push(L, o);
     return(1);
 }
Esempio n. 6
0
 static int SetTimeUpdateMode(IntPtr L)
 {
     LuaScriptMgr.CheckArgsCount(L, 2);
     UnityEngine.Experimental.Director.DirectorPlayer     obj  = (UnityEngine.Experimental.Director.DirectorPlayer)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.Experimental.Director.DirectorPlayer");
     UnityEngine.Experimental.Director.DirectorUpdateMode arg0 = (UnityEngine.Experimental.Director.DirectorUpdateMode)LuaScriptMgr.GetNetObject(L, 2, typeof(UnityEngine.Experimental.Director.DirectorUpdateMode));
     obj.SetTimeUpdateMode(arg0);
     return(0);
 }
Esempio n. 7
0
    static int SetTime(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UnityEngine.Experimental.Director.DirectorPlayer obj = (UnityEngine.Experimental.Director.DirectorPlayer)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.Experimental.Director.DirectorPlayer");
        double arg0 = (double)LuaScriptMgr.GetNumber(L, 2);

        obj.SetTime(arg0);
        return(0);
    }
 static public int Stop(IntPtr l)
 {
     try {
         UnityEngine.Experimental.Director.DirectorPlayer self = (UnityEngine.Experimental.Director.DirectorPlayer)checkSelf(l);
         self.Stop();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
	static public int constructor(IntPtr l) {
		try {
			UnityEngine.Experimental.Director.DirectorPlayer o;
			o=new UnityEngine.Experimental.Director.DirectorPlayer();
			pushValue(l,true);
			pushValue(l,o);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Experimental.Director.DirectorPlayer o;
         o = new UnityEngine.Experimental.Director.DirectorPlayer();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int GetTimeUpdateMode(IntPtr l)
 {
     try {
         UnityEngine.Experimental.Director.DirectorPlayer self = (UnityEngine.Experimental.Director.DirectorPlayer)checkSelf(l);
         var ret = self.GetTimeUpdateMode();
         pushValue(l, true);
         pushEnum(l, (int)ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int Play(IntPtr l)
 {
     try {
         UnityEngine.Experimental.Director.DirectorPlayer self = (UnityEngine.Experimental.Director.DirectorPlayer)checkSelf(l);
         UnityEngine.Experimental.Director.Playable       a1;
         checkValueType(l, 2, out a1);
         self.Play(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int SetTimeUpdateMode(IntPtr l)
 {
     try {
         UnityEngine.Experimental.Director.DirectorPlayer     self = (UnityEngine.Experimental.Director.DirectorPlayer)checkSelf(l);
         UnityEngine.Experimental.Director.DirectorUpdateMode a1;
         checkEnum(l, 2, out a1);
         self.SetTimeUpdateMode(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int Stop(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.Experimental.Director.DirectorPlayer obj = (UnityEngine.Experimental.Director.DirectorPlayer)ToLua.CheckObject(L, 1, typeof(UnityEngine.Experimental.Director.DirectorPlayer));
         obj.Stop();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int SetTime(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.Experimental.Director.DirectorPlayer obj = (UnityEngine.Experimental.Director.DirectorPlayer)ToLua.CheckObject(L, 1, typeof(UnityEngine.Experimental.Director.DirectorPlayer));
         double arg0 = (double)LuaDLL.luaL_checknumber(L, 2);
         obj.SetTime(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int SetTimeUpdateMode(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.Experimental.Director.DirectorPlayer     obj  = (UnityEngine.Experimental.Director.DirectorPlayer)ToLua.CheckObject <UnityEngine.Experimental.Director.DirectorPlayer>(L, 1);
         UnityEngine.Experimental.Director.DirectorUpdateMode arg0 = (UnityEngine.Experimental.Director.DirectorUpdateMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.Experimental.Director.DirectorUpdateMode));
         obj.SetTimeUpdateMode(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int GetTimeUpdateMode(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.Experimental.Director.DirectorPlayer     obj = (UnityEngine.Experimental.Director.DirectorPlayer)ToLua.CheckObject(L, 1, typeof(UnityEngine.Experimental.Director.DirectorPlayer));
         UnityEngine.Experimental.Director.DirectorUpdateMode o   = obj.GetTimeUpdateMode();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int GetTime(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.Experimental.Director.DirectorPlayer obj = (UnityEngine.Experimental.Director.DirectorPlayer)ToLua.CheckObject <UnityEngine.Experimental.Director.DirectorPlayer>(L, 1);
         double o = obj.GetTime();
         LuaDLL.lua_pushnumber(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 19
0
    static int Play(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 2);
            UnityEngine.Experimental.Director.DirectorPlayer obj  = (UnityEngine.Experimental.Director.DirectorPlayer)ToLua.CheckObject <UnityEngine.Experimental.Director.DirectorPlayer>(L, 1);
            UnityEngine.Experimental.Director.Playable       arg0 = StackTraits <UnityEngine.Experimental.Director.Playable> .Check(L, 2);

            obj.Play(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Esempio n. 20
0
    static int _CreateUnityEngine_Experimental_Director_DirectorPlayer(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            UnityEngine.Experimental.Director.DirectorPlayer obj = new UnityEngine.Experimental.Director.DirectorPlayer();
            LuaScriptMgr.Push(L, obj);
            return(1);
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: UnityEngine.Experimental.Director.DirectorPlayer.New");
        }

        return(0);
    }
    static int _CreateUnityEngine_Experimental_Director_DirectorPlayer(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                UnityEngine.Experimental.Director.DirectorPlayer obj = new UnityEngine.Experimental.Director.DirectorPlayer();
                ToLua.Push(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Experimental.Director.DirectorPlayer.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
	static int _CreateUnityEngine_Experimental_Director_DirectorPlayer(IntPtr L)
	{
		try
		{
			int count = LuaDLL.lua_gettop(L);

			if (count == 0)
			{
				UnityEngine.Experimental.Director.DirectorPlayer obj = new UnityEngine.Experimental.Director.DirectorPlayer();
				ToLua.Push(L, obj);
				return 1;
			}
			else
			{
				return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Experimental.Director.DirectorPlayer.New");
			}
		}
		catch(Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
Esempio n. 23
0
 private static extern void INTERNAL_CALL_PlayStructInternal(DirectorPlayer self, ref Playable pStruct);
Esempio n. 24
0
 private void PlayStructInternal(Playable pStruct)
 {
     DirectorPlayer.INTERNAL_CALL_PlayStructInternal(this, ref pStruct);
 }