#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 = XLua.LuaDLL.lua_CSFunction;
|
#endif
|
|
using XLua;
|
using System.Collections.Generic;
|
|
|
namespace XLua.CSObjectWrap
|
{
|
using Utils = XLua.Utils;
|
public class ResourcesPathWrap
|
{
|
public static void __Register(RealStatePtr L)
|
{
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
System.Type type = typeof(ResourcesPath);
|
Utils.BeginObjectRegister(type, L, translator, 0, 1, 2, 0);
|
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init);
|
|
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "StreamingAssetPath", _g_get_StreamingAssetPath);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ExternalStorePath", _g_get_ExternalStorePath);
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
null, null, null);
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 19, 0, 0);
|
|
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AssetDependentFileBundleName", ResourcesPath.AssetDependentFileBundleName);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "windowFileBundleName", ResourcesPath.windowFileBundleName);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "uiprefabFileBundleName", ResourcesPath.uiprefabFileBundleName);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ResourcesOutPath", ResourcesPath.ResourcesOutPath);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ResourcesOutAssetPath", ResourcesPath.ResourcesOutAssetPath);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AssetDependentFileAssetName", ResourcesPath.AssetDependentFileAssetName);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ABExtention", ResourcesPath.ABExtention);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MOB_FOLDER_NAME", ResourcesPath.MOB_FOLDER_NAME);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MOB_SUFFIX", ResourcesPath.MOB_SUFFIX);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EFFECT_Folder_Name", ResourcesPath.EFFECT_Folder_Name);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UI_SPRITE_SUFFIX", ResourcesPath.UI_SPRITE_SUFFIX);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UI_WINDOW_SUFFIX", ResourcesPath.UI_WINDOW_SUFFIX);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UI_PRIORITYWINDOW_SUFFIX", ResourcesPath.UI_PRIORITYWINDOW_SUFFIX);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UI_FONT_SUFFIX", ResourcesPath.UI_FONT_SUFFIX);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UI_PREFAB_SUFFIX", ResourcesPath.UI_PREFAB_SUFFIX);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CONFIG_FODLER", ResourcesPath.CONFIG_FODLER);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AUDIO_SUFFIX", ResourcesPath.AUDIO_SUFFIX);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LUA_FODLER", ResourcesPath.LUA_FODLER);
|
|
|
|
|
Utils.EndClassRegister(type, L, translator);
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int __CreateInstance(RealStatePtr L)
|
{
|
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
if(LuaAPI.lua_gettop(L) == 1)
|
{
|
|
ResourcesPath gen_ret = new ResourcesPath();
|
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 ResourcesPath constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _m_Init(RealStatePtr L)
|
{
|
try {
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
ResourcesPath gen_to_be_invoked = (ResourcesPath)translator.FastGetCSObj(L, 1);
|
|
|
|
{
|
|
gen_to_be_invoked.Init( );
|
|
|
|
return 0;
|
}
|
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
|
}
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_StreamingAssetPath(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ResourcesPath gen_to_be_invoked = (ResourcesPath)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.StreamingAssetPath);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
static int _g_get_ExternalStorePath(RealStatePtr L)
|
{
|
try {
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
ResourcesPath gen_to_be_invoked = (ResourcesPath)translator.FastGetCSObj(L, 1);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.ExternalStorePath);
|
} catch(System.Exception gen_e) {
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
}
|
return 1;
|
}
|
|
|
|
|
|
|
|
}
|
}
|