예제 #1
0
 static public int set_onFinish(IntPtr l)
 {
     try {
         BSFramework.ResourceHelper self = (BSFramework.ResourceHelper)checkSelf(l);
         System.Action v;
         int           op = LuaDelegation.checkDelegate(l, 2, out v);
         if (op == 0)
         {
             self.onFinish = v;
         }
         else if (op == 1)
         {
             self.onFinish += v;
         }
         else if (op == 2)
         {
             self.onFinish -= v;
         }
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
예제 #2
0
 static public int LoadAssetInfo(IntPtr l)
 {
     try {
         BSFramework.ResourceHelper self = (BSFramework.ResourceHelper)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         self.LoadAssetInfo(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }