Ejemplo n.º 1
0
 void LHighway_onProgress(CHighway loader, HighwayEventArg arg)
 {
     if (onProgressFn != null)
     {
         onProgressFn.call(loader, arg);
     }
 }
Ejemplo n.º 2
0
 static public int LoadReq(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(CRequest)))
         {
             CHighway self = (CHighway)checkSelf(l);
             CRequest a1;
             checkType(l, 2, out a1);
             self.LoadReq(a1);
             return(0);
         }
         else if (matchType(l, argc, 2, typeof(IList <CRequest>)))
         {
             CHighway self = (CHighway)checkSelf(l);
             System.Collections.Generic.IList <CRequest> a1;
             checkType(l, 2, out a1);
             self.LoadReq(a1);
             return(0);
         }
         LuaDLL.luaL_error(l, "No matched override function to call");
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Ejemplo n.º 3
0
 void LHighway_onAllComplete(CHighway loader)
 {
     if (onAllCompleteFn != null)
     {
         onAllCompleteFn.call(loader);
     }
 }
Ejemplo n.º 4
0
 public static CHighway GetInstance()
 {
     if (_instance == null)
     {
         _instance = new CHighway();
     }
     return(_instance);
 }
Ejemplo n.º 5
0
 static public int get_currentLoading(IntPtr l)
 {
     try {
         CHighway self = (CHighway)checkSelf(l);
         pushValue(l, self.currentLoading);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Ejemplo n.º 6
0
 static public int GetInstance_s(IntPtr l)
 {
     try {
         var ret = CHighway.GetInstance();
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Ejemplo n.º 7
0
 static public int InitProgressState(IntPtr l)
 {
     try {
         CHighway self = (CHighway)checkSelf(l);
         self.InitProgressState();
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Ejemplo n.º 8
0
 static public int constructor(IntPtr l)
 {
     try {
         CHighway o;
         o = new CHighway();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Ejemplo n.º 9
0
 public static int constructor(IntPtr l)
 {
     try {
         CHighway o;
         o=new CHighway();
         pushValue(l,o);
         return 1;
     }
     catch(Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return 0;
     }
 }
Ejemplo n.º 10
0
 public static int constructor(IntPtr l)
 {
     try {
         CHighway o;
         o=new CHighway();
         pushValue(l,true);
         pushValue(l,o);
         return 2;
     }
     catch(Exception e) {
         return error(l,e);
     }
 }
Ejemplo n.º 11
0
 static public int set_totalLoading(IntPtr l)
 {
     try {
         CHighway self = (CHighway)checkSelf(l);
         int      v;
         checkType(l, 2, out v);
         self.totalLoading = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Ejemplo n.º 12
0
 static public int set_cache(IntPtr l)
 {
     try {
         CHighway      self = (CHighway)checkSelf(l);
         System.Object v;
         checkType(l, 2, out v);
         self.cache = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Ejemplo n.º 13
0
 static public int SetReqDataFromData_s(IntPtr l)
 {
     try {
         CRequest a1;
         checkType(l, 1, out a1);
         System.Object a2;
         checkType(l, 2, out a2);
         CHighway.SetReqDataFromData(a1, a2);
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Ejemplo n.º 14
0
	void LHighway_onAllComplete(CHighway loader)
	{
		if (onAllCompleteFn != null)
			onAllCompleteFn.Call(loader);
	}
Ejemplo n.º 15
0
	void LHighway_onProgress(CHighway loader, HighwayEventArg arg)
	{
		if (onProgressFn != null)
			onProgressFn.Call(loader, arg);
	}
Ejemplo n.º 16
0
 public static CHighway GetInstance()
 {
     if (_instance == null)
         _instance = new CHighway();
     return _instance;
 }
Ejemplo n.º 17
0
    static int _CreateCHighway(IntPtr L)
    {
        int count = LuaDLL.lua_gettop(L);

        if (count == 0)
        {
            CHighway obj = new CHighway();
            LuaScriptMgr.PushObject(L, obj);
            return 1;
        }
        else
        {
            LuaDLL.luaL_error(L, "invalid arguments to method: CHighway.New");
        }

        return 0;
    }