Ejemplo n.º 1
0
 static public int ClearAllAssets(IntPtr l)
 {
     try {
         mg.org.AssetCache self = (mg.org.AssetCache)checkSelf(l);
         self.ClearAllAssets();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 2
0
 static public int UnloadAssetsUnused(IntPtr l)
 {
     try {
         mg.org.AssetCache self = (mg.org.AssetCache)checkSelf(l);
         self.UnloadAssetsUnused();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 3
0
 static public int ReleaseByRefer(IntPtr l)
 {
     try {
         mg.org.AssetCache self = (mg.org.AssetCache)checkSelf(l);
         System.Object     a1;
         checkType(l, 2, out a1);
         self.ReleaseByRefer(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 4
0
 static public int UnloadAsset(IntPtr l)
 {
     try {
         mg.org.AssetCache self = (mg.org.AssetCache)checkSelf(l);
         System.String     a1;
         checkType(l, 2, out a1);
         var ret = self.UnloadAsset(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 5
0
 static public int RetainByUrl(IntPtr l)
 {
     try {
         mg.org.AssetCache self = (mg.org.AssetCache)checkSelf(l);
         System.Object     a1;
         checkType(l, 2, out a1);
         System.String a2;
         checkType(l, 3, out a2);
         self.RetainByUrl(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 6
0
 static public int LoadSync_Level(IntPtr l)
 {
     try {
         mg.org.AssetCache self = (mg.org.AssetCache)checkSelf(l);
         System.String     a1;
         checkType(l, 2, out a1);
         System.Object a2;
         checkType(l, 3, out a2);
         var ret = self.LoadSync_Level(a1, a2);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 7
0
 static public int LoadAsync(IntPtr l)
 {
     try {
         mg.org.AssetCache self = (mg.org.AssetCache)checkSelf(l);
         System.String     a1;
         checkType(l, 2, out a1);
         mg.org.CALLBACK_1 a2;
         checkDelegate(l, 3, out a2);
         System.Object a3;
         checkType(l, 4, out a3);
         var ret = self.LoadAsync(a1, a2, a3);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Ejemplo n.º 8
0
 public void Init(string url_)
 {
     url     = url_;
     m_cache = AssetCache.me;
 }