Example #1
0
        public static AssetBundleLoadHistory AddLoadHistory(string uri, bool isLoad)
        {
            string keyName = uri;
            AssetBundleLoadHistory abLoadHistory;

            if (dictAssetBundleLoadHistories.TryGetValue(keyName, out abLoadHistory))
            {
            }
            else
            {
                abLoadHistory = new AssetBundleLoadHistory(uri);
                dictAssetBundleLoadHistories.Add(keyName, abLoadHistory);
            }

            if (isLoad)
            {
                abLoadHistory.RecordLoad();
            }
            else
            {
                abLoadHistory.RecordUnload();
            }

            return(abLoadHistory);
        }
 static public int get_loadTimes(IntPtr l)
 {
     try {
         LBoot.AssetBundleLoadHistory self = (LBoot.AssetBundleLoadHistory)checkSelf(l);
         pushValue(l, self.loadTimes);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int Clear(IntPtr l)
 {
     try {
         LBoot.AssetBundleLoadHistory self = (LBoot.AssetBundleLoadHistory)checkSelf(l);
         self.Clear();
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_uri(IntPtr l)
 {
     try {
         LBoot.AssetBundleLoadHistory self = (LBoot.AssetBundleLoadHistory)checkSelf(l);
         System.String v;
         checkType(l, 2, out v);
         self.uri = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int set_unloadTimes(IntPtr l)
 {
     try {
         LBoot.AssetBundleLoadHistory self = (LBoot.AssetBundleLoadHistory)checkSelf(l);
         System.Double[] v;
         checkType(l, 2, out v);
         self.unloadTimes = v;
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static public int constructor(IntPtr l)
 {
     try {
         LBoot.AssetBundleLoadHistory o;
         System.String a1;
         checkType(l, 2, out a1);
         o = new LBoot.AssetBundleLoadHistory(a1);
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }