150 lines
3.2 KiB
C#
150 lines
3.2 KiB
C#
//this source code was auto-generated by tolua#, do not modify it
|
|
using System;
|
|
using LuaInterface;
|
|
|
|
public class taurus_unity_ResourcesManagerWrap
|
|
{
|
|
public static void Register(LuaState L)
|
|
{
|
|
L.BeginStaticLibs("ResourcesManager");
|
|
L.RegFunction("LoadObject", LoadObject);
|
|
L.RegFunction("LoadObjectByGroup", LoadObjectByGroup);
|
|
L.RegFunction("UnLoad", UnLoad);
|
|
L.RegFunction("UnLoadGroup", UnLoadGroup);
|
|
L.RegFunction("DestroyAll", DestroyAll);
|
|
L.RegFunction("ReadAssetConfig", ReadAssetConfig);
|
|
L.RegVar("OS_Dir", get_OS_Dir, set_OS_Dir);
|
|
L.EndStaticLibs();
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int LoadObject(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 2);
|
|
string arg0 = ToLua.CheckString(L, 1);
|
|
System.Type arg1 = ToLua.CheckMonoType(L, 2);
|
|
UnityEngine.Object o = taurus.unity.ResourcesManager.LoadObject(arg0, arg1);
|
|
ToLua.Push(L, o);
|
|
return 1;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int LoadObjectByGroup(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 3);
|
|
string arg0 = ToLua.CheckString(L, 1);
|
|
System.Type arg1 = ToLua.CheckMonoType(L, 2);
|
|
string arg2 = ToLua.CheckString(L, 3);
|
|
UnityEngine.Object o = taurus.unity.ResourcesManager.LoadObjectByGroup(arg0, arg1, arg2);
|
|
ToLua.Push(L, o);
|
|
return 1;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int UnLoad(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
string arg0 = ToLua.CheckString(L, 1);
|
|
taurus.unity.ResourcesManager.UnLoad(arg0);
|
|
return 0;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int UnLoadGroup(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
string arg0 = ToLua.CheckString(L, 1);
|
|
taurus.unity.ResourcesManager.UnLoadGroup(arg0);
|
|
return 0;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int DestroyAll(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 0);
|
|
taurus.unity.ResourcesManager.DestroyAll();
|
|
return 0;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int ReadAssetConfig(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
ToLua.CheckArgsCount(L, 1);
|
|
string arg0 = ToLua.CheckString(L, 1);
|
|
taurus.unity.ResourcesManager.ReadAssetConfig(arg0);
|
|
return 0;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int get_OS_Dir(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
LuaDLL.lua_pushstring(L, taurus.unity.ResourcesManager.OS_Dir);
|
|
return 1;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int set_OS_Dir(IntPtr L)
|
|
{
|
|
try
|
|
{
|
|
string arg0 = ToLua.CheckString(L, 2);
|
|
taurus.unity.ResourcesManager.OS_Dir = arg0;
|
|
return 0;
|
|
}
|
|
catch (Exception e)
|
|
{
|
|
return LuaDLL.toluaL_exception(L, e);
|
|
}
|
|
}
|
|
}
|
|
|