static void Application_backgroundLoadingPriority(JSVCall vc)
 {
     if (vc.bGet)
     {
         var result = UnityEngine.Application.backgroundLoadingPriority;
         JSApi.setEnum((int)JSApi.SetType.Rval, (int)result);
     }
     else
     {
         UnityEngine.ThreadPriority arg0 = (UnityEngine.ThreadPriority)JSApi.getEnum((int)JSApi.GetType.Arg);
         UnityEngine.Application.backgroundLoadingPriority = arg0;
     }
 }
Пример #2
0
 static void WWW_threadPriority(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.WWW _this  = (UnityEngine.WWW)vc.csObj;
         var             result = _this.threadPriority;
         JSApi.setEnum((int)JSApi.SetType.Rval, (int)result);
     }
     else
     {
         UnityEngine.ThreadPriority arg0  = (UnityEngine.ThreadPriority)JSApi.getEnum((int)JSApi.GetType.Arg);
         UnityEngine.WWW            _this = (UnityEngine.WWW)vc.csObj;
         _this.threadPriority = arg0;
     }
 }
Пример #3
0
    static int set_threadPriority(IntPtr L)
    {
        object o = null;

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

        try
        {
            o = ToLua.ToObject(L, 1);
            UnityEngine.WWW            obj = (UnityEngine.WWW)o;
            UnityEngine.ThreadPriority ret = obj.threadPriority;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index threadPriority on a nil value"));
        }
    }