Example #1
0
 void LHighway_onProgress(CHighway loader, HighwayEventArg arg)
 {
     if (onProgressFn != null)
     {
         onProgressFn.call(loader, arg);
     }
 }
Example #2
0
 public CHighway()
 {
     requestCallBackList = new Dictionary <string, List <CRequest> >();
     queue        = new CQueueRequest();
     loader       = new Dictionary <string, CRequest>();
     maxLoading   = 2;
     loadingEvent = new HighwayEventArg();
     loaderPool   = new List <CTransport>();
 }
Example #3
0
 public CHighway()
 {
     requestCallBackList = new Dictionary<string, List<CRequest>>();
     queue = new CQueueRequest();
     loader = new Dictionary<string, CRequest>();
     maxLoading = 2;
     loadingEvent = new HighwayEventArg();
     loaderPool = new List<CTransport>();
 }
Example #4
0
 static public int get_total(IntPtr l)
 {
     try {
         HighwayEventArg self = (HighwayEventArg)checkSelf(l);
         pushValue(l, self.total);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Example #5
0
 public static int constructor(IntPtr l)
 {
     try {
         HighwayEventArg o;
         o=new HighwayEventArg();
         pushValue(l,o);
         return 1;
     }
     catch(Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return 0;
     }
 }
Example #6
0
 public static int constructor(IntPtr l)
 {
     try {
         HighwayEventArg o;
         o=new HighwayEventArg();
         pushValue(l,true);
         pushValue(l,o);
         return 2;
     }
     catch(Exception e) {
         return error(l,e);
     }
 }
Example #7
0
 static public int constructor(IntPtr l)
 {
     try {
         HighwayEventArg o;
         o = new HighwayEventArg();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Example #8
0
 static public int set_total(IntPtr l)
 {
     try {
         HighwayEventArg self = (HighwayEventArg)checkSelf(l);
         System.Int32    v;
         checkType(l, 2, out v);
         self.total = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Example #9
0
	void LHighway_onProgress(CHighway loader, HighwayEventArg arg)
	{
		if (onProgressFn != null)
			onProgressFn.Call(loader, arg);
	}