static int _m_LoadFileSystem(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityGameFramework.Runtime.FileSystemComponent gen_to_be_invoked = (UnityGameFramework.Runtime.FileSystemComponent)translator.FastGetCSObj(L, 1); { string _fullPath = LuaAPI.lua_tostring(L, 2); GameFramework.FileSystem.FileSystemAccess _access; translator.Get(L, 3, out _access); GameFramework.FileSystem.IFileSystem gen_ret = gen_to_be_invoked.LoadFileSystem(_fullPath, _access); translator.PushAny(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _g_get_Count(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityGameFramework.Runtime.FileSystemComponent gen_to_be_invoked = (UnityGameFramework.Runtime.FileSystemComponent)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.Count); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { UnityGameFramework.Runtime.FileSystemComponent gen_ret = new UnityGameFramework.Runtime.FileSystemComponent(); 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 UnityGameFramework.Runtime.FileSystemComponent constructor!")); }
static int _m_HasFileSystem(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityGameFramework.Runtime.FileSystemComponent gen_to_be_invoked = (UnityGameFramework.Runtime.FileSystemComponent)translator.FastGetCSObj(L, 1); { string _fullPath = LuaAPI.lua_tostring(L, 2); bool gen_ret = gen_to_be_invoked.HasFileSystem(_fullPath); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetAllFileSystems(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityGameFramework.Runtime.FileSystemComponent gen_to_be_invoked = (UnityGameFramework.Runtime.FileSystemComponent)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 1) { GameFramework.FileSystem.IFileSystem[] gen_ret = gen_to_be_invoked.GetAllFileSystems( ); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <System.Collections.Generic.List <GameFramework.FileSystem.IFileSystem> >(L, 2)) { System.Collections.Generic.List <GameFramework.FileSystem.IFileSystem> _results = (System.Collections.Generic.List <GameFramework.FileSystem.IFileSystem>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <GameFramework.FileSystem.IFileSystem>)); gen_to_be_invoked.GetAllFileSystems(_results); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityGameFramework.Runtime.FileSystemComponent.GetAllFileSystems!")); }
static int _m_DestroyFileSystem(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityGameFramework.Runtime.FileSystemComponent gen_to_be_invoked = (UnityGameFramework.Runtime.FileSystemComponent)translator.FastGetCSObj(L, 1); { GameFramework.FileSystem.IFileSystem _fileSystem = (GameFramework.FileSystem.IFileSystem)translator.GetObject(L, 2, typeof(GameFramework.FileSystem.IFileSystem)); bool _deletePhysicalFile = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.DestroyFileSystem(_fileSystem, _deletePhysicalFile); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }