static int GetItemAsset(IntPtr L)
{
try
{
int count = LuaDLL.lua_gettop(L);
if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(FairyGUI.UIPackage), typeof(string)))
{
FairyGUI.UIPackage obj = (FairyGUI.UIPackage)ToLua.ToObject(L, 1);
string arg0 = ToLua.ToString(L, 2);
object o = obj.GetItemAsset(arg0);
ToLua.Push(L, o);
return(1);
}
else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(string), typeof(string)))
{
string arg0 = ToLua.ToString(L, 1);
string arg1 = ToLua.ToString(L, 2);
object o = FairyGUI.UIPackage.GetItemAsset(arg0, arg1);
ToLua.Push(L, o);
return(1);
}
else
{
return(LuaDLL.luaL_throw(L, "invalid arguments to method: FairyGUI.UIPackage.GetItemAsset"));
}
}
catch (Exception e)
{
return(LuaDLL.toluaL_exception(L, e));
}
}