Пример #1
0
 static int AddEventDelegate(IntPtr L)
 {
     try
     {
         int count = LuaDLL.lua_gettop(L);
         LuaFramework.LuaBehaviour obj = (LuaFramework.LuaBehaviour)ToLua.CheckObject <LuaFramework.LuaBehaviour>(L, 1);
         System.Collections.Generic.List <EventDelegate> arg0 = (System.Collections.Generic.List <EventDelegate>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <EventDelegate>));
         LuaTable    arg1 = ToLua.CheckLuaTable(L, 3);
         LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
         object[]    arg3 = ToLua.ToParamsObject(L, 5, count - 4);
         obj.AddEventDelegate(arg0, arg1, arg2, arg3);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }