public void Call(Launch.Resource param0)
 {
     func.BeginPCall();
     func.PushObject(param0);
     func.PCall();
     func.EndPCall();
 }
Esempio n. 2
0
 static int DestroyResource(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Launch.Resource obj = (Launch.Resource)ToLua.CheckObject(L, 1, typeof(Launch.Resource));
         obj.DestroyResource();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 3
0
 static int UnloadBinaryBytes(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Launch.Resource obj = (Launch.Resource)ToLua.CheckObject(L, 1, typeof(Launch.Resource));
         obj.UnloadBinaryBytes();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 4
0
 static int GetBytes(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Launch.Resource obj = (Launch.Resource)ToLua.CheckObject(L, 1, typeof(Launch.Resource));
         byte[]          o   = obj.GetBytes();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 5
0
 static int GetText(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Launch.Resource obj = (Launch.Resource)ToLua.CheckObject(L, 1, typeof(Launch.Resource));
         string          o   = obj.GetText();
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 6
0
 static int SetDependsRes(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Launch.Resource obj = (Launch.Resource)ToLua.CheckObject(L, 1, typeof(Launch.Resource));
         System.Collections.Generic.List <Launch.Resource> arg0 = (System.Collections.Generic.List <Launch.Resource>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <Launch.Resource>));
         obj.SetDependsRes(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 7
0
 static int SetWWWObject(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Launch.Resource obj  = (Launch.Resource)ToLua.CheckObject(L, 1, typeof(Launch.Resource));
         UnityEngine.WWW arg0 = (UnityEngine.WWW)ToLua.CheckObject(L, 2, typeof(UnityEngine.WWW));
         obj.SetWWWObject(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 8
0
 static int GetAsset(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Launch.Resource    obj  = (Launch.Resource)ToLua.CheckObject(L, 1, typeof(Launch.Resource));
         string             arg0 = ToLua.CheckString(L, 2);
         UnityEngine.Object o    = obj.GetAsset(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Esempio n. 9
0
    static int set_errorTxt(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Launch.Resource obj  = (Launch.Resource)o;
            string          arg0 = ToLua.CheckString(L, 2);
            obj.errorTxt = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index errorTxt on a nil value" : e.Message));
        }
    }
Esempio n. 10
0
    static int set_isDone(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Launch.Resource obj  = (Launch.Resource)o;
            bool            arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.isDone = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isDone on a nil value" : e.Message));
        }
    }
Esempio n. 11
0
    static int set_resType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Launch.Resource     obj  = (Launch.Resource)o;
            Launch.ResourceType arg0 = (Launch.ResourceType)ToLua.CheckObject(L, 2, typeof(Launch.ResourceType));
            obj.resType = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index resType on a nil value" : e.Message));
        }
    }
Esempio n. 12
0
    static int get_IsDestroy(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Launch.Resource obj = (Launch.Resource)o;
            bool            ret = obj.IsDestroy;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index IsDestroy on a nil value" : e.Message));
        }
    }
Esempio n. 13
0
    static int get_errorTxt(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Launch.Resource obj = (Launch.Resource)o;
            string          ret = obj.errorTxt;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index errorTxt on a nil value" : e.Message));
        }
    }
Esempio n. 14
0
    static int get_resType(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Launch.Resource     obj = (Launch.Resource)o;
            Launch.ResourceType ret = obj.resType;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index resType on a nil value" : e.Message));
        }
    }
Esempio n. 15
0
    static int get_refCount(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            Launch.Resource obj = (Launch.Resource)o;
            int             ret = obj.refCount;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index refCount on a nil value" : e.Message));
        }
    }
Esempio n. 16
0
    static int _CreateLaunch_Resource(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                Launch.Resource obj = new Launch.Resource();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Launch.Resource.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
 public bool RemoveWaitingLoadingRes(Resource res)
 {
     return(_waitingList.Remove(res));
 }
 public bool IsWaitLoading(Resource res)
 {
     return(_waitingList.Contains(res));
 }