Пример #1
0
    static int get_isDone(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            libx.BundleAsyncRequest obj = (libx.BundleAsyncRequest)o;
            bool ret = obj.isDone;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index isDone on a nil value"));
        }
    }
Пример #2
0
    static int get_progress(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            libx.BundleAsyncRequest obj = (libx.BundleAsyncRequest)o;
            float ret = obj.progress;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index progress on a nil value"));
        }
    }
Пример #3
0
    static int _Createlibx_BundleAsyncRequest(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                libx.BundleAsyncRequest obj = new libx.BundleAsyncRequest();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: libx.BundleAsyncRequest.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }