コード例 #1
0
 static int UnLoadBundleAndObjs(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         LuaLoadReses obj  = (LuaLoadReses)ToLua.CheckObject <LuaLoadReses>(L, 1);
         string       arg0 = ToLua.CheckString(L, 2);
         string       arg1 = ToLua.CheckString(L, 3);
         obj.UnLoadBundleAndObjs(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #2
0
    static int get_LuaCallBackManager(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            LuaLoadReses       obj = (LuaLoadReses)o;
            LuaCallBackManager ret = obj.LuaCallBackManager;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index LuaCallBackManager on a nil value"));
        }
    }
コード例 #3
0
 static int GetResources(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 6);
         LuaLoadReses obj  = (LuaLoadReses)ToLua.CheckObject <LuaLoadReses>(L, 1);
         string       arg0 = ToLua.CheckString(L, 2);
         string       arg1 = ToLua.CheckString(L, 3);
         string       arg2 = ToLua.CheckString(L, 4);
         bool         arg3 = LuaDLL.luaL_checkboolean(L, 5);
         LuaFunction  arg4 = ToLua.CheckLuaFunction(L, 6);
         obj.GetResources(arg0, arg1, arg2, arg3, arg4);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }