static public int constructor(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.Caching o;
         o = new UnityEngine.Caching();
         pushValue(l, true);
         pushValue(l, o);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Пример #2
0
 static public int constructor(IntPtr l)
 {
     UnityEngine.Caching o;
     o = new UnityEngine.Caching();
     pushObject(l, o);
     return(1);
 }
Пример #3
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Caching o;
         o = new UnityEngine.Caching();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
	static public int constructor(IntPtr l) {
		try {
			UnityEngine.Caching o;
			o=new UnityEngine.Caching();
			pushValue(l,true);
			pushValue(l,o);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
	}
Пример #5
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.Caching o;
         o = new UnityEngine.Caching();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Пример #6
0
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.Caching o;
         o=new UnityEngine.Caching();
         pushValue(l,o);
         return 1;
     }
     catch(Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return 0;
     }
 }
Пример #7
0
 static public int constructor(IntPtr l)
 {
     LuaDLL.lua_remove(l, 1);
     UnityEngine.Caching o;
     if (matchType(l, 1))
     {
         o = new UnityEngine.Caching();
         pushObject(l, o);
         return(1);
     }
     LuaDLL.luaL_error(l, "New object failed.");
     return(0);
 }
Пример #8
0
 public static bool MarkAsUsed(string url, Hash128 hash)
 {
     return(Caching.INTERNAL_CALL_MarkAsUsed(url, ref hash));
 }
Пример #9
0
 public static bool IsVersionCached(string url, Hash128 hash)
 {
     return(Caching.INTERNAL_CALL_IsVersionCached(url, ref hash));
 }
Пример #10
0
        public static bool MarkAsUsed(string url, int version)
        {
            Hash128 hash = new Hash128(0u, 0u, 0u, (uint)version);

            return(Caching.MarkAsUsed(url, hash));
        }
Пример #11
0
 public static bool Authorize(string name, string domain, int size, int expiration, string signature)
 {
     return(Caching.Authorize(name, domain, (long)size, expiration, signature));
 }
Пример #12
0
        public static bool IsVersionCached(string url, int version)
        {
            Hash128 hash = new Hash128(0u, 0u, 0u, (uint)version);

            return(Caching.IsVersionCached(url, hash));
        }
Пример #13
0
 internal static bool MarkAsUsed(string url, string name, Hash128 hash)
 {
     return(Caching.INTERNAL_CALL_MarkAsUsed(url, name, ref hash));
 }
Пример #14
0
 public static void MoveCacheAfter(Cache src, Cache dst)
 {
     Caching.INTERNAL_CALL_MoveCacheAfter(ref src, ref dst);
 }
Пример #15
0
 public static void ResetNoBackupFlag(string url, Hash128 hash)
 {
     Caching.INTERNAL_CALL_ResetNoBackupFlag(url, ref hash);
 }
Пример #16
0
 internal static void SetNoBackupFlag(string url, string name, Hash128 hash, bool enabled)
 {
     Caching.INTERNAL_CALL_SetNoBackupFlag(url, name, ref hash, enabled);
 }
Пример #17
0
 internal static bool MarkAsUsed(string url, string assetBundleName, Hash128 hash)
 {
     return(Caching.MarkAsUsed_Injected(url, assetBundleName, ref hash));
 }
Пример #18
0
 internal static void SetNoBackupFlag(string url, string assetBundleName, Hash128 hash, bool enabled)
 {
     Caching.SetNoBackupFlag_Injected(url, assetBundleName, ref hash, enabled);
 }
Пример #19
0
 internal static bool IsVersionCached(string url, string assetBundleName, Hash128 hash)
 {
     return(Caching.IsVersionCached_Injected(url, assetBundleName, ref hash));
 }
Пример #20
0
 internal static bool ClearCachedVersions(string assetBundleName, Hash128 hash, bool keepInputVersion)
 {
     return(Caching.ClearCachedVersions_Injected(assetBundleName, ref hash, keepInputVersion));
 }
Пример #21
0
 internal static bool ClearCachedVersionInternal(string assetBundleName, Hash128 hash)
 {
     return(Caching.ClearCachedVersionInternal_Injected(assetBundleName, ref hash));
 }
Пример #22
0
 public static bool ClearCache(int expiration)
 {
     return(Caching.ClearCache_Int(expiration));
 }
Пример #23
0
 public static bool RemoveCache(Cache cache)
 {
     return(Caching.INTERNAL_CALL_RemoveCache(ref cache));
 }
Пример #24
0
 public static bool Authorize(string name, string domain, long size, string signature)
 {
     return(Caching.Authorize(name, domain, size, -1, signature));
 }
Пример #25
0
 internal static bool IsVersionCached(string url, string name, Hash128 hash)
 {
     return(Caching.INTERNAL_CALL_IsVersionCached(url, name, ref hash));
 }
Пример #26
0
 public static void MoveCacheAfter(Cache src, Cache dst)
 {
     Caching.MoveCacheAfter_Injected(ref src, ref dst);
 }
Пример #27
0
 public static bool CleanCache()
 {
     return(Caching.ClearCache());
 }
Пример #28
0
 public static bool RemoveCache(Cache cache)
 {
     return(Caching.RemoveCache_Injected(ref cache));
 }
Пример #29
0
 public static void MoveCacheBefore(Cache src, Cache dst)
 {
     Caching.INTERNAL_CALL_MoveCacheBefore(ref src, ref dst);
 }
Пример #30
0
 public static void MoveCacheBefore(Cache src, Cache dst)
 {
     Caching.MoveCacheBefore_Injected(ref src, ref dst);
 }
Пример #31
0
 public static bool ClearOtherCachedVersions(string assetBundleName, Hash128 hash)
 {
     return(Caching.INTERNAL_CALL_ClearOtherCachedVersions(assetBundleName, ref hash));
 }