예제 #1
0
 static public int set_OnAssetBundleErr(IntPtr l)
 {
     try {
         Hugula.Loader.CResLoader self = (Hugula.Loader.CResLoader)checkSelf(l);
         System.Action <Hugula.Loader.CRequest> v;
         int op = LuaDelegation.checkDelegate(l, 2, out v);
         if (op == 0)
         {
             self.OnAssetBundleErr = v;
         }
         else if (op == 1)
         {
             self.OnAssetBundleErr += v;
         }
         else if (op == 2)
         {
             self.OnAssetBundleErr -= v;
         }
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
예제 #2
0
 static public int set_OnProgress(IntPtr l)
 {
     try {
         Hugula.Loader.CResLoader self = (Hugula.Loader.CResLoader)checkSelf(l);
         System.Action <Hugula.Loader.LoadingEventArg> v;
         int op = LuaDelegation.checkDelegate(l, 2, out v);
         if (op == 0)
         {
             self.OnProgress = v;
         }
         else if (op == 1)
         {
             self.OnProgress += v;
         }
         else if (op == 2)
         {
             self.OnProgress -= v;
         }
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
예제 #3
0
 void L_onAllComplete(CResLoader loader)
 {
     if (onAllCompleteFn != null)
     {
         onAllCompleteFn.call(loader);
     }
 }
예제 #4
0
 static public int RemoveAllEvents(IntPtr l)
 {
     try {
         Hugula.Loader.CResLoader self = (Hugula.Loader.CResLoader)checkSelf(l);
         self.RemoveAllEvents();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
예제 #5
0
 static public int StopURL(IntPtr l)
 {
     try {
         Hugula.Loader.CResLoader self = (Hugula.Loader.CResLoader)checkSelf(l);
         System.String            a1;
         checkType(l, 2, out a1);
         self.StopURL(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
예제 #6
0
 static public int LoadReq(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 2)
         {
             Hugula.Loader.CResLoader self = (Hugula.Loader.CResLoader)checkSelf(l);
             Hugula.Loader.CRequest   a1;
             checkType(l, 2, out a1);
             self.LoadReq(a1);
             pushValue(l, true);
             return(1);
         }
         else if (argc == 3)
         {
             Hugula.Loader.CResLoader self = (Hugula.Loader.CResLoader)checkSelf(l);
             Hugula.Loader.CRequest   a1;
             checkType(l, 2, out a1);
             Hugula.Loader.GroupRequestRecord a2;
             checkType(l, 3, out a2);
             self.LoadReq(a1, a2);
             pushValue(l, true);
             return(1);
         }
         else if (argc == 4)
         {
             Hugula.Loader.CResLoader self = (Hugula.Loader.CResLoader)checkSelf(l);
             System.Collections.Generic.IList <Hugula.Loader.CRequest> a1;
             checkType(l, 2, out a1);
             System.Action <System.Object> a2;
             LuaDelegation.checkDelegate(l, 3, out a2);
             System.Action <Hugula.Loader.LoadingEventArg> a3;
             LuaDelegation.checkDelegate(l, 4, out a3);
             self.LoadReq(a1, a2, a3);
             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));
     }
 }
예제 #7
0
 void L_onProgress(CResLoader loader, LoadingEventArg arg)
 {
     if (onProgressFn != null)
         onProgressFn.call(loader, arg);
 }
예제 #8
0
 void L_onAllComplete(CResLoader loader)
 {
     if (onAllCompleteFn != null)
         onAllCompleteFn.call(loader);
 }
예제 #9
0
 void LResLoader_OnGroupComplete(CResLoader obj)
 {
     if (groupCompleteFn != null) groupCompleteFn.call(obj);
     groupCompleteFn = null;
 }