Files
AIC-Project/Client/Assets/Script/3rd/XLua/Gen/XGame_XResLoaderWrap.cs
T
2026-07-10 10:24:29 +08:00

1362 lines
48 KiB
C#

#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class XGameXResLoaderWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(XGame.XResLoader);
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 38, 4, 4);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFileMd5", _m_GetFileMd5_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "SetXIDCDN", _m_SetXIDCDN_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "Init", _m_Init_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "coLoadFile", _m_coLoadFile_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFileDataOrigin", _m_GetFileDataOrigin_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "EnterXid", _m_EnterXid_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFileMd5Name", _m_GetFileMd5Name_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "AddScene", _m_AddScene_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "OnLoadScene", _m_OnLoadScene_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "DelScene", _m_DelScene_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetMd5ByResPath", _m_GetMd5ByResPath_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadPackageFile", _m_LoadPackageFile_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "OnLoadPackageFile", _m_OnLoadPackageFile_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "AddAssetBundle", _m_AddAssetBundle_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAllDependencies", _m_GetAllDependencies_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetABResPath", _m_GetABResPath_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadRes", _m_LoadRes_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCurLoadedObjs", _m_GetCurLoadedObjs_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetCurLoadedObj", _m_GetCurLoadedObj_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "coLoadRes", _m_coLoadRes_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "coLoadRess", _m_coLoadRess_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "coLoadXIDAB", _m_coLoadXIDAB_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "coLoadAB", _m_coLoadAB_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "coLoadAllRes", _m_coLoadAllRes_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadResAB", _m_LoadResAB_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadBytesRes", _m_LoadBytesRes_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetABBytesRes", _m_GetABBytesRes_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetTextAssetRes", _m_GetTextAssetRes_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadLuaAB", _m_LoadLuaAB_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadAssetBundleAsync", _m_LoadAssetBundleAsync_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "OnLoadAssetBundleAsync", _m_OnLoadAssetBundleAsync_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSpriteByName", _m_GetSpriteByName_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSpritesByName", _m_GetSpritesByName_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "UnloadAllAssetBundle", _m_UnloadAllAssetBundle_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "UnloadRes", _m_UnloadRes_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "UnloadAssetBundle", _m_UnloadAssetBundle_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "Clear", _m_Clear_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "m_Postfix", _g_get_m_Postfix);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "m_ABMode", _g_get_m_ABMode);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "m_displayProgress", _g_get_m_displayProgress);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "m_ResHash", _g_get_m_ResHash);
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "m_Postfix", _s_set_m_Postfix);
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "m_ABMode", _s_set_m_ABMode);
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "m_displayProgress", _s_set_m_displayProgress);
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "m_ResHash", _s_set_m_ResHash);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
return LuaAPI.luaL_error(L, "XGame.XResLoader does not have a constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetFileMd5_xlua_st_(RealStatePtr L)
{
try {
{
string _xid = LuaAPI.lua_tostring(L, 1);
string _filename = LuaAPI.lua_tostring(L, 2);
var gen_ret = XGame.XResLoader.GetFileMd5( _xid, _filename );
LuaAPI.lua_pushstring(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_SetXIDCDN_xlua_st_(RealStatePtr L)
{
try {
{
string _xid = LuaAPI.lua_tostring(L, 1);
string _cdn = LuaAPI.lua_tostring(L, 2);
XGame.XResLoader.SetXIDCDN( _xid, _cdn );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Init_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
var gen_ret = XGame.XResLoader.Init( );
translator.PushAny(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_coLoadFile_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _path = LuaAPI.lua_tostring(L, 1);
System.Action<byte[]> _action = translator.GetDelegate<System.Action<byte[]>>(L, 2);
var gen_ret = XGame.XResLoader.coLoadFile( _path, _action );
translator.PushAny(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetFileDataOrigin_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _xid = LuaAPI.lua_tostring(L, 1);
string _path = LuaAPI.lua_tostring(L, 2);
System.Action<UnityEngine.Networking.UnityWebRequest> _onFinish = translator.GetDelegate<System.Action<UnityEngine.Networking.UnityWebRequest>>(L, 3);
var gen_ret = XGame.XResLoader.GetFileDataOrigin( _xid, _path, _onFinish );
translator.PushAny(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_EnterXid_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _xid = LuaAPI.lua_tostring(L, 1);
var gen_ret = XGame.XResLoader.EnterXid( _xid );
translator.PushAny(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetFileMd5Name_xlua_st_(RealStatePtr L)
{
try {
{
string _filename = LuaAPI.lua_tostring(L, 1);
string _md5 = LuaAPI.lua_tostring(L, 2);
var gen_ret = XGame.XResLoader.GetFileMd5Name( _filename, _md5 );
LuaAPI.lua_pushstring(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_AddScene_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _ScenePath = LuaAPI.lua_tostring(L, 1);
XGame.XResLoader.LoadAssetCallback _Callback = translator.GetDelegate<XGame.XResLoader.LoadAssetCallback>(L, 2);
XGame.XResLoader.AddScene( _ScenePath, _Callback );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_OnLoadScene_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _ScenePath = LuaAPI.lua_tostring(L, 1);
XGame.XResLoader.LoadAssetCallback _Callback = translator.GetDelegate<XGame.XResLoader.LoadAssetCallback>(L, 2);
var gen_ret = XGame.XResLoader.OnLoadScene( _ScenePath, _Callback );
translator.PushAny(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_DelScene_xlua_st_(RealStatePtr L)
{
try {
{
string _ScenePath = LuaAPI.lua_tostring(L, 1);
XGame.XResLoader.DelScene( _ScenePath );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetMd5ByResPath_xlua_st_(RealStatePtr L)
{
try {
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
{
string _path = LuaAPI.lua_tostring(L, 1);
string _xid = LuaAPI.lua_tostring(L, 2);
var gen_ret = XGame.XResLoader.GetMd5ByResPath( _path, _xid );
LuaAPI.lua_pushstring(L, gen_ret);
return 1;
}
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
{
string _path = LuaAPI.lua_tostring(L, 1);
var gen_ret = XGame.XResLoader.GetMd5ByResPath( _path );
LuaAPI.lua_pushstring(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to XGame.XResLoader.GetMd5ByResPath!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_LoadPackageFile_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _Path = LuaAPI.lua_tostring(L, 1);
XGame.XResLoader.LoadFileCallback _Callback = translator.GetDelegate<XGame.XResLoader.LoadFileCallback>(L, 2);
XGame.XResLoader.LoadPackageFile( _Path, _Callback );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_OnLoadPackageFile_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _Path = LuaAPI.lua_tostring(L, 1);
XGame.XResLoader.LoadFileCallback _Callback = translator.GetDelegate<XGame.XResLoader.LoadFileCallback>(L, 2);
var gen_ret = XGame.XResLoader.OnLoadPackageFile( _Path, _Callback );
translator.PushAny(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_AddAssetBundle_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _fullPathName = LuaAPI.lua_tostring(L, 1);
UnityEngine.AssetBundle _assetBundle = (UnityEngine.AssetBundle)translator.GetObject(L, 2, typeof(UnityEngine.AssetBundle));
XGame.XResLoader.AddAssetBundle( _fullPathName, _assetBundle );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetAllDependencies_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _assetBundleName = LuaAPI.lua_tostring(L, 1);
var gen_ret = XGame.XResLoader.GetAllDependencies( _assetBundleName );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetABResPath_xlua_st_(RealStatePtr L)
{
try {
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
{
string _path = LuaAPI.lua_tostring(L, 1);
string _resname;
bool _bExtReserve = LuaAPI.lua_toboolean(L, 2);
var gen_ret = XGame.XResLoader.GetABResPath( _path, out _resname, _bExtReserve );
LuaAPI.lua_pushstring(L, gen_ret);
LuaAPI.lua_pushstring(L, _resname);
return 2;
}
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
{
string _path = LuaAPI.lua_tostring(L, 1);
string _resname;
var gen_ret = XGame.XResLoader.GetABResPath( _path, out _resname );
LuaAPI.lua_pushstring(L, gen_ret);
LuaAPI.lua_pushstring(L, _resname);
return 2;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to XGame.XResLoader.GetABResPath!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_LoadRes_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 3&& translator.Assignable<string[]>(L, 1)&& translator.Assignable<System.Type>(L, 2)&& translator.Assignable<System.Action<UnityEngine.Object[]>>(L, 3))
{
string[] _paths = (string[])translator.GetObject(L, 1, typeof(string[]));
System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
System.Action<UnityEngine.Object[]> _action = translator.GetDelegate<System.Action<UnityEngine.Object[]>>(L, 3);
XGame.XResLoader.LoadRes( _paths, _type, _action );
return 0;
}
if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)&& translator.Assignable<System.Action<UnityEngine.Object[]>>(L, 3))
{
string _path = LuaAPI.lua_tostring(L, 1);
System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
System.Action<UnityEngine.Object[]> _action = translator.GetDelegate<System.Action<UnityEngine.Object[]>>(L, 3);
XGame.XResLoader.LoadRes( _path, _type, _action );
return 0;
}
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2))
{
string _path = LuaAPI.lua_tostring(L, 1);
System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
XGame.XResLoader.LoadRes( _path, _type );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to XGame.XResLoader.LoadRes!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetCurLoadedObjs_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
var gen_ret = XGame.XResLoader.GetCurLoadedObjs( );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetCurLoadedObj_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
var gen_ret = XGame.XResLoader.GetCurLoadedObj( );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_coLoadRes_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)&& translator.Assignable<System.Action<UnityEngine.Object>>(L, 3))
{
string _path = LuaAPI.lua_tostring(L, 1);
System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
System.Action<UnityEngine.Object> _action = translator.GetDelegate<System.Action<UnityEngine.Object>>(L, 3);
var gen_ret = XGame.XResLoader.coLoadRes( _path, _type, _action );
translator.PushAny(L, gen_ret);
return 1;
}
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2))
{
string _path = LuaAPI.lua_tostring(L, 1);
System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
var gen_ret = XGame.XResLoader.coLoadRes( _path, _type );
translator.PushAny(L, gen_ret);
return 1;
}
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
{
string _path = LuaAPI.lua_tostring(L, 1);
var gen_ret = XGame.XResLoader.coLoadRes( _path );
translator.PushAny(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to XGame.XResLoader.coLoadRes!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_coLoadRess_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 3&& translator.Assignable<string[]>(L, 1)&& translator.Assignable<System.Type>(L, 2)&& translator.Assignable<System.Action<UnityEngine.Object>>(L, 3))
{
string[] _paths = (string[])translator.GetObject(L, 1, typeof(string[]));
System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
System.Action<UnityEngine.Object> _action = translator.GetDelegate<System.Action<UnityEngine.Object>>(L, 3);
var gen_ret = XGame.XResLoader.coLoadRess( _paths, _type, _action );
translator.PushAny(L, gen_ret);
return 1;
}
if(gen_param_count == 2&& translator.Assignable<string[]>(L, 1)&& translator.Assignable<System.Type>(L, 2))
{
string[] _paths = (string[])translator.GetObject(L, 1, typeof(string[]));
System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
var gen_ret = XGame.XResLoader.coLoadRess( _paths, _type );
translator.PushAny(L, gen_ret);
return 1;
}
if(gen_param_count == 1&& translator.Assignable<string[]>(L, 1))
{
string[] _paths = (string[])translator.GetObject(L, 1, typeof(string[]));
var gen_ret = XGame.XResLoader.coLoadRess( _paths );
translator.PushAny(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to XGame.XResLoader.coLoadRess!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_coLoadXIDAB_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _xid = LuaAPI.lua_tostring(L, 1);
string _abpath = LuaAPI.lua_tostring(L, 2);
System.Action<UnityEngine.AssetBundle> _action = translator.GetDelegate<System.Action<UnityEngine.AssetBundle>>(L, 3);
var gen_ret = XGame.XResLoader.coLoadXIDAB( _xid, _abpath, _action );
translator.PushAny(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_coLoadAB_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _abpath = LuaAPI.lua_tostring(L, 1);
System.Action<UnityEngine.AssetBundle> _action = translator.GetDelegate<System.Action<UnityEngine.AssetBundle>>(L, 2);
var gen_ret = XGame.XResLoader.coLoadAB( _abpath, _action );
translator.PushAny(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_coLoadAllRes_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string[] _paths = (string[])translator.GetObject(L, 1, typeof(string[]));
System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
System.Action<UnityEngine.Object[]> _action = translator.GetDelegate<System.Action<UnityEngine.Object[]>>(L, 3);
var gen_ret = XGame.XResLoader.coLoadAllRes( _paths, _type, _action );
translator.PushAny(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_LoadResAB_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _path = LuaAPI.lua_tostring(L, 1);
System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
System.Action<UnityEngine.Object[]> _action = translator.GetDelegate<System.Action<UnityEngine.Object[]>>(L, 3);
XGame.XResLoader.LoadResAB( _path, _type, _action );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_LoadBytesRes_xlua_st_(RealStatePtr L)
{
try {
{
string _filename = LuaAPI.lua_tostring(L, 1);
var gen_ret = XGame.XResLoader.LoadBytesRes( _filename );
LuaAPI.lua_pushstring(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetABBytesRes_xlua_st_(RealStatePtr L)
{
try {
{
string _filename = LuaAPI.lua_tostring(L, 1);
var gen_ret = XGame.XResLoader.GetABBytesRes( _filename );
LuaAPI.lua_pushstring(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetTextAssetRes_xlua_st_(RealStatePtr L)
{
try {
{
string _filename = LuaAPI.lua_tostring(L, 1);
var gen_ret = XGame.XResLoader.GetTextAssetRes( _filename );
LuaAPI.lua_pushstring(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_LoadLuaAB_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _path = LuaAPI.lua_tostring(L, 1);
System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
var gen_ret = XGame.XResLoader.LoadLuaAB( _path, _type );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_LoadAssetBundleAsync_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Action<string, UnityEngine.AssetBundle>>(L, 2))
{
string _reltivePath = LuaAPI.lua_tostring(L, 1);
System.Action<string, UnityEngine.AssetBundle> _callback = translator.GetDelegate<System.Action<string, UnityEngine.AssetBundle>>(L, 2);
var gen_ret = XGame.XResLoader.LoadAssetBundleAsync( _reltivePath, _callback );
translator.Push(L, gen_ret);
return 1;
}
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
{
string _reltivePath = LuaAPI.lua_tostring(L, 1);
var gen_ret = XGame.XResLoader.LoadAssetBundleAsync( _reltivePath );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to XGame.XResLoader.LoadAssetBundleAsync!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_OnLoadAssetBundleAsync_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _fullPath = LuaAPI.lua_tostring(L, 1);
System.Action<string, UnityEngine.AssetBundle> _callback = translator.GetDelegate<System.Action<string, UnityEngine.AssetBundle>>(L, 2);
var gen_ret = XGame.XResLoader.OnLoadAssetBundleAsync( _fullPath, _callback );
translator.PushAny(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetSpriteByName_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _spritePath = LuaAPI.lua_tostring(L, 1);
var gen_ret = XGame.XResLoader.GetSpriteByName( _spritePath );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetSpritesByName_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
string _atlasName = LuaAPI.lua_tostring(L, 1);
string _spriteName = LuaAPI.lua_tostring(L, 2);
var gen_ret = XGame.XResLoader.GetSpritesByName( _atlasName, _spriteName );
translator.Push(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_UnloadAllAssetBundle_xlua_st_(RealStatePtr L)
{
try {
{
XGame.XResLoader.UnloadAllAssetBundle( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_UnloadRes_xlua_st_(RealStatePtr L)
{
try {
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
{
string _path = LuaAPI.lua_tostring(L, 1);
bool _isThorough = LuaAPI.lua_toboolean(L, 2);
XGame.XResLoader.UnloadRes( _path, _isThorough );
return 0;
}
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
{
string _path = LuaAPI.lua_tostring(L, 1);
XGame.XResLoader.UnloadRes( _path );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to XGame.XResLoader.UnloadRes!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_UnloadAssetBundle_xlua_st_(RealStatePtr L)
{
try {
int gen_param_count = LuaAPI.lua_gettop(L);
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
{
string _abPath = LuaAPI.lua_tostring(L, 1);
bool _isThorough = LuaAPI.lua_toboolean(L, 2);
XGame.XResLoader.UnloadAssetBundle( _abPath, _isThorough );
return 0;
}
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
{
string _abPath = LuaAPI.lua_tostring(L, 1);
XGame.XResLoader.UnloadAssetBundle( _abPath );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to XGame.XResLoader.UnloadAssetBundle!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Clear_xlua_st_(RealStatePtr L)
{
try {
{
XGame.XResLoader.Clear( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_m_Postfix(RealStatePtr L)
{
try {
LuaAPI.lua_pushstring(L, XGame.XResLoader.m_Postfix);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_m_ABMode(RealStatePtr L)
{
try {
LuaAPI.xlua_pushinteger(L, XGame.XResLoader.m_ABMode);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_m_displayProgress(RealStatePtr L)
{
try {
LuaAPI.xlua_pushinteger(L, XGame.XResLoader.m_displayProgress);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_m_ResHash(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
translator.Push(L, XGame.XResLoader.m_ResHash);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_m_Postfix(RealStatePtr L)
{
try {
XGame.XResLoader.m_Postfix = LuaAPI.lua_tostring(L, 1);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_m_ABMode(RealStatePtr L)
{
try {
XGame.XResLoader.m_ABMode = LuaAPI.xlua_tointeger(L, 1);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_m_displayProgress(RealStatePtr L)
{
try {
XGame.XResLoader.m_displayProgress = LuaAPI.xlua_tointeger(L, 1);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_m_ResHash(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
XGame.XResLoader.m_ResHash = (System.Collections.Generic.Dictionary<string, UnityEngine.Hash128>)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary<string, UnityEngine.Hash128>));
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}