예제 #1
0
 static int Init(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         Framework.LuaMgr obj = (Framework.LuaMgr)ToLua.CheckObject <Framework.LuaMgr>(L, 1);
         obj.Init();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #2
0
 static int DoFile(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         Framework.LuaMgr obj  = (Framework.LuaMgr)ToLua.CheckObject <Framework.LuaMgr>(L, 1);
         string           arg0 = ToLua.CheckString(L, 2);
         obj.DoFile(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #3
0
 static int CallLuaModuleMethod(IntPtr L)
 {
     try
     {
         int count             = LuaDLL.lua_gettop(L);
         Framework.LuaMgr obj  = (Framework.LuaMgr)ToLua.CheckObject <Framework.LuaMgr>(L, 1);
         string           arg0 = ToLua.CheckString(L, 2);
         object[]         arg1 = ToLua.ToParamsObject(L, 3, count - 2);
         obj.CallLuaModuleMethod(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #4
0
    static int Init(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.LuaMgr.Init");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 1);
            Framework.LuaMgr obj = (Framework.LuaMgr)ToLua.CheckObject <Framework.LuaMgr>(L, 1);
            obj.Init();
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
예제 #5
0
    static int DoFile(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.LuaMgr.DoFile");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 2);
            Framework.LuaMgr obj  = (Framework.LuaMgr)ToLua.CheckObject <Framework.LuaMgr>(L, 1);
            string           arg0 = ToLua.CheckString(L, 2);
            obj.DoFile(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
예제 #6
0
    static int CallLuaModuleMethod(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.LuaMgr.CallLuaModuleMethod");
#endif
        try
        {
            int count             = LuaDLL.lua_gettop(L);
            Framework.LuaMgr obj  = (Framework.LuaMgr)ToLua.CheckObject <Framework.LuaMgr>(L, 1);
            string           arg0 = ToLua.CheckString(L, 2);
            object[]         arg1 = ToLua.ToParamsObject(L, 3, count - 2);
            obj.CallLuaModuleMethod(arg0, arg1);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
	static int get_RequirePathList(IntPtr L)
	{
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("Framework.LuaMgr.RequirePathList");
#endif
		object o = null;

		try
		{
			o = ToLua.ToObject(L, 1);
			Framework.LuaMgr obj = (Framework.LuaMgr)o;
			System.Collections.Generic.List<string> ret = obj.RequirePathList;
			ToLua.PushSealed(L, ret);
			return 1;
		}
		catch(Exception e)
		{
			return LuaDLL.toluaL_exception(L, e, o, "attempt to index RequirePathList on a nil value");
		}
	}